The following is a sample javascript implementation of the Rünge-Kutta method of numerically solving initial value problems in ordinary differential equations. In particular, this webpage implements the so-called RK4 method which is a 4th order method.
Example
Consider the equation y'=f(x,y)=yx2 - 6*y/5. Given an initial value y(0)=y0, we want to know the approximate value of the function y(x) when x=x1.
Enter values for y0 and x1 and a number of iterations of RK4 to use to approximate y1=y(x1).