Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python code for system of odes

    u_star = u[k] + dt*f(u[k], t[k])
    u[k+1] = u[k] + 0.5*dt*f(u[k], t[k]) + 0.5*dt*f(u_star, t[k+1])
## function argument as list items
Source by hplgit.github.io #
 
PREVIOUS NEXT
Tagged: #python #code #system #odes
ADD COMMENT
Topic
Name
9+7 =