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
Might be worth thinking about allowing more complicated derivative expressions on the left side of differential equations.
@reaction_networkbegin@variablesA(t) B(t)
@equationsD(A) +D(B) ~ A
endf(A, t) =2*A*t
@reaction_networkbegin@variablesA(t) B(t)
@equationsf(A, t)*D(A) ~ A + B
end
This latter one may be complicated since we probably want to escape the f(A, t) but not the D(A)? @TorkelE would it be easy to change the DSL code to allow for stuff like this?
I assume we want both of the following to work?
f(A, t) =2*A*t
@reaction_networkbegin@variablesA(t) B(t)
@equationsf(A, t) ~ A + B
end@reaction_networkbegin@variablesA(t) B(t)
@equations A + B ~f(A, t)
end
The text was updated successfully, but these errors were encountered:
vyudu
changed the title
valid ways to pass equations using the DSL
valid ways to write equations using the DSL
Sep 4, 2024
All this should work (sans any function related its). Anything that is a valid equation normally should also work in the DSL. However, it is only in the case of D(V) ~ ... (Where there are no differentials on the RHS) Where we automatically under that V is a variable.
If you check the texts added here #815 you can see all the details of how it work.
Might be worth thinking about allowing more complicated derivative expressions on the left side of differential equations.
This latter one may be complicated since we probably want to escape the
f(A, t)
but not theD(A)
? @TorkelE would it be easy to change the DSL code to allow for stuff like this?I assume we want both of the following to work?
The text was updated successfully, but these errors were encountered: