天软金融分析.NET函数大全
>
TSL函数
>
数学函数
>
数值计算
>
数值微积分
integral
复制链接
简述
求函数的数值积分
定义
integral(CallBack : string; a:double;b:double;method:string): double
参数
名称
类型
说明
CallBack
string
计算被积函数值的回调
a
double
实型变量。积分下限
b
double
实型变量。积分上限
method
string
积分方法
‘chebyshev’ 切比雪夫
‘Gauss’ 高斯
‘Romberg’ 龙贝格
范例
a:=1;
b:=3;
callback:="fun1";
return integral(callback,a,b,’Romberg’);
其中fun1函数:
function fun1(x)
begin
return 2*x+1;
end;
//结果:10
参考
ig_Trapezoid_1
ig_Trapezoid_2
ig_Simpson_1
ig_Romberg
ig_Gauss
ig_Chebyshev
ig_Simpson_2
相关
integral
ig_Trapezoid_1
ig_Trapezoid_2
ig_Simpson_1
ig_Gauss
ig_Chebyshev
ig_Simpson_2
sf_SinX
sf_CosX
sf_eX
sf_EllipseX_1
sf_EllipseX_2
Conv
Hessian
ig_Romberg