LODEstruct - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


LODEstruct

data structure to represent an ODE

 

Description

Examples

Description

• 

LODEstruct is a data structure to represent an ordinary differential equation. It is created by Slode[DEdetermine].

• 

The entries of an LODEstruct are a set of equations, representing the differential equation, and a set of function names, representing the dependent variables.

• 

The data structure has an attribute table with the following entries:

– 

L - the differential operator in diff notation

– 

rhs - the right hand side of the equation

– 

fun - the name of the dependent variable, for example y

– 

var - the name of the independent variable, for example x

– 

linear - true if L is a linear differential operator and false otherwise

– 

ord - the order of L

– 

coeffs - an Array of coefficients of L

– 

polycfs - true if all coefficients are polynomial and false otherwise

– 

d_max   - the maximum degree of polynomial coefficients

• 

If the right hand side is a formal power series in the form B⁡x+∑n=N∞⁡H⁡n⁢Pn⁡x where B⁡x is a polynomial in x, Pn⁡x is either x−an or 1xn, a is the expansion point, and H⁡n is an expression in n, then it is represented as a RHSstruct data structure. The entries of an RHSstruct are the right hand side and the independent variable x. In addition, the data structure has an attribute table with following entries:

– 

mvar - the name of the independent variable, x

– 

index - the name of the summation index, n

– 

point - the expansion point a, possibly ∞

– 

M - a nonnegative integer such that series coefficients are equal H⁡n for all n>M; it satisfies M=max⁡N−1,degree⁡B⁡x,x

– 

initial - an Array of M initial series coefficients

– 

H - the expression H⁡n

– 

P_n - either x−an or 1xn

Examples

> 

with⁡Slode:

> 

ode≔diff⁡y⁡x,x⁢x−1−y⁡x=0

ode≔ⅆⅆxy⁡x⁢x−1−y⁡x=0

(1)
> 

DEdetermine⁡ode,y⁡x

LODEstruct⁡ⅆⅆxy⁡x⁢x−1−y⁡x=0,y⁡x

(2)
> 

attributes⁡

table⁡polycfs=true,rhs=0,fun=y,linear=true,coeffs=−1,x−1,⋯ 0 .. 1 Array,d_max=1,ord=1,var=x,L=ⅆⅆxy⁡x⁢x−1−y⁡x

(3)
> 

ode1≔diff⁡y⁡x,x⁢x−1−y⁡x=x3+2⁢Sum⁡xnn−3,n=4..∞

ode1≔ⅆⅆxy⁡x⁢x−1−y⁡x=x3+2⁢∑n=4∞⁡xnn−3

(4)
> 

DEdetermine⁡ode1,y⁡x

LODEstruct⁡ⅆⅆxy⁡x⁢x−1−y⁡x=x3+2⁢∑n=4∞⁡xnn−3,y⁡x

(5)
> 

attributes⁡

table⁡polycfs=true,rhs=RHSstruct⁡x3+2⁢∑n=4∞⁡xnn−3,x,fun=y,linear=true,coeffs=−1,x−1,⋯ 0 .. 1 Array,d_max=1,ord=1,var=x,L=ⅆⅆxy⁡x⁢x−1−y⁡x

(6)
> 

attributes⁡rhs

table⁡initial=0,0,0,1,⋯ 0 .. 3 Array,P_n=xn,M=3,point=0,mvar=x,index=n,H=2n−3

(7)

See Also

Slode

Slode[DEdetermine]