MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to generate Orthogonal Polynomials?


Hi,

<< LinearAlgebra`Orthogonalization`

With[{w = x^2},
  GramSchmidt[{1, x, x^2, x^3}, 
    InnerProduct -> (Integrate[#1*#2*w, {x, -1, 1}] &)
    ]
  ]

Regards
  Jens


Big Oh Rob wrote:
> 
> I'm having problems generating orthagonal polynomials using the
> GramSchmidt function.
> 
> I'm given a weight.
> 
> And my innerproduct looks like:
> 
> <f,g>=Integrate(from -1 to 1)[f(x)g(x)w(x)]
> 
> w(x) is the wight and is give.  It could be anything like x, x^2 or
> x^2+1.
> 
> Any help is appreciated.  Thanks


  • Prev by Date: Re: differences in Solve with -1/2 and -0.5
  • Next by Date: Re: differences in Solve with -1/2 and -0.5
  • Previous by thread: How to generate Orthogonal Polynomials?
  • Next by thread: differences in Solve with -1/2 and -0.5