| Alternative 1 | |
|---|---|
| Error | 10.7 |
| Cost | 7624 |
(FPCore (a b c) :precision binary64 (/ (+ (- b) (sqrt (- (* b b) (* (* 3.0 a) c)))) (* 3.0 a)))
(FPCore (a b c)
:precision binary64
(if (<= b -3.1e+95)
(/ b (* a -1.5))
(if (<= b 2.9e-131)
(/ (/ (- b (sqrt (+ (* b b) (* -3.0 (* a c))))) -3.0) a)
(/ c (/ b -0.5)))))double code(double a, double b, double c) {
return (-b + sqrt(((b * b) - ((3.0 * a) * c)))) / (3.0 * a);
}
double code(double a, double b, double c) {
double tmp;
if (b <= -3.1e+95) {
tmp = b / (a * -1.5);
} else if (b <= 2.9e-131) {
tmp = ((b - sqrt(((b * b) + (-3.0 * (a * c))))) / -3.0) / a;
} else {
tmp = c / (b / -0.5);
}
return tmp;
}
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
real(8) function code(a, b, c)
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-3.1d+95)) then
tmp = b / (a * (-1.5d0))
else if (b <= 2.9d-131) then
tmp = ((b - sqrt(((b * b) + ((-3.0d0) * (a * c))))) / (-3.0d0)) / a
else
tmp = c / (b / (-0.5d0))
end if
code = tmp
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);
}
public static double code(double a, double b, double c) {
double tmp;
if (b <= -3.1e+95) {
tmp = b / (a * -1.5);
} else if (b <= 2.9e-131) {
tmp = ((b - Math.sqrt(((b * b) + (-3.0 * (a * c))))) / -3.0) / a;
} else {
tmp = c / (b / -0.5);
}
return tmp;
}
def code(a, b, c): return (-b + math.sqrt(((b * b) - ((3.0 * a) * c)))) / (3.0 * a)
def code(a, b, c): tmp = 0 if b <= -3.1e+95: tmp = b / (a * -1.5) elif b <= 2.9e-131: tmp = ((b - math.sqrt(((b * b) + (-3.0 * (a * c))))) / -3.0) / a else: tmp = c / (b / -0.5) return tmp
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 code(a, b, c) tmp = 0.0 if (b <= -3.1e+95) tmp = Float64(b / Float64(a * -1.5)); elseif (b <= 2.9e-131) tmp = Float64(Float64(Float64(b - sqrt(Float64(Float64(b * b) + Float64(-3.0 * Float64(a * c))))) / -3.0) / a); else tmp = Float64(c / Float64(b / -0.5)); end return tmp end
function tmp = code(a, b, c) tmp = (-b + sqrt(((b * b) - ((3.0 * a) * c)))) / (3.0 * a); end
function tmp_2 = code(a, b, c) tmp = 0.0; if (b <= -3.1e+95) tmp = b / (a * -1.5); elseif (b <= 2.9e-131) tmp = ((b - sqrt(((b * b) + (-3.0 * (a * c))))) / -3.0) / a; else tmp = c / (b / -0.5); end tmp_2 = tmp; 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]
code[a_, b_, c_] := If[LessEqual[b, -3.1e+95], N[(b / N[(a * -1.5), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.9e-131], N[(N[(N[(b - N[Sqrt[N[(N[(b * b), $MachinePrecision] + N[(-3.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / -3.0), $MachinePrecision] / a), $MachinePrecision], N[(c / N[(b / -0.5), $MachinePrecision]), $MachinePrecision]]]
\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\begin{array}{l}
\mathbf{if}\;b \leq -3.1 \cdot 10^{+95}:\\
\;\;\;\;\frac{b}{a \cdot -1.5}\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-131}:\\
\;\;\;\;\frac{\frac{b - \sqrt{b \cdot b + -3 \cdot \left(a \cdot c\right)}}{-3}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{\frac{b}{-0.5}}\\
\end{array}
Results
if b < -3.1000000000000003e95Initial program 47.5
Simplified47.5
[Start]47.5 | \[ \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\] |
|---|---|
remove-double-neg [<=]47.5 | \[ \frac{\left(-b\right) + \color{blue}{\left(-\left(-\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)\right)}}{3 \cdot a}
\] |
sub-neg [<=]47.5 | \[ \frac{\color{blue}{\left(-b\right) - \left(-\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}}{3 \cdot a}
\] |
div-sub [=>]47.5 | \[ \color{blue}{\frac{-b}{3 \cdot a} - \frac{-\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}}
\] |
neg-mul-1 [=>]47.5 | \[ \frac{\color{blue}{-1 \cdot b}}{3 \cdot a} - \frac{-\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\] |
associate-*l/ [<=]47.5 | \[ \color{blue}{\frac{-1}{3 \cdot a} \cdot b} - \frac{-\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\] |
distribute-frac-neg [=>]47.5 | \[ \frac{-1}{3 \cdot a} \cdot b - \color{blue}{\left(-\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\right)}
\] |
fma-neg [=>]47.5 | \[ \color{blue}{\mathsf{fma}\left(\frac{-1}{3 \cdot a}, b, -\left(-\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\right)\right)}
\] |
/-rgt-identity [<=]47.5 | \[ \mathsf{fma}\left(\frac{-1}{3 \cdot a}, \color{blue}{\frac{b}{1}}, -\left(-\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\right)\right)
\] |
metadata-eval [<=]47.5 | \[ \mathsf{fma}\left(\frac{-1}{3 \cdot a}, \frac{b}{\color{blue}{\frac{-1}{-1}}}, -\left(-\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\right)\right)
\] |
associate-/l* [<=]47.5 | \[ \mathsf{fma}\left(\frac{-1}{3 \cdot a}, \color{blue}{\frac{b \cdot -1}{-1}}, -\left(-\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\right)\right)
\] |
*-commutative [<=]47.5 | \[ \mathsf{fma}\left(\frac{-1}{3 \cdot a}, \frac{\color{blue}{-1 \cdot b}}{-1}, -\left(-\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\right)\right)
\] |
neg-mul-1 [<=]47.5 | \[ \mathsf{fma}\left(\frac{-1}{3 \cdot a}, \frac{\color{blue}{-b}}{-1}, -\left(-\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\right)\right)
\] |
fma-neg [<=]47.5 | \[ \color{blue}{\frac{-1}{3 \cdot a} \cdot \frac{-b}{-1} - \left(-\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\right)}
\] |
neg-mul-1 [=>]47.5 | \[ \frac{-1}{3 \cdot a} \cdot \frac{-b}{-1} - \color{blue}{-1 \cdot \frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}}
\] |
associate-*r/ [=>]47.5 | \[ \frac{-1}{3 \cdot a} \cdot \frac{-b}{-1} - \color{blue}{\frac{-1 \cdot \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}}
\] |
associate-*l/ [<=]47.6 | \[ \frac{-1}{3 \cdot a} \cdot \frac{-b}{-1} - \color{blue}{\frac{-1}{3 \cdot a} \cdot \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}
\] |
distribute-lft-out-- [=>]47.6 | \[ \color{blue}{\frac{-1}{3 \cdot a} \cdot \left(\frac{-b}{-1} - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}
\] |
*-commutative [=>]47.6 | \[ \color{blue}{\left(\frac{-b}{-1} - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{-1}{3 \cdot a}}
\] |
neg-mul-1 [=>]47.6 | \[ \left(\frac{\color{blue}{-1 \cdot b}}{-1} - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{-1}{3 \cdot a}
\] |
*-commutative [=>]47.6 | \[ \left(\frac{\color{blue}{b \cdot -1}}{-1} - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{-1}{3 \cdot a}
\] |
associate-/l* [=>]47.6 | \[ \left(\color{blue}{\frac{b}{\frac{-1}{-1}}} - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{-1}{3 \cdot a}
\] |
metadata-eval [=>]47.6 | \[ \left(\frac{b}{\color{blue}{1}} - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{-1}{3 \cdot a}
\] |
/-rgt-identity [=>]47.6 | \[ \left(\color{blue}{b} - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{-1}{3 \cdot a}
\] |
cancel-sign-sub-inv [=>]47.6 | \[ \left(b - \sqrt{\color{blue}{b \cdot b + \left(-3 \cdot a\right) \cdot c}}\right) \cdot \frac{-1}{3 \cdot a}
\] |
+-commutative [=>]47.6 | \[ \left(b - \sqrt{\color{blue}{\left(-3 \cdot a\right) \cdot c + b \cdot b}}\right) \cdot \frac{-1}{3 \cdot a}
\] |
*-commutative [=>]47.6 | \[ \left(b - \sqrt{\color{blue}{c \cdot \left(-3 \cdot a\right)} + b \cdot b}\right) \cdot \frac{-1}{3 \cdot a}
\] |
distribute-lft-neg-in [=>]47.6 | \[ \left(b - \sqrt{c \cdot \color{blue}{\left(\left(-3\right) \cdot a\right)} + b \cdot b}\right) \cdot \frac{-1}{3 \cdot a}
\] |
associate-*r* [=>]47.6 | \[ \left(b - \sqrt{\color{blue}{\left(c \cdot \left(-3\right)\right) \cdot a} + b \cdot b}\right) \cdot \frac{-1}{3 \cdot a}
\] |
*-commutative [=>]47.6 | \[ \left(b - \sqrt{\color{blue}{a \cdot \left(c \cdot \left(-3\right)\right)} + b \cdot b}\right) \cdot \frac{-1}{3 \cdot a}
\] |
fma-def [=>]47.6 | \[ \left(b - \sqrt{\color{blue}{\mathsf{fma}\left(a, c \cdot \left(-3\right), b \cdot b\right)}}\right) \cdot \frac{-1}{3 \cdot a}
\] |
metadata-eval [=>]47.6 | \[ \left(b - \sqrt{\mathsf{fma}\left(a, c \cdot \color{blue}{-3}, b \cdot b\right)}\right) \cdot \frac{-1}{3 \cdot a}
\] |
associate-/r* [=>]47.5 | \[ \left(b - \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}\right) \cdot \color{blue}{\frac{\frac{-1}{3}}{a}}
\] |
metadata-eval [=>]47.5 | \[ \left(b - \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}\right) \cdot \frac{\color{blue}{-0.3333333333333333}}{a}
\] |
Taylor expanded in b around -inf 4.1
Simplified4.1
[Start]4.1 | \[ -0.6666666666666666 \cdot \frac{b}{a}
\] |
|---|---|
*-commutative [=>]4.1 | \[ \color{blue}{\frac{b}{a} \cdot -0.6666666666666666}
\] |
Taylor expanded in b around 0 4.1
Simplified3.9
[Start]4.1 | \[ -0.6666666666666666 \cdot \frac{b}{a}
\] |
|---|---|
*-commutative [<=]4.1 | \[ \color{blue}{\frac{b}{a} \cdot -0.6666666666666666}
\] |
/-rgt-identity [<=]4.1 | \[ \color{blue}{\frac{\frac{b}{a} \cdot -0.6666666666666666}{1}}
\] |
associate-/l* [=>]4.0 | \[ \color{blue}{\frac{\frac{b}{a}}{\frac{1}{-0.6666666666666666}}}
\] |
associate-/r* [<=]3.9 | \[ \color{blue}{\frac{b}{a \cdot \frac{1}{-0.6666666666666666}}}
\] |
metadata-eval [=>]3.9 | \[ \frac{b}{a \cdot \color{blue}{-1.5}}
\] |
if -3.1000000000000003e95 < b < 2.9000000000000002e-131Initial program 11.4
Applied egg-rr11.5
Simplified11.4
[Start]11.5 | \[ \frac{b - \sqrt{\mathsf{fma}\left(b, b, -3 \cdot \left(a \cdot c\right)\right)}}{-3} \cdot \frac{1}{a}
\] |
|---|---|
*-commutative [<=]11.5 | \[ \color{blue}{\frac{1}{a} \cdot \frac{b - \sqrt{\mathsf{fma}\left(b, b, -3 \cdot \left(a \cdot c\right)\right)}}{-3}}
\] |
associate-*l/ [=>]11.4 | \[ \color{blue}{\frac{1 \cdot \frac{b - \sqrt{\mathsf{fma}\left(b, b, -3 \cdot \left(a \cdot c\right)\right)}}{-3}}{a}}
\] |
*-lft-identity [=>]11.4 | \[ \frac{\color{blue}{\frac{b - \sqrt{\mathsf{fma}\left(b, b, -3 \cdot \left(a \cdot c\right)\right)}}{-3}}}{a}
\] |
fma-def [<=]11.4 | \[ \frac{\frac{b - \sqrt{\color{blue}{b \cdot b + -3 \cdot \left(a \cdot c\right)}}}{-3}}{a}
\] |
+-commutative [=>]11.4 | \[ \frac{\frac{b - \sqrt{\color{blue}{-3 \cdot \left(a \cdot c\right) + b \cdot b}}}{-3}}{a}
\] |
fma-def [=>]11.4 | \[ \frac{\frac{b - \sqrt{\color{blue}{\mathsf{fma}\left(-3, a \cdot c, b \cdot b\right)}}}{-3}}{a}
\] |
*-commutative [=>]11.4 | \[ \frac{\frac{b - \sqrt{\mathsf{fma}\left(-3, \color{blue}{c \cdot a}, b \cdot b\right)}}{-3}}{a}
\] |
Applied egg-rr11.4
if 2.9000000000000002e-131 < b Initial program 50.6
Simplified50.7
[Start]50.6 | \[ \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\] |
|---|---|
*-lft-identity [<=]50.6 | \[ \color{blue}{1 \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}}
\] |
metadata-eval [<=]50.6 | \[ \color{blue}{\frac{-1}{-1}} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\] |
times-frac [<=]50.6 | \[ \color{blue}{\frac{-1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{-1 \cdot \left(3 \cdot a\right)}}
\] |
neg-mul-1 [<=]50.6 | \[ \frac{-1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{\color{blue}{-3 \cdot a}}
\] |
distribute-rgt-neg-in [=>]50.6 | \[ \frac{-1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{\color{blue}{3 \cdot \left(-a\right)}}
\] |
times-frac [=>]50.7 | \[ \color{blue}{\frac{-1}{3} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{-a}}
\] |
*-commutative [=>]50.7 | \[ \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{-a} \cdot \frac{-1}{3}}
\] |
neg-mul-1 [=>]50.7 | \[ \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\color{blue}{-1 \cdot a}} \cdot \frac{-1}{3}
\] |
neg-sub0 [=>]50.7 | \[ \frac{\color{blue}{\left(0 - b\right)} + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{-1 \cdot a} \cdot \frac{-1}{3}
\] |
associate-+l- [=>]50.7 | \[ \frac{\color{blue}{0 - \left(b - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}}{-1 \cdot a} \cdot \frac{-1}{3}
\] |
sub0-neg [=>]50.7 | \[ \frac{\color{blue}{-\left(b - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}}{-1 \cdot a} \cdot \frac{-1}{3}
\] |
neg-mul-1 [=>]50.7 | \[ \frac{\color{blue}{-1 \cdot \left(b - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}}{-1 \cdot a} \cdot \frac{-1}{3}
\] |
times-frac [=>]50.7 | \[ \color{blue}{\left(\frac{-1}{-1} \cdot \frac{b - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{a}\right)} \cdot \frac{-1}{3}
\] |
metadata-eval [=>]50.7 | \[ \left(\color{blue}{1} \cdot \frac{b - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{a}\right) \cdot \frac{-1}{3}
\] |
*-lft-identity [=>]50.7 | \[ \color{blue}{\frac{b - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{a}} \cdot \frac{-1}{3}
\] |
cancel-sign-sub-inv [=>]50.7 | \[ \frac{b - \sqrt{\color{blue}{b \cdot b + \left(-3 \cdot a\right) \cdot c}}}{a} \cdot \frac{-1}{3}
\] |
+-commutative [=>]50.7 | \[ \frac{b - \sqrt{\color{blue}{\left(-3 \cdot a\right) \cdot c + b \cdot b}}}{a} \cdot \frac{-1}{3}
\] |
*-commutative [=>]50.7 | \[ \frac{b - \sqrt{\color{blue}{c \cdot \left(-3 \cdot a\right)} + b \cdot b}}{a} \cdot \frac{-1}{3}
\] |
distribute-lft-neg-in [=>]50.7 | \[ \frac{b - \sqrt{c \cdot \color{blue}{\left(\left(-3\right) \cdot a\right)} + b \cdot b}}{a} \cdot \frac{-1}{3}
\] |
associate-*r* [=>]50.7 | \[ \frac{b - \sqrt{\color{blue}{\left(c \cdot \left(-3\right)\right) \cdot a} + b \cdot b}}{a} \cdot \frac{-1}{3}
\] |
*-commutative [=>]50.7 | \[ \frac{b - \sqrt{\color{blue}{a \cdot \left(c \cdot \left(-3\right)\right)} + b \cdot b}}{a} \cdot \frac{-1}{3}
\] |
fma-def [=>]50.7 | \[ \frac{b - \sqrt{\color{blue}{\mathsf{fma}\left(a, c \cdot \left(-3\right), b \cdot b\right)}}}{a} \cdot \frac{-1}{3}
\] |
metadata-eval [=>]50.7 | \[ \frac{b - \sqrt{\mathsf{fma}\left(a, c \cdot \color{blue}{-3}, b \cdot b\right)}}{a} \cdot \frac{-1}{3}
\] |
metadata-eval [=>]50.7 | \[ \frac{b - \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}}{a} \cdot \color{blue}{-0.3333333333333333}
\] |
Taylor expanded in b around inf 12.6
Simplified12.7
[Start]12.6 | \[ \left(1.5 \cdot \frac{c}{b}\right) \cdot -0.3333333333333333
\] |
|---|---|
associate-*r/ [=>]12.7 | \[ \color{blue}{\frac{1.5 \cdot c}{b}} \cdot -0.3333333333333333
\] |
Taylor expanded in c around 0 12.4
Simplified12.5
[Start]12.4 | \[ -0.5 \cdot \frac{c}{b}
\] |
|---|---|
*-commutative [=>]12.4 | \[ \color{blue}{\frac{c}{b} \cdot -0.5}
\] |
associate-/r/ [<=]12.5 | \[ \color{blue}{\frac{c}{\frac{b}{-0.5}}}
\] |
Final simplification10.7
| Alternative 1 | |
|---|---|
| Error | 10.7 |
| Cost | 7624 |
| Alternative 2 | |
|---|---|
| Error | 14.3 |
| Cost | 7368 |
| Alternative 3 | |
|---|---|
| Error | 22.7 |
| Cost | 580 |
| Alternative 4 | |
|---|---|
| Error | 36.7 |
| Cost | 452 |
| Alternative 5 | |
|---|---|
| Error | 22.7 |
| Cost | 452 |
| Alternative 6 | |
|---|---|
| Error | 22.7 |
| Cost | 452 |
| Alternative 7 | |
|---|---|
| Error | 22.7 |
| Cost | 452 |
| Alternative 8 | |
|---|---|
| Error | 22.7 |
| Cost | 452 |
| Alternative 9 | |
|---|---|
| Error | 22.7 |
| Cost | 452 |
| Alternative 10 | |
|---|---|
| Error | 39.9 |
| Cost | 320 |
herbie shell --seed 2023011
(FPCore (a b c)
:name "Cubic critical"
:precision binary64
(/ (+ (- b) (sqrt (- (* b b) (* (* 3.0 a) c)))) (* 3.0 a)))