Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 826 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 826 Bytes

Scripts Demonstrating Various Numerical Methods

Note: Scripts contain an example IVP/integral to solve for but the scripts can be edited to solve other IVPs/integrals

Euler's Method (euler.py)

Uses Euler's Method to approximate y(1) of a function

How to run

$ python ./euler.py

Midpoint Euler's Method (midpointEuler.py)

Uses Euler's Midpoint Method to approximate y(1) of a function

How to run

$ python ./midpointEuler.py

Runge Kutta (order 4) Method (rungeKuttaMethod4.py)

Uses Runge Kutta Method of order 4 to approximate y(1) of a function

How to run

$ python ./rungeKuttaMethod4.py

Simpson's Rule (simpsons.py)

Uses the composite Simpson rule to approximate the solution to an interval (contains example in script)

How to run

$ python ./simpsons.py