Math.h
Go to the documentation of this file.
113 // Appends the solutions to the std::vector roots, making no attempt to check whether the vector is
147 bool solveQuartic(const double a, const double b, const double c, const double d, const double e,
bool solveQuartic(const double a, const double b, const double c, const double d, const double e, std::vector< double > &roots, bool verbose=false)
Finds the real solutions to .
Definition: Math.cc:117
bool ApproxComparison(double value, double expected)
Compare two doubles and return true if they are approximatively equal.
Definition: Math.cc:409
bool solveQuadratic(const double a, const double b, const double c, std::vector< double > &roots, bool verbose=false)
Finds the real solutions to .
Definition: Math.cc:26
bool solve2Linear(const double a10, const double a01, const double a00, const double b10, const double b01, const double b00, std::vector< double > &E1, std::vector< double > &E2, bool verbose=false)
Solve a system of two linear equations.
Definition: Math.cc:357
double BreitWigner(const double s, const double m, const double g)
A relativist Breit-Wigner distribution.
Definition: Math.cc:400
bool solve2QuadsDeg(const double a11, const double a10, const double a01, const double a00, const double b11, const double b10, const double b01, const double b00, std::vector< double > &E1, std::vector< double > &E2, bool verbose=false)
Solve a system of two degenerated quadratic equations.
bool solve2Quads(const double a20, const double a02, const double a11, const double a10, const double a01, const double a00, const double b20, const double b02, const double b11, const double b10, const double b01, const double b00, std::vector< double > &E1, std::vector< double > &E2, bool verbose=false)
Solve a system of two quadratic equations.
Definition: Math.cc:192
bool solveCubic(const double a, const double b, const double c, const double d, std::vector< double > &roots, bool verbose=false)
Finds the real solutions to .
Definition: Math.cc:69