Sunteți pe pagina 1din 1

www.numerical-methods.

com

Numerical Methods Library in Excel VBA


Module

Sub gl8tests

Title

Tests code for 8-point Gaussian quadrature rule

Description

Tests the weights and points of the Gaussian quadrature rule.


1

() ( )
0

=1

Obtained from the routine gl8.bas. The codes are tested on the functions
() = ( + 1) for = 1. .15, for which the integal is 1 and in Gaussian
quadrature the solution for polynomials up to one degree less than twice
the number of points is exact (if we ignore rounding error). The test code
compares the result of the integration to one in each case.

Interface

Sub gl8tests()

Web source of
code.

http://www.numerical-methods.com/Excel_VBA/gl8.xlsm

Web source of
this guide
Web source of
the algorithm

www.numerical-methods.com/Excel_VBA/gl8tests_bas.htm

Dependent
routines

NONE

Test problems or
code tested

http://www.numerical-methods.com/Excel_VBA/gl8_bas.htm

Licence

This is open source; the software may be used and applied within other
systems as long as its provenance is appropriately acknowledged.
See the GNU Licence for more information or contact
webmaster@numerical-methods.com

Similar codes
that may be of
interest
Applications
Bibilography

Gaussian Quadrature

S-ar putea să vă placă și