_ODESystem

it.grypho.scala.leonardo.ode._ODESystem
case class _ODESystem(rhs: _Expression, states: Vector[_Variable], indepVar: _Variable, t0: _Expression, y0: _Expression, target: _Expression) extends _Expression

ode(rhs, [[x], [v]], t, t0, y0, target) — a system whose state is written as a column of names (F_0051 Decision A), each bound to its component, so [[v], [-x]] reads as written.

A separate node rather than a widened _ODE: _ODE is a published case class whose depVar is one _Variable, and changing that field's type would be a binary break for a spelling. The single-name form still builds _ODE, unchanged.

Integrated by odeCertified: RK4 at the scalar tier's step count, answered only when n and 2n steps agree within the tolerance = uses (Decision B), relative to the run's largest state component (F_0211). The names are binders — excluded from children, carried through rebuild.

Value parameters

indepVar

the independent variable

rhs

the right-hand side, an n×1 column in the state names and indepVar

states

the state names, in the order of y0

t0

the initial time

target

the time the state is wanted at

y0

the initial state, an n×1 column

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait _Expression
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def children: List[_Expression]

Sub-expressions subject to recursive structural traversal. Binder positions (e.g. the differentiation variable) are excluded.

Sub-expressions subject to recursive structural traversal. Binder positions (e.g. the differentiation variable) are excluded.

Attributes

Definition Classes
def detailed(env: Environment): Either[OdeFailure, Vector[Double]]

The integrator's full answer: the state, or why there is none (what the REPL explains).

The integrator's full answer: the state, or why there is none (what the REPL explains).

Attributes

override def eval(env: Environment): Either[_Expression, _Value]

Reduces this expression in the given environment.

Reduces this expression in the given environment.

Value parameters

env

variable bindings and display precision

Attributes

Returns

Right(v) when all free variables resolved to concrete values; Left(e) when reduction is partial or impossible

Definition Classes
override def rebuild(c: List[_Expression]): _Expression

Reconstructs the same node shape with replacement sub-expressions.

Reconstructs the same node shape with replacement sub-expressions.

Value parameters

newChildren

replacements in the same order and count as children

Attributes

Definition Classes
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Inherited fields

lazy val freeVars: Set[String]

Cached set of free variable names; O(1) after the first access.

Cached set of free variable names; O(1) after the first access.

Attributes

Inherited from:
_Expression