The built-in legendre() calculates the Legendre polynomials calculated ALL the orders for a given degree. If you only need a given order, this is a waste of memory and computing time (especially for large blocks of data). The function legendreP(l,m,x) is a drop-in substitute for legendre(l,x), except that it only calculates the required order.
The polynomial coefficients are calculated analytically from the Rodrigues' formula, To...
Finds the weighting coefficients of the linear combination of a set of Legendre polynomials up to order N.
Three methods are available (actually just for fun): 'inv' (default) inverts the normal equation matrix directly, while 'chol'...
Given a Legendre polynomial expansion where the coefficients are stored in a column vector, this script computes the expansion in terms of Chebyshev polynomials. Useful for spectral methods.
Given a Chebyshev polynomial expansion where the coefficients are stored in a column vector, this script computes the expansion in terms of Legendre polynomials. Useful for spectral methods.
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...
Calculate pi using the Gaussian-Legendre algorithm. The function PIGL.M produces an ASCII file containing the number of decimals requested. The maximum number depends on free disk space and the RAM available.
Generally application is selecting Gauss-Legendre Quadratic integration method. In this sub function is directly application of homogen integration technique for triangular area and tetrahedral volumes.
This tetrahedral sub functions...
This program returns the coefficients of the shifted Legendre polynomial P_n, given n. The result is a row vector with powers of x decreasing from left to right (standard MATLAB notation). Like for other polynomials, LegendreShiftPoly(n) can be...
gaussleg(f,a,b,ngp)
I have found that this is on average +20 times faster than 'Gauss-Legendre' file(4560), and easier to read because it is shorter.
This program returns the coefficients of the Legendre polynomial P_n, given n. The result is a row vector with powers of x decreasing from left to right (standard MATLAB notation). Like for other polynomials, LegendrePoly(n) can be evaluated at x...
This m-file calculates any number of l-moments for given data vector X. It uses probability weighted moments (can actually edit the file to give any number of pwm's) and the coefficients of the shifted Legendre polynomial to calculate the l-moments.
This is a simple program I made for homework, the roots or zeros of the legendre's polinomials are used to integrate using the gauss quadrature, it works but it's still a bit uneficient, while I find a better way to use the roots.
This .zip file contains 3 mfiles for computing the nodes and weights for Legendre Laguerre and Hermite - Gauss Quadrature of any order n.
Contrary to most of the files in use, the included files are all based on a symmetrical companion...
Solves for inductor and capacitor values for first, second, third and fourth order passive crossover systems for two way speaker systems. Includes Butterworth, Linkwitz-Riley, Bessel, Chebychev, Legendre, Gaussian and Linear-phase type...
A demonstration of the fast algorithm built in to the chebfun system for computing the nodes and weights of Gauss-Legendre quadrature.
object oriented numerical library for Delphi and C++ Builder users. Complete support for complex numbers for all functions in single or double precision. Matrix operations: Solving a system of linear equations with refinment and condition number...
Dew Lab Studio contains: MtxVec library with Stats Master, DSP Master and Data Miner add ons.MtxVec v2.0 feature list:object oriented numerical library for Delphi and C++ Builder users and .NETComplete support for complex numbers for all functions...
MtxVec is an object oriented numerical library for Delphi and C++ Builder users. Complete support for complex numbers for all functions in single or double precision. Matrix operations: Solving a system of linear equations with refinment and...
Usage: H = paleyI(N);
N: order of the Hadamard matrix to be computed (integer) H: returns the computed Hadamard matrix or returns 0 if an error occurred (invalid matrix order or incorrect H-matrix)
H-matrices of...
Compute the solution to the arbitrary-shape thin wire integral equation found in Section 4.5 of
Gibson, Walton C. "The Method of Moments in Electromagnetics," Taylor and Francis/CRC, 2008.
Assumes a straight wire... |