Hello,

I am trying to solve a small system of ODEs, following the tutorial on
the SAGE homepage; however, I only receive an error message. What am I
doing wrong?

Here is my code:

====================
t = var ('t')

S_0 = 1.5
X_0 = 0.05
Y_XS = 0.5
K_S = 0.007
mu_max = 0.8

X = function ('X', t)
S = function ('S', X)
mu = function ('mu', S)

dXdt = diff (X, t) == mu * X
dSdt = diff (S, t) == -mu * X / Y_XS
mu = (mu_max * S) / (K_S + S)

desolve_system ([dXdt, dSdt], [X, S], ics = [0, X_0, S_0])
====================


(Part of) the error message is:

====================
TypeError: Error executing code in Maxima
CODE:
        sage7 : atvalue(sage1,sage5,sage6)$
Maxima ERROR:
        
Improper argument to atvalue:
['X(t)]
====================


Thanks,

    Richard

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to