
(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 8 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 (/ (/ (* c (* 3.0 a)) (- (- b) (sqrt (fma b b (* c (* a -3.0)))))) (* 3.0 a)))
double code(double a, double b, double c) {
return ((c * (3.0 * a)) / (-b - sqrt(fma(b, b, (c * (a * -3.0)))))) / (3.0 * a);
}
function code(a, b, c) return Float64(Float64(Float64(c * Float64(3.0 * a)) / Float64(Float64(-b) - sqrt(fma(b, b, Float64(c * Float64(a * -3.0)))))) / Float64(3.0 * a)) end
code[a_, b_, c_] := N[(N[(N[(c * N[(3.0 * a), $MachinePrecision]), $MachinePrecision] / N[((-b) - N[Sqrt[N[(b * b + N[(c * N[(a * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(3.0 * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{c \cdot \left(3 \cdot a\right)}{\left(-b\right) - \sqrt{\mathsf{fma}\left(b, b, c \cdot \left(a \cdot -3\right)\right)}}}{3 \cdot a}
\end{array}
Initial program 52.9%
add-sqr-sqrt52.0%
distribute-rgt-neg-in52.0%
Applied egg-rr52.0%
flip-+52.1%
pow252.0%
distribute-rgt-neg-out52.0%
add-sqr-sqrt52.9%
add-sqr-sqrt54.4%
pow254.4%
*-commutative54.4%
*-commutative54.4%
distribute-rgt-neg-out54.4%
add-sqr-sqrt54.4%
Applied egg-rr54.4%
associate--r-99.3%
unpow299.1%
unpow299.3%
difference-of-squares99.3%
neg-mul-199.3%
distribute-lft1-in99.3%
metadata-eval99.3%
mul0-lft99.3%
unpow299.3%
fma-neg99.3%
associate-*r*99.3%
*-commutative99.3%
distribute-rgt-neg-in99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in a around 0 99.3%
associate-*r*99.3%
*-commutative99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in b around 0 99.1%
*-commutative99.1%
*-commutative99.1%
associate-*r*99.3%
*-commutative99.3%
Simplified99.3%
(FPCore (a b c) :precision binary64 (if (<= (/ (- (sqrt (- (* b b) (* c (* 3.0 a)))) b) (* 3.0 a)) -0.095) (/ 1.0 (/ (* 3.0 a) (- (sqrt (fma b b (* -3.0 (* c a)))) b))) (/ 1.0 (/ (+ (* b -2.0) (* 1.5 (/ (* c a) b))) c))))
double code(double a, double b, double c) {
double tmp;
if (((sqrt(((b * b) - (c * (3.0 * a)))) - b) / (3.0 * a)) <= -0.095) {
tmp = 1.0 / ((3.0 * a) / (sqrt(fma(b, b, (-3.0 * (c * a)))) - b));
} else {
tmp = 1.0 / (((b * -2.0) + (1.5 * ((c * a) / b))) / c);
}
return tmp;
}
function code(a, b, c) tmp = 0.0 if (Float64(Float64(sqrt(Float64(Float64(b * b) - Float64(c * Float64(3.0 * a)))) - b) / Float64(3.0 * a)) <= -0.095) tmp = Float64(1.0 / Float64(Float64(3.0 * a) / Float64(sqrt(fma(b, b, Float64(-3.0 * Float64(c * a)))) - b))); else tmp = Float64(1.0 / Float64(Float64(Float64(b * -2.0) + Float64(1.5 * Float64(Float64(c * a) / b))) / c)); end return tmp end
code[a_, b_, c_] := If[LessEqual[N[(N[(N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(c * N[(3.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(3.0 * a), $MachinePrecision]), $MachinePrecision], -0.095], N[(1.0 / N[(N[(3.0 * a), $MachinePrecision] / N[(N[Sqrt[N[(b * b + N[(-3.0 * N[(c * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(N[(b * -2.0), $MachinePrecision] + N[(1.5 * N[(N[(c * a), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\sqrt{b \cdot b - c \cdot \left(3 \cdot a\right)} - b}{3 \cdot a} \leq -0.095:\\
\;\;\;\;\frac{1}{\frac{3 \cdot a}{\sqrt{\mathsf{fma}\left(b, b, -3 \cdot \left(c \cdot a\right)\right)} - b}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{b \cdot -2 + 1.5 \cdot \frac{c \cdot a}{b}}{c}}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 #s(literal 3 binary64) a) c)))) (*.f64 #s(literal 3 binary64) a)) < -0.095000000000000001Initial program 82.7%
add-sqr-sqrt81.0%
distribute-rgt-neg-in81.0%
Applied egg-rr81.0%
clear-num81.1%
inv-pow81.1%
*-commutative81.1%
distribute-rgt-neg-out81.1%
add-sqr-sqrt82.7%
pow282.7%
*-commutative82.7%
*-commutative82.7%
Applied egg-rr82.7%
unpow-182.7%
+-commutative82.7%
unsub-neg82.7%
unpow282.7%
fma-neg82.7%
associate-*r*82.7%
*-commutative82.7%
distribute-rgt-neg-in82.7%
metadata-eval82.7%
Simplified82.7%
if -0.095000000000000001 < (/.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 #s(literal 3 binary64) a) c)))) (*.f64 #s(literal 3 binary64) a)) Initial program 45.1%
add-sqr-sqrt44.5%
distribute-rgt-neg-in44.5%
Applied egg-rr44.5%
clear-num44.5%
inv-pow44.5%
*-commutative44.5%
distribute-rgt-neg-out44.5%
add-sqr-sqrt45.1%
pow245.1%
*-commutative45.1%
*-commutative45.1%
Applied egg-rr45.1%
unpow-145.1%
+-commutative45.1%
unsub-neg45.1%
unpow245.1%
fma-neg45.3%
associate-*r*45.3%
*-commutative45.3%
distribute-rgt-neg-in45.3%
metadata-eval45.3%
Simplified45.3%
Taylor expanded in c around 0 89.7%
Final simplification88.3%
(FPCore (a b c)
:precision binary64
(let* ((t_0 (/ (- (sqrt (- (* b b) (* c (* 3.0 a)))) b) (* 3.0 a))))
(if (<= t_0 -0.095)
t_0
(/ 1.0 (/ (+ (* b -2.0) (* 1.5 (/ (* c a) b))) c)))))
double code(double a, double b, double c) {
double t_0 = (sqrt(((b * b) - (c * (3.0 * a)))) - b) / (3.0 * a);
double tmp;
if (t_0 <= -0.095) {
tmp = t_0;
} else {
tmp = 1.0 / (((b * -2.0) + (1.5 * ((c * a) / b))) / c);
}
return tmp;
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_0
real(8) :: tmp
t_0 = (sqrt(((b * b) - (c * (3.0d0 * a)))) - b) / (3.0d0 * a)
if (t_0 <= (-0.095d0)) then
tmp = t_0
else
tmp = 1.0d0 / (((b * (-2.0d0)) + (1.5d0 * ((c * a) / b))) / c)
end if
code = tmp
end function
public static double code(double a, double b, double c) {
double t_0 = (Math.sqrt(((b * b) - (c * (3.0 * a)))) - b) / (3.0 * a);
double tmp;
if (t_0 <= -0.095) {
tmp = t_0;
} else {
tmp = 1.0 / (((b * -2.0) + (1.5 * ((c * a) / b))) / c);
}
return tmp;
}
def code(a, b, c): t_0 = (math.sqrt(((b * b) - (c * (3.0 * a)))) - b) / (3.0 * a) tmp = 0 if t_0 <= -0.095: tmp = t_0 else: tmp = 1.0 / (((b * -2.0) + (1.5 * ((c * a) / b))) / c) return tmp
function code(a, b, c) t_0 = Float64(Float64(sqrt(Float64(Float64(b * b) - Float64(c * Float64(3.0 * a)))) - b) / Float64(3.0 * a)) tmp = 0.0 if (t_0 <= -0.095) tmp = t_0; else tmp = Float64(1.0 / Float64(Float64(Float64(b * -2.0) + Float64(1.5 * Float64(Float64(c * a) / b))) / c)); end return tmp end
function tmp_2 = code(a, b, c) t_0 = (sqrt(((b * b) - (c * (3.0 * a)))) - b) / (3.0 * a); tmp = 0.0; if (t_0 <= -0.095) tmp = t_0; else tmp = 1.0 / (((b * -2.0) + (1.5 * ((c * a) / b))) / c); end tmp_2 = tmp; end
code[a_, b_, c_] := Block[{t$95$0 = N[(N[(N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(c * N[(3.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(3.0 * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -0.095], t$95$0, N[(1.0 / N[(N[(N[(b * -2.0), $MachinePrecision] + N[(1.5 * N[(N[(c * a), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sqrt{b \cdot b - c \cdot \left(3 \cdot a\right)} - b}{3 \cdot a}\\
\mathbf{if}\;t\_0 \leq -0.095:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{b \cdot -2 + 1.5 \cdot \frac{c \cdot a}{b}}{c}}\\
\end{array}
\end{array}
if (/.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 #s(literal 3 binary64) a) c)))) (*.f64 #s(literal 3 binary64) a)) < -0.095000000000000001Initial program 82.7%
if -0.095000000000000001 < (/.f64 (+.f64 (neg.f64 b) (sqrt.f64 (-.f64 (*.f64 b b) (*.f64 (*.f64 #s(literal 3 binary64) a) c)))) (*.f64 #s(literal 3 binary64) a)) Initial program 45.1%
add-sqr-sqrt44.5%
distribute-rgt-neg-in44.5%
Applied egg-rr44.5%
clear-num44.5%
inv-pow44.5%
*-commutative44.5%
distribute-rgt-neg-out44.5%
add-sqr-sqrt45.1%
pow245.1%
*-commutative45.1%
*-commutative45.1%
Applied egg-rr45.1%
unpow-145.1%
+-commutative45.1%
unsub-neg45.1%
unpow245.1%
fma-neg45.3%
associate-*r*45.3%
*-commutative45.3%
distribute-rgt-neg-in45.3%
metadata-eval45.3%
Simplified45.3%
Taylor expanded in c around 0 89.7%
Final simplification88.3%
(FPCore (a b c) :precision binary64 (/ (/ (* 3.0 (* c a)) (- (- b) (sqrt (fma b b (* c (* a -3.0)))))) (* 3.0 a)))
double code(double a, double b, double c) {
return ((3.0 * (c * a)) / (-b - sqrt(fma(b, b, (c * (a * -3.0)))))) / (3.0 * a);
}
function code(a, b, c) return Float64(Float64(Float64(3.0 * Float64(c * a)) / Float64(Float64(-b) - sqrt(fma(b, b, Float64(c * Float64(a * -3.0)))))) / Float64(3.0 * a)) end
code[a_, b_, c_] := N[(N[(N[(3.0 * N[(c * a), $MachinePrecision]), $MachinePrecision] / N[((-b) - N[Sqrt[N[(b * b + N[(c * N[(a * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(3.0 * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{3 \cdot \left(c \cdot a\right)}{\left(-b\right) - \sqrt{\mathsf{fma}\left(b, b, c \cdot \left(a \cdot -3\right)\right)}}}{3 \cdot a}
\end{array}
Initial program 52.9%
add-sqr-sqrt52.0%
distribute-rgt-neg-in52.0%
Applied egg-rr52.0%
flip-+52.1%
pow252.0%
distribute-rgt-neg-out52.0%
add-sqr-sqrt52.9%
add-sqr-sqrt54.4%
pow254.4%
*-commutative54.4%
*-commutative54.4%
distribute-rgt-neg-out54.4%
add-sqr-sqrt54.4%
Applied egg-rr54.4%
associate--r-99.3%
unpow299.1%
unpow299.3%
difference-of-squares99.3%
neg-mul-199.3%
distribute-lft1-in99.3%
metadata-eval99.3%
mul0-lft99.3%
unpow299.3%
fma-neg99.3%
associate-*r*99.3%
*-commutative99.3%
distribute-rgt-neg-in99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in a around 0 99.3%
associate-*r*99.3%
*-commutative99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in b around 0 99.1%
Final simplification99.1%
(FPCore (a b c) :precision binary64 (/ 1.0 (/ (+ (* b -2.0) (* 1.5 (/ (* c a) b))) c)))
double code(double a, double b, double c) {
return 1.0 / (((b * -2.0) + (1.5 * ((c * a) / 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 = 1.0d0 / (((b * (-2.0d0)) + (1.5d0 * ((c * a) / b))) / c)
end function
public static double code(double a, double b, double c) {
return 1.0 / (((b * -2.0) + (1.5 * ((c * a) / b))) / c);
}
def code(a, b, c): return 1.0 / (((b * -2.0) + (1.5 * ((c * a) / b))) / c)
function code(a, b, c) return Float64(1.0 / Float64(Float64(Float64(b * -2.0) + Float64(1.5 * Float64(Float64(c * a) / b))) / c)) end
function tmp = code(a, b, c) tmp = 1.0 / (((b * -2.0) + (1.5 * ((c * a) / b))) / c); end
code[a_, b_, c_] := N[(1.0 / N[(N[(N[(b * -2.0), $MachinePrecision] + N[(1.5 * N[(N[(c * a), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{\frac{b \cdot -2 + 1.5 \cdot \frac{c \cdot a}{b}}{c}}
\end{array}
Initial program 52.9%
add-sqr-sqrt52.0%
distribute-rgt-neg-in52.0%
Applied egg-rr52.0%
clear-num52.0%
inv-pow52.0%
*-commutative52.0%
distribute-rgt-neg-out52.0%
add-sqr-sqrt52.9%
pow252.9%
*-commutative52.9%
*-commutative52.9%
Applied egg-rr52.9%
unpow-152.9%
+-commutative52.9%
unsub-neg52.9%
unpow252.9%
fma-neg53.0%
associate-*r*53.0%
*-commutative53.0%
distribute-rgt-neg-in53.0%
metadata-eval53.0%
Simplified53.0%
Taylor expanded in c around 0 83.7%
Final simplification83.7%
(FPCore (a b c) :precision binary64 (/ 1.0 (+ (* -2.0 (/ b c)) (* 1.5 (/ a b)))))
double code(double a, double b, double c) {
return 1.0 / ((-2.0 * (b / c)) + (1.5 * (a / b)));
}
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0 / (((-2.0d0) * (b / c)) + (1.5d0 * (a / b)))
end function
public static double code(double a, double b, double c) {
return 1.0 / ((-2.0 * (b / c)) + (1.5 * (a / b)));
}
def code(a, b, c): return 1.0 / ((-2.0 * (b / c)) + (1.5 * (a / b)))
function code(a, b, c) return Float64(1.0 / Float64(Float64(-2.0 * Float64(b / c)) + Float64(1.5 * Float64(a / b)))) end
function tmp = code(a, b, c) tmp = 1.0 / ((-2.0 * (b / c)) + (1.5 * (a / b))); end
code[a_, b_, c_] := N[(1.0 / N[(N[(-2.0 * N[(b / c), $MachinePrecision]), $MachinePrecision] + N[(1.5 * N[(a / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{-2 \cdot \frac{b}{c} + 1.5 \cdot \frac{a}{b}}
\end{array}
Initial program 52.9%
add-sqr-sqrt52.0%
distribute-rgt-neg-in52.0%
Applied egg-rr52.0%
clear-num52.0%
inv-pow52.0%
*-commutative52.0%
distribute-rgt-neg-out52.0%
add-sqr-sqrt52.9%
pow252.9%
*-commutative52.9%
*-commutative52.9%
Applied egg-rr52.9%
unpow-152.9%
+-commutative52.9%
unsub-neg52.9%
unpow252.9%
fma-neg53.0%
associate-*r*53.0%
*-commutative53.0%
distribute-rgt-neg-in53.0%
metadata-eval53.0%
Simplified53.0%
Taylor expanded in a around 0 83.7%
(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 52.9%
/-rgt-identity52.9%
metadata-eval52.9%
Simplified53.0%
Taylor expanded in b around inf 66.4%
(FPCore (a b c) :precision binary64 (/ 0.0 a))
double code(double a, double b, double c) {
return 0.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 = 0.0d0 / a
end function
public static double code(double a, double b, double c) {
return 0.0 / a;
}
def code(a, b, c): return 0.0 / a
function code(a, b, c) return Float64(0.0 / a) end
function tmp = code(a, b, c) tmp = 0.0 / a; end
code[a_, b_, c_] := N[(0.0 / a), $MachinePrecision]
\begin{array}{l}
\\
\frac{0}{a}
\end{array}
Initial program 52.9%
add-sqr-sqrt52.0%
distribute-rgt-neg-in52.0%
Applied egg-rr52.0%
Taylor expanded in a around 0 3.2%
associate-*r/3.2%
distribute-rgt1-in3.2%
metadata-eval3.2%
mul0-lft3.2%
metadata-eval3.2%
Simplified3.2%
herbie shell --seed 2024143
(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)))