Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

ode::getOrder

Order of an ordinary differential equation

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

Syntax

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

Description

ode::getOrder(Ly, y(x)) returns the order of Ly for the dependent function y(x), i.e. the highest degree of derivative of Ly.

Examples

Example 1

We can compute orders for linear and nonlinear ordinary differential equations:

ode::getOrder(diff(y(x),x$2)-x*y(x)-airyAi(x), y(x))

ode::getOrder(y(x)*diff(y(x),x$3)^2-exp(y(x)), y(x))

ode::getOrder(y(x)*diff(y(x),x$3)^2-exp(y(x)), z(x))

Parameters

Ly

An ordinary differential equation.

y(x)

The dependent function of Ly.

Return Values

Either -infinity or a positive integer.

Was this topic helpful?