ig_Gauss
用高斯(Gauss)求积法计算定积分 [img type="tslxml" file="media2024-03-20_WEfCpvnqqtg5qGJa/image169.png"][/img]
范例(t):
[code]
a:=1;
b:=3;
callback:="fun1";
ig_Gauss(a,b,CallBack,v);
return v;
fun…
Demo_ig_Gauss
Demo_ig_Gauss()函数教学函数。高斯求积法回调函数,计算定积分。
算法:用高斯(Gauss)求积法计算定积分:
T=abfx
其中积分下限a=2.5,积分上限b=8.4,被积函数fx=x2+sin?(x)范例(t):
[code]
return Demo_i…
ig_GaussCallBack
高斯求积法回调函数。关于自变量x的函数式,一般作用于定积分计算的被积函数。
算法:
f(x)=x^2+sin?(x)范例(t):
return ig_GaussCallBack(0);
//返回:0
integral
范例(t):

[code]
a:=1;
b:=3;
callback:="fun1";
return integral(callback,a,b,’Romberg’)…
ig_Trapezoid_1
范例(t):
[code]
a:=1;
b:=3;
callback:="fun1";
ig_Trapezoid_1(a,b,CallBack,v);
return v…
ig_Trapezoid_2
范例(t):
[code]
a:=1;
b:=3;
callback:="fun1";
ig_Trapezoid_2(a,b,CallBack,v);
return v…
ig_Simpson_1
范例(t):
[code]
a:=1;
b:=3;
callback:="fun1";
ig_Simpson_1(a,b,CallBack,v);
return v; …
ig_Gauss
范例(t):
[code]
a:=1;
b:=3;
callback:="fun1";
ig_Gauss(a,b,CallBack,v);
return v;
fun…
ig_Chebyshev
范例(t):
[code]
a:=1;
b:=3;
callback:="fun1";
ig_Chebyshev(a,b,CallBack,v);
return v; …
Demo_ig_Gauss
算法:用高斯(Gauss)求积法计算定积分:
T=abfx
其中积分下限a=2.5,积分上限b=8.4,被积函数fx=x2+sin?(x)范例(t):
[code]
return Demo_i…
Demo_ig_Trapezoid_1
算法:用变步长梯形求积法计算定积分:
T=abfx
其中积分下限a=0,积分上限b=1,被积函数fx=e-x2范例(t):
[code]
return Demo_ig_Gauss();
//…
ig_GaussCallBack
算法:
f(x)=x^2+sin?(x)范例(t):
return ig_GaussCallBack(0);
//返回:0
ig_Romberg
范例(t):
[code]
a:=1;
b:=3;
callback:="fun1";
ig_Romberg(a,b,CallBack,v);
return v;
f…