| Author |
Comment/Response |
Basu
|
08/10/06 2:07pm
I am solving a series of ordinary differential equations, and would like some of the constants in those equations to vary w/ time using piecewise functions, yet can't seem to determine how to best code that w/ N/DSolve...
e.g., a[t_]:= Piecewise [ { {1, t < 5} , {2, 5≤ t < 10} , { 3, 10≤ t } ];
b=5;
c=10;
then i'm trying to solve a series of ODE's like
S'[t]=a[t]*S[t]-b*I[t]-c*R[t];
I'[t]=b*I[t];
R'[t]=c*R[t];
...what should the N/DSolve command look like, or is this not possible?
URL: , |
|