# Documentation

### This is machine translation

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

# `ode`::`getOrder`

Order of an ordinary differential equation

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.