Skip to content

__dassl__

builtin · libnexusinterp/corefcn/dassl-proprietary.cc

: [x, xdot, istate, msg] = __dassl__ (fcn, x0, xdot0, t)
: [x, xdot, istate, msg] = __dassl__ (fcn, x0, xdot0, t, t_crit)

Integrate the implicit differential-algebraic system f (x, xdot, t) = 0 with the DASSL package, starting from x(t0) = x0 and xdot(t0) = xdot0.

fcn is a function handle, a function name, or a cell array {f, jac}. The residual function is called as f (x, xdot, t) and must return a vector with as many elements as x0. The optional Jacobian is called as jac (x, xdot, t, cj) and must return {}f/{}x + cj * {}f/{}xdot.

t holds the requested output times; its first element is the starting time and the sequence must be monotonic, either increasing or decreasing. The rows of x and xdot correspond to the elements of t, one column per state component.

t_crit optionally lists times that the integrator must not step past, for instance because the solution is not smooth there.

istate is 3 after a normal run (the integrator stepped past the last output time) and msg is the matching text. A negative istate signals a failure; if it was not requested as an output, an error is raised instead.

Tolerances and other settings are managed with dassl_options.