This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cpgplot.h> | |
const double N = 7900000; // Total population | |
const double dt = 1.0; | |
double ds_dt(double s, double i, double b) { | |
return -b * s * i; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include "ode_def.h" | |
#include <cpgplot.h> | |
#include <cmath> | |
using namespace std; | |
double dTdt(double b, double Tt, double Vt) { | |
return -b * Tt * Vt; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cpgplot.h> | |
const double N = 7900000; // Total population | |
const double dt = 1.0; | |
double ds_dt(double s, double i, double b) { | |
return -b * s * i; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
%matplotlib inline | |
##Initial Conditions | |
t=[0] | |
T=[4*10**8] | |
I=[0.0001] | |
V=[3.5*10**(-1)] |