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

Online Help

All Products    Maple    MapleSim


Slode

  

series_by_leastsquare

  

construct the least squares best fit linear subspace of a linear space of series

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

series_by_leastsquare(FS, conditions)

Parameters

FS

-

FPSstruct data structure (see Slode[FPseries])

conditions

-

set of linear conditions for the coefficients of the series

Description

• 

The series_by_leastsquare command determines from the given formal power series a series whose coefficients best satisfy the given linear conditions in the least squares sense and returns the result in form of an FPSstruct data structure.

• 

This command can be used in conjunction with Slode[FPseries] or Slode[FTseries] to construct a least-squares best fit power series solution for a linear ODE with respect to a system of linear constraint equations for some coefficients of the series solution. After constructing a formal series solution FS via Slode[FTseries] or Slode[FPseries], use the series_by_leastsquare command function with the result FS and the linear system as arguments.

Examples

> 

with⁡Slode:

> 

ode1≔x−1⁢y⁡x+x2−1⁢diff⁡y⁡x,x=0

ode1≔x−1⁢y⁡x+x2−1⁢ⅆⅆxy⁡x=0

(1)
> 

sys1≔v⁡8⋅50=v⁡10,v⁡10−v⁡3⋅8+v⁡8⋅2=64,v⁡3+v⁡8⋅4=13

sys1≔50⁢v⁡8=v⁡10,v⁡3+4⁢v⁡8=13,v⁡10−8⁢v⁡3+2⁢v⁡8=64

(2)
> 

fps1≔FPseries⁡ode1,y⁡x,v⁡n:

> 

series_by_leastsquare⁡fps1,sys1

FPSstruct⁡2120213392471−2120213⁢x392471+2120213⁢x2392471−2120213⁢x3392471+2120213⁢x4392471−2120213⁢x5392471+2120213⁢x6392471−2120213⁢x7392471+2120213⁢x8392471−2120213⁢x9392471+2120213⁢x10392471+∑n=11∞⁡v⁡n⁢xn,n⁢v⁡n−1+n⁢v⁡n

(3)
> 

ode2≔x−1⁢y⁡x+x2−1⁢diff⁡y⁡x,x,x,x=0

ode2≔x−1⁢y⁡x+x2−1⁢ⅆ3ⅆx3y⁡x=0

(4)
> 

fps2≔FPseries⁡ode2,y⁡x,s⁡n:

> 

sys2≔73⁢s⁡0+720⁢s⁡6=80,s⁡0+s⁡1+s⁡2=3,s⁡4+s⁡6=7720,2⁢s⁡1−s⁡4=2,s⁡1−s⁡2=0

sys2≔73⁢s⁡0+720⁢s⁡6=80,s⁡1−s⁡2=0,2⁢s⁡1−s⁡4=2,s⁡4+s⁡6=7720,s⁡0+s⁡1+s⁡2=3

(5)
> 

series_by_leastsquare⁡fps2,sys2

FPSstruct⁡1+x+x2−x36−x560+7⁢x6720+∑n=7∞⁡s⁡n⁢xn,n3−3⁢n2+2⁢n⁢s⁡n+n3−6⁢n2+11⁢n−6⁢s⁡n−1+s⁡n−3

(6)

See Also

Slode

Slode[FPseries]

Slode[FTseries]