File Exchange

image thumbnail

Gauss-Legendre

version 1.0 (2.05 KB) by

Numericaly evaluates integral using Gauss-Legendre quadrature method.

3.28571
7 Ratings

19 Downloads

Updated

View License

This zip has 3 funtions:
-polegende generates legendre polinomyal.
-flege performs an integration variable change to change any interval [a,b] to [-1,1] so the integral can be properly evaluated.
-gausslegende numericaly evaluates the integral of function [f]

Comments and Ratings (7)

Yang

Yang (view profile)

good

rasool

rasool (view profile)

very good

HAMAD ALOOMER

sotos sotos

what about singularities?
e.g. f(x)=(1/(x^2))*besselj(1,2*x)

Eric Alvarez

It's very slow for large numbers of integration abcissas.

smz j

the output can be ordered.

Isra Muñoz

Very good!!

MATLAB Release
MATLAB 5.3 (R11)
Acknowledgements

Inspired: gaussleg

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today