Class TartagliaSolver
java.lang.Object
math.tartaglia.TartagliaSolver
Objects of this class are
real value solvers of the system:
cx^3+ax+b=0.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
a
private double a -
b
private double b -
c
private double c
-
-
Constructor Details
-
TartagliaSolver
public TartagliaSolver(double c, double a, double b)
-
-
Method Details
-
getA
public double getA() -
setA
public void setA(double a) -
getB
public double getB() -
setB
public void setB(double b) -
getC
public double getC() -
setC
public void setC(double c) -
normalizeCofficients
public void normalizeCofficients()Make the value of c to be equal to one by dividing through a,b,c by its value -
solve
Finds the real roots of the equation.
-