function [ql,Ak,xk]=guasslegendre(fun,a,b,n,tol)
if nargin==1
a=-1;b=1;n=7;tol=1e-8;
elseif nargin==3
n=7;tol=1e-8;
elseif nargin==4
tol
高斯-勒让德的Matlab
最新推荐文章于 2022-11-19 18:10:02 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
function [ql,Ak,xk]=guasslegendre(fun,a,b,n,tol)
if nargin==1
a=-1;b=1;n=7;tol=1e-8;
elseif nargin==3
n=7;tol=1e-8;
elseif nargin==4
tol