?

Average Error: 29.0 → 0.7
Time: 24.7s
Precision: binary64
Cost: 34880

?

\[\left(\left(1.0536712127723509 \cdot 10^{-8} < a \land a < 94906265.62425156\right) \land \left(1.0536712127723509 \cdot 10^{-8} < b \land b < 94906265.62425156\right)\right) \land \left(1.0536712127723509 \cdot 10^{-8} < c \land c < 94906265.62425156\right)\]
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a} \]
\[\begin{array}{l} t_0 := \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)\\ \frac{\frac{\mathsf{fma}\left(6, c \cdot \left(a \cdot \left(b \cdot b\right)\right), c \cdot \left(c \cdot \left(a \cdot \left(a \cdot -9\right)\right)\right)\right)}{\left(a \cdot -3\right) \cdot \sqrt{t_0} + b \cdot \left(a \cdot -3\right)}}{\mathsf{fma}\left(b, b, t_0\right)} \end{array} \]
(FPCore (a b c)
 :precision binary64
 (/ (+ (- b) (sqrt (- (* b b) (* (* 3.0 a) c)))) (* 3.0 a)))
(FPCore (a b c)
 :precision binary64
 (let* ((t_0 (fma a (* c -3.0) (* b b))))
   (/
    (/
     (fma 6.0 (* c (* a (* b b))) (* c (* c (* a (* a -9.0)))))
     (+ (* (* a -3.0) (sqrt t_0)) (* b (* a -3.0))))
    (fma b b t_0))))
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 t_0 = fma(a, (c * -3.0), (b * b));
	return (fma(6.0, (c * (a * (b * b))), (c * (c * (a * (a * -9.0))))) / (((a * -3.0) * sqrt(t_0)) + (b * (a * -3.0)))) / fma(b, b, t_0);
}
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)
	t_0 = fma(a, Float64(c * -3.0), Float64(b * b))
	return Float64(Float64(fma(6.0, Float64(c * Float64(a * Float64(b * b))), Float64(c * Float64(c * Float64(a * Float64(a * -9.0))))) / Float64(Float64(Float64(a * -3.0) * sqrt(t_0)) + Float64(b * Float64(a * -3.0)))) / fma(b, b, t_0))
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_] := Block[{t$95$0 = N[(a * N[(c * -3.0), $MachinePrecision] + N[(b * b), $MachinePrecision]), $MachinePrecision]}, N[(N[(N[(6.0 * N[(c * N[(a * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(c * N[(a * N[(a * -9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(a * -3.0), $MachinePrecision] * N[Sqrt[t$95$0], $MachinePrecision]), $MachinePrecision] + N[(b * N[(a * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(b * b + t$95$0), $MachinePrecision]), $MachinePrecision]]
\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\begin{array}{l}
t_0 := \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)\\
\frac{\frac{\mathsf{fma}\left(6, c \cdot \left(a \cdot \left(b \cdot b\right)\right), c \cdot \left(c \cdot \left(a \cdot \left(a \cdot -9\right)\right)\right)\right)}{\left(a \cdot -3\right) \cdot \sqrt{t_0} + b \cdot \left(a \cdot -3\right)}}{\mathsf{fma}\left(b, b, t_0\right)}
\end{array}

Error?

Derivation?

  1. Initial program 29.0

    \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a} \]
  2. Simplified29.0

    \[\leadsto \color{blue}{\left(b - \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}\right) \cdot \frac{-0.3333333333333333}{a}} \]
    Proof

    [Start]29.0

    \[ \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a} \]

    remove-double-neg [<=]29.0

    \[ \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 [<=]29.0

    \[ \frac{\color{blue}{\left(-b\right) - \left(-\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}}{3 \cdot a} \]

    div-sub [=>]29.4

    \[ \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 [=>]29.4

    \[ \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/ [<=]29.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 [=>]29.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 [=>]28.9

    \[ \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 [<=]28.9

    \[ \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 [<=]28.9

    \[ \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* [<=]28.9

    \[ \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 [<=]28.9

    \[ \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 [<=]28.9

    \[ \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 [<=]29.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 [=>]29.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}} \]
  3. Applied egg-rr28.1

    \[\leadsto \color{blue}{\frac{\left({b}^{4} - {\left(\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)\right)}^{2}\right) \cdot \frac{1}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}}}{b \cdot b + \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}} \cdot \frac{-0.3333333333333333}{a} \]
  4. Taylor expanded in b around 0 0.8

    \[\leadsto \frac{\color{blue}{\left(6 \cdot \left(c \cdot \left(a \cdot {b}^{2}\right)\right) + -9 \cdot \left({c}^{2} \cdot {a}^{2}\right)\right)} \cdot \frac{1}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}}}{b \cdot b + \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)} \cdot \frac{-0.3333333333333333}{a} \]
  5. Simplified0.8

    \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(6, c \cdot \left(a \cdot \left(b \cdot b\right)\right), \left(c \cdot c\right) \cdot \left(\left(a \cdot a\right) \cdot -9\right)\right)} \cdot \frac{1}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}}}{b \cdot b + \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)} \cdot \frac{-0.3333333333333333}{a} \]
    Proof

    [Start]0.8

    \[ \frac{\left(6 \cdot \left(c \cdot \left(a \cdot {b}^{2}\right)\right) + -9 \cdot \left({c}^{2} \cdot {a}^{2}\right)\right) \cdot \frac{1}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}}}{b \cdot b + \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)} \cdot \frac{-0.3333333333333333}{a} \]

    fma-def [=>]0.8

    \[ \frac{\color{blue}{\mathsf{fma}\left(6, c \cdot \left(a \cdot {b}^{2}\right), -9 \cdot \left({c}^{2} \cdot {a}^{2}\right)\right)} \cdot \frac{1}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}}}{b \cdot b + \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)} \cdot \frac{-0.3333333333333333}{a} \]

    unpow2 [=>]0.8

    \[ \frac{\mathsf{fma}\left(6, c \cdot \left(a \cdot \color{blue}{\left(b \cdot b\right)}\right), -9 \cdot \left({c}^{2} \cdot {a}^{2}\right)\right) \cdot \frac{1}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}}}{b \cdot b + \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)} \cdot \frac{-0.3333333333333333}{a} \]

    *-commutative [=>]0.8

    \[ \frac{\mathsf{fma}\left(6, c \cdot \left(a \cdot \left(b \cdot b\right)\right), \color{blue}{\left({c}^{2} \cdot {a}^{2}\right) \cdot -9}\right) \cdot \frac{1}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}}}{b \cdot b + \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)} \cdot \frac{-0.3333333333333333}{a} \]

    associate-*l* [=>]0.8

    \[ \frac{\mathsf{fma}\left(6, c \cdot \left(a \cdot \left(b \cdot b\right)\right), \color{blue}{{c}^{2} \cdot \left({a}^{2} \cdot -9\right)}\right) \cdot \frac{1}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}}}{b \cdot b + \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)} \cdot \frac{-0.3333333333333333}{a} \]

    unpow2 [=>]0.8

    \[ \frac{\mathsf{fma}\left(6, c \cdot \left(a \cdot \left(b \cdot b\right)\right), \color{blue}{\left(c \cdot c\right)} \cdot \left({a}^{2} \cdot -9\right)\right) \cdot \frac{1}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}}}{b \cdot b + \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)} \cdot \frac{-0.3333333333333333}{a} \]

    unpow2 [=>]0.8

    \[ \frac{\mathsf{fma}\left(6, c \cdot \left(a \cdot \left(b \cdot b\right)\right), \left(c \cdot c\right) \cdot \left(\color{blue}{\left(a \cdot a\right)} \cdot -9\right)\right) \cdot \frac{1}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}}}{b \cdot b + \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)} \cdot \frac{-0.3333333333333333}{a} \]
  6. Applied egg-rr0.7

    \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(6, c \cdot \left(a \cdot \left(b \cdot b\right)\right), c \cdot \left(c \cdot \left(a \cdot \left(a \cdot -9\right)\right)\right)\right)}{\left(b + \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}\right) \cdot \left(a \cdot -3\right)}}{\mathsf{fma}\left(b, b, \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)\right)}} \]
  7. Applied egg-rr0.7

    \[\leadsto \frac{\frac{\mathsf{fma}\left(6, c \cdot \left(a \cdot \left(b \cdot b\right)\right), c \cdot \left(c \cdot \left(a \cdot \left(a \cdot -9\right)\right)\right)\right)}{\color{blue}{\left(a \cdot -3\right) \cdot \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)} + \left(a \cdot -3\right) \cdot b}}}{\mathsf{fma}\left(b, b, \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)\right)} \]
  8. Final simplification0.7

    \[\leadsto \frac{\frac{\mathsf{fma}\left(6, c \cdot \left(a \cdot \left(b \cdot b\right)\right), c \cdot \left(c \cdot \left(a \cdot \left(a \cdot -9\right)\right)\right)\right)}{\left(a \cdot -3\right) \cdot \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)} + b \cdot \left(a \cdot -3\right)}}{\mathsf{fma}\left(b, b, \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)\right)} \]

Alternatives

Alternative 1
Error0.7
Cost34624
\[\begin{array}{l} t_0 := \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)\\ \frac{\frac{\mathsf{fma}\left(6, c \cdot \left(a \cdot \left(b \cdot b\right)\right), c \cdot \left(c \cdot \left(a \cdot \left(a \cdot -9\right)\right)\right)\right)}{a \cdot \left(-3 \cdot \left(b + \sqrt{t_0}\right)\right)}}{\mathsf{fma}\left(b, b, t_0\right)} \end{array} \]
Alternative 2
Error0.7
Cost34624
\[\begin{array}{l} t_0 := \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)\\ \frac{\frac{\mathsf{fma}\left(6, c \cdot \left(a \cdot \left(b \cdot b\right)\right), c \cdot \left(c \cdot \left(a \cdot \left(a \cdot -9\right)\right)\right)\right)}{\left(a \cdot -3\right) \cdot \left(b + \sqrt{t_0}\right)}}{\mathsf{fma}\left(b, b, t_0\right)} \end{array} \]
Alternative 3
Error6.3
Cost28356
\[\begin{array}{l} t_0 := \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)\\ \mathbf{if}\;\frac{\sqrt{b \cdot b + c \cdot \left(a \cdot -3\right)} - b}{a \cdot 3} \leq -50:\\ \;\;\;\;\frac{b \cdot b - t_0}{\frac{a \cdot -3}{\frac{1}{b + \sqrt{t_0}}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{0.75 \cdot \left(c \cdot \left(c \cdot a\right)\right)}{b} - c \cdot b}{\mathsf{fma}\left(b, b, t_0\right)}\\ \end{array} \]
Alternative 4
Error0.7
Cost28352
\[\begin{array}{l} t_0 := \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)\\ \frac{\frac{\mathsf{fma}\left(6, c \cdot \left(a \cdot \left(b \cdot b\right)\right), c \cdot \left(\left(a \cdot a\right) \cdot \left(c \cdot -9\right)\right)\right)}{b + \sqrt{t_0}}}{b \cdot b + t_0} \cdot \frac{-0.3333333333333333}{a} \end{array} \]
Alternative 5
Error6.3
Cost28228
\[\begin{array}{l} t_0 := \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)\\ \mathbf{if}\;\frac{\sqrt{b \cdot b + c \cdot \left(a \cdot -3\right)} - b}{a \cdot 3} \leq -50:\\ \;\;\;\;-0.3333333333333333 \cdot \frac{\frac{b \cdot b - t_0}{a}}{b + \sqrt{t_0}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{0.75 \cdot \left(c \cdot \left(c \cdot a\right)\right)}{b} - c \cdot b}{\mathsf{fma}\left(b, b, t_0\right)}\\ \end{array} \]
Alternative 6
Error6.3
Cost28228
\[\begin{array}{l} t_0 := \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)\\ \mathbf{if}\;\frac{\sqrt{b \cdot b + c \cdot \left(a \cdot -3\right)} - b}{a \cdot 3} \leq -50:\\ \;\;\;\;\left(b \cdot b - t_0\right) \cdot \frac{\frac{-0.3333333333333333}{b + \sqrt{t_0}}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{0.75 \cdot \left(c \cdot \left(c \cdot a\right)\right)}{b} - c \cdot b}{\mathsf{fma}\left(b, b, t_0\right)}\\ \end{array} \]
Alternative 7
Error6.3
Cost28228
\[\begin{array}{l} t_0 := \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)\\ \mathbf{if}\;\frac{\sqrt{b \cdot b + c \cdot \left(a \cdot -3\right)} - b}{a \cdot 3} \leq -50:\\ \;\;\;\;\frac{b \cdot b - t_0}{a} \cdot \frac{-0.3333333333333333}{b + \sqrt{t_0}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{0.75 \cdot \left(c \cdot \left(c \cdot a\right)\right)}{b} - c \cdot b}{\mathsf{fma}\left(b, b, t_0\right)}\\ \end{array} \]
Alternative 8
Error6.3
Cost28228
\[\begin{array}{l} t_0 := \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)\\ \mathbf{if}\;\frac{\sqrt{b \cdot b + c \cdot \left(a \cdot -3\right)} - b}{a \cdot 3} \leq -50:\\ \;\;\;\;\frac{-0.3333333333333333}{a} \cdot \frac{b \cdot b - t_0}{b + \sqrt{t_0}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{0.75 \cdot \left(c \cdot \left(c \cdot a\right)\right)}{b} - c \cdot b}{\mathsf{fma}\left(b, b, t_0\right)}\\ \end{array} \]
Alternative 9
Error6.4
Cost21700
\[\begin{array}{l} t_0 := \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)\\ \mathbf{if}\;\frac{\sqrt{b \cdot b + c \cdot \left(a \cdot -3\right)} - b}{a \cdot 3} \leq -50:\\ \;\;\;\;\frac{1}{\frac{a \cdot -3}{b - \sqrt{t_0}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{0.75 \cdot \left(c \cdot \left(c \cdot a\right)\right)}{b} - c \cdot b}{\mathsf{fma}\left(b, b, t_0\right)}\\ \end{array} \]
Alternative 10
Error6.8
Cost21188
\[\begin{array}{l} \mathbf{if}\;\frac{\sqrt{b \cdot b + c \cdot \left(a \cdot -3\right)} - b}{a \cdot 3} \leq -50:\\ \;\;\;\;\frac{1}{\frac{a \cdot -3}{b - \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}}}\\ \mathbf{else}:\\ \;\;\;\;-0.3333333333333333 \cdot \frac{\frac{1}{\left(\frac{\left(c \cdot a\right) \cdot 0.375 - 0.75 \cdot \left(c \cdot a\right)}{{b}^{3}} + 0.6666666666666666 \cdot \frac{b}{c \cdot a}\right) + \frac{1}{b} \cdot -0.5}}{a}\\ \end{array} \]
Alternative 11
Error6.8
Cost21060
\[\begin{array}{l} \mathbf{if}\;\frac{\sqrt{b \cdot b + c \cdot \left(a \cdot -3\right)} - b}{a \cdot 3} \leq -50:\\ \;\;\;\;\frac{\frac{b - \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}}{a}}{-3}\\ \mathbf{else}:\\ \;\;\;\;-0.3333333333333333 \cdot \frac{\frac{1}{\left(\frac{\left(c \cdot a\right) \cdot 0.375 - 0.75 \cdot \left(c \cdot a\right)}{{b}^{3}} + 0.6666666666666666 \cdot \frac{b}{c \cdot a}\right) + \frac{1}{b} \cdot -0.5}}{a}\\ \end{array} \]
Alternative 12
Error6.8
Cost16004
\[\begin{array}{l} t_0 := \frac{\sqrt{b \cdot b + c \cdot \left(a \cdot -3\right)} - b}{a \cdot 3}\\ \mathbf{if}\;t_0 \leq -50:\\ \;\;\;\;t_0\\ \mathbf{else}:\\ \;\;\;\;-0.3333333333333333 \cdot \frac{\frac{1}{\left(\frac{\left(c \cdot a\right) \cdot 0.375 - 0.75 \cdot \left(c \cdot a\right)}{{b}^{3}} + 0.6666666666666666 \cdot \frac{b}{c \cdot a}\right) + \frac{1}{b} \cdot -0.5}}{a}\\ \end{array} \]
Alternative 13
Error6.8
Cost15620
\[\begin{array}{l} t_0 := \frac{\sqrt{b \cdot b + c \cdot \left(a \cdot -3\right)} - b}{a \cdot 3}\\ \mathbf{if}\;t_0 \leq -50:\\ \;\;\;\;t_0\\ \mathbf{else}:\\ \;\;\;\;-0.3333333333333333 \cdot \frac{\frac{1}{\mathsf{fma}\left(-a, \frac{c}{b \cdot b} \cdot \frac{0.375}{b}, \frac{-0.5}{b} + \frac{0.6666666666666666}{c} \cdot \frac{b}{a}\right)}}{a}\\ \end{array} \]
Alternative 14
Error9.4
Cost14788
\[\begin{array}{l} \mathbf{if}\;\frac{\sqrt{b \cdot b + c \cdot \left(a \cdot -3\right)} - b}{a \cdot 3} \leq -0.3:\\ \;\;\;\;\frac{\frac{b - \sqrt{b \cdot b + a \cdot \left(c \cdot -3\right)}}{a}}{-3}\\ \mathbf{else}:\\ \;\;\;\;-0.3333333333333333 \cdot \frac{\frac{1}{\frac{-0.5}{b} + \frac{b \cdot 0.6666666666666666}{c \cdot a}}}{a}\\ \end{array} \]
Alternative 15
Error12.0
Cost7492
\[\begin{array}{l} \mathbf{if}\;a \leq 850:\\ \;\;\;\;-0.3333333333333333 \cdot \frac{\frac{1}{\frac{-0.5}{b} + \frac{b \cdot 0.6666666666666666}{c \cdot a}}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{-0.3333333333333333}{a} \cdot \left(b - \sqrt{b \cdot b + a \cdot \left(c \cdot -3\right)}\right)\\ \end{array} \]
Alternative 16
Error12.0
Cost7492
\[\begin{array}{l} \mathbf{if}\;a \leq 850:\\ \;\;\;\;-0.3333333333333333 \cdot \frac{\frac{1}{\frac{-0.5}{b} + \frac{b \cdot 0.6666666666666666}{c \cdot a}}}{a}\\ \mathbf{else}:\\ \;\;\;\;-0.3333333333333333 \cdot \frac{b - \sqrt{b \cdot b + a \cdot \left(c \cdot -3\right)}}{a}\\ \end{array} \]
Alternative 17
Error11.4
Cost1088
\[-0.3333333333333333 \cdot \frac{\frac{1}{\frac{-0.5}{b} + \frac{b \cdot 0.6666666666666666}{c \cdot a}}}{a} \]
Alternative 18
Error22.5
Cost320
\[c \cdot \frac{-0.5}{b} \]
Alternative 19
Error22.5
Cost320
\[\frac{c \cdot -0.5}{b} \]

Error

Reproduce?

herbie shell --seed 2023025 
(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)))