|
Eq2deg
|
#include <Eq2degComp.hpp>


Public Member Functions | |
| Eq2degComp (const double &iA, const double &iB, const double &iC) | |
| Construct a new Eq2degComp object. More... | |
| virtual | ~Eq2degComp () |
| virtual void | computeDelta () |
| compute the discriminant More... | |
| virtual void | computeRoots () |
| Compute the roots. More... | |
| std::complex< double > | getRoot (const int &iRootNumber) const |
| Get the root value by number. More... | |
Public Member Functions inherited from Eq2deg | |
| Eq2deg (const double &iA, const double &iB, const double &iC) | |
| Construct a new Eq2deg object. More... | |
| virtual | ~Eq2deg () |
| double | getRoot (const int &iRootNumber) const |
| Get the root value by number. More... | |
| virtual double | getDelta () |
| Get the discriminant. More... | |
Public Member Functions inherited from Utilities | |
| void | toStream (std::ostream &ioOut) const |
Protected Attributes | |
| bool | m_complexRoots |
| std::vector< std::complex< double > > | m_rac |
Protected Attributes inherited from Eq2deg | |
| double | m_a |
| double | m_b |
| double | m_c |
| double | m_delta |
| std::vector< double > | m_rac |
CS-17, Eq2degComp.hpp Derived class to manage quadratics equations with complex roots a*x^2+b*x+c=0
with the following restrictions: The coefficients are real
| Eq2degComp::Eq2degComp | ( | const double & | iA, |
| const double & | iB, | ||
| const double & | iC | ||
| ) |
Construct a new Eq2degComp object.
| a | double: coefficent of x^2 |
| b | double: coefficient of x |
| c | double: constant |
|
virtual |
|
virtual |
compute the discriminant
Reimplemented from Eq2deg.
|
virtual |
Compute the roots.
Reimplemented from Eq2deg.
| std::complex< double > Eq2degComp::getRoot | ( | const int & | iRootNumber | ) | const |
Get the root value by number.
| rootNumber | the number of the root to retrieve (1 or 2) |
|
protected |
|
protected |
1.8.13