DEtools
convertAlg
return the coefficient list form for a linear ODE
Calling Sequence
Parameters
Description
Examples
convertAlg(des, dvar)
des
-
differential equation
dvar
dependent variable
This routine is used to return an equivalent list form for a given linear ordinary differential equation. The list returned has two elements.
The first is a list (here called A) of the coefficients of the ODE, of the form
A1yx+A2ⅆⅆxyx+...+An+1ⅆnⅆxnyx
The second element is the right hand side of the given ODE. In the case that the DE has no right hand side, the default zero is used.
In the event that convertAlg cannot isolate for the proper list form (for instance, if the DE is not a linear ODE) then FAIL is returned.
This function is part of the DEtools package, and so it can be used in the form convertAlg(..) only after executing the command with(DEtools). However, it can always be accessed through the long form of the command by using DEtools[convertAlg](..).
withDEtools:
A≔diffyx,xsinx−xcosxdiffyx,x,x+diffyx,x−tanxyx=5
A≔ⅆⅆxyxsinx−xcosxⅆ2ⅆx2yx+ⅆⅆxyx−tanxyx=5
convertAlgA,yx
−tanx,sinx+1,−xcosx,5
B≔Dyxx⋅5−D2yxsinx+D2yxx32
B≔5Dyxx−D2yxsinx+9D2yxx
convertAlgB,yx
0,5x,−sinx+9x,0
See Also
DEtools[DEnormal]
Download Help Document