You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on an ODE system, and using the function Symbolics.expand_derivatives. This works fine when the system does not include rational equations. However, when the system is like:
using DifferentialEquations
using Symbolics
# create the differentiation equations functionderivat(e, H)
tmp = e
for h in1:H
for i in1:length(tmp)
println(D(tmp[i].rhs))
println()
tmp[i] =D(tmp[i].lhs) ~ Symbolics.expand_derivatives(D(tmp[i].rhs))
endendreturn eq
end@parameters t k1 k2 k3 k4
@variablesr(t) w(t)
D =Differential(t)
eqs = [D(r) ~ k1*r*w/(k2+w) - k3*r,
D(w) ~ (-k1/k4)*(k1*r*w/(k2+w))]
h =4
eq1 =derivat(eqs, h)
Really don't know what happens here, Hope this can be solved.
The text was updated successfully, but these errors were encountered:
I'm working on an ODE system, and using the function Symbolics.expand_derivatives. This works fine when the system does not include rational equations. However, when the system is like:
Symbolics.expand_derivatives only works when differentiation is under 3rd derivatives. When the order is higher, like 4. It returns the error:
The problematic equation is:
The code I use to generate the derivatives is:
Really don't know what happens here, Hope this can be solved.
The text was updated successfully, but these errors were encountered: