ImplicitDiscreteProblem(sys, op, tspan) builds the implicit map
f(u_next, u, p, t) = 0 of a compiled discrete system with algebraic
equations, as ModelingToolkit's ImplicitDiscreteProblem: equations
Shift(x, 1) ~ rhs give rhs - x_next and algebraic equations 0 ~ g
are evaluated at the next step. ImplicitDiscreteFunction(sys) builds
f. ImplicitDiscreteProblem(f, u0, tspan, p) takes an R function
f(u_next, u, p, t). Solve with IDSolve(), which steps by dt
(default 1) and solves each step with Newton's method; the initial state
is made consistent by one solve at the initial time.
Usage
ImplicitDiscreteFunction(sys, ...)
ImplicitDiscreteProblem(
sys,
op = list(),
tspan = NULL,
...,
u0 = NULL,
p = NULL
)
IDSolve()