Vous êtes sur la page 1sur 2

METHOD RK4

STARTTIME = 0
STOPTIME=10
DT = 0.02
d/dt(mi) = ami + ((k2*M)/kmi+M) - smi*mi
d/dt (P) = ap + ((k1*M)/Kp+M) + (k3/(Ki+mi)) - sp*P
d/dt (M) = am - sm*M
init mi = 2
init P = 0
init M = 3
ami = 0.5
k2 = 0.05
kmi = 0.1
smi = 0.25
ap = 0.5
k1 = 0.05
Kp = 0.2
Ki = 0.3
sp = 0.25
am = 0.5
sm = 0.25
> ami := .5;
0.5
> k2 := 0.5e-1;
0.05
> kmi := .1;
0.1
> smi := .25;
0.25
> ap := .5;
0.5
> k1 := 0.5e-1;
0.05
> Kp := .2;
0.2
> Ki := .3;
0.3
> sp := .25;
0.25
> am := .5;
0.5
> sm := .25;
0.25
> with*plots;
> Typesetting[delayDotProduct](with, DEtools, true);
> ODE1 := diff(mi(t), t) = ami+k2*M/kmi+M-smi*mi;
d
--- mi(t) = 0.5 + 1.500000000 M - 0.25 mi
dt
> dsolve({ODE1, mi(0) = .5+1.5*M, (D(mi))(0) = 2}, mi(t));
Error, (in dsolve) mi(t) and mi cannot both appear in the given ODE.
> dsolve({ODE1, (D(mi))(0) = 2}, mi(t));
Error, (in dsolve) mi(t) and mi cannot both appear in the given ODE.
> dsolve({ODE1, mi(0) = 2}, mi(t));
Error, (in dsolve) mi(t) and mi cannot both appear in the given ODE.

> dsolve({ODE1, (D(mi))(0) = 2});


Error, (in dsolve) mi(t) and mi cannot both appear in the given ODE.
> dsolve({ODE1, mi(0) = 2});
Error, (in dsolve) mi(t) and mi cannot both appear in the given ODE.
> dsolve({ODE1, mi(0) = 2}, mi(t));
Error, (in dsolve) mi(t) and mi cannot both appear in the given ODE.
>