![]() Volume 9, Issue 4 Articles Tricks of the Trade In and Out Trott's Corner New Products New Publications Calendar News Bulletins New Resources Classifieds Download This Issue Editorial Policy Staff and Contributors Submissions Subscriptions Advertising Back Issues Contact Information |
Tricks of the Trade
Legendre-Gauss QuadratureGaussian quadrature gives the best estimate of an integral by picking optimal abscissas,
where the abscissas,
Define the abscissas as the roots of
Define the weights. RootReduce expresses the weights as a single Root object. Save the weights as they are computed.
Here are the
Here is
Abscissas and weights for higher Here are the weights for
The weights satisfy
Now consider computing the integral of a polynomial of degree
Compute the integral of
As expected, an identical answer is obtained using Legendre-Gauss quadrature with
|
||||||||
About Mathematica | Download Mathematica Player © 2005 Wolfram Media, Inc. All rights reserved. |