Slode[series_by_leastsquare] - construct the least squares best fit linear subspace of a linear space of series
|
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
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
>
|
|
![FPSstruct(2120213/392471-(2120213/392471)*x+(2120213/392471)*x^2-(2120213/392471)*x^3+(2120213/392471)*x^4-(2120213/392471)*x^5+(2120213/392471)*x^6-(2120213/392471)*x^7+(2120213/392471)*x^8-(2120213/392471)*x^9+(2120213/392471)*x^10+Sum(v(n)*x^n, n = 11 .. infinity), n*v(n-1)+n*v(n))](/support/helpjp/helpview.aspx?si=7500/file02785/math107.png)
| (3) |
>
|
|
| (4) |
>
|
|
>
|
|
| (5) |
>
|
|
![FPSstruct(1+x+x^2-(1/6)*x^3-(1/60)*x^5+(7/720)*x^6+Sum(s(n)*x^n, n = 7 .. infinity), (n^3-3*n^2+2*n)*s(n)+(-6+n^3-6*n^2+11*n)*s(n-1)+s(n-3))](/support/helpjp/helpview.aspx?si=7500/file02785/math132.png)
| (6) |
|
|
Download Help Document
Was this information helpful?