_ODE
Symbolic node for the solution value of a first-order initial-value problem.
Represents y(target) where y satisfies y' = rhs(t, y), y(t0) = y0.
Both depVar (the dependent variable y) and indepVar (the independent variable t) are binders: they are excluded from children so that substitute and dependsOn never recurse into them, matching the convention of scalar._Derivative and scalar._Limit. The expression positions rhs, t0, y0, and target are ordinary children and may hold free variables (e.g. a symbolic target keeps the result closed-form).
Evaluation strategy (four tiers, in order):
- Linear system via
solveODESystem(F_0006): wheny0evaluates to ann×1column andrhsisA*yorA*y + bwith a constant square matrixA, the answer ise^(A*tau)*y0(plus the input term) by the augmented matrix exponential. Tried first so a vector problem never reaches the scalarcollect. Numeric only. - Closed-form via
solveODESymbolic: handlesy' = a*y + bfor a scalar coefficient (constant or, via the integrating factor, time-varying) and the separable shapes; returns a symbolic expression that stays closed-form whent0/y0/targetare free. It declines a matrix coefficient, which is tier 1's. - Numeric RK4 via
solveODE: foldst0/y0/targetto concrete_Numbers and runs the integrator; returnsRight(_Number(result)). - Vector RK4 (F_0051) via
odeCertified, wheny0is a column and tiers 1–2 declined — a time-varyingA(t)*y, or a nonlinear system written throughat(y, i, 1):depVaris bound to the whole column, and the answer is certified by step doubling. The column-of-names spelling builds _ODESystem instead. When none applies,evalreturnsLeft(this)— the fixpoint convention shared with the transform nodes and thescalar._Functionalhierarchy.
Round-trip: toString emits ode(rhs, depVar, indepVar, t0, y0, target), which re-parses to an equivalent node.
Value parameters
- depVar
-
the dependent variable (the unknown function, e.g.
y) - indepVar
-
the independent variable (what
yis differentiated against, e.g.t) - rhs
-
the right-hand side
f(t, y)of the ODE - t0
-
the initial time point
- target
-
the point at which the solution is evaluated
- y0
-
the initial value
y(t0)
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass _Functionaltrait _Expressionclass Objecttrait Matchableclass Any