cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

MathCAD Prime 9.0/10..0 Differential Equation Second Order

PR_9168273
5-Regular Member

MathCAD Prime 9.0/10..0 Differential Equation Second Order

Hello Community Members,

 

I would appreciate your help in fixing the solution to a second order differential equation. 


I am attaching the spreadsheet I created in Mathcad 10.


Thanks in advance for a timely feedback!
Best regards, Peter

1 ACCEPTED SOLUTION

Accepted Solutions

The correct syntax is y:=odesolve... and not y(t):=...

But the main problem is the fact, that M and F0 are vectors and not scalars!

For every line in the vectors M and F0 you would get a different function x!!

Here as an example I have chosen index 1001

Werner_E_0-1713261884719.pngWerner_E_1-1713261894095.png

 

You may also parametrize the solve block with the vector index.

Werner_E_2-1713262343055.png

Now you could show a few of the 4000 different functions in one plot

Werner_E_4-1713262532893.png

Prime 10 worksheet attached

 

 

 

View solution in original post

6 REPLIES 6

The correct syntax is y:=odesolve... and not y(t):=...

But the main problem is the fact, that M and F0 are vectors and not scalars!

For every line in the vectors M and F0 you would get a different function x!!

Here as an example I have chosen index 1001

Werner_E_0-1713261884719.pngWerner_E_1-1713261894095.png

 

You may also parametrize the solve block with the vector index.

Werner_E_2-1713262343055.png

Now you could show a few of the 4000 different functions in one plot

Werner_E_4-1713262532893.png

Prime 10 worksheet attached

 

 

 

Is Prime 10 released ? - was not aware of this.

 

Owe

 

 


@o.svahn wrote:

Is Prime 10 released ? - was not aware of this.

 

Owe

 

 


Yes it is. I wasn't aware of it , either, until I noticed this post
https://community.ptc.com/t5/Mathcad/MATHCAD-User-defined-functions-in-FORTRAN/m-p/943397/highlight/true#M211221

and (successfully) tried to download P10 and get a new license file generated 😉

PR_9168273
5-Regular Member
(To:Werner_E)

Hello Werner, thanks for the valuable feedback! Best wishes, Peter

LucMeekes
23-Emerald III
(To:PR_9168273)

The simpler approach is the fact that the solution for the ODE:

LucMeekes_0-1713271447681.png

is:

LucMeekes_1-1713271809041.png

And with: x(0)=0 and x'(0)=0 the two constant C0 and C1 are each zero, so:

LucMeekes_2-1713271935769.png

And with this you can plot x(t) for any values of F and M.

 

Success!
Luc

 

PR_9168273
5-Regular Member
(To:LucMeekes)

Hello Luc, thanks for the valuable feedback! Best wishes, Peter

Top Tags