Gauss Legendre Integration Node and Weights
Version 1.0.3 (1,88 KB) von
Lateef Adewale Kareem
This script is for computing definite integrals using Legendre-Gauss
% 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
Zitieren als
Lateef Adewale Kareem (2024). Gauss Legendre Integration Node and Weights (https://www.mathworks.com/matlabcentral/fileexchange/70306-gauss-legendre-integration-node-and-weights), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2018b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Mehr zu Numerical Integration and Differential Equations finden Sie in Help Center und MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.3 | Change of title to allow more visibility |
||
1.0.1 | tags |
||
1.0.0 |