no.geosoft.cc.math.calculus
Class LagrangeInterpolation
Object
|
+--LagrangeInterpolation
- public class LagrangeInterpolation
- extends Object
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.
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 is on the
curve y = 2.5x? - 8.5x + 10.
- Author:
- GeoSoft
LagrangeInterpolation
public LagrangeInterpolation()
findPolynomialFactors
public static double[] findPolynomialFactors(double[] x,
double[] y)
throws RuntimeException
RuntimeException
main
public static void main(String[] args)
Copyright © 2004 - Geotechnical Software Services geosoft.no