Code covered by the BSD License  

Highlights from
GaussHermite

Be the first to rate this file! 11 Downloads (last 30 days) File Size: 3.12 KB File ID: #21226

GaussHermite

by Stephen Bocquet

 

26 Aug 2008 (Updated 26 Aug 2008)

Gauss-Hermite quadrature using tabulated abscissas and weights

| Watch this File

File Information
Description

Numerical integration from -Inf to Inf of an integrand in the form f(x)*exp(-x^2)

f(x) must be a slowly varying function

fn_val = GaussHermite(func, npt, varargin)

func is a handle for f(x)

npt is the number of points at which f(x) is to be evaluated. A look-up table of abscissas and weights is used, so npt must be 2, 4, 6, 8, 10, 12, 16 or 20.

varargin contains any extra parameters for f

TestGaussHermite(k,b) tests the integration for f(x) = 1, x^2, cos(bx),
selected with k = 0, 1, 2 respectively.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
f2matlab

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
integration Stephen Bocquet 22 Oct 2008 10:16:12
gaussian hermite quadrature Stephen Bocquet 22 Oct 2008 10:16:12
mathematics Stephen Bocquet 22 Oct 2008 10:16:12
gausshermite Stephen Bocquet 22 Oct 2008 10:16:12

Contact us at files@mathworks.com