Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
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
Solved! Go to Solution.
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
You may also parametrize the solve block with the vector index.
Now you could show a few of the 4000 different functions in one plot
Prime 10 worksheet attached
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
You may also parametrize the solve block with the vector index.
Now you could show a few of the 4000 different functions in one plot
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 😉
Hello Werner, thanks for the valuable feedback! Best wishes, Peter
The simpler approach is the fact that the solution for the ODE:
is:
And with: x(0)=0 and x'(0)=0 the two constant C0 and C1 are each zero, so:
And with this you can plot x(t) for any values of F and M.
Success!
Luc
Hello Luc, thanks for the valuable feedback! Best wishes, Peter