Skip to content

Custom ODE solver (Euler method) to solve the SIR model differential equations

Notifications You must be signed in to change notification settings

siddsriv/SIR_model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SIR_model

Custom ODE solver (Euler method) to solve the SIR model differential equations.

Files

File name Utility
sir_model [.ipynb or .py] SIR class implementation and main method.
ODESolver [.ipynb or .py] General class to solve an ODE with a subclass to numerically integrate using the forward Euler method.

SIR Plot

SIR Plot

SIR plot for ndays = 90 with a resolution (npoints) = 1000
beta varies over time as a result of preventive measures (social distancing, washing hands, etc.)

About

Custom ODE solver (Euler method) to solve the SIR model differential equations

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published