1 #ifndef RealQuadEquation_H
2 #define RealQuadEquation_H
18 double D = B*B - 4*A*
C;
19 if (D<0) hasSolution =
false;
22 auto q = -0.5*(B + std::copysign(
std::sqrt(D),B));
RealQuadEquation(double A, double B, double C)
U second(std::pair< T, U > const &p)
DecomposeProduct< arg, typename Div::arg > D