Skip to content

Contains sample implementations in python of the following numerical methods: Euler's Method, Midpoint Euler's Method, Runge Kuttta Method of Order 4, and Composite Simpson's Rule

Notifications You must be signed in to change notification settings

fritzwill/numerical-methods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Contains sample implementations in python of the following numerical methods: Euler's Method, Midpoint Euler's Method, Runge Kuttta Method of Order 4, and Composite Simpson's Rule

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages