File Exchange

image thumbnail

Gaulegwt

version 1.0.1 (1.82 KB) by Lateef Adewale Kareem
This script is for computing definite integrals using Legendre-Gauss

4 Downloads

Updated 03 May 2019

View Version History

View License

% Gaulegwt.m
%
% This script is for computing definite integrals using Legendre-Gauss
% Quadrature. Computes the Legendre-Gauss nodes and weights on an interval
% [x1, x2] with truncation order N
%
% Suppose you have a continuous function f(x) which is defined on [x1, x2]
% which you can evaluate at any x in [x1, x2]. Simply evaluate it at all of
% the values contained in the x vector to obtain a vector f. Then compute
% the definite integral using sum(f.*w);
%
% Written by Lateef Kareem - 12/02/2018

Cite As

Lateef Adewale Kareem (2021). Gaulegwt (https://www.mathworks.com/matlabcentral/fileexchange/70306-gaulegwt), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!