Use C Code to Solve a Differential Equation

Functions can take C code as input. This shows NDSolve computing Duffing's equation using the Runge-Kutta method.

    
In[64]:=
Click for copyable input
In[72]:=
Click for copyable input
Out[72]=
New to Mathematica? Find your learning path »
Have a question? Ask support »