Use C Code to Solve a Differential Equation

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

    
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=