|
ILIAS
eassessment Revision 61809
|
Given n points (x0,y0)...(xn-1,yn-1), the following methid computes the polynomial factors of the n-1't degree polynomial passing through the n points. More...
Collaboration diagram for LagrangeInterpolation:Public Member Functions | |
| findPolynomialFactors ($x, $y) | |
| findPolynomialFactors ($x, $y) | |
Given n points (x0,y0)...(xn-1,yn-1), the following methid computes the polynomial factors of the n-1't degree polynomial passing through the n points.
Given n points (x0,y0)...(xn-1,yn-1), the following method computes the polynomial factors of the n-1't degree polynomial passing through the n points.
Example: Passing in three points (2,3) (1,4) and (3,7) will produce the results [2.5, -8.5, 10] which means that the points are on the curve y = 2.5x² - 8.5x + 10.
| x[] | float |
| y[] | float |
Example: Passing in three points (2,3) (1,4) and (3,7) will produce the results [2.5, -8.5, 10] which means that the points are on the curve y = 2.5x² - 8.5x + 10.
| x[] | float |
| y[] | float |
Definition at line 21 of file LagrangeInterpolation.php.
| LagrangeInterpolation::findPolynomialFactors | ( | $x, | |
| $y | |||
| ) |
Definition at line 23 of file LagrangeInterpolation.php.
| LagrangeInterpolation::findPolynomialFactors | ( | $x, | |
| $y | |||
| ) |
Definition at line 24 of file LagrangeInterpolation2.php.