For my 3rd year project I'm meant to code different O.D.E solving algorithms and run them on GPU and compare the results to running them on CPU.
The first algorithm I am meant to code is the fourth order Runge-Kutta for a O.D.E in the form:
dx/dt = ax(t), x0 = 0 (I think that is how it is written)
It's solution is meant to be in the form of x = e^(at)x0 (again, I think)
Could someone show me how to set up the runge kutta algorithm? I am totally confused about the t and the x in the Runge-Kutta equation.