How to implement Trapezoidal method in PHP?
Z = TRAPZ(X,Y) computes the integral of Y with respect to X using the trapezoidal method.
TRAPZ
is an existing func开发者_如何学Ction in MATLAB, but how to implement it in PHP?
hey, what about wikipedia? http://en.wikipedia.org/wiki/Trapezoidal_rule here is great explanation and even code samples.
精彩评论