unforgiven_davs
Apr 28, 2012, 12:32 PM
I would like to learn to solve system of differential equation in MathCad like this one:
dI(t)/dt = coeff * I(t) * S(t)
dS(t)/dt = -coeff * I(t) * S(t)
N = S(t) + I(t)
where 'N' and 'coeff' are user specified coefficients
In MathCad I did:
( coeff * y0 * y1 )
D(t, y) := ( )
( -coeff * y0 * y1 )
( 1 )
ic := ( )
( 9 )
But :
S := rkfixed (ic, 0, 10, 100, D)
returns: D - this function can't be used here.
And I don't know how and where insert N=S(t) + I(t) equation :(
dI(t)/dt = coeff * I(t) * S(t)
dS(t)/dt = -coeff * I(t) * S(t)
N = S(t) + I(t)
where 'N' and 'coeff' are user specified coefficients
In MathCad I did:
( coeff * y0 * y1 )
D(t, y) := ( )
( -coeff * y0 * y1 )
( 1 )
ic := ( )
( 9 )
But :
S := rkfixed (ic, 0, 10, 100, D)
returns: D - this function can't be used here.
And I don't know how and where insert N=S(t) + I(t) equation :(