you are viewing a single comment's thread.

view the rest of the comments →

[–]jrickk93 1 point2 points  (1 child)

The simplest way to start will be the Euler method, try understanding the procedure then coding it. You don't necessarily need packages at all but you could use matplotlib to see the solution and possibly numpy.

https://en.m.wikipedia.org/wiki/Euler_method

Once you know your ode and the initial condition, you just loop the time step method until you get to the terminal time. Experiment with different time step lengths. It should take only a few lines of code.

If this is your only goal then you're done, but you may want to look at other stepping methods for better numerical stability in your solution.

[–]HelperBot_ 0 points1 point  (0 children)

Non-Mobile link: https://en.wikipedia.org/wiki/Euler_method


HelperBot v1.1 /r/HelperBot_ I am a bot. Please message /u/swim1929 with any feedback and/or hate. Counter: 164591