39 Eq2deg(
const double& iA,
const double& iB,
const double& iC );
57 double getRoot(
const int& iRootNumber)
const;
70 const char *
what ()
const throw () {
71 return "Invalid coefficients, no real roots";
80 virtual std::string describe()
const;
virtual double getDelta()
Get the discriminant.
Definition: Eq2deg.cpp:27
Definition: Utilities.hpp:25
std::vector< double > m_rac
Definition: Eq2deg.hpp:30
const char * what() const
Definition: Eq2deg.hpp:70
virtual ~Eq2deg()
Definition: Eq2deg.cpp:18
double m_c
Definition: Eq2deg.hpp:28
double m_a
Definition: Eq2deg.hpp:28
virtual void computeRoots()
Compute the roots.
Definition: Eq2deg.cpp:32
Definition: Eq2deg.hpp:26
virtual void computeDelta()
compute the discriminant and raise an exception if negative
Definition: Eq2deg.cpp:21
double getRoot(const int &iRootNumber) const
Get the root value by number.
Definition: Eq2deg.cpp:47
Eq2deg(const double &iA, const double &iB, const double &iC)
Construct a new Eq2deg object.
Definition: Eq2deg.cpp:12
double m_delta
Definition: Eq2deg.hpp:29
double m_b
Definition: Eq2deg.hpp:28
Object to handle exception when no reals roots exists.
Definition: Eq2deg.hpp:69