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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Second order differential equation, Odesolve: "Unknown error: Ode%_function%_illegal%_context"

fvlaar
1-Visitor

Second order differential equation, Odesolve: "Unknown error: Ode%_function%_illegal%_context"

Hey,

When I tried to solve a second order differential equation with odesolve I get the above mentioned error. First order ode's work fine. Odesolve problem.png

ACCEPTED SOLUTION

Accepted Solutions

Something like this?

The 2nd order differential equation can be written as the d/dt style, but I think that the initial condition needs to be in the x' format for prime to understand.

Probably explains why the 1st order ode worked as you don't need the initial condition for the differential term.

Regards

Andy

View solution in original post

3 REPLIES 3

Something like this?

The 2nd order differential equation can be written as the d/dt style, but I think that the initial condition needs to be in the x' format for prime to understand.

Probably explains why the 1st order ode worked as you don't need the initial condition for the differential term.

Regards

Andy

Thank you very much! this worked!

Because mathcad did nog recognize the error I had no idea.

LucMeekes
23-Emerald III
(To:fvlaar)

Using some advanced techniques (A classical math problem: differential equations) I've determined that the solution to your DE, for s=2, is:

Maybe this helps.

Luc

Announcements

Top Tags