Re: Problems with Legendre expansion
- To: mathgroup at smc.vnet.net
- Subject: [mg24467] Re: [mg24402] Problems with Legendre expansion
- From: Paul Abbott <paul at physics.uwa.edu.au>
- Date: Wed, 19 Jul 2000 01:21:45 -0400 (EDT)
- Organization: University of Western Australia
- References: <8l0qg7$dvp@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Kevin.McCann at jhuapl.edu writes:
>I am doing a Legendre expansion of Sin[Pi x] and have, amongst others,
>the following integral
>
>Integrate[Sin[Pi*x]*LegendreP[21,x],{x,-1,1}]
>
>Mathematica just returns the input with the polynomial expanded out.
You can often assist Integrate for "polynomial" by integrands by
expanding the integrand:
Integrate[Expand[Sin[Pi*x]*LegendreP[21,x]],{x,-1,1}]
Cheers,
Paul
--
Paul Abbott Phone: +61-8-9380-2734
Department of Physics Fax: +61-8-9380-1014
The University of Western Australia
Nedlands WA 6907
AUSTRALIA http://physics.uwa.edu.au/~paul