Skip to content

NDSolve

NDSolve({equation-list}, functions, t)

attempts to solve the linear differential equation-list for the functions and the time-dependent-variable t. Returns an InterpolatingFunction function object.

See:

Examples

Example taken from Tutorial — Differential Equations

>> model=NDSolve({x'(t) == 10*(y(t) - x(t)), y'(t) == x(t)*(28 - z(t)) - y(t), z'(t) == x(t)*y(t) - 8/3*z(t), x(0)== 0, y(0) == 1, z(0) == 0}, {x, y, z}, {t, 0, 20});
{{x->InterpolatingFunction[Piecewise({{InterpolatingPolynomial({........

Plot the interpolating function and the sine function.

>> Plot({Evaluate(z(t) /.model)}, {t, 0, 20})

DSolve, InterpolatingFunction, NRoots, Solve

Implementation status

  • ☑ - partially implemented

Github