Z = TRAPZ(X,Y) computes the integral of Y with respect to X using the trapezoidal method.
TRAPZ
是MATLAB中已有的函数,但是如何在PHP中实现呢?
最佳答案
嘿,维基百科呢? http://en.wikipedia.org/wiki/Trapezoidal_rule这里有很好的解释,甚至还有代码示例。
关于php - 如何在 PHP 中实现梯形法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3094655/