Package velo.ladaalpha.fields.math
Class QuadraticFunction
java.lang.Object
velo.ladaalpha.fields.math.QuadraticFunction
The Class QuadraticFunction.
- 
Constructor Summary
ConstructorsConstructorDescriptionQuadraticFunction(double a, double b, double c) Instantiates a new quadratic function. - 
Method Summary
 
- 
Constructor Details
- 
QuadraticFunction
public QuadraticFunction(double a, double b, double c) Instantiates a new quadratic function.- Parameters:
 a- the ab- the bc- the c
 
 - 
 - 
Method Details
- 
compute
public double compute(double x) Compute.- Parameters:
 x- the x- Returns:
 - the double
 
 - 
roots
public double[] roots()Roots.- Returns:
 - the double[]
 
 - 
getA
public double getA()Gets the a.- Returns:
 - the a
 
 - 
setA
public void setA(double a) Sets the a.- Parameters:
 a- the a to set
 - 
getB
public double getB()Gets the b.- Returns:
 - the b
 
 - 
setB
public void setB(double b) Sets the b.- Parameters:
 b- the b to set
 - 
getC
public double getC()Gets the c.- Returns:
 - the c
 
 - 
setC
public void setC(double c) Sets the c.- Parameters:
 c- the c to set
 
 -