Interpolate
public static interpolate ( $source, $args ) : |
||
$source | The source of our approximation. Should be either a callback function or a set of arrays. Each array (point) contains precisely three numbers: x, y, and y' Example array: [[1,2,1], [2,3,0], [3,4,2]]. Example callback: function($x) {return $x**2;} | |
return | The interpolting (piecewise) polynomial, as an instance of Piecewise. |