Package util
Class Polynomial
- java.lang.Object
-
- util.Polynomial
-
public class Polynomial extends Object
Represents a polynomial of any degree- Author:
- Christoph Schimeczek
-
-
Constructor Summary
Constructors Constructor Description Polynomial(double[] prefactorsInAscendingDegree)
Creates a polynomial of any degree, e.g. a + b*x + c*x**2 + d*x**3, from an array of doublesPolynomial(List<Double> prefactorsInAscendingDegree)
Creates a polynomial of any degree, e.g. a + b*x + c*x**2 + d*x**3, from a List of doubles
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
evaluateAt(double x)
Evaluates polynomial function value at given position
-
-
-
Constructor Detail
-
Polynomial
public Polynomial(List<Double> prefactorsInAscendingDegree)
Creates a polynomial of any degree, e.g. a + b*x + c*x**2 + d*x**3, from a List of doubles- Parameters:
prefactorsInAscendingDegree
- list of i.e. (a,b,c,d) in the above example
-
Polynomial
public Polynomial(double[] prefactorsInAscendingDegree)
Creates a polynomial of any degree, e.g. a + b*x + c*x**2 + d*x**3, from an array of doubles- Parameters:
prefactorsInAscendingDegree
- array of i.e. [a,b,c,d] in the above example
-
-