
(FPCore (a b c) :precision binary64 (/ (+ (- b) (sqrt (- (* b b) (* (* 3.0 a) c)))) (* 3.0 a)))
double code(double a, double b, double c) {
return (-b + sqrt(((b * b) - ((3.0 * a) * c)))) / (3.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) - ((3.0d0 * a) * c)))) / (3.0d0 * a)
end function
public static double code(double a, double b, double c) {
return (-b + Math.sqrt(((b * b) - ((3.0 * a) * c)))) / (3.0 * a);
}
def code(a, b, c): return (-b + math.sqrt(((b * b) - ((3.0 * a) * c)))) / (3.0 * a)
function code(a, b, c) return Float64(Float64(Float64(-b) + sqrt(Float64(Float64(b * b) - Float64(Float64(3.0 * a) * c)))) / Float64(3.0 * a)) end
function tmp = code(a, b, c) tmp = (-b + sqrt(((b * b) - ((3.0 * a) * c)))) / (3.0 * a); end
code[a_, b_, c_] := N[(N[((-b) + N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(N[(3.0 * a), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(3.0 * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \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) (* (* 3.0 a) c)))) (* 3.0 a)))
double code(double a, double b, double c) {
return (-b + sqrt(((b * b) - ((3.0 * a) * c)))) / (3.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) - ((3.0d0 * a) * c)))) / (3.0d0 * a)
end function
public static double code(double a, double b, double c) {
return (-b + Math.sqrt(((b * b) - ((3.0 * a) * c)))) / (3.0 * a);
}
def code(a, b, c): return (-b + math.sqrt(((b * b) - ((3.0 * a) * c)))) / (3.0 * a)
function code(a, b, c) return Float64(Float64(Float64(-b) + sqrt(Float64(Float64(b * b) - Float64(Float64(3.0 * a) * c)))) / Float64(3.0 * a)) end
function tmp = code(a, b, c) tmp = (-b + sqrt(((b * b) - ((3.0 * a) * c)))) / (3.0 * a); end
code[a_, b_, c_] := N[(N[((-b) + N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(N[(3.0 * a), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(3.0 * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\end{array}
(FPCore (a b c) :precision binary64 (/ 1.0 (/ (* 3.0 a) (/ (fma (* -3.0 a) c 0.0) (+ (sqrt (fma (* c -3.0) a (* b b))) b)))))
double code(double a, double b, double c) {
return 1.0 / ((3.0 * a) / (fma((-3.0 * a), c, 0.0) / (sqrt(fma((c * -3.0), a, (b * b))) + b)));
}
function code(a, b, c) return Float64(1.0 / Float64(Float64(3.0 * a) / Float64(fma(Float64(-3.0 * a), c, 0.0) / Float64(sqrt(fma(Float64(c * -3.0), a, Float64(b * b))) + b)))) end
code[a_, b_, c_] := N[(1.0 / N[(N[(3.0 * a), $MachinePrecision] / N[(N[(N[(-3.0 * a), $MachinePrecision] * c + 0.0), $MachinePrecision] / N[(N[Sqrt[N[(N[(c * -3.0), $MachinePrecision] * a + N[(b * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\frac{3 \cdot a}{\frac{\mathsf{fma}\left(-3 \cdot a, c, 0\right)}{\sqrt{\mathsf{fma}\left(c \cdot -3, a, b \cdot b\right)} + b}}}
\end{array}
Initial program 54.2%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lower-/.f6454.2
lift-*.f64N/A
*-commutativeN/A
lower-*.f6454.2
lift-+.f64N/A
+-commutativeN/A
lift-neg.f64N/A
unsub-negN/A
lower--.f6454.2
Applied rewrites54.3%
lift--.f64N/A
flip--N/A
lift-+.f64N/A
lower-/.f64N/A
Applied rewrites99.3%
Final simplification99.3%
(FPCore (a b c) :precision binary64 (/ 1.0 (* (/ (* 3.0 a) (fma (* -3.0 a) c 0.0)) (+ (sqrt (fma (* c -3.0) a (* b b))) b))))
double code(double a, double b, double c) {
return 1.0 / (((3.0 * a) / fma((-3.0 * a), c, 0.0)) * (sqrt(fma((c * -3.0), a, (b * b))) + b));
}
function code(a, b, c) return Float64(1.0 / Float64(Float64(Float64(3.0 * a) / fma(Float64(-3.0 * a), c, 0.0)) * Float64(sqrt(fma(Float64(c * -3.0), a, Float64(b * b))) + b))) end
code[a_, b_, c_] := N[(1.0 / N[(N[(N[(3.0 * a), $MachinePrecision] / N[(N[(-3.0 * a), $MachinePrecision] * c + 0.0), $MachinePrecision]), $MachinePrecision] * N[(N[Sqrt[N[(N[(c * -3.0), $MachinePrecision] * a + N[(b * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\frac{3 \cdot a}{\mathsf{fma}\left(-3 \cdot a, c, 0\right)} \cdot \left(\sqrt{\mathsf{fma}\left(c \cdot -3, a, b \cdot b\right)} + b\right)}
\end{array}
Initial program 54.2%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lower-/.f6454.2
lift-*.f64N/A
*-commutativeN/A
lower-*.f6454.2
lift-+.f64N/A
+-commutativeN/A
lift-neg.f64N/A
unsub-negN/A
lower--.f6454.2
Applied rewrites54.3%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift--.f64N/A
flip--N/A
lift-+.f64N/A
associate-/r/N/A
lower-*.f64N/A
Applied rewrites99.3%
Final simplification99.3%
(FPCore (a b c) :precision binary64 (/ (fma (* -3.0 a) c 0.0) (* (+ (sqrt (fma (* c -3.0) a (* b b))) b) (* 3.0 a))))
double code(double a, double b, double c) {
return fma((-3.0 * a), c, 0.0) / ((sqrt(fma((c * -3.0), a, (b * b))) + b) * (3.0 * a));
}
function code(a, b, c) return Float64(fma(Float64(-3.0 * a), c, 0.0) / Float64(Float64(sqrt(fma(Float64(c * -3.0), a, Float64(b * b))) + b) * Float64(3.0 * a))) end
code[a_, b_, c_] := N[(N[(N[(-3.0 * a), $MachinePrecision] * c + 0.0), $MachinePrecision] / N[(N[(N[Sqrt[N[(N[(c * -3.0), $MachinePrecision] * a + N[(b * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + b), $MachinePrecision] * N[(3.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\mathsf{fma}\left(-3 \cdot a, c, 0\right)}{\left(\sqrt{\mathsf{fma}\left(c \cdot -3, a, b \cdot b\right)} + b\right) \cdot \left(3 \cdot a\right)}
\end{array}
Initial program 54.2%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lower-/.f6454.2
lift-*.f64N/A
*-commutativeN/A
lower-*.f6454.2
lift-+.f64N/A
+-commutativeN/A
lift-neg.f64N/A
unsub-negN/A
lower--.f6454.2
Applied rewrites54.3%
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
clear-numN/A
lift--.f64N/A
flip--N/A
lift-+.f64N/A
associate-/l/N/A
lower-/.f64N/A
Applied rewrites99.2%
Final simplification99.2%
(FPCore (a b c) :precision binary64 (if (<= b 2.35) (/ (/ (- (sqrt (fma b b (* (* c -3.0) a))) b) a) 3.0) (/ 1.0 (fma (/ a b) 1.5 (* (/ b c) -2.0)))))
double code(double a, double b, double c) {
double tmp;
if (b <= 2.35) {
tmp = ((sqrt(fma(b, b, ((c * -3.0) * a))) - b) / a) / 3.0;
} else {
tmp = 1.0 / fma((a / b), 1.5, ((b / c) * -2.0));
}
return tmp;
}
function code(a, b, c) tmp = 0.0 if (b <= 2.35) tmp = Float64(Float64(Float64(sqrt(fma(b, b, Float64(Float64(c * -3.0) * a))) - b) / a) / 3.0); else tmp = Float64(1.0 / fma(Float64(a / b), 1.5, Float64(Float64(b / c) * -2.0))); end return tmp end
code[a_, b_, c_] := If[LessEqual[b, 2.35], N[(N[(N[(N[Sqrt[N[(b * b + N[(N[(c * -3.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / a), $MachinePrecision] / 3.0), $MachinePrecision], N[(1.0 / N[(N[(a / b), $MachinePrecision] * 1.5 + N[(N[(b / c), $MachinePrecision] * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.35:\\
\;\;\;\;\frac{\frac{\sqrt{\mathsf{fma}\left(b, b, \left(c \cdot -3\right) \cdot a\right)} - b}{a}}{3}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\mathsf{fma}\left(\frac{a}{b}, 1.5, \frac{b}{c} \cdot -2\right)}\\
\end{array}
\end{array}
if b < 2.35000000000000009Initial program 85.6%
lift-/.f64N/A
lift-*.f64N/A
associate-/l/N/A
lower-/.f64N/A
Applied rewrites85.7%
lift-fma.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64N/A
lower-*.f6485.8
Applied rewrites85.8%
if 2.35000000000000009 < b Initial program 47.2%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lower-/.f6447.2
lift-*.f64N/A
*-commutativeN/A
lower-*.f6447.2
lift-+.f64N/A
+-commutativeN/A
lift-neg.f64N/A
unsub-negN/A
lower--.f6447.2
Applied rewrites47.2%
Taylor expanded in a around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-/.f6487.8
Applied rewrites87.8%
Final simplification87.5%
(FPCore (a b c) :precision binary64 (if (<= b 2.35) (/ (- (sqrt (fma b b (* c (* -3.0 a)))) b) (* 3.0 a)) (/ 1.0 (fma (/ a b) 1.5 (* (/ b c) -2.0)))))
double code(double a, double b, double c) {
double tmp;
if (b <= 2.35) {
tmp = (sqrt(fma(b, b, (c * (-3.0 * a)))) - b) / (3.0 * a);
} else {
tmp = 1.0 / fma((a / b), 1.5, ((b / c) * -2.0));
}
return tmp;
}
function code(a, b, c) tmp = 0.0 if (b <= 2.35) tmp = Float64(Float64(sqrt(fma(b, b, Float64(c * Float64(-3.0 * a)))) - b) / Float64(3.0 * a)); else tmp = Float64(1.0 / fma(Float64(a / b), 1.5, Float64(Float64(b / c) * -2.0))); end return tmp end
code[a_, b_, c_] := If[LessEqual[b, 2.35], N[(N[(N[Sqrt[N[(b * b + N[(c * N[(-3.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(3.0 * a), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(a / b), $MachinePrecision] * 1.5 + N[(N[(b / c), $MachinePrecision] * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.35:\\
\;\;\;\;\frac{\sqrt{\mathsf{fma}\left(b, b, c \cdot \left(-3 \cdot a\right)\right)} - b}{3 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\mathsf{fma}\left(\frac{a}{b}, 1.5, \frac{b}{c} \cdot -2\right)}\\
\end{array}
\end{array}
if b < 2.35000000000000009Initial program 85.6%
lift--.f64N/A
sub-negN/A
lift-*.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lift-*.f64N/A
distribute-lft-neg-inN/A
lower-*.f64N/A
metadata-eval85.7
Applied rewrites85.7%
if 2.35000000000000009 < b Initial program 47.2%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lower-/.f6447.2
lift-*.f64N/A
*-commutativeN/A
lower-*.f6447.2
lift-+.f64N/A
+-commutativeN/A
lift-neg.f64N/A
unsub-negN/A
lower--.f6447.2
Applied rewrites47.2%
Taylor expanded in a around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-/.f6487.8
Applied rewrites87.8%
Final simplification87.5%
(FPCore (a b c) :precision binary64 (if (<= b 2.35) (* 0.3333333333333333 (/ (- (sqrt (fma (* c -3.0) a (* b b))) b) a)) (/ 1.0 (fma (/ a b) 1.5 (* (/ b c) -2.0)))))
double code(double a, double b, double c) {
double tmp;
if (b <= 2.35) {
tmp = 0.3333333333333333 * ((sqrt(fma((c * -3.0), a, (b * b))) - b) / a);
} else {
tmp = 1.0 / fma((a / b), 1.5, ((b / c) * -2.0));
}
return tmp;
}
function code(a, b, c) tmp = 0.0 if (b <= 2.35) tmp = Float64(0.3333333333333333 * Float64(Float64(sqrt(fma(Float64(c * -3.0), a, Float64(b * b))) - b) / a)); else tmp = Float64(1.0 / fma(Float64(a / b), 1.5, Float64(Float64(b / c) * -2.0))); end return tmp end
code[a_, b_, c_] := If[LessEqual[b, 2.35], N[(0.3333333333333333 * N[(N[(N[Sqrt[N[(N[(c * -3.0), $MachinePrecision] * a + N[(b * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(a / b), $MachinePrecision] * 1.5 + N[(N[(b / c), $MachinePrecision] * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.35:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\sqrt{\mathsf{fma}\left(c \cdot -3, a, b \cdot b\right)} - b}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\mathsf{fma}\left(\frac{a}{b}, 1.5, \frac{b}{c} \cdot -2\right)}\\
\end{array}
\end{array}
if b < 2.35000000000000009Initial program 85.6%
lift-/.f64N/A
lift-*.f64N/A
associate-/l/N/A
div-invN/A
lower-*.f64N/A
Applied rewrites85.6%
if 2.35000000000000009 < b Initial program 47.2%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lower-/.f6447.2
lift-*.f64N/A
*-commutativeN/A
lower-*.f6447.2
lift-+.f64N/A
+-commutativeN/A
lift-neg.f64N/A
unsub-negN/A
lower--.f6447.2
Applied rewrites47.2%
Taylor expanded in a around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-/.f6487.8
Applied rewrites87.8%
Final simplification87.4%
(FPCore (a b c) :precision binary64 (if (<= b 2.35) (* (/ 0.3333333333333333 a) (- (sqrt (fma (* c -3.0) a (* b b))) b)) (/ 1.0 (fma (/ a b) 1.5 (* (/ b c) -2.0)))))
double code(double a, double b, double c) {
double tmp;
if (b <= 2.35) {
tmp = (0.3333333333333333 / a) * (sqrt(fma((c * -3.0), a, (b * b))) - b);
} else {
tmp = 1.0 / fma((a / b), 1.5, ((b / c) * -2.0));
}
return tmp;
}
function code(a, b, c) tmp = 0.0 if (b <= 2.35) tmp = Float64(Float64(0.3333333333333333 / a) * Float64(sqrt(fma(Float64(c * -3.0), a, Float64(b * b))) - b)); else tmp = Float64(1.0 / fma(Float64(a / b), 1.5, Float64(Float64(b / c) * -2.0))); end return tmp end
code[a_, b_, c_] := If[LessEqual[b, 2.35], N[(N[(0.3333333333333333 / a), $MachinePrecision] * N[(N[Sqrt[N[(N[(c * -3.0), $MachinePrecision] * a + N[(b * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(a / b), $MachinePrecision] * 1.5 + N[(N[(b / c), $MachinePrecision] * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2.35:\\
\;\;\;\;\frac{0.3333333333333333}{a} \cdot \left(\sqrt{\mathsf{fma}\left(c \cdot -3, a, b \cdot b\right)} - b\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\mathsf{fma}\left(\frac{a}{b}, 1.5, \frac{b}{c} \cdot -2\right)}\\
\end{array}
\end{array}
if b < 2.35000000000000009Initial program 85.6%
lift-/.f64N/A
clear-numN/A
associate-/r/N/A
lower-*.f64N/A
lift-*.f64N/A
associate-/r*N/A
lower-/.f64N/A
metadata-eval85.5
lift-+.f64N/A
+-commutativeN/A
lift-neg.f64N/A
unsub-negN/A
lower--.f6485.5
Applied rewrites85.6%
if 2.35000000000000009 < b Initial program 47.2%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lower-/.f6447.2
lift-*.f64N/A
*-commutativeN/A
lower-*.f6447.2
lift-+.f64N/A
+-commutativeN/A
lift-neg.f64N/A
unsub-negN/A
lower--.f6447.2
Applied rewrites47.2%
Taylor expanded in a around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-/.f6487.8
Applied rewrites87.8%
Final simplification87.4%
(FPCore (a b c) :precision binary64 (/ 1.0 (fma (/ a b) 1.5 (* (/ b c) -2.0))))
double code(double a, double b, double c) {
return 1.0 / fma((a / b), 1.5, ((b / c) * -2.0));
}
function code(a, b, c) return Float64(1.0 / fma(Float64(a / b), 1.5, Float64(Float64(b / c) * -2.0))) end
code[a_, b_, c_] := N[(1.0 / N[(N[(a / b), $MachinePrecision] * 1.5 + N[(N[(b / c), $MachinePrecision] * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\mathsf{fma}\left(\frac{a}{b}, 1.5, \frac{b}{c} \cdot -2\right)}
\end{array}
Initial program 54.2%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lower-/.f6454.2
lift-*.f64N/A
*-commutativeN/A
lower-*.f6454.2
lift-+.f64N/A
+-commutativeN/A
lift-neg.f64N/A
unsub-negN/A
lower--.f6454.2
Applied rewrites54.3%
Taylor expanded in a around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-/.f6482.0
Applied rewrites82.0%
Final simplification82.0%
(FPCore (a b c) :precision binary64 (* -0.5 (/ c b)))
double code(double a, double b, double c) {
return -0.5 * (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 = (-0.5d0) * (c / b)
end function
public static double code(double a, double b, double c) {
return -0.5 * (c / b);
}
def code(a, b, c): return -0.5 * (c / b)
function code(a, b, c) return Float64(-0.5 * Float64(c / b)) end
function tmp = code(a, b, c) tmp = -0.5 * (c / b); end
code[a_, b_, c_] := N[(-0.5 * N[(c / b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
-0.5 \cdot \frac{c}{b}
\end{array}
Initial program 54.2%
Taylor expanded in c around 0
*-commutativeN/A
lower-*.f64N/A
lower-/.f6465.6
Applied rewrites65.6%
Final simplification65.6%
(FPCore (a b c) :precision binary64 (* (/ -0.5 b) c))
double code(double a, double b, double c) {
return (-0.5 / b) * c;
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = ((-0.5d0) / b) * c
end function
public static double code(double a, double b, double c) {
return (-0.5 / b) * c;
}
def code(a, b, c): return (-0.5 / b) * c
function code(a, b, c) return Float64(Float64(-0.5 / b) * c) end
function tmp = code(a, b, c) tmp = (-0.5 / b) * c; end
code[a_, b_, c_] := N[(N[(-0.5 / b), $MachinePrecision] * c), $MachinePrecision]
\begin{array}{l}
\\
\frac{-0.5}{b} \cdot c
\end{array}
Initial program 54.2%
Taylor expanded in c around 0
*-commutativeN/A
lower-*.f64N/A
lower-/.f6465.6
Applied rewrites65.6%
Applied rewrites65.6%
Final simplification65.6%
herbie shell --seed 2024268
(FPCore (a b c)
:name "Cubic critical, narrow range"
:precision binary64
:pre (and (and (and (< 1.0536712127723509e-8 a) (< a 94906265.62425156)) (and (< 1.0536712127723509e-8 b) (< b 94906265.62425156))) (and (< 1.0536712127723509e-8 c) (< c 94906265.62425156)))
(/ (+ (- b) (sqrt (- (* b b) (* (* 3.0 a) c)))) (* 3.0 a)))