Command FLEGENDRE


          Parameters  Defaults

FLEGENDRE order      0
          /
          DEGREES   
          RADIAN    
          EVEN      
          ODD       
          NORMALIZED

Purpose

  Specify a series of Legendre polynomial fit functions.

Function

  The general fit function is

     y = f(x) = p1 + p2 * P1(x) + p3 * P2(x) + ...

  Start values are set to zero.

Examples

  FLEG 2

  defines a fit function

     y(x) = p1 + p2 * P1(x) + p3 * P2(x)
          = p1 + p2 * x + p3 * ( 3*x*x - 1 ) / 2

Parameter ORDER

Order of polynomial

Parameter DEGREE

Legendre polynomials P(cos(x)) are calculated with x interpreted as angles in degrees.

Parameter RADIAN

Legendre polynomials P(cos(x)) are calculated with x interpreted as angles in radians.

Parameter EVEN

Series contains only even terms:
y = f(x) = p1 + p2 * P2(x) + p3 * P4(x) + ...

Parameter ODD

Series contains only odd terms:
y = f(x) = p1 + p2 * P1(x) + p3 * P3(x) + ...

Parameter NORMALIZED

The series is normalized, i.e. absolute and relative magnitude of the
coefficients are separated:
y = f(x) = p1 * ( 1 + p2 * P1(x) + p3 * P2(x) + ... )