Documentation

ode::evalOde

Applies an expression at a linear ordinary differential equation

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

ode::evalOde(Ly, y(x))

Description

ode::evalOde(Ly, y(x) = v) evaluates Ly replacing y(x) by v and simplifying the result. This can be useful to check a solution candidate, for example.

Examples

Example 1

We evaluate the following differential equation for various expressions:

Ly := (x^2+1)*diff(y(x),x$2)+x*diff(y(x),x)-4*y(x)

ode::evalOde(Ly, y(x) = 2*x^2+1),
ode::evalOde(Ly, y(x) = exp(x)),
ode::evalOde(Ly, y(x) = RootOf(Z^3+x*Z+1, Z))

Parameters

Ly

A linear ordinary differential equation.

y(x)

The dependent function of Ly.

v

An expression.

Return Values

Expression.

Was this topic helpful?