?

Average Accuracy: 54.8% → 92.1%
Time: 28.8s
Precision: binary64
Cost: 47428

?

\[\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)\\ \mathbf{if}\;b \leq 0.97:\\ \;\;\;\;\frac{\frac{t_0 - b \cdot b}{b + \sqrt{t_0}}}{a \cdot 3}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.5, \frac{c}{b}, \mathsf{fma}\left(-0.375, a \cdot \left(c \cdot \frac{c}{{b}^{3}}\right), \mathsf{fma}\left(-0.5625, c \cdot \frac{a \cdot \left(c \cdot \left(a \cdot c\right)\right)}{{b}^{5}}, \frac{-0.16666666666666666}{a} \cdot \frac{{\left(a \cdot c\right)}^{4}}{\frac{{b}^{7}}{6.328125}}\right)\right)\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))))
   (if (<= b 0.97)
     (/ (/ (- t_0 (* b b)) (+ b (sqrt t_0))) (* a 3.0))
     (fma
      -0.5
      (/ c b)
      (fma
       -0.375
       (* a (* c (/ c (pow b 3.0))))
       (fma
        -0.5625
        (* c (/ (* a (* c (* a c))) (pow b 5.0)))
        (*
         (/ -0.16666666666666666 a)
         (/ (pow (* a c) 4.0) (/ (pow b 7.0) 6.328125)))))))))
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));
	double tmp;
	if (b <= 0.97) {
		tmp = ((t_0 - (b * b)) / (b + sqrt(t_0))) / (a * 3.0);
	} else {
		tmp = fma(-0.5, (c / b), fma(-0.375, (a * (c * (c / pow(b, 3.0)))), fma(-0.5625, (c * ((a * (c * (a * c))) / pow(b, 5.0))), ((-0.16666666666666666 / a) * (pow((a * c), 4.0) / (pow(b, 7.0) / 6.328125))))));
	}
	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)
	t_0 = fma(a, Float64(c * -3.0), Float64(b * b))
	tmp = 0.0
	if (b <= 0.97)
		tmp = Float64(Float64(Float64(t_0 - Float64(b * b)) / Float64(b + sqrt(t_0))) / Float64(a * 3.0));
	else
		tmp = fma(-0.5, Float64(c / b), fma(-0.375, Float64(a * Float64(c * Float64(c / (b ^ 3.0)))), fma(-0.5625, Float64(c * Float64(Float64(a * Float64(c * Float64(a * c))) / (b ^ 5.0))), Float64(Float64(-0.16666666666666666 / a) * Float64((Float64(a * c) ^ 4.0) / Float64((b ^ 7.0) / 6.328125))))));
	end
	return 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_] := Block[{t$95$0 = N[(a * N[(c * -3.0), $MachinePrecision] + N[(b * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, 0.97], N[(N[(N[(t$95$0 - N[(b * b), $MachinePrecision]), $MachinePrecision] / N[(b + N[Sqrt[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a * 3.0), $MachinePrecision]), $MachinePrecision], N[(-0.5 * N[(c / b), $MachinePrecision] + N[(-0.375 * N[(a * N[(c * N[(c / N[Power[b, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-0.5625 * N[(c * N[(N[(a * N[(c * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[b, 5.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(-0.16666666666666666 / a), $MachinePrecision] * N[(N[Power[N[(a * c), $MachinePrecision], 4.0], $MachinePrecision] / N[(N[Power[b, 7.0], $MachinePrecision] / 6.328125), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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)\\
\mathbf{if}\;b \leq 0.97:\\
\;\;\;\;\frac{\frac{t_0 - b \cdot b}{b + \sqrt{t_0}}}{a \cdot 3}\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-0.5, \frac{c}{b}, \mathsf{fma}\left(-0.375, a \cdot \left(c \cdot \frac{c}{{b}^{3}}\right), \mathsf{fma}\left(-0.5625, c \cdot \frac{a \cdot \left(c \cdot \left(a \cdot c\right)\right)}{{b}^{5}}, \frac{-0.16666666666666666}{a} \cdot \frac{{\left(a \cdot c\right)}^{4}}{\frac{{b}^{7}}{6.328125}}\right)\right)\right)\\


\end{array}

Error?

Bogosity?

Bogosity

Derivation?

  1. Split input into 2 regimes
  2. if b < 0.96999999999999997

    1. Initial program 85.3%

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

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

      [Start]85.3

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

      neg-sub0 [=>]85.3

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

      associate-+l- [=>]85.3

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

      sub0-neg [=>]85.3

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

      neg-mul-1 [=>]85.3

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

      associate-*r/ [<=]85.3

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

      metadata-eval [<=]85.3

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

      metadata-eval [<=]85.3

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

      times-frac [<=]85.3

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

      *-commutative [=>]85.3

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

      times-frac [=>]85.3

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

      associate-*l/ [=>]85.3

      \[ \color{blue}{\frac{\left(--1\right) \cdot \frac{b - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{-1}}{3 \cdot a}} \]
    3. Applied egg-rr85.6%

      \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\frac{{b}^{4} - \left(\left(a \cdot c\right) \cdot -3\right) \cdot \left(\left(a \cdot c\right) \cdot -3\right)}{b \cdot b - \left(a \cdot c\right) \cdot -3}}}}{3 \cdot a} \]
      Proof

      [Start]85.3

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

      sub-neg [=>]85.3

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

      flip-+ [=>]85.1

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

      pow2 [=>]85.1

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

      pow2 [=>]85.1

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

      pow-prod-up [=>]85.6

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

      metadata-eval [=>]85.6

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

      *-commutative [=>]85.6

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

      distribute-rgt-neg-in [=>]85.6

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

      metadata-eval [=>]85.6

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

      *-commutative [=>]85.6

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

      distribute-rgt-neg-in [=>]85.6

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

      metadata-eval [=>]85.6

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

      *-commutative [=>]85.6

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

      distribute-rgt-neg-in [=>]85.6

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

      metadata-eval [=>]85.6

      \[ \frac{\left(-b\right) + \sqrt{\frac{{b}^{4} - \left(\left(a \cdot c\right) \cdot -3\right) \cdot \left(\left(a \cdot c\right) \cdot -3\right)}{b \cdot b - \left(a \cdot c\right) \cdot \color{blue}{-3}}}}{3 \cdot a} \]
    4. Applied egg-rr86.0%

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

      [Start]85.6

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

      +-commutative [=>]85.6

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

      flip-+ [=>]84.7

      \[ \frac{\color{blue}{\frac{\sqrt{\frac{{b}^{4} - \left(\left(a \cdot c\right) \cdot -3\right) \cdot \left(\left(a \cdot c\right) \cdot -3\right)}{b \cdot b - \left(a \cdot c\right) \cdot -3}} \cdot \sqrt{\frac{{b}^{4} - \left(\left(a \cdot c\right) \cdot -3\right) \cdot \left(\left(a \cdot c\right) \cdot -3\right)}{b \cdot b - \left(a \cdot c\right) \cdot -3}} - \left(-b\right) \cdot \left(-b\right)}{\sqrt{\frac{{b}^{4} - \left(\left(a \cdot c\right) \cdot -3\right) \cdot \left(\left(a \cdot c\right) \cdot -3\right)}{b \cdot b - \left(a \cdot c\right) \cdot -3}} - \left(-b\right)}}}{3 \cdot a} \]
    5. Simplified86.4%

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

      [Start]86.0

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

      fma-def [<=]86.4

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

      +-commutative [<=]86.4

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

      fma-def [=>]86.4

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

      fma-def [<=]86.4

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

      +-commutative [<=]86.4

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

      fma-def [=>]86.4

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

    if 0.96999999999999997 < b

    1. Initial program 51.2%

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

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

      [Start]51.2

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

      neg-sub0 [=>]51.2

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

      associate-+l- [=>]51.2

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

      sub0-neg [=>]51.2

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

      neg-mul-1 [=>]51.2

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

      associate-*r/ [<=]51.2

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

      metadata-eval [<=]51.2

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

      metadata-eval [<=]51.2

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

      times-frac [<=]51.2

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

      *-commutative [=>]51.2

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

      times-frac [=>]51.3

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

      associate-*l/ [=>]51.2

      \[ \color{blue}{\frac{\left(--1\right) \cdot \frac{b - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{-1}}{3 \cdot a}} \]
    3. Taylor expanded in b around inf 92.4%

      \[\leadsto \frac{\color{blue}{-0.5 \cdot \frac{{\left(-1.125 \cdot \left({c}^{2} \cdot {a}^{2}\right)\right)}^{2} + 5.0625 \cdot \left({c}^{4} \cdot {a}^{4}\right)}{{b}^{7}} + \left(-1.125 \cdot \frac{{c}^{2} \cdot {a}^{2}}{{b}^{3}} + \left(-1.5 \cdot \frac{c \cdot a}{b} + -1.6875 \cdot \frac{{c}^{3} \cdot {a}^{3}}{{b}^{5}}\right)\right)}}{3 \cdot a} \]
    4. Simplified92.4%

      \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(-0.5, \frac{{\left(-1.125 \cdot \left(\left(c \cdot c\right) \cdot \left(a \cdot a\right)\right)\right)}^{2} + 5.0625 \cdot \left({c}^{4} \cdot {a}^{4}\right)}{{b}^{7}}, \mathsf{fma}\left(-1.125, \frac{c \cdot c}{\frac{{b}^{3}}{a \cdot a}}, \mathsf{fma}\left(-1.5, \frac{c}{\frac{b}{a}}, -1.6875 \cdot \frac{{\left(c \cdot a\right)}^{3}}{{b}^{5}}\right)\right)\right)}}{3 \cdot a} \]
      Proof

      [Start]92.4

      \[ \frac{-0.5 \cdot \frac{{\left(-1.125 \cdot \left({c}^{2} \cdot {a}^{2}\right)\right)}^{2} + 5.0625 \cdot \left({c}^{4} \cdot {a}^{4}\right)}{{b}^{7}} + \left(-1.125 \cdot \frac{{c}^{2} \cdot {a}^{2}}{{b}^{3}} + \left(-1.5 \cdot \frac{c \cdot a}{b} + -1.6875 \cdot \frac{{c}^{3} \cdot {a}^{3}}{{b}^{5}}\right)\right)}{3 \cdot a} \]

      fma-def [=>]92.4

      \[ \frac{\color{blue}{\mathsf{fma}\left(-0.5, \frac{{\left(-1.125 \cdot \left({c}^{2} \cdot {a}^{2}\right)\right)}^{2} + 5.0625 \cdot \left({c}^{4} \cdot {a}^{4}\right)}{{b}^{7}}, -1.125 \cdot \frac{{c}^{2} \cdot {a}^{2}}{{b}^{3}} + \left(-1.5 \cdot \frac{c \cdot a}{b} + -1.6875 \cdot \frac{{c}^{3} \cdot {a}^{3}}{{b}^{5}}\right)\right)}}{3 \cdot a} \]

      unpow2 [=>]92.4

      \[ \frac{\mathsf{fma}\left(-0.5, \frac{{\left(-1.125 \cdot \left(\color{blue}{\left(c \cdot c\right)} \cdot {a}^{2}\right)\right)}^{2} + 5.0625 \cdot \left({c}^{4} \cdot {a}^{4}\right)}{{b}^{7}}, -1.125 \cdot \frac{{c}^{2} \cdot {a}^{2}}{{b}^{3}} + \left(-1.5 \cdot \frac{c \cdot a}{b} + -1.6875 \cdot \frac{{c}^{3} \cdot {a}^{3}}{{b}^{5}}\right)\right)}{3 \cdot a} \]

      unpow2 [=>]92.4

      \[ \frac{\mathsf{fma}\left(-0.5, \frac{{\left(-1.125 \cdot \left(\left(c \cdot c\right) \cdot \color{blue}{\left(a \cdot a\right)}\right)\right)}^{2} + 5.0625 \cdot \left({c}^{4} \cdot {a}^{4}\right)}{{b}^{7}}, -1.125 \cdot \frac{{c}^{2} \cdot {a}^{2}}{{b}^{3}} + \left(-1.5 \cdot \frac{c \cdot a}{b} + -1.6875 \cdot \frac{{c}^{3} \cdot {a}^{3}}{{b}^{5}}\right)\right)}{3 \cdot a} \]

      fma-def [=>]92.4

      \[ \frac{\mathsf{fma}\left(-0.5, \frac{{\left(-1.125 \cdot \left(\left(c \cdot c\right) \cdot \left(a \cdot a\right)\right)\right)}^{2} + 5.0625 \cdot \left({c}^{4} \cdot {a}^{4}\right)}{{b}^{7}}, \color{blue}{\mathsf{fma}\left(-1.125, \frac{{c}^{2} \cdot {a}^{2}}{{b}^{3}}, -1.5 \cdot \frac{c \cdot a}{b} + -1.6875 \cdot \frac{{c}^{3} \cdot {a}^{3}}{{b}^{5}}\right)}\right)}{3 \cdot a} \]
    5. Applied egg-rr92.4%

      \[\leadsto \frac{\mathsf{fma}\left(-0.5, \frac{{\left(-1.125 \cdot \left(\left(c \cdot c\right) \cdot \left(a \cdot a\right)\right)\right)}^{2} + 5.0625 \cdot \left({c}^{4} \cdot {a}^{4}\right)}{{b}^{7}}, \mathsf{fma}\left(-1.125, \frac{c \cdot c}{\frac{{b}^{3}}{a \cdot a}}, \mathsf{fma}\left(-1.5, \frac{c}{\frac{b}{a}}, -1.6875 \cdot \frac{\color{blue}{\left(c \cdot \left(c \cdot \left(a \cdot a\right)\right)\right) \cdot \left(c \cdot a\right)}}{{b}^{5}}\right)\right)\right)}{3 \cdot a} \]
      Proof

      [Start]92.4

      \[ \frac{\mathsf{fma}\left(-0.5, \frac{{\left(-1.125 \cdot \left(\left(c \cdot c\right) \cdot \left(a \cdot a\right)\right)\right)}^{2} + 5.0625 \cdot \left({c}^{4} \cdot {a}^{4}\right)}{{b}^{7}}, \mathsf{fma}\left(-1.125, \frac{c \cdot c}{\frac{{b}^{3}}{a \cdot a}}, \mathsf{fma}\left(-1.5, \frac{c}{\frac{b}{a}}, -1.6875 \cdot \frac{{\left(c \cdot a\right)}^{3}}{{b}^{5}}\right)\right)\right)}{3 \cdot a} \]

      unpow3 [=>]92.4

      \[ \frac{\mathsf{fma}\left(-0.5, \frac{{\left(-1.125 \cdot \left(\left(c \cdot c\right) \cdot \left(a \cdot a\right)\right)\right)}^{2} + 5.0625 \cdot \left({c}^{4} \cdot {a}^{4}\right)}{{b}^{7}}, \mathsf{fma}\left(-1.125, \frac{c \cdot c}{\frac{{b}^{3}}{a \cdot a}}, \mathsf{fma}\left(-1.5, \frac{c}{\frac{b}{a}}, -1.6875 \cdot \frac{\color{blue}{\left(\left(c \cdot a\right) \cdot \left(c \cdot a\right)\right) \cdot \left(c \cdot a\right)}}{{b}^{5}}\right)\right)\right)}{3 \cdot a} \]

      unswap-sqr [<=]92.4

      \[ \frac{\mathsf{fma}\left(-0.5, \frac{{\left(-1.125 \cdot \left(\left(c \cdot c\right) \cdot \left(a \cdot a\right)\right)\right)}^{2} + 5.0625 \cdot \left({c}^{4} \cdot {a}^{4}\right)}{{b}^{7}}, \mathsf{fma}\left(-1.125, \frac{c \cdot c}{\frac{{b}^{3}}{a \cdot a}}, \mathsf{fma}\left(-1.5, \frac{c}{\frac{b}{a}}, -1.6875 \cdot \frac{\color{blue}{\left(\left(c \cdot c\right) \cdot \left(a \cdot a\right)\right)} \cdot \left(c \cdot a\right)}{{b}^{5}}\right)\right)\right)}{3 \cdot a} \]

      associate-*l* [=>]92.4

      \[ \frac{\mathsf{fma}\left(-0.5, \frac{{\left(-1.125 \cdot \left(\left(c \cdot c\right) \cdot \left(a \cdot a\right)\right)\right)}^{2} + 5.0625 \cdot \left({c}^{4} \cdot {a}^{4}\right)}{{b}^{7}}, \mathsf{fma}\left(-1.125, \frac{c \cdot c}{\frac{{b}^{3}}{a \cdot a}}, \mathsf{fma}\left(-1.5, \frac{c}{\frac{b}{a}}, -1.6875 \cdot \frac{\color{blue}{\left(c \cdot \left(c \cdot \left(a \cdot a\right)\right)\right)} \cdot \left(c \cdot a\right)}{{b}^{5}}\right)\right)\right)}{3 \cdot a} \]
    6. Taylor expanded in c around 0 92.9%

      \[\leadsto \color{blue}{-0.5625 \cdot \frac{{c}^{3} \cdot {a}^{2}}{{b}^{5}} + \left(-0.16666666666666666 \cdot \frac{{c}^{4} \cdot \left(1.265625 \cdot {a}^{4} + 5.0625 \cdot {a}^{4}\right)}{a \cdot {b}^{7}} + \left(-0.5 \cdot \frac{c}{b} + -0.375 \cdot \frac{{c}^{2} \cdot a}{{b}^{3}}\right)\right)} \]
    7. Simplified92.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(-0.5, \frac{c}{b}, \mathsf{fma}\left(-0.375, a \cdot \left(c \cdot \frac{c}{{b}^{3}}\right), \mathsf{fma}\left(-0.5625, c \cdot \frac{{\left(c \cdot a\right)}^{2}}{{b}^{5}}, \frac{-0.16666666666666666}{a} \cdot \frac{{\left(c \cdot a\right)}^{4}}{\frac{{b}^{7}}{6.328125}}\right)\right)\right)} \]
      Proof

      [Start]92.9

      \[ -0.5625 \cdot \frac{{c}^{3} \cdot {a}^{2}}{{b}^{5}} + \left(-0.16666666666666666 \cdot \frac{{c}^{4} \cdot \left(1.265625 \cdot {a}^{4} + 5.0625 \cdot {a}^{4}\right)}{a \cdot {b}^{7}} + \left(-0.5 \cdot \frac{c}{b} + -0.375 \cdot \frac{{c}^{2} \cdot a}{{b}^{3}}\right)\right) \]

      associate-+r+ [=>]92.9

      \[ -0.5625 \cdot \frac{{c}^{3} \cdot {a}^{2}}{{b}^{5}} + \color{blue}{\left(\left(-0.16666666666666666 \cdot \frac{{c}^{4} \cdot \left(1.265625 \cdot {a}^{4} + 5.0625 \cdot {a}^{4}\right)}{a \cdot {b}^{7}} + -0.5 \cdot \frac{c}{b}\right) + -0.375 \cdot \frac{{c}^{2} \cdot a}{{b}^{3}}\right)} \]

      associate-+r+ [=>]92.9

      \[ \color{blue}{\left(-0.5625 \cdot \frac{{c}^{3} \cdot {a}^{2}}{{b}^{5}} + \left(-0.16666666666666666 \cdot \frac{{c}^{4} \cdot \left(1.265625 \cdot {a}^{4} + 5.0625 \cdot {a}^{4}\right)}{a \cdot {b}^{7}} + -0.5 \cdot \frac{c}{b}\right)\right) + -0.375 \cdot \frac{{c}^{2} \cdot a}{{b}^{3}}} \]
    8. Applied egg-rr92.9%

      \[\leadsto \mathsf{fma}\left(-0.5, \frac{c}{b}, \mathsf{fma}\left(-0.375, a \cdot \left(c \cdot \frac{c}{{b}^{3}}\right), \mathsf{fma}\left(-0.5625, c \cdot \frac{\color{blue}{\left(\left(c \cdot a\right) \cdot c\right) \cdot a}}{{b}^{5}}, \frac{-0.16666666666666666}{a} \cdot \frac{{\left(c \cdot a\right)}^{4}}{\frac{{b}^{7}}{6.328125}}\right)\right)\right) \]
      Proof

      [Start]92.9

      \[ \mathsf{fma}\left(-0.5, \frac{c}{b}, \mathsf{fma}\left(-0.375, a \cdot \left(c \cdot \frac{c}{{b}^{3}}\right), \mathsf{fma}\left(-0.5625, c \cdot \frac{{\left(c \cdot a\right)}^{2}}{{b}^{5}}, \frac{-0.16666666666666666}{a} \cdot \frac{{\left(c \cdot a\right)}^{4}}{\frac{{b}^{7}}{6.328125}}\right)\right)\right) \]

      unpow2 [=>]92.9

      \[ \mathsf{fma}\left(-0.5, \frac{c}{b}, \mathsf{fma}\left(-0.375, a \cdot \left(c \cdot \frac{c}{{b}^{3}}\right), \mathsf{fma}\left(-0.5625, c \cdot \frac{\color{blue}{\left(c \cdot a\right) \cdot \left(c \cdot a\right)}}{{b}^{5}}, \frac{-0.16666666666666666}{a} \cdot \frac{{\left(c \cdot a\right)}^{4}}{\frac{{b}^{7}}{6.328125}}\right)\right)\right) \]

      associate-*r* [=>]92.9

      \[ \mathsf{fma}\left(-0.5, \frac{c}{b}, \mathsf{fma}\left(-0.375, a \cdot \left(c \cdot \frac{c}{{b}^{3}}\right), \mathsf{fma}\left(-0.5625, c \cdot \frac{\color{blue}{\left(\left(c \cdot a\right) \cdot c\right) \cdot a}}{{b}^{5}}, \frac{-0.16666666666666666}{a} \cdot \frac{{\left(c \cdot a\right)}^{4}}{\frac{{b}^{7}}{6.328125}}\right)\right)\right) \]
  3. Recombined 2 regimes into one program.
  4. Final simplification91.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 0.97:\\ \;\;\;\;\frac{\frac{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right) - b \cdot b}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)}}}{a \cdot 3}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.5, \frac{c}{b}, \mathsf{fma}\left(-0.375, a \cdot \left(c \cdot \frac{c}{{b}^{3}}\right), \mathsf{fma}\left(-0.5625, c \cdot \frac{a \cdot \left(c \cdot \left(a \cdot c\right)\right)}{{b}^{5}}, \frac{-0.16666666666666666}{a} \cdot \frac{{\left(a \cdot c\right)}^{4}}{\frac{{b}^{7}}{6.328125}}\right)\right)\right)\\ \end{array} \]

Alternatives

Alternative 1
Accuracy92.0%
Cost47428
\[\begin{array}{l} t_0 := \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)\\ \mathbf{if}\;b \leq 0.97:\\ \;\;\;\;\frac{\frac{t_0 - b \cdot b}{b + \sqrt{t_0}}}{a \cdot 3}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.5625, \left(c \cdot c\right) \cdot \left(c \cdot \frac{a}{\frac{{b}^{5}}{a}}\right), \mathsf{fma}\left(-0.375, \frac{c \cdot c}{\frac{{b}^{3}}{a}}, \mathsf{fma}\left(\frac{-0.16666666666666666}{{b}^{7}}, \frac{{\left(a \cdot c\right)}^{4}}{\frac{a}{6.328125}}, \frac{c}{\frac{b}{-0.5}}\right)\right)\right)\\ \end{array} \]
Alternative 2
Accuracy85.2%
Cost43084
\[\begin{array}{l} t_0 := \mathsf{fma}\left(a, c \cdot -3, b \cdot b\right)\\ t_1 := \frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 3\right)} - b}{a \cdot 3}\\ t_2 := \frac{\frac{t_0 - b \cdot b}{b + \sqrt{t_0}}}{a \cdot 3}\\ t_3 := \frac{c \cdot c}{{b}^{3}}\\ \mathbf{if}\;t_1 \leq -0.0035:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t_1 \leq -0.00015:\\ \;\;\;\;\frac{\mathsf{fma}\left(-0.375, \left(a \cdot a\right) \cdot t_3, -0.5 \cdot \frac{c}{\frac{b}{a}}\right)}{a}\\ \mathbf{elif}\;t_1 \leq -5.05 \cdot 10^{-5}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.375, a \cdot t_3, -0.5 \cdot \frac{c}{b}\right)\\ \end{array} \]
Alternative 3
Accuracy90.1%
Cost40964
\[\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 -1.5:\\ \;\;\;\;\frac{\frac{t_0 - b \cdot b}{b + \sqrt{t_0}}}{a \cdot 3}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.5625, \frac{{c}^{3}}{\frac{{b}^{5}}{a \cdot a}}, \mathsf{fma}\left(-0.5, \frac{c}{b}, -0.375 \cdot \frac{c \cdot c}{\frac{{b}^{3}}{a}}\right)\right)\\ \end{array} \]
Alternative 4
Accuracy90.1%
Cost40964
\[\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 -1.5:\\ \;\;\;\;\frac{\frac{t_0 - b \cdot b}{b + \sqrt{t_0}}}{a \cdot 3}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.5, \frac{c}{b}, \mathsf{fma}\left(-0.375, a \cdot \left(c \cdot \frac{c}{{b}^{3}}\right), \frac{c \cdot -0.5625}{\frac{{b}^{5}}{{\left(a \cdot c\right)}^{2}}}\right)\right)\\ \end{array} \]
Alternative 5
Accuracy84.7%
Cost35981
\[\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 -0.0035:\\ \;\;\;\;\left(b - \sqrt{\mathsf{fma}\left(b, b, -3 \cdot \left(a \cdot c\right)\right)}\right) \cdot \frac{-0.3333333333333333}{a}\\ \mathbf{elif}\;t_0 \leq -0.00015 \lor \neg \left(t_0 \leq -5.05 \cdot 10^{-5}\right):\\ \;\;\;\;\mathsf{fma}\left(-0.375, a \cdot \frac{c \cdot c}{{b}^{3}}, -0.5 \cdot \frac{c}{b}\right)\\ \mathbf{else}:\\ \;\;\;\;-0.3333333333333333 \cdot \frac{b - \sqrt{\mathsf{fma}\left(b, b, a \cdot \left(c \cdot -3\right)\right)}}{a}\\ \end{array} \]
Alternative 6
Accuracy84.7%
Cost35981
\[\begin{array}{l} t_0 := b - \sqrt{\mathsf{fma}\left(b, b, a \cdot \left(c \cdot -3\right)\right)}\\ t_1 := \frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 3\right)} - b}{a \cdot 3}\\ \mathbf{if}\;t_1 \leq -0.0035:\\ \;\;\;\;t_0 \cdot \frac{1}{a \cdot -3}\\ \mathbf{elif}\;t_1 \leq -0.00015 \lor \neg \left(t_1 \leq -5.05 \cdot 10^{-5}\right):\\ \;\;\;\;\mathsf{fma}\left(-0.375, a \cdot \frac{c \cdot c}{{b}^{3}}, -0.5 \cdot \frac{c}{b}\right)\\ \mathbf{else}:\\ \;\;\;\;-0.3333333333333333 \cdot \frac{t_0}{a}\\ \end{array} \]
Alternative 7
Accuracy84.7%
Cost35980
\[\begin{array}{l} t_0 := b - \sqrt{\mathsf{fma}\left(b, b, a \cdot \left(c \cdot -3\right)\right)}\\ t_1 := \frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 3\right)} - b}{a \cdot 3}\\ t_2 := \frac{c \cdot c}{{b}^{3}}\\ \mathbf{if}\;t_1 \leq -0.0035:\\ \;\;\;\;t_0 \cdot \frac{1}{a \cdot -3}\\ \mathbf{elif}\;t_1 \leq -0.00015:\\ \;\;\;\;\frac{\mathsf{fma}\left(-0.5, \frac{a}{\frac{b}{c}}, -0.375 \cdot \left(\left(a \cdot a\right) \cdot t_2\right)\right)}{a}\\ \mathbf{elif}\;t_1 \leq -5.05 \cdot 10^{-5}:\\ \;\;\;\;-0.3333333333333333 \cdot \frac{t_0}{a}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.375, a \cdot t_2, -0.5 \cdot \frac{c}{b}\right)\\ \end{array} \]
Alternative 8
Accuracy84.7%
Cost35980
\[\begin{array}{l} t_0 := b - \sqrt{\mathsf{fma}\left(b, b, a \cdot \left(c \cdot -3\right)\right)}\\ t_1 := \frac{c \cdot c}{{b}^{3}}\\ t_2 := \frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 3\right)} - b}{a \cdot 3}\\ \mathbf{if}\;t_2 \leq -0.0035:\\ \;\;\;\;t_0 \cdot \frac{1}{a \cdot -3}\\ \mathbf{elif}\;t_2 \leq -0.00015:\\ \;\;\;\;\frac{\mathsf{fma}\left(-0.375, \left(a \cdot a\right) \cdot t_1, -0.5 \cdot \frac{c}{\frac{b}{a}}\right)}{a}\\ \mathbf{elif}\;t_2 \leq -5.05 \cdot 10^{-5}:\\ \;\;\;\;-0.3333333333333333 \cdot \frac{t_0}{a}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.375, a \cdot t_1, -0.5 \cdot \frac{c}{b}\right)\\ \end{array} \]
Alternative 9
Accuracy84.6%
Cost35917
\[\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 -0.0035 \lor \neg \left(t_0 \leq -0.00015\right) \land t_0 \leq -5.05 \cdot 10^{-5}:\\ \;\;\;\;-0.3333333333333333 \cdot \frac{b - \sqrt{\mathsf{fma}\left(b, b, a \cdot \left(c \cdot -3\right)\right)}}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(-0.5, a \cdot \frac{c}{b}, -0.375 \cdot \left(\left(a \cdot a\right) \cdot \left(\frac{c}{b} \cdot \frac{c}{b \cdot b}\right)\right)\right)}{a}\\ \end{array} \]
Alternative 10
Accuracy84.6%
Cost35917
\[\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 -0.0035:\\ \;\;\;\;\left(b - \sqrt{\mathsf{fma}\left(b, b, -3 \cdot \left(a \cdot c\right)\right)}\right) \cdot \frac{-0.3333333333333333}{a}\\ \mathbf{elif}\;t_0 \leq -0.00015 \lor \neg \left(t_0 \leq -5.05 \cdot 10^{-5}\right):\\ \;\;\;\;\frac{\mathsf{fma}\left(-0.5, a \cdot \frac{c}{b}, -0.375 \cdot \left(\left(a \cdot a\right) \cdot \left(\frac{c}{b} \cdot \frac{c}{b \cdot b}\right)\right)\right)}{a}\\ \mathbf{else}:\\ \;\;\;\;-0.3333333333333333 \cdot \frac{b - \sqrt{\mathsf{fma}\left(b, b, a \cdot \left(c \cdot -3\right)\right)}}{a}\\ \end{array} \]
Alternative 11
Accuracy84.6%
Cost30157
\[\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 -0.0035 \lor \neg \left(t_0 \leq -0.00015\right) \land t_0 \leq -5.05 \cdot 10^{-5}:\\ \;\;\;\;\frac{\sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)} - b}{a \cdot 3}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(-0.5, a \cdot \frac{c}{b}, -0.375 \cdot \left(\left(a \cdot a\right) \cdot \left(\frac{c}{b} \cdot \frac{c}{b \cdot b}\right)\right)\right)}{a}\\ \end{array} \]
Alternative 12
Accuracy76.0%
Cost14788
\[\begin{array}{l} \mathbf{if}\;\frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 3\right)} - b}{a \cdot 3} \leq -3 \cdot 10^{-6}:\\ \;\;\;\;\frac{\sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)} - b}{a \cdot 3}\\ \mathbf{else}:\\ \;\;\;\;\frac{c \cdot -0.5}{b}\\ \end{array} \]
Alternative 13
Accuracy73.9%
Cost7492
\[\begin{array}{l} \mathbf{if}\;b \leq 155:\\ \;\;\;\;\frac{\sqrt{b \cdot b + a \cdot \left(c \cdot -3\right)} - b}{a \cdot 3}\\ \mathbf{else}:\\ \;\;\;\;\frac{c \cdot -0.5}{b}\\ \end{array} \]
Alternative 14
Accuracy11.7%
Cost320
\[b \cdot \frac{-0.3333333333333333}{a} \]
Alternative 15
Accuracy64.9%
Cost320
\[\frac{c \cdot -0.5}{b} \]
Alternative 16
Accuracy3.2%
Cost192
\[\frac{0}{a} \]

Error

Reproduce?

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