public double evalute(double distance){
/**
* equation (3.2)
*/
this.from = 0;
this.to = distance;
this.n = 2;
return - 10 * Math.log10(Math.exp(-IntSimpson(this.from, this.to, this.n)));
}
有手动设计的IntSimpson()函数,但我想使用标准库!我该怎么做,以及它可以找到的地方?如何在导入org.apache.commons.math3.analysis.integration.SimpsonIntegrator时使用标准的SimpsonIntegrator;
非常感谢,它确实有效。 – AlexTitov
我可以使用UnivariateFunction形式org.apache.commons.math3吗? 如果我想使用sin(x),我应该用泰勒级数分解它吗? – AlexTitov