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