
(FPCore (a b c) :precision binary64 (/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)))
double code(double a, double b, double c) {
return (-b + sqrt(((b * b) - ((4.0 * a) * c)))) / (2.0 * a);
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = (-b + sqrt(((b * b) - ((4.0d0 * a) * c)))) / (2.0d0 * a)
end function
public static double code(double a, double b, double c) {
return (-b + Math.sqrt(((b * b) - ((4.0 * a) * c)))) / (2.0 * a);
}
def code(a, b, c): return (-b + math.sqrt(((b * b) - ((4.0 * a) * c)))) / (2.0 * a)
function code(a, b, c) return Float64(Float64(Float64(-b) + sqrt(Float64(Float64(b * b) - Float64(Float64(4.0 * a) * c)))) / Float64(2.0 * a)) end
function tmp = code(a, b, c) tmp = (-b + sqrt(((b * b) - ((4.0 * a) * c)))) / (2.0 * a); end
code[a_, b_, c_] := N[(N[((-b) + N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(N[(4.0 * a), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(2.0 * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 10 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (a b c) :precision binary64 (/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)))
double code(double a, double b, double c) {
return (-b + sqrt(((b * b) - ((4.0 * a) * c)))) / (2.0 * a);
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = (-b + sqrt(((b * b) - ((4.0d0 * a) * c)))) / (2.0d0 * a)
end function
public static double code(double a, double b, double c) {
return (-b + Math.sqrt(((b * b) - ((4.0 * a) * c)))) / (2.0 * a);
}
def code(a, b, c): return (-b + math.sqrt(((b * b) - ((4.0 * a) * c)))) / (2.0 * a)
function code(a, b, c) return Float64(Float64(Float64(-b) + sqrt(Float64(Float64(b * b) - Float64(Float64(4.0 * a) * c)))) / Float64(2.0 * a)) end
function tmp = code(a, b, c) tmp = (-b + sqrt(((b * b) - ((4.0 * a) * c)))) / (2.0 * a); end
code[a_, b_, c_] := N[(N[((-b) + N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(N[(4.0 * a), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(2.0 * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}
\end{array}
(FPCore (a b c)
:precision binary64
(let* ((t_0 (* (* b b) b)))
(fma
(fma
(fma
(/ c (* t_0 (* b b)))
(* -2.0 (* c c))
(* (* (/ 20.0 (* (* t_0 b) t_0)) (* (* (* c c) c) c)) (* -0.25 a)))
a
(/ (* (- c) c) t_0))
a
(/ (- c) b))))
double code(double a, double b, double c) {
double t_0 = (b * b) * b;
return fma(fma(fma((c / (t_0 * (b * b))), (-2.0 * (c * c)), (((20.0 / ((t_0 * b) * t_0)) * (((c * c) * c) * c)) * (-0.25 * a))), a, ((-c * c) / t_0)), a, (-c / b));
}
function code(a, b, c) t_0 = Float64(Float64(b * b) * b) return fma(fma(fma(Float64(c / Float64(t_0 * Float64(b * b))), Float64(-2.0 * Float64(c * c)), Float64(Float64(Float64(20.0 / Float64(Float64(t_0 * b) * t_0)) * Float64(Float64(Float64(c * c) * c) * c)) * Float64(-0.25 * a))), a, Float64(Float64(Float64(-c) * c) / t_0)), a, Float64(Float64(-c) / b)) end
code[a_, b_, c_] := Block[{t$95$0 = N[(N[(b * b), $MachinePrecision] * b), $MachinePrecision]}, N[(N[(N[(N[(c / N[(t$95$0 * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(-2.0 * N[(c * c), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(20.0 / N[(N[(t$95$0 * b), $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(c * c), $MachinePrecision] * c), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * N[(-0.25 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-c) * c), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision] * a + N[((-c) / b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(b \cdot b\right) \cdot b\\
\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\frac{c}{t\_0 \cdot \left(b \cdot b\right)}, -2 \cdot \left(c \cdot c\right), \left(\frac{20}{\left(t\_0 \cdot b\right) \cdot t\_0} \cdot \left(\left(\left(c \cdot c\right) \cdot c\right) \cdot c\right)\right) \cdot \left(-0.25 \cdot a\right)\right), a, \frac{\left(-c\right) \cdot c}{t\_0}\right), a, \frac{-c}{b}\right)
\end{array}
\end{array}
Initial program 30.7%
Taylor expanded in a around 0
Applied rewrites96.8%
Applied rewrites96.8%
Final simplification96.8%
(FPCore (a b c)
:precision binary64
(let* ((t_0 (* (* (* b b) b) b)))
(/
(fma
(* (* (* a a) a) -5.0)
(/ (* (* (* c c) c) c) (* t_0 (* b b)))
(fma
(* (* (* a a) c) (* c c))
(/ -2.0 t_0)
(fma (* (- c) c) (/ a (* b b)) (- c))))
b)))
double code(double a, double b, double c) {
double t_0 = ((b * b) * b) * b;
return fma((((a * a) * a) * -5.0), ((((c * c) * c) * c) / (t_0 * (b * b))), fma((((a * a) * c) * (c * c)), (-2.0 / t_0), fma((-c * c), (a / (b * b)), -c))) / b;
}
function code(a, b, c) t_0 = Float64(Float64(Float64(b * b) * b) * b) return Float64(fma(Float64(Float64(Float64(a * a) * a) * -5.0), Float64(Float64(Float64(Float64(c * c) * c) * c) / Float64(t_0 * Float64(b * b))), fma(Float64(Float64(Float64(a * a) * c) * Float64(c * c)), Float64(-2.0 / t_0), fma(Float64(Float64(-c) * c), Float64(a / Float64(b * b)), Float64(-c)))) / b) end
code[a_, b_, c_] := Block[{t$95$0 = N[(N[(N[(b * b), $MachinePrecision] * b), $MachinePrecision] * b), $MachinePrecision]}, N[(N[(N[(N[(N[(a * a), $MachinePrecision] * a), $MachinePrecision] * -5.0), $MachinePrecision] * N[(N[(N[(N[(c * c), $MachinePrecision] * c), $MachinePrecision] * c), $MachinePrecision] / N[(t$95$0 * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(N[(a * a), $MachinePrecision] * c), $MachinePrecision] * N[(c * c), $MachinePrecision]), $MachinePrecision] * N[(-2.0 / t$95$0), $MachinePrecision] + N[(N[((-c) * c), $MachinePrecision] * N[(a / N[(b * b), $MachinePrecision]), $MachinePrecision] + (-c)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\left(b \cdot b\right) \cdot b\right) \cdot b\\
\frac{\mathsf{fma}\left(\left(\left(a \cdot a\right) \cdot a\right) \cdot -5, \frac{\left(\left(c \cdot c\right) \cdot c\right) \cdot c}{t\_0 \cdot \left(b \cdot b\right)}, \mathsf{fma}\left(\left(\left(a \cdot a\right) \cdot c\right) \cdot \left(c \cdot c\right), \frac{-2}{t\_0}, \mathsf{fma}\left(\left(-c\right) \cdot c, \frac{a}{b \cdot b}, -c\right)\right)\right)}{b}
\end{array}
\end{array}
Initial program 30.7%
Taylor expanded in a around 0
Applied rewrites96.8%
Applied rewrites96.8%
Taylor expanded in b around inf
Applied rewrites96.8%
Applied rewrites96.8%
Final simplification96.8%
(FPCore (a b c)
:precision binary64
(let* ((t_0 (fma (* -4.0 c) a (* b b))))
(if (<= (/ (- (sqrt (- (* b b) (* (* a 4.0) c))) b) (* 2.0 a)) -10000.0)
(/ (* (- t_0 (* b b)) 0.5) (* (+ (sqrt t_0) b) a))
(/ 0.5 (/ (fma (* (/ c b) a) 0.5 (* -0.5 b)) c)))))
double code(double a, double b, double c) {
double t_0 = fma((-4.0 * c), a, (b * b));
double tmp;
if (((sqrt(((b * b) - ((a * 4.0) * c))) - b) / (2.0 * a)) <= -10000.0) {
tmp = ((t_0 - (b * b)) * 0.5) / ((sqrt(t_0) + b) * a);
} else {
tmp = 0.5 / (fma(((c / b) * a), 0.5, (-0.5 * b)) / c);
}
return tmp;
}
function code(a, b, c) t_0 = fma(Float64(-4.0 * c), a, Float64(b * b)) tmp = 0.0 if (Float64(Float64(sqrt(Float64(Float64(b * b) - Float64(Float64(a * 4.0) * c))) - b) / Float64(2.0 * a)) <= -10000.0) tmp = Float64(Float64(Float64(t_0 - Float64(b * b)) * 0.5) / Float64(Float64(sqrt(t_0) + b) * a)); else tmp = Float64(0.5 / Float64(fma(Float64(Float64(c / b) * a), 0.5, Float64(-0.5 * b)) / c)); end return tmp end
code[a_, b_, c_] := Block[{t$95$0 = N[(N[(-4.0 * c), $MachinePrecision] * a + N[(b * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(2.0 * a), $MachinePrecision]), $MachinePrecision], -10000.0], N[(N[(N[(t$95$0 - N[(b * b), $MachinePrecision]), $MachinePrecision] * 0.5), $MachinePrecision] / N[(N[(N[Sqrt[t$95$0], $MachinePrecision] + b), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], N[(0.5 / N[(N[(N[(N[(c / b), $MachinePrecision] * a), $MachinePrecision] * 0.5 + N[(-0.5 * b), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \mathsf{fma}\left(-4 \cdot c, a, b \cdot b\right)\\
\mathbf{if}\;\frac{\sqrt{b \cdot b - \left(a \cdot 4\right) \cdot c} - b}{2 \cdot a} \leq -10000:\\
\;\;\;\;\frac{\left(t\_0 - b \cdot b\right) \cdot 0.5}{\left(\sqrt{t\_0} + b\right) \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{0.5}{\frac{\mathsf{fma}\left(\frac{c}{b} \cdot a, 0.5, -0.5 \cdot b\right)}{c}}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 #s(literal 4 binary64) a) c)))) (*.f64 #s(literal 2 binary64) a)) < -1e4Initial program 82.4%
lift-/.f64N/A
clear-numN/A
lift-*.f64N/A
associate-/l*N/A
associate-/r*N/A
metadata-evalN/A
lower-/.f64N/A
lower-/.f6482.4
lift-+.f64N/A
+-commutativeN/A
lift-neg.f64N/A
unsub-negN/A
lower--.f6482.4
Applied rewrites82.5%
lift-/.f64N/A
lift-/.f64N/A
associate-/r/N/A
lift--.f64N/A
flip--N/A
frac-timesN/A
lower-/.f64N/A
Applied rewrites84.6%
if -1e4 < (/.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 #s(literal 4 binary64) a) c)))) (*.f64 #s(literal 2 binary64) a)) Initial program 26.8%
lift-/.f64N/A
clear-numN/A
lift-*.f64N/A
associate-/l*N/A
associate-/r*N/A
metadata-evalN/A
lower-/.f64N/A
lower-/.f6426.8
lift-+.f64N/A
+-commutativeN/A
lift-neg.f64N/A
unsub-negN/A
lower--.f6426.8
Applied rewrites26.8%
Taylor expanded in c around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower-*.f6493.6
Applied rewrites93.6%
Final simplification92.9%
(FPCore (a b c) :precision binary64 (/ 0.5 (/ (fma (fma (/ (* 0.5 (* a a)) (* (* b b) b)) c (* (/ a b) 0.5)) c (* -0.5 b)) c)))
double code(double a, double b, double c) {
return 0.5 / (fma(fma(((0.5 * (a * a)) / ((b * b) * b)), c, ((a / b) * 0.5)), c, (-0.5 * b)) / c);
}
function code(a, b, c) return Float64(0.5 / Float64(fma(fma(Float64(Float64(0.5 * Float64(a * a)) / Float64(Float64(b * b) * b)), c, Float64(Float64(a / b) * 0.5)), c, Float64(-0.5 * b)) / c)) end
code[a_, b_, c_] := N[(0.5 / N[(N[(N[(N[(N[(0.5 * N[(a * a), $MachinePrecision]), $MachinePrecision] / N[(N[(b * b), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] * c + N[(N[(a / b), $MachinePrecision] * 0.5), $MachinePrecision]), $MachinePrecision] * c + N[(-0.5 * b), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{0.5}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\frac{0.5 \cdot \left(a \cdot a\right)}{\left(b \cdot b\right) \cdot b}, c, \frac{a}{b} \cdot 0.5\right), c, -0.5 \cdot b\right)}{c}}
\end{array}
Initial program 30.7%
lift-/.f64N/A
clear-numN/A
lift-*.f64N/A
associate-/l*N/A
associate-/r*N/A
metadata-evalN/A
lower-/.f64N/A
lower-/.f6430.7
lift-+.f64N/A
+-commutativeN/A
lift-neg.f64N/A
unsub-negN/A
lower--.f6430.7
Applied rewrites30.8%
Taylor expanded in c around 0
lower-/.f64N/A
Applied rewrites95.2%
(FPCore (a b c) :precision binary64 (/ 0.5 (fma (fma (* (/ c (* (* b b) b)) 0.5) a (/ 0.5 b)) a (* (/ b c) -0.5))))
double code(double a, double b, double c) {
return 0.5 / fma(fma(((c / ((b * b) * b)) * 0.5), a, (0.5 / b)), a, ((b / c) * -0.5));
}
function code(a, b, c) return Float64(0.5 / fma(fma(Float64(Float64(c / Float64(Float64(b * b) * b)) * 0.5), a, Float64(0.5 / b)), a, Float64(Float64(b / c) * -0.5))) end
code[a_, b_, c_] := N[(0.5 / N[(N[(N[(N[(c / N[(N[(b * b), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] * 0.5), $MachinePrecision] * a + N[(0.5 / b), $MachinePrecision]), $MachinePrecision] * a + N[(N[(b / c), $MachinePrecision] * -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{0.5}{\mathsf{fma}\left(\mathsf{fma}\left(\frac{c}{\left(b \cdot b\right) \cdot b} \cdot 0.5, a, \frac{0.5}{b}\right), a, \frac{b}{c} \cdot -0.5\right)}
\end{array}
Initial program 30.7%
lift-/.f64N/A
clear-numN/A
lift-*.f64N/A
associate-/l*N/A
associate-/r*N/A
metadata-evalN/A
lower-/.f64N/A
lower-/.f6430.7
lift-+.f64N/A
+-commutativeN/A
lift-neg.f64N/A
unsub-negN/A
lower--.f6430.7
Applied rewrites30.8%
Taylor expanded in a around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites95.2%
(FPCore (a b c) :precision binary64 (/ 0.5 (/ (fma (* (/ c b) a) 0.5 (* -0.5 b)) c)))
double code(double a, double b, double c) {
return 0.5 / (fma(((c / b) * a), 0.5, (-0.5 * b)) / c);
}
function code(a, b, c) return Float64(0.5 / Float64(fma(Float64(Float64(c / b) * a), 0.5, Float64(-0.5 * b)) / c)) end
code[a_, b_, c_] := N[(0.5 / N[(N[(N[(N[(c / b), $MachinePrecision] * a), $MachinePrecision] * 0.5 + N[(-0.5 * b), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{0.5}{\frac{\mathsf{fma}\left(\frac{c}{b} \cdot a, 0.5, -0.5 \cdot b\right)}{c}}
\end{array}
Initial program 30.7%
lift-/.f64N/A
clear-numN/A
lift-*.f64N/A
associate-/l*N/A
associate-/r*N/A
metadata-evalN/A
lower-/.f64N/A
lower-/.f6430.7
lift-+.f64N/A
+-commutativeN/A
lift-neg.f64N/A
unsub-negN/A
lower--.f6430.7
Applied rewrites30.8%
Taylor expanded in c around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower-*.f6491.4
Applied rewrites91.4%
Final simplification91.4%
(FPCore (a b c) :precision binary64 (/ 0.5 (fma (/ a b) 0.5 (* (/ b c) -0.5))))
double code(double a, double b, double c) {
return 0.5 / fma((a / b), 0.5, ((b / c) * -0.5));
}
function code(a, b, c) return Float64(0.5 / fma(Float64(a / b), 0.5, Float64(Float64(b / c) * -0.5))) end
code[a_, b_, c_] := N[(0.5 / N[(N[(a / b), $MachinePrecision] * 0.5 + N[(N[(b / c), $MachinePrecision] * -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{0.5}{\mathsf{fma}\left(\frac{a}{b}, 0.5, \frac{b}{c} \cdot -0.5\right)}
\end{array}
Initial program 30.7%
lift-/.f64N/A
clear-numN/A
lift-*.f64N/A
associate-/l*N/A
associate-/r*N/A
metadata-evalN/A
lower-/.f64N/A
lower-/.f6430.7
lift-+.f64N/A
+-commutativeN/A
lift-neg.f64N/A
unsub-negN/A
lower--.f6430.7
Applied rewrites30.8%
Taylor expanded in a around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6491.4
Applied rewrites91.4%
(FPCore (a b c) :precision binary64 (/ (- (fma (* (/ c (* b b)) c) a c)) b))
double code(double a, double b, double c) {
return -fma(((c / (b * b)) * c), a, c) / b;
}
function code(a, b, c) return Float64(Float64(-fma(Float64(Float64(c / Float64(b * b)) * c), a, c)) / b) end
code[a_, b_, c_] := N[((-N[(N[(N[(c / N[(b * b), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * a + c), $MachinePrecision]) / b), $MachinePrecision]
\begin{array}{l}
\\
\frac{-\mathsf{fma}\left(\frac{c}{b \cdot b} \cdot c, a, c\right)}{b}
\end{array}
Initial program 30.7%
Taylor expanded in b around inf
lower-/.f64N/A
distribute-lft-outN/A
mul-1-negN/A
lower-neg.f64N/A
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
unpow2N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
unpow2N/A
lower-*.f6491.2
Applied rewrites91.2%
Final simplification91.2%
(FPCore (a b c) :precision binary64 (* (/ (fma a (/ c (* b b)) 1.0) (- b)) c))
double code(double a, double b, double c) {
return (fma(a, (c / (b * b)), 1.0) / -b) * c;
}
function code(a, b, c) return Float64(Float64(fma(a, Float64(c / Float64(b * b)), 1.0) / Float64(-b)) * c) end
code[a_, b_, c_] := N[(N[(N[(a * N[(c / N[(b * b), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] / (-b)), $MachinePrecision] * c), $MachinePrecision]
\begin{array}{l}
\\
\frac{\mathsf{fma}\left(a, \frac{c}{b \cdot b}, 1\right)}{-b} \cdot c
\end{array}
Initial program 30.7%
Taylor expanded in c around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites94.8%
Taylor expanded in b around inf
Applied rewrites90.9%
(FPCore (a b c) :precision binary64 (/ (- c) b))
double code(double a, double b, double c) {
return -c / b;
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = -c / b
end function
public static double code(double a, double b, double c) {
return -c / b;
}
def code(a, b, c): return -c / b
function code(a, b, c) return Float64(Float64(-c) / b) end
function tmp = code(a, b, c) tmp = -c / b; end
code[a_, b_, c_] := N[((-c) / b), $MachinePrecision]
\begin{array}{l}
\\
\frac{-c}{b}
\end{array}
Initial program 30.7%
Taylor expanded in c around 0
associate-*r/N/A
lower-/.f64N/A
mul-1-negN/A
lower-neg.f6481.6
Applied rewrites81.6%
herbie shell --seed 2024240
(FPCore (a b c)
:name "Quadratic roots, medium range"
:precision binary64
:pre (and (and (and (< 1.1102230246251565e-16 a) (< a 9007199254740992.0)) (and (< 1.1102230246251565e-16 b) (< b 9007199254740992.0))) (and (< 1.1102230246251565e-16 c) (< c 9007199254740992.0)))
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)))