Quadratic roots, narrow range

Percentage Accurate: 55.4% → 90.2%
Time: 16.5s
Alternatives: 11
Speedup: 29.0×

Specification

?
\[\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)\]
\[\begin{array}{l} \\ \frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \end{array} \]
(FPCore (a b c)
 :precision binary64
 (/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)))
double code(double a, double b, double c) {
	return (-b + sqrt(((b * b) - ((4.0 * a) * c)))) / (2.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) - ((4.0d0 * a) * c)))) / (2.0d0 * a)
end function
public static double code(double a, double b, double c) {
	return (-b + Math.sqrt(((b * b) - ((4.0 * a) * c)))) / (2.0 * a);
}
def code(a, b, c):
	return (-b + math.sqrt(((b * b) - ((4.0 * a) * c)))) / (2.0 * a)
function code(a, b, c)
	return Float64(Float64(Float64(-b) + sqrt(Float64(Float64(b * b) - Float64(Float64(4.0 * a) * c)))) / Float64(2.0 * a))
end
function tmp = code(a, b, c)
	tmp = (-b + sqrt(((b * b) - ((4.0 * a) * c)))) / (2.0 * a);
end
code[a_, b_, c_] := N[(N[((-b) + N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(N[(4.0 * a), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(2.0 * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}
\end{array}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 11 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 55.4% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \end{array} \]
(FPCore (a b c)
 :precision binary64
 (/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)))
double code(double a, double b, double c) {
	return (-b + sqrt(((b * b) - ((4.0 * a) * c)))) / (2.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) - ((4.0d0 * a) * c)))) / (2.0d0 * a)
end function
public static double code(double a, double b, double c) {
	return (-b + Math.sqrt(((b * b) - ((4.0 * a) * c)))) / (2.0 * a);
}
def code(a, b, c):
	return (-b + math.sqrt(((b * b) - ((4.0 * a) * c)))) / (2.0 * a)
function code(a, b, c)
	return Float64(Float64(Float64(-b) + sqrt(Float64(Float64(b * b) - Float64(Float64(4.0 * a) * c)))) / Float64(2.0 * a))
end
function tmp = code(a, b, c)
	tmp = (-b + sqrt(((b * b) - ((4.0 * a) * c)))) / (2.0 * a);
end
code[a_, b_, c_] := N[(N[((-b) + N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(N[(4.0 * a), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(2.0 * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}
\end{array}

Alternative 1: 90.2% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := {b}^{2} - c \cdot \left(a \cdot 4\right)\\ \mathbf{if}\;b \leq 80:\\ \;\;\;\;\frac{\frac{t\_0 - {\left(-b\right)}^{2}}{b + \sqrt{t\_0}}}{2 \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{a \cdot \left(a \cdot \left(-2 \cdot \frac{a \cdot \left(\left({c}^{2} + -2.5 \cdot {c}^{2}\right) - {c}^{2} \cdot -0.5\right)}{{b}^{5}} + \frac{c}{{b}^{3}}\right) + \frac{1}{b}\right) - \frac{b}{c}}\\ \end{array} \end{array} \]
(FPCore (a b c)
 :precision binary64
 (let* ((t_0 (- (pow b 2.0) (* c (* a 4.0)))))
   (if (<= b 80.0)
     (/ (/ (- t_0 (pow (- b) 2.0)) (+ b (sqrt t_0))) (* 2.0 a))
     (/
      1.0
      (-
       (*
        a
        (+
         (*
          a
          (+
           (*
            -2.0
            (/
             (*
              a
              (- (+ (pow c 2.0) (* -2.5 (pow c 2.0))) (* (pow c 2.0) -0.5)))
             (pow b 5.0)))
           (/ c (pow b 3.0))))
         (/ 1.0 b)))
       (/ b c))))))
double code(double a, double b, double c) {
	double t_0 = pow(b, 2.0) - (c * (a * 4.0));
	double tmp;
	if (b <= 80.0) {
		tmp = ((t_0 - pow(-b, 2.0)) / (b + sqrt(t_0))) / (2.0 * a);
	} else {
		tmp = 1.0 / ((a * ((a * ((-2.0 * ((a * ((pow(c, 2.0) + (-2.5 * pow(c, 2.0))) - (pow(c, 2.0) * -0.5))) / pow(b, 5.0))) + (c / pow(b, 3.0)))) + (1.0 / b))) - (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 = (b ** 2.0d0) - (c * (a * 4.0d0))
    if (b <= 80.0d0) then
        tmp = ((t_0 - (-b ** 2.0d0)) / (b + sqrt(t_0))) / (2.0d0 * a)
    else
        tmp = 1.0d0 / ((a * ((a * (((-2.0d0) * ((a * (((c ** 2.0d0) + ((-2.5d0) * (c ** 2.0d0))) - ((c ** 2.0d0) * (-0.5d0)))) / (b ** 5.0d0))) + (c / (b ** 3.0d0)))) + (1.0d0 / b))) - (b / c))
    end if
    code = tmp
end function
public static double code(double a, double b, double c) {
	double t_0 = Math.pow(b, 2.0) - (c * (a * 4.0));
	double tmp;
	if (b <= 80.0) {
		tmp = ((t_0 - Math.pow(-b, 2.0)) / (b + Math.sqrt(t_0))) / (2.0 * a);
	} else {
		tmp = 1.0 / ((a * ((a * ((-2.0 * ((a * ((Math.pow(c, 2.0) + (-2.5 * Math.pow(c, 2.0))) - (Math.pow(c, 2.0) * -0.5))) / Math.pow(b, 5.0))) + (c / Math.pow(b, 3.0)))) + (1.0 / b))) - (b / c));
	}
	return tmp;
}
def code(a, b, c):
	t_0 = math.pow(b, 2.0) - (c * (a * 4.0))
	tmp = 0
	if b <= 80.0:
		tmp = ((t_0 - math.pow(-b, 2.0)) / (b + math.sqrt(t_0))) / (2.0 * a)
	else:
		tmp = 1.0 / ((a * ((a * ((-2.0 * ((a * ((math.pow(c, 2.0) + (-2.5 * math.pow(c, 2.0))) - (math.pow(c, 2.0) * -0.5))) / math.pow(b, 5.0))) + (c / math.pow(b, 3.0)))) + (1.0 / b))) - (b / c))
	return tmp
function code(a, b, c)
	t_0 = Float64((b ^ 2.0) - Float64(c * Float64(a * 4.0)))
	tmp = 0.0
	if (b <= 80.0)
		tmp = Float64(Float64(Float64(t_0 - (Float64(-b) ^ 2.0)) / Float64(b + sqrt(t_0))) / Float64(2.0 * a));
	else
		tmp = Float64(1.0 / Float64(Float64(a * Float64(Float64(a * Float64(Float64(-2.0 * Float64(Float64(a * Float64(Float64((c ^ 2.0) + Float64(-2.5 * (c ^ 2.0))) - Float64((c ^ 2.0) * -0.5))) / (b ^ 5.0))) + Float64(c / (b ^ 3.0)))) + Float64(1.0 / b))) - Float64(b / c)));
	end
	return tmp
end
function tmp_2 = code(a, b, c)
	t_0 = (b ^ 2.0) - (c * (a * 4.0));
	tmp = 0.0;
	if (b <= 80.0)
		tmp = ((t_0 - (-b ^ 2.0)) / (b + sqrt(t_0))) / (2.0 * a);
	else
		tmp = 1.0 / ((a * ((a * ((-2.0 * ((a * (((c ^ 2.0) + (-2.5 * (c ^ 2.0))) - ((c ^ 2.0) * -0.5))) / (b ^ 5.0))) + (c / (b ^ 3.0)))) + (1.0 / b))) - (b / c));
	end
	tmp_2 = tmp;
end
code[a_, b_, c_] := Block[{t$95$0 = N[(N[Power[b, 2.0], $MachinePrecision] - N[(c * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, 80.0], N[(N[(N[(t$95$0 - N[Power[(-b), 2.0], $MachinePrecision]), $MachinePrecision] / N[(b + N[Sqrt[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 * a), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(a * N[(N[(a * N[(N[(-2.0 * N[(N[(a * N[(N[(N[Power[c, 2.0], $MachinePrecision] + N[(-2.5 * N[Power[c, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[Power[c, 2.0], $MachinePrecision] * -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[b, 5.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c / N[Power[b, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(1.0 / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := {b}^{2} - c \cdot \left(a \cdot 4\right)\\
\mathbf{if}\;b \leq 80:\\
\;\;\;\;\frac{\frac{t\_0 - {\left(-b\right)}^{2}}{b + \sqrt{t\_0}}}{2 \cdot a}\\

\mathbf{else}:\\
\;\;\;\;\frac{1}{a \cdot \left(a \cdot \left(-2 \cdot \frac{a \cdot \left(\left({c}^{2} + -2.5 \cdot {c}^{2}\right) - {c}^{2} \cdot -0.5\right)}{{b}^{5}} + \frac{c}{{b}^{3}}\right) + \frac{1}{b}\right) - \frac{b}{c}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < 80

    1. Initial program 81.5%

      \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
    2. Step-by-step derivation
      1. *-commutative81.5%

        \[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\color{blue}{a \cdot 2}} \]
    3. Simplified81.5%

      \[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a \cdot 2}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. add-cbrt-cube80.5%

        \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
      2. pow1/379.3%

        \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left(\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
      3. pow379.4%

        \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({\left(b \cdot b\right)}^{3}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
      4. pow279.4%

        \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({\color{blue}{\left({b}^{2}\right)}}^{3}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
      5. pow-pow79.1%

        \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({b}^{\left(2 \cdot 3\right)}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
      6. metadata-eval79.1%

        \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({b}^{\color{blue}{6}}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
    6. Applied egg-rr79.1%

      \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
    7. Step-by-step derivation
      1. unpow1/380.7%

        \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
    8. Simplified80.7%

      \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
    9. Step-by-step derivation
      1. flip-+80.5%

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

        \[\leadsto \frac{\frac{\color{blue}{{\left(-b\right)}^{2}} - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c} \cdot \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      3. add-sqr-sqrt80.8%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \color{blue}{\left(\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c\right)}}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      4. pow1/379.3%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left(\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      5. pow-pow82.8%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left(\color{blue}{{b}^{\left(6 \cdot 0.3333333333333333\right)}} - \left(4 \cdot a\right) \cdot c\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      6. metadata-eval82.8%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{\color{blue}{2}} - \left(4 \cdot a\right) \cdot c\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      7. *-commutative82.8%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - \color{blue}{c \cdot \left(4 \cdot a\right)}\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      8. *-commutative82.8%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \color{blue}{\left(a \cdot 4\right)}\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      9. pow1/382.7%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      10. pow-pow82.9%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{\color{blue}{{b}^{\left(6 \cdot 0.3333333333333333\right)}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      11. metadata-eval82.9%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{{b}^{\color{blue}{2}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      12. *-commutative82.9%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{{b}^{2} - \color{blue}{c \cdot \left(4 \cdot a\right)}}}}{a \cdot 2} \]
      13. *-commutative82.9%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{{b}^{2} - c \cdot \color{blue}{\left(a \cdot 4\right)}}}}{a \cdot 2} \]
    10. Applied egg-rr82.9%

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

    if 80 < b

    1. Initial program 48.6%

      \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
    2. Step-by-step derivation
      1. *-commutative48.6%

        \[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\color{blue}{a \cdot 2}} \]
    3. Simplified48.6%

      \[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a \cdot 2}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. add-cbrt-cube48.1%

        \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
      2. pow1/345.7%

        \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left(\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
      3. pow345.7%

        \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({\left(b \cdot b\right)}^{3}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
      4. pow245.7%

        \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({\color{blue}{\left({b}^{2}\right)}}^{3}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
      5. pow-pow45.7%

        \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({b}^{\left(2 \cdot 3\right)}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
      6. metadata-eval45.7%

        \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({b}^{\color{blue}{6}}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
    6. Applied egg-rr45.7%

      \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
    7. Step-by-step derivation
      1. unpow1/348.4%

        \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
    8. Simplified48.4%

      \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
    9. Step-by-step derivation
      1. clear-num48.4%

        \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot 2}{\left(-b\right) + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}} \]
      2. inv-pow48.4%

        \[\leadsto \color{blue}{{\left(\frac{a \cdot 2}{\left(-b\right) + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}\right)}^{-1}} \]
      3. neg-mul-148.4%

        \[\leadsto {\left(\frac{a \cdot 2}{\color{blue}{-1 \cdot b} + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}\right)}^{-1} \]
      4. fma-define48.4%

        \[\leadsto {\left(\frac{a \cdot 2}{\color{blue}{\mathsf{fma}\left(-1, b, \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}\right)}}\right)}^{-1} \]
      5. pow1/345.7%

        \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
      6. pow-pow48.6%

        \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{b}^{\left(6 \cdot 0.3333333333333333\right)}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
      7. metadata-eval48.6%

        \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{\color{blue}{2}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
      8. *-commutative48.6%

        \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{c \cdot \left(4 \cdot a\right)}}\right)}\right)}^{-1} \]
      9. *-commutative48.6%

        \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \color{blue}{\left(a \cdot 4\right)}}\right)}\right)}^{-1} \]
    10. Applied egg-rr48.6%

      \[\leadsto \color{blue}{{\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}\right)}^{-1}} \]
    11. Step-by-step derivation
      1. unpow-148.6%

        \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}}} \]
      2. associate-/l*48.6%

        \[\leadsto \frac{1}{\color{blue}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}}} \]
      3. *-commutative48.6%

        \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{\left(a \cdot 4\right) \cdot c}}\right)}} \]
      4. *-commutative48.6%

        \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{\left(4 \cdot a\right)} \cdot c}\right)}} \]
      5. associate-*r*48.6%

        \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{4 \cdot \left(a \cdot c\right)}}\right)}} \]
      6. cancel-sign-sub-inv48.6%

        \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{b}^{2} + \left(-4\right) \cdot \left(a \cdot c\right)}}\right)}} \]
      7. metadata-eval48.6%

        \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} + \color{blue}{-4} \cdot \left(a \cdot c\right)}\right)}} \]
      8. +-commutative48.6%

        \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{-4 \cdot \left(a \cdot c\right) + {b}^{2}}}\right)}} \]
      9. fma-define48.6%

        \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{\mathsf{fma}\left(-4, a \cdot c, {b}^{2}\right)}}\right)}} \]
      10. *-commutative48.6%

        \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\mathsf{fma}\left(-4, \color{blue}{c \cdot a}, {b}^{2}\right)}\right)}} \]
    12. Simplified48.6%

      \[\leadsto \color{blue}{\frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\mathsf{fma}\left(-4, c \cdot a, {b}^{2}\right)}\right)}}} \]
    13. Taylor expanded in b around inf 94.7%

      \[\leadsto \frac{1}{\color{blue}{b \cdot \left(\left(-2 \cdot \frac{-1 \cdot \left(a \cdot \left(c \cdot \left(-1 \cdot \left({a}^{2} \cdot c\right) + 0.5 \cdot \left({a}^{2} \cdot c\right)\right)\right)\right) + \left(-0.125 \cdot \frac{4 \cdot \left({a}^{4} \cdot {c}^{4}\right) + 16 \cdot \left({a}^{4} \cdot {c}^{4}\right)}{a \cdot {c}^{2}} + {a}^{3} \cdot {c}^{2}\right)}{{b}^{6}} + \left(-2 \cdot \frac{-1 \cdot \left({a}^{2} \cdot c\right) + 0.5 \cdot \left({a}^{2} \cdot c\right)}{{b}^{4}} + \frac{a}{{b}^{2}}\right)\right) - \frac{1}{c}\right)}} \]
    14. Simplified94.7%

      \[\leadsto \frac{1}{\color{blue}{b \cdot \left(\mathsf{fma}\left(-2, \frac{\mathsf{fma}\left(-0.125, \frac{{a}^{4} \cdot {c}^{4}}{a} \cdot \frac{20}{{c}^{2}}, {c}^{2} \cdot {a}^{3}\right) - \left(c \cdot a\right) \cdot \left(\left(c \cdot {a}^{2}\right) \cdot -0.5\right)}{{b}^{6}}, \mathsf{fma}\left(-2, \frac{\left(c \cdot {a}^{2}\right) \cdot -0.5}{{b}^{4}}, \frac{a}{{b}^{2}}\right)\right) - \frac{1}{c}\right)}} \]
    15. Taylor expanded in a around 0 94.9%

      \[\leadsto \frac{1}{\color{blue}{-1 \cdot \frac{b}{c} + a \cdot \left(a \cdot \left(-2 \cdot \frac{a \cdot \left(\left(-2.5 \cdot {c}^{2} + {c}^{2}\right) - -0.5 \cdot {c}^{2}\right)}{{b}^{5}} + \frac{c}{{b}^{3}}\right) + \frac{1}{b}\right)}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification91.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 80:\\ \;\;\;\;\frac{\frac{\left({b}^{2} - c \cdot \left(a \cdot 4\right)\right) - {\left(-b\right)}^{2}}{b + \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}}}{2 \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{a \cdot \left(a \cdot \left(-2 \cdot \frac{a \cdot \left(\left({c}^{2} + -2.5 \cdot {c}^{2}\right) - {c}^{2} \cdot -0.5\right)}{{b}^{5}} + \frac{c}{{b}^{3}}\right) + \frac{1}{b}\right) - \frac{b}{c}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 90.1% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := {b}^{2} - c \cdot \left(a \cdot 4\right)\\ \mathbf{if}\;b \leq 80:\\ \;\;\;\;\frac{\frac{t\_0 - {\left(-b\right)}^{2}}{b + \sqrt{t\_0}}}{2 \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - {\left(\frac{c}{-b}\right)}^{2}\right) - c}{b}\\ \end{array} \end{array} \]
(FPCore (a b c)
 :precision binary64
 (let* ((t_0 (- (pow b 2.0) (* c (* a 4.0)))))
   (if (<= b 80.0)
     (/ (/ (- t_0 (pow (- b) 2.0)) (+ b (sqrt t_0))) (* 2.0 a))
     (/
      (-
       (*
        a
        (-
         (*
          a
          (+
           (* -5.0 (/ (* a (pow c 4.0)) (pow b 6.0)))
           (* -2.0 (/ (pow c 3.0) (pow b 4.0)))))
         (pow (/ c (- b)) 2.0)))
       c)
      b))))
double code(double a, double b, double c) {
	double t_0 = pow(b, 2.0) - (c * (a * 4.0));
	double tmp;
	if (b <= 80.0) {
		tmp = ((t_0 - pow(-b, 2.0)) / (b + sqrt(t_0))) / (2.0 * a);
	} else {
		tmp = ((a * ((a * ((-5.0 * ((a * pow(c, 4.0)) / pow(b, 6.0))) + (-2.0 * (pow(c, 3.0) / pow(b, 4.0))))) - pow((c / -b), 2.0))) - c) / b;
	}
	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 = (b ** 2.0d0) - (c * (a * 4.0d0))
    if (b <= 80.0d0) then
        tmp = ((t_0 - (-b ** 2.0d0)) / (b + sqrt(t_0))) / (2.0d0 * a)
    else
        tmp = ((a * ((a * (((-5.0d0) * ((a * (c ** 4.0d0)) / (b ** 6.0d0))) + ((-2.0d0) * ((c ** 3.0d0) / (b ** 4.0d0))))) - ((c / -b) ** 2.0d0))) - c) / b
    end if
    code = tmp
end function
public static double code(double a, double b, double c) {
	double t_0 = Math.pow(b, 2.0) - (c * (a * 4.0));
	double tmp;
	if (b <= 80.0) {
		tmp = ((t_0 - Math.pow(-b, 2.0)) / (b + Math.sqrt(t_0))) / (2.0 * a);
	} else {
		tmp = ((a * ((a * ((-5.0 * ((a * Math.pow(c, 4.0)) / Math.pow(b, 6.0))) + (-2.0 * (Math.pow(c, 3.0) / Math.pow(b, 4.0))))) - Math.pow((c / -b), 2.0))) - c) / b;
	}
	return tmp;
}
def code(a, b, c):
	t_0 = math.pow(b, 2.0) - (c * (a * 4.0))
	tmp = 0
	if b <= 80.0:
		tmp = ((t_0 - math.pow(-b, 2.0)) / (b + math.sqrt(t_0))) / (2.0 * a)
	else:
		tmp = ((a * ((a * ((-5.0 * ((a * math.pow(c, 4.0)) / math.pow(b, 6.0))) + (-2.0 * (math.pow(c, 3.0) / math.pow(b, 4.0))))) - math.pow((c / -b), 2.0))) - c) / b
	return tmp
function code(a, b, c)
	t_0 = Float64((b ^ 2.0) - Float64(c * Float64(a * 4.0)))
	tmp = 0.0
	if (b <= 80.0)
		tmp = Float64(Float64(Float64(t_0 - (Float64(-b) ^ 2.0)) / Float64(b + sqrt(t_0))) / Float64(2.0 * a));
	else
		tmp = Float64(Float64(Float64(a * Float64(Float64(a * Float64(Float64(-5.0 * Float64(Float64(a * (c ^ 4.0)) / (b ^ 6.0))) + Float64(-2.0 * Float64((c ^ 3.0) / (b ^ 4.0))))) - (Float64(c / Float64(-b)) ^ 2.0))) - c) / b);
	end
	return tmp
end
function tmp_2 = code(a, b, c)
	t_0 = (b ^ 2.0) - (c * (a * 4.0));
	tmp = 0.0;
	if (b <= 80.0)
		tmp = ((t_0 - (-b ^ 2.0)) / (b + sqrt(t_0))) / (2.0 * a);
	else
		tmp = ((a * ((a * ((-5.0 * ((a * (c ^ 4.0)) / (b ^ 6.0))) + (-2.0 * ((c ^ 3.0) / (b ^ 4.0))))) - ((c / -b) ^ 2.0))) - c) / b;
	end
	tmp_2 = tmp;
end
code[a_, b_, c_] := Block[{t$95$0 = N[(N[Power[b, 2.0], $MachinePrecision] - N[(c * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, 80.0], N[(N[(N[(t$95$0 - N[Power[(-b), 2.0], $MachinePrecision]), $MachinePrecision] / N[(b + N[Sqrt[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 * a), $MachinePrecision]), $MachinePrecision], N[(N[(N[(a * N[(N[(a * N[(N[(-5.0 * N[(N[(a * N[Power[c, 4.0], $MachinePrecision]), $MachinePrecision] / N[Power[b, 6.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-2.0 * N[(N[Power[c, 3.0], $MachinePrecision] / N[Power[b, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[Power[N[(c / (-b)), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision] / b), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := {b}^{2} - c \cdot \left(a \cdot 4\right)\\
\mathbf{if}\;b \leq 80:\\
\;\;\;\;\frac{\frac{t\_0 - {\left(-b\right)}^{2}}{b + \sqrt{t\_0}}}{2 \cdot a}\\

\mathbf{else}:\\
\;\;\;\;\frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - {\left(\frac{c}{-b}\right)}^{2}\right) - c}{b}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < 80

    1. Initial program 81.5%

      \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
    2. Step-by-step derivation
      1. *-commutative81.5%

        \[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\color{blue}{a \cdot 2}} \]
    3. Simplified81.5%

      \[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a \cdot 2}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. add-cbrt-cube80.5%

        \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
      2. pow1/379.3%

        \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left(\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
      3. pow379.4%

        \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({\left(b \cdot b\right)}^{3}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
      4. pow279.4%

        \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({\color{blue}{\left({b}^{2}\right)}}^{3}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
      5. pow-pow79.1%

        \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({b}^{\left(2 \cdot 3\right)}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
      6. metadata-eval79.1%

        \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({b}^{\color{blue}{6}}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
    6. Applied egg-rr79.1%

      \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
    7. Step-by-step derivation
      1. unpow1/380.7%

        \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
    8. Simplified80.7%

      \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
    9. Step-by-step derivation
      1. flip-+80.5%

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

        \[\leadsto \frac{\frac{\color{blue}{{\left(-b\right)}^{2}} - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c} \cdot \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      3. add-sqr-sqrt80.8%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \color{blue}{\left(\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c\right)}}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      4. pow1/379.3%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left(\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      5. pow-pow82.8%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left(\color{blue}{{b}^{\left(6 \cdot 0.3333333333333333\right)}} - \left(4 \cdot a\right) \cdot c\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      6. metadata-eval82.8%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{\color{blue}{2}} - \left(4 \cdot a\right) \cdot c\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      7. *-commutative82.8%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - \color{blue}{c \cdot \left(4 \cdot a\right)}\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      8. *-commutative82.8%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \color{blue}{\left(a \cdot 4\right)}\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      9. pow1/382.7%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      10. pow-pow82.9%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{\color{blue}{{b}^{\left(6 \cdot 0.3333333333333333\right)}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      11. metadata-eval82.9%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{{b}^{\color{blue}{2}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
      12. *-commutative82.9%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{{b}^{2} - \color{blue}{c \cdot \left(4 \cdot a\right)}}}}{a \cdot 2} \]
      13. *-commutative82.9%

        \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{{b}^{2} - c \cdot \color{blue}{\left(a \cdot 4\right)}}}}{a \cdot 2} \]
    10. Applied egg-rr82.9%

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

    if 80 < b

    1. Initial program 48.6%

      \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
    2. Step-by-step derivation
      1. Simplified48.6%

        \[\leadsto \color{blue}{\frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)} - b}{a \cdot 2}} \]
      2. Add Preprocessing
      3. Taylor expanded in b around inf 94.8%

        \[\leadsto \color{blue}{\frac{-2 \cdot \frac{{a}^{2} \cdot {c}^{3}}{{b}^{4}} + \left(-1 \cdot c + \left(-1 \cdot \frac{a \cdot {c}^{2}}{{b}^{2}} + -0.25 \cdot \frac{4 \cdot \left({a}^{4} \cdot {c}^{4}\right) + 16 \cdot \left({a}^{4} \cdot {c}^{4}\right)}{a \cdot {b}^{6}}\right)\right)}{b}} \]
      4. Step-by-step derivation
        1. Simplified94.8%

          \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(-2, {a}^{2} \cdot \frac{{c}^{3}}{{b}^{4}}, \left(-0.25 \cdot \left(\frac{{c}^{4} \cdot {a}^{4}}{a} \cdot \frac{20}{{b}^{6}}\right) - a \cdot \frac{{c}^{2}}{{b}^{2}}\right) - c\right)}{b}} \]
        2. Taylor expanded in a around 0 94.8%

          \[\leadsto \frac{\color{blue}{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - \frac{{c}^{2}}{{b}^{2}}\right) - c}}{b} \]
        3. Step-by-step derivation
          1. *-un-lft-identity94.8%

            \[\leadsto \frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - \color{blue}{1 \cdot \frac{{c}^{2}}{{b}^{2}}}\right) - c}{b} \]
        4. Applied egg-rr94.8%

          \[\leadsto \frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - \color{blue}{1 \cdot \frac{{c}^{2}}{{b}^{2}}}\right) - c}{b} \]
        5. Step-by-step derivation
          1. *-lft-identity94.8%

            \[\leadsto \frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - \color{blue}{\frac{{c}^{2}}{{b}^{2}}}\right) - c}{b} \]
          2. unpow294.8%

            \[\leadsto \frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - \frac{\color{blue}{c \cdot c}}{{b}^{2}}\right) - c}{b} \]
          3. unpow294.8%

            \[\leadsto \frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - \frac{c \cdot c}{\color{blue}{b \cdot b}}\right) - c}{b} \]
          4. times-frac94.8%

            \[\leadsto \frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - \color{blue}{\frac{c}{b} \cdot \frac{c}{b}}\right) - c}{b} \]
          5. sqr-neg94.8%

            \[\leadsto \frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - \color{blue}{\left(-\frac{c}{b}\right) \cdot \left(-\frac{c}{b}\right)}\right) - c}{b} \]
          6. distribute-frac-neg94.8%

            \[\leadsto \frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - \color{blue}{\frac{-c}{b}} \cdot \left(-\frac{c}{b}\right)\right) - c}{b} \]
          7. distribute-frac-neg94.8%

            \[\leadsto \frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - \frac{-c}{b} \cdot \color{blue}{\frac{-c}{b}}\right) - c}{b} \]
          8. unpow194.8%

            \[\leadsto \frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - \color{blue}{{\left(\frac{-c}{b}\right)}^{1}} \cdot \frac{-c}{b}\right) - c}{b} \]
          9. pow-plus94.8%

            \[\leadsto \frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - \color{blue}{{\left(\frac{-c}{b}\right)}^{\left(1 + 1\right)}}\right) - c}{b} \]
          10. distribute-frac-neg94.8%

            \[\leadsto \frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - {\color{blue}{\left(-\frac{c}{b}\right)}}^{\left(1 + 1\right)}\right) - c}{b} \]
          11. distribute-neg-frac294.8%

            \[\leadsto \frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - {\color{blue}{\left(\frac{c}{-b}\right)}}^{\left(1 + 1\right)}\right) - c}{b} \]
          12. metadata-eval94.8%

            \[\leadsto \frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - {\left(\frac{c}{-b}\right)}^{\color{blue}{2}}\right) - c}{b} \]
        6. Simplified94.8%

          \[\leadsto \frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - \color{blue}{{\left(\frac{c}{-b}\right)}^{2}}\right) - c}{b} \]
      5. Recombined 2 regimes into one program.
      6. Final simplification91.3%

        \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 80:\\ \;\;\;\;\frac{\frac{\left({b}^{2} - c \cdot \left(a \cdot 4\right)\right) - {\left(-b\right)}^{2}}{b + \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}}}{2 \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{a \cdot \left(a \cdot \left(-5 \cdot \frac{a \cdot {c}^{4}}{{b}^{6}} + -2 \cdot \frac{{c}^{3}}{{b}^{4}}\right) - {\left(\frac{c}{-b}\right)}^{2}\right) - c}{b}\\ \end{array} \]
      7. Add Preprocessing

      Alternative 3: 90.0% accurate, 0.3× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_0 := {b}^{2} - c \cdot \left(a \cdot 4\right)\\ \mathbf{if}\;b \leq 80:\\ \;\;\;\;\frac{\frac{t\_0 - {\left(-b\right)}^{2}}{b + \sqrt{t\_0}}}{2 \cdot a}\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(c \cdot \left(c \cdot \left({a}^{3} \cdot \left(\frac{c \cdot -5}{{b}^{7}} - \frac{2}{a \cdot {b}^{5}}\right)\right) - \frac{a}{{b}^{3}}\right) + \frac{-1}{b}\right)\\ \end{array} \end{array} \]
      (FPCore (a b c)
       :precision binary64
       (let* ((t_0 (- (pow b 2.0) (* c (* a 4.0)))))
         (if (<= b 80.0)
           (/ (/ (- t_0 (pow (- b) 2.0)) (+ b (sqrt t_0))) (* 2.0 a))
           (*
            c
            (+
             (*
              c
              (-
               (*
                c
                (*
                 (pow a 3.0)
                 (- (/ (* c -5.0) (pow b 7.0)) (/ 2.0 (* a (pow b 5.0))))))
               (/ a (pow b 3.0))))
             (/ -1.0 b))))))
      double code(double a, double b, double c) {
      	double t_0 = pow(b, 2.0) - (c * (a * 4.0));
      	double tmp;
      	if (b <= 80.0) {
      		tmp = ((t_0 - pow(-b, 2.0)) / (b + sqrt(t_0))) / (2.0 * a);
      	} else {
      		tmp = c * ((c * ((c * (pow(a, 3.0) * (((c * -5.0) / pow(b, 7.0)) - (2.0 / (a * pow(b, 5.0)))))) - (a / pow(b, 3.0)))) + (-1.0 / b));
      	}
      	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 = (b ** 2.0d0) - (c * (a * 4.0d0))
          if (b <= 80.0d0) then
              tmp = ((t_0 - (-b ** 2.0d0)) / (b + sqrt(t_0))) / (2.0d0 * a)
          else
              tmp = c * ((c * ((c * ((a ** 3.0d0) * (((c * (-5.0d0)) / (b ** 7.0d0)) - (2.0d0 / (a * (b ** 5.0d0)))))) - (a / (b ** 3.0d0)))) + ((-1.0d0) / b))
          end if
          code = tmp
      end function
      
      public static double code(double a, double b, double c) {
      	double t_0 = Math.pow(b, 2.0) - (c * (a * 4.0));
      	double tmp;
      	if (b <= 80.0) {
      		tmp = ((t_0 - Math.pow(-b, 2.0)) / (b + Math.sqrt(t_0))) / (2.0 * a);
      	} else {
      		tmp = c * ((c * ((c * (Math.pow(a, 3.0) * (((c * -5.0) / Math.pow(b, 7.0)) - (2.0 / (a * Math.pow(b, 5.0)))))) - (a / Math.pow(b, 3.0)))) + (-1.0 / b));
      	}
      	return tmp;
      }
      
      def code(a, b, c):
      	t_0 = math.pow(b, 2.0) - (c * (a * 4.0))
      	tmp = 0
      	if b <= 80.0:
      		tmp = ((t_0 - math.pow(-b, 2.0)) / (b + math.sqrt(t_0))) / (2.0 * a)
      	else:
      		tmp = c * ((c * ((c * (math.pow(a, 3.0) * (((c * -5.0) / math.pow(b, 7.0)) - (2.0 / (a * math.pow(b, 5.0)))))) - (a / math.pow(b, 3.0)))) + (-1.0 / b))
      	return tmp
      
      function code(a, b, c)
      	t_0 = Float64((b ^ 2.0) - Float64(c * Float64(a * 4.0)))
      	tmp = 0.0
      	if (b <= 80.0)
      		tmp = Float64(Float64(Float64(t_0 - (Float64(-b) ^ 2.0)) / Float64(b + sqrt(t_0))) / Float64(2.0 * a));
      	else
      		tmp = Float64(c * Float64(Float64(c * Float64(Float64(c * Float64((a ^ 3.0) * Float64(Float64(Float64(c * -5.0) / (b ^ 7.0)) - Float64(2.0 / Float64(a * (b ^ 5.0)))))) - Float64(a / (b ^ 3.0)))) + Float64(-1.0 / b)));
      	end
      	return tmp
      end
      
      function tmp_2 = code(a, b, c)
      	t_0 = (b ^ 2.0) - (c * (a * 4.0));
      	tmp = 0.0;
      	if (b <= 80.0)
      		tmp = ((t_0 - (-b ^ 2.0)) / (b + sqrt(t_0))) / (2.0 * a);
      	else
      		tmp = c * ((c * ((c * ((a ^ 3.0) * (((c * -5.0) / (b ^ 7.0)) - (2.0 / (a * (b ^ 5.0)))))) - (a / (b ^ 3.0)))) + (-1.0 / b));
      	end
      	tmp_2 = tmp;
      end
      
      code[a_, b_, c_] := Block[{t$95$0 = N[(N[Power[b, 2.0], $MachinePrecision] - N[(c * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, 80.0], N[(N[(N[(t$95$0 - N[Power[(-b), 2.0], $MachinePrecision]), $MachinePrecision] / N[(b + N[Sqrt[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 * a), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(c * N[(N[(c * N[(N[Power[a, 3.0], $MachinePrecision] * N[(N[(N[(c * -5.0), $MachinePrecision] / N[Power[b, 7.0], $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(a * N[Power[b, 5.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a / N[Power[b, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_0 := {b}^{2} - c \cdot \left(a \cdot 4\right)\\
      \mathbf{if}\;b \leq 80:\\
      \;\;\;\;\frac{\frac{t\_0 - {\left(-b\right)}^{2}}{b + \sqrt{t\_0}}}{2 \cdot a}\\
      
      \mathbf{else}:\\
      \;\;\;\;c \cdot \left(c \cdot \left(c \cdot \left({a}^{3} \cdot \left(\frac{c \cdot -5}{{b}^{7}} - \frac{2}{a \cdot {b}^{5}}\right)\right) - \frac{a}{{b}^{3}}\right) + \frac{-1}{b}\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if b < 80

        1. Initial program 81.5%

          \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
        2. Step-by-step derivation
          1. *-commutative81.5%

            \[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\color{blue}{a \cdot 2}} \]
        3. Simplified81.5%

          \[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a \cdot 2}} \]
        4. Add Preprocessing
        5. Step-by-step derivation
          1. add-cbrt-cube80.5%

            \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
          2. pow1/379.3%

            \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left(\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
          3. pow379.4%

            \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({\left(b \cdot b\right)}^{3}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
          4. pow279.4%

            \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({\color{blue}{\left({b}^{2}\right)}}^{3}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
          5. pow-pow79.1%

            \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({b}^{\left(2 \cdot 3\right)}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
          6. metadata-eval79.1%

            \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({b}^{\color{blue}{6}}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
        6. Applied egg-rr79.1%

          \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
        7. Step-by-step derivation
          1. unpow1/380.7%

            \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
        8. Simplified80.7%

          \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
        9. Step-by-step derivation
          1. flip-+80.5%

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

            \[\leadsto \frac{\frac{\color{blue}{{\left(-b\right)}^{2}} - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c} \cdot \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
          3. add-sqr-sqrt80.8%

            \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \color{blue}{\left(\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c\right)}}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
          4. pow1/379.3%

            \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left(\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
          5. pow-pow82.8%

            \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left(\color{blue}{{b}^{\left(6 \cdot 0.3333333333333333\right)}} - \left(4 \cdot a\right) \cdot c\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
          6. metadata-eval82.8%

            \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{\color{blue}{2}} - \left(4 \cdot a\right) \cdot c\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
          7. *-commutative82.8%

            \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - \color{blue}{c \cdot \left(4 \cdot a\right)}\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
          8. *-commutative82.8%

            \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \color{blue}{\left(a \cdot 4\right)}\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
          9. pow1/382.7%

            \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
          10. pow-pow82.9%

            \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{\color{blue}{{b}^{\left(6 \cdot 0.3333333333333333\right)}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
          11. metadata-eval82.9%

            \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{{b}^{\color{blue}{2}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
          12. *-commutative82.9%

            \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{{b}^{2} - \color{blue}{c \cdot \left(4 \cdot a\right)}}}}{a \cdot 2} \]
          13. *-commutative82.9%

            \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{{b}^{2} - c \cdot \color{blue}{\left(a \cdot 4\right)}}}}{a \cdot 2} \]
        10. Applied egg-rr82.9%

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

        if 80 < b

        1. Initial program 48.6%

          \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
        2. Step-by-step derivation
          1. Simplified48.6%

            \[\leadsto \color{blue}{\frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)} - b}{a \cdot 2}} \]
          2. Add Preprocessing
          3. Taylor expanded in b around inf 94.8%

            \[\leadsto \color{blue}{\frac{-2 \cdot \frac{{a}^{2} \cdot {c}^{3}}{{b}^{4}} + \left(-1 \cdot c + \left(-1 \cdot \frac{a \cdot {c}^{2}}{{b}^{2}} + -0.25 \cdot \frac{4 \cdot \left({a}^{4} \cdot {c}^{4}\right) + 16 \cdot \left({a}^{4} \cdot {c}^{4}\right)}{a \cdot {b}^{6}}\right)\right)}{b}} \]
          4. Step-by-step derivation
            1. Simplified94.8%

              \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(-2, {a}^{2} \cdot \frac{{c}^{3}}{{b}^{4}}, \left(-0.25 \cdot \left(\frac{{c}^{4} \cdot {a}^{4}}{a} \cdot \frac{20}{{b}^{6}}\right) - a \cdot \frac{{c}^{2}}{{b}^{2}}\right) - c\right)}{b}} \]
            2. Taylor expanded in c around 0 94.5%

              \[\leadsto \color{blue}{c \cdot \left(c \cdot \left(-1 \cdot \frac{a}{{b}^{3}} + c \cdot \left(-5 \cdot \frac{{a}^{3} \cdot c}{{b}^{7}} + -2 \cdot \frac{{a}^{2}}{{b}^{5}}\right)\right) - \frac{1}{b}\right)} \]
            3. Taylor expanded in a around inf 94.5%

              \[\leadsto c \cdot \left(c \cdot \left(-1 \cdot \frac{a}{{b}^{3}} + c \cdot \color{blue}{\left({a}^{3} \cdot \left(-5 \cdot \frac{c}{{b}^{7}} - 2 \cdot \frac{1}{a \cdot {b}^{5}}\right)\right)}\right) - \frac{1}{b}\right) \]
            4. Step-by-step derivation
              1. associate-*r/94.5%

                \[\leadsto c \cdot \left(c \cdot \left(-1 \cdot \frac{a}{{b}^{3}} + c \cdot \left({a}^{3} \cdot \left(\color{blue}{\frac{-5 \cdot c}{{b}^{7}}} - 2 \cdot \frac{1}{a \cdot {b}^{5}}\right)\right)\right) - \frac{1}{b}\right) \]
              2. associate-*r/94.5%

                \[\leadsto c \cdot \left(c \cdot \left(-1 \cdot \frac{a}{{b}^{3}} + c \cdot \left({a}^{3} \cdot \left(\frac{-5 \cdot c}{{b}^{7}} - \color{blue}{\frac{2 \cdot 1}{a \cdot {b}^{5}}}\right)\right)\right) - \frac{1}{b}\right) \]
              3. metadata-eval94.5%

                \[\leadsto c \cdot \left(c \cdot \left(-1 \cdot \frac{a}{{b}^{3}} + c \cdot \left({a}^{3} \cdot \left(\frac{-5 \cdot c}{{b}^{7}} - \frac{\color{blue}{2}}{a \cdot {b}^{5}}\right)\right)\right) - \frac{1}{b}\right) \]
            5. Simplified94.5%

              \[\leadsto c \cdot \left(c \cdot \left(-1 \cdot \frac{a}{{b}^{3}} + c \cdot \color{blue}{\left({a}^{3} \cdot \left(\frac{-5 \cdot c}{{b}^{7}} - \frac{2}{a \cdot {b}^{5}}\right)\right)}\right) - \frac{1}{b}\right) \]
          5. Recombined 2 regimes into one program.
          6. Final simplification91.1%

            \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 80:\\ \;\;\;\;\frac{\frac{\left({b}^{2} - c \cdot \left(a \cdot 4\right)\right) - {\left(-b\right)}^{2}}{b + \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}}}{2 \cdot a}\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(c \cdot \left(c \cdot \left({a}^{3} \cdot \left(\frac{c \cdot -5}{{b}^{7}} - \frac{2}{a \cdot {b}^{5}}\right)\right) - \frac{a}{{b}^{3}}\right) + \frac{-1}{b}\right)\\ \end{array} \]
          7. Add Preprocessing

          Alternative 4: 88.5% accurate, 0.3× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_0 := {b}^{2} - c \cdot \left(a \cdot 4\right)\\ \mathbf{if}\;b \leq 160:\\ \;\;\;\;\frac{\frac{t\_0 - {\left(-b\right)}^{2}}{b + \sqrt{t\_0}}}{2 \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{a \cdot \left(\frac{1}{b} + \frac{c \cdot a}{{b}^{3}}\right) - \frac{b}{c}}\\ \end{array} \end{array} \]
          (FPCore (a b c)
           :precision binary64
           (let* ((t_0 (- (pow b 2.0) (* c (* a 4.0)))))
             (if (<= b 160.0)
               (/ (/ (- t_0 (pow (- b) 2.0)) (+ b (sqrt t_0))) (* 2.0 a))
               (/ 1.0 (- (* a (+ (/ 1.0 b) (/ (* c a) (pow b 3.0)))) (/ b c))))))
          double code(double a, double b, double c) {
          	double t_0 = pow(b, 2.0) - (c * (a * 4.0));
          	double tmp;
          	if (b <= 160.0) {
          		tmp = ((t_0 - pow(-b, 2.0)) / (b + sqrt(t_0))) / (2.0 * a);
          	} else {
          		tmp = 1.0 / ((a * ((1.0 / b) + ((c * a) / pow(b, 3.0)))) - (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 = (b ** 2.0d0) - (c * (a * 4.0d0))
              if (b <= 160.0d0) then
                  tmp = ((t_0 - (-b ** 2.0d0)) / (b + sqrt(t_0))) / (2.0d0 * a)
              else
                  tmp = 1.0d0 / ((a * ((1.0d0 / b) + ((c * a) / (b ** 3.0d0)))) - (b / c))
              end if
              code = tmp
          end function
          
          public static double code(double a, double b, double c) {
          	double t_0 = Math.pow(b, 2.0) - (c * (a * 4.0));
          	double tmp;
          	if (b <= 160.0) {
          		tmp = ((t_0 - Math.pow(-b, 2.0)) / (b + Math.sqrt(t_0))) / (2.0 * a);
          	} else {
          		tmp = 1.0 / ((a * ((1.0 / b) + ((c * a) / Math.pow(b, 3.0)))) - (b / c));
          	}
          	return tmp;
          }
          
          def code(a, b, c):
          	t_0 = math.pow(b, 2.0) - (c * (a * 4.0))
          	tmp = 0
          	if b <= 160.0:
          		tmp = ((t_0 - math.pow(-b, 2.0)) / (b + math.sqrt(t_0))) / (2.0 * a)
          	else:
          		tmp = 1.0 / ((a * ((1.0 / b) + ((c * a) / math.pow(b, 3.0)))) - (b / c))
          	return tmp
          
          function code(a, b, c)
          	t_0 = Float64((b ^ 2.0) - Float64(c * Float64(a * 4.0)))
          	tmp = 0.0
          	if (b <= 160.0)
          		tmp = Float64(Float64(Float64(t_0 - (Float64(-b) ^ 2.0)) / Float64(b + sqrt(t_0))) / Float64(2.0 * a));
          	else
          		tmp = Float64(1.0 / Float64(Float64(a * Float64(Float64(1.0 / b) + Float64(Float64(c * a) / (b ^ 3.0)))) - Float64(b / c)));
          	end
          	return tmp
          end
          
          function tmp_2 = code(a, b, c)
          	t_0 = (b ^ 2.0) - (c * (a * 4.0));
          	tmp = 0.0;
          	if (b <= 160.0)
          		tmp = ((t_0 - (-b ^ 2.0)) / (b + sqrt(t_0))) / (2.0 * a);
          	else
          		tmp = 1.0 / ((a * ((1.0 / b) + ((c * a) / (b ^ 3.0)))) - (b / c));
          	end
          	tmp_2 = tmp;
          end
          
          code[a_, b_, c_] := Block[{t$95$0 = N[(N[Power[b, 2.0], $MachinePrecision] - N[(c * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, 160.0], N[(N[(N[(t$95$0 - N[Power[(-b), 2.0], $MachinePrecision]), $MachinePrecision] / N[(b + N[Sqrt[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(2.0 * a), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(a * N[(N[(1.0 / b), $MachinePrecision] + N[(N[(c * a), $MachinePrecision] / N[Power[b, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_0 := {b}^{2} - c \cdot \left(a \cdot 4\right)\\
          \mathbf{if}\;b \leq 160:\\
          \;\;\;\;\frac{\frac{t\_0 - {\left(-b\right)}^{2}}{b + \sqrt{t\_0}}}{2 \cdot a}\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{1}{a \cdot \left(\frac{1}{b} + \frac{c \cdot a}{{b}^{3}}\right) - \frac{b}{c}}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if b < 160

            1. Initial program 80.7%

              \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
            2. Step-by-step derivation
              1. *-commutative80.7%

                \[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\color{blue}{a \cdot 2}} \]
            3. Simplified80.7%

              \[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a \cdot 2}} \]
            4. Add Preprocessing
            5. Step-by-step derivation
              1. add-cbrt-cube79.7%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              2. pow1/378.2%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left(\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              3. pow378.2%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({\left(b \cdot b\right)}^{3}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              4. pow278.2%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({\color{blue}{\left({b}^{2}\right)}}^{3}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              5. pow-pow77.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({b}^{\left(2 \cdot 3\right)}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              6. metadata-eval77.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({b}^{\color{blue}{6}}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            6. Applied egg-rr77.9%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            7. Step-by-step derivation
              1. unpow1/380.0%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            8. Simplified80.0%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            9. Step-by-step derivation
              1. flip-+79.8%

                \[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c} \cdot \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}}{a \cdot 2} \]
              2. pow279.8%

                \[\leadsto \frac{\frac{\color{blue}{{\left(-b\right)}^{2}} - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c} \cdot \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
              3. add-sqr-sqrt80.1%

                \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \color{blue}{\left(\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c\right)}}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
              4. pow1/378.1%

                \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left(\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
              5. pow-pow82.1%

                \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left(\color{blue}{{b}^{\left(6 \cdot 0.3333333333333333\right)}} - \left(4 \cdot a\right) \cdot c\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
              6. metadata-eval82.1%

                \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{\color{blue}{2}} - \left(4 \cdot a\right) \cdot c\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
              7. *-commutative82.1%

                \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - \color{blue}{c \cdot \left(4 \cdot a\right)}\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
              8. *-commutative82.1%

                \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \color{blue}{\left(a \cdot 4\right)}\right)}{\left(-b\right) - \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
              9. pow1/382.0%

                \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
              10. pow-pow82.1%

                \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{\color{blue}{{b}^{\left(6 \cdot 0.3333333333333333\right)}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
              11. metadata-eval82.1%

                \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{{b}^{\color{blue}{2}} - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2} \]
              12. *-commutative82.1%

                \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{{b}^{2} - \color{blue}{c \cdot \left(4 \cdot a\right)}}}}{a \cdot 2} \]
              13. *-commutative82.1%

                \[\leadsto \frac{\frac{{\left(-b\right)}^{2} - \left({b}^{2} - c \cdot \left(a \cdot 4\right)\right)}{\left(-b\right) - \sqrt{{b}^{2} - c \cdot \color{blue}{\left(a \cdot 4\right)}}}}{a \cdot 2} \]
            10. Applied egg-rr82.1%

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

            if 160 < b

            1. Initial program 46.7%

              \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
            2. Step-by-step derivation
              1. *-commutative46.7%

                \[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\color{blue}{a \cdot 2}} \]
            3. Simplified46.7%

              \[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a \cdot 2}} \]
            4. Add Preprocessing
            5. Step-by-step derivation
              1. add-cbrt-cube46.2%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              2. pow1/343.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left(\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              3. pow343.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({\left(b \cdot b\right)}^{3}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              4. pow243.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({\color{blue}{\left({b}^{2}\right)}}^{3}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              5. pow-pow43.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({b}^{\left(2 \cdot 3\right)}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              6. metadata-eval43.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({b}^{\color{blue}{6}}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            6. Applied egg-rr43.9%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            7. Step-by-step derivation
              1. unpow1/346.5%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            8. Simplified46.5%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            9. Step-by-step derivation
              1. clear-num46.5%

                \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot 2}{\left(-b\right) + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}} \]
              2. inv-pow46.5%

                \[\leadsto \color{blue}{{\left(\frac{a \cdot 2}{\left(-b\right) + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}\right)}^{-1}} \]
              3. neg-mul-146.5%

                \[\leadsto {\left(\frac{a \cdot 2}{\color{blue}{-1 \cdot b} + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}\right)}^{-1} \]
              4. fma-define46.5%

                \[\leadsto {\left(\frac{a \cdot 2}{\color{blue}{\mathsf{fma}\left(-1, b, \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}\right)}}\right)}^{-1} \]
              5. pow1/343.9%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
              6. pow-pow46.7%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{b}^{\left(6 \cdot 0.3333333333333333\right)}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
              7. metadata-eval46.7%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{\color{blue}{2}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
              8. *-commutative46.7%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{c \cdot \left(4 \cdot a\right)}}\right)}\right)}^{-1} \]
              9. *-commutative46.7%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \color{blue}{\left(a \cdot 4\right)}}\right)}\right)}^{-1} \]
            10. Applied egg-rr46.7%

              \[\leadsto \color{blue}{{\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}\right)}^{-1}} \]
            11. Step-by-step derivation
              1. unpow-146.7%

                \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}}} \]
              2. associate-/l*46.7%

                \[\leadsto \frac{1}{\color{blue}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}}} \]
              3. *-commutative46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{\left(a \cdot 4\right) \cdot c}}\right)}} \]
              4. *-commutative46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{\left(4 \cdot a\right)} \cdot c}\right)}} \]
              5. associate-*r*46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{4 \cdot \left(a \cdot c\right)}}\right)}} \]
              6. cancel-sign-sub-inv46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{b}^{2} + \left(-4\right) \cdot \left(a \cdot c\right)}}\right)}} \]
              7. metadata-eval46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} + \color{blue}{-4} \cdot \left(a \cdot c\right)}\right)}} \]
              8. +-commutative46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{-4 \cdot \left(a \cdot c\right) + {b}^{2}}}\right)}} \]
              9. fma-define46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{\mathsf{fma}\left(-4, a \cdot c, {b}^{2}\right)}}\right)}} \]
              10. *-commutative46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\mathsf{fma}\left(-4, \color{blue}{c \cdot a}, {b}^{2}\right)}\right)}} \]
            12. Simplified46.7%

              \[\leadsto \color{blue}{\frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\mathsf{fma}\left(-4, c \cdot a, {b}^{2}\right)}\right)}}} \]
            13. Taylor expanded in b around inf 95.8%

              \[\leadsto \frac{1}{\color{blue}{b \cdot \left(\left(-2 \cdot \frac{-1 \cdot \left(a \cdot \left(c \cdot \left(-1 \cdot \left({a}^{2} \cdot c\right) + 0.5 \cdot \left({a}^{2} \cdot c\right)\right)\right)\right) + \left(-0.125 \cdot \frac{4 \cdot \left({a}^{4} \cdot {c}^{4}\right) + 16 \cdot \left({a}^{4} \cdot {c}^{4}\right)}{a \cdot {c}^{2}} + {a}^{3} \cdot {c}^{2}\right)}{{b}^{6}} + \left(-2 \cdot \frac{-1 \cdot \left({a}^{2} \cdot c\right) + 0.5 \cdot \left({a}^{2} \cdot c\right)}{{b}^{4}} + \frac{a}{{b}^{2}}\right)\right) - \frac{1}{c}\right)}} \]
            14. Simplified95.8%

              \[\leadsto \frac{1}{\color{blue}{b \cdot \left(\mathsf{fma}\left(-2, \frac{\mathsf{fma}\left(-0.125, \frac{{a}^{4} \cdot {c}^{4}}{a} \cdot \frac{20}{{c}^{2}}, {c}^{2} \cdot {a}^{3}\right) - \left(c \cdot a\right) \cdot \left(\left(c \cdot {a}^{2}\right) \cdot -0.5\right)}{{b}^{6}}, \mathsf{fma}\left(-2, \frac{\left(c \cdot {a}^{2}\right) \cdot -0.5}{{b}^{4}}, \frac{a}{{b}^{2}}\right)\right) - \frac{1}{c}\right)}} \]
            15. Taylor expanded in a around 0 94.2%

              \[\leadsto \frac{1}{\color{blue}{-1 \cdot \frac{b}{c} + a \cdot \left(\frac{1}{b} + \frac{a \cdot c}{{b}^{3}}\right)}} \]
          3. Recombined 2 regimes into one program.
          4. Final simplification90.2%

            \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 160:\\ \;\;\;\;\frac{\frac{\left({b}^{2} - c \cdot \left(a \cdot 4\right)\right) - {\left(-b\right)}^{2}}{b + \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}}}{2 \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{a \cdot \left(\frac{1}{b} + \frac{c \cdot a}{{b}^{3}}\right) - \frac{b}{c}}\\ \end{array} \]
          5. Add Preprocessing

          Alternative 5: 88.0% accurate, 0.5× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq 160:\\ \;\;\;\;\frac{\sqrt{\mathsf{fma}\left(b, b, c \cdot \left(a \cdot -4\right)\right)} - b}{2 \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{a \cdot \left(\frac{1}{b} + \frac{c \cdot a}{{b}^{3}}\right) - \frac{b}{c}}\\ \end{array} \end{array} \]
          (FPCore (a b c)
           :precision binary64
           (if (<= b 160.0)
             (/ (- (sqrt (fma b b (* c (* a -4.0)))) b) (* 2.0 a))
             (/ 1.0 (- (* a (+ (/ 1.0 b) (/ (* c a) (pow b 3.0)))) (/ b c)))))
          double code(double a, double b, double c) {
          	double tmp;
          	if (b <= 160.0) {
          		tmp = (sqrt(fma(b, b, (c * (a * -4.0)))) - b) / (2.0 * a);
          	} else {
          		tmp = 1.0 / ((a * ((1.0 / b) + ((c * a) / pow(b, 3.0)))) - (b / c));
          	}
          	return tmp;
          }
          
          function code(a, b, c)
          	tmp = 0.0
          	if (b <= 160.0)
          		tmp = Float64(Float64(sqrt(fma(b, b, Float64(c * Float64(a * -4.0)))) - b) / Float64(2.0 * a));
          	else
          		tmp = Float64(1.0 / Float64(Float64(a * Float64(Float64(1.0 / b) + Float64(Float64(c * a) / (b ^ 3.0)))) - Float64(b / c)));
          	end
          	return tmp
          end
          
          code[a_, b_, c_] := If[LessEqual[b, 160.0], N[(N[(N[Sqrt[N[(b * b + N[(c * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(2.0 * a), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(a * N[(N[(1.0 / b), $MachinePrecision] + N[(N[(c * a), $MachinePrecision] / N[Power[b, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;b \leq 160:\\
          \;\;\;\;\frac{\sqrt{\mathsf{fma}\left(b, b, c \cdot \left(a \cdot -4\right)\right)} - b}{2 \cdot a}\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{1}{a \cdot \left(\frac{1}{b} + \frac{c \cdot a}{{b}^{3}}\right) - \frac{b}{c}}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if b < 160

            1. Initial program 80.7%

              \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
            2. Step-by-step derivation
              1. *-commutative80.7%

                \[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\color{blue}{a \cdot 2}} \]
            3. Simplified80.8%

              \[\leadsto \color{blue}{\frac{\sqrt{\mathsf{fma}\left(b, b, c \cdot \left(a \cdot -4\right)\right)} - b}{a \cdot 2}} \]
            4. Add Preprocessing

            if 160 < b

            1. Initial program 46.7%

              \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
            2. Step-by-step derivation
              1. *-commutative46.7%

                \[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\color{blue}{a \cdot 2}} \]
            3. Simplified46.7%

              \[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a \cdot 2}} \]
            4. Add Preprocessing
            5. Step-by-step derivation
              1. add-cbrt-cube46.2%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              2. pow1/343.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left(\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              3. pow343.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({\left(b \cdot b\right)}^{3}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              4. pow243.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({\color{blue}{\left({b}^{2}\right)}}^{3}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              5. pow-pow43.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({b}^{\left(2 \cdot 3\right)}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              6. metadata-eval43.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({b}^{\color{blue}{6}}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            6. Applied egg-rr43.9%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            7. Step-by-step derivation
              1. unpow1/346.5%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            8. Simplified46.5%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            9. Step-by-step derivation
              1. clear-num46.5%

                \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot 2}{\left(-b\right) + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}} \]
              2. inv-pow46.5%

                \[\leadsto \color{blue}{{\left(\frac{a \cdot 2}{\left(-b\right) + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}\right)}^{-1}} \]
              3. neg-mul-146.5%

                \[\leadsto {\left(\frac{a \cdot 2}{\color{blue}{-1 \cdot b} + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}\right)}^{-1} \]
              4. fma-define46.5%

                \[\leadsto {\left(\frac{a \cdot 2}{\color{blue}{\mathsf{fma}\left(-1, b, \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}\right)}}\right)}^{-1} \]
              5. pow1/343.9%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
              6. pow-pow46.7%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{b}^{\left(6 \cdot 0.3333333333333333\right)}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
              7. metadata-eval46.7%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{\color{blue}{2}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
              8. *-commutative46.7%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{c \cdot \left(4 \cdot a\right)}}\right)}\right)}^{-1} \]
              9. *-commutative46.7%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \color{blue}{\left(a \cdot 4\right)}}\right)}\right)}^{-1} \]
            10. Applied egg-rr46.7%

              \[\leadsto \color{blue}{{\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}\right)}^{-1}} \]
            11. Step-by-step derivation
              1. unpow-146.7%

                \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}}} \]
              2. associate-/l*46.7%

                \[\leadsto \frac{1}{\color{blue}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}}} \]
              3. *-commutative46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{\left(a \cdot 4\right) \cdot c}}\right)}} \]
              4. *-commutative46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{\left(4 \cdot a\right)} \cdot c}\right)}} \]
              5. associate-*r*46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{4 \cdot \left(a \cdot c\right)}}\right)}} \]
              6. cancel-sign-sub-inv46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{b}^{2} + \left(-4\right) \cdot \left(a \cdot c\right)}}\right)}} \]
              7. metadata-eval46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} + \color{blue}{-4} \cdot \left(a \cdot c\right)}\right)}} \]
              8. +-commutative46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{-4 \cdot \left(a \cdot c\right) + {b}^{2}}}\right)}} \]
              9. fma-define46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{\mathsf{fma}\left(-4, a \cdot c, {b}^{2}\right)}}\right)}} \]
              10. *-commutative46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\mathsf{fma}\left(-4, \color{blue}{c \cdot a}, {b}^{2}\right)}\right)}} \]
            12. Simplified46.7%

              \[\leadsto \color{blue}{\frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\mathsf{fma}\left(-4, c \cdot a, {b}^{2}\right)}\right)}}} \]
            13. Taylor expanded in b around inf 95.8%

              \[\leadsto \frac{1}{\color{blue}{b \cdot \left(\left(-2 \cdot \frac{-1 \cdot \left(a \cdot \left(c \cdot \left(-1 \cdot \left({a}^{2} \cdot c\right) + 0.5 \cdot \left({a}^{2} \cdot c\right)\right)\right)\right) + \left(-0.125 \cdot \frac{4 \cdot \left({a}^{4} \cdot {c}^{4}\right) + 16 \cdot \left({a}^{4} \cdot {c}^{4}\right)}{a \cdot {c}^{2}} + {a}^{3} \cdot {c}^{2}\right)}{{b}^{6}} + \left(-2 \cdot \frac{-1 \cdot \left({a}^{2} \cdot c\right) + 0.5 \cdot \left({a}^{2} \cdot c\right)}{{b}^{4}} + \frac{a}{{b}^{2}}\right)\right) - \frac{1}{c}\right)}} \]
            14. Simplified95.8%

              \[\leadsto \frac{1}{\color{blue}{b \cdot \left(\mathsf{fma}\left(-2, \frac{\mathsf{fma}\left(-0.125, \frac{{a}^{4} \cdot {c}^{4}}{a} \cdot \frac{20}{{c}^{2}}, {c}^{2} \cdot {a}^{3}\right) - \left(c \cdot a\right) \cdot \left(\left(c \cdot {a}^{2}\right) \cdot -0.5\right)}{{b}^{6}}, \mathsf{fma}\left(-2, \frac{\left(c \cdot {a}^{2}\right) \cdot -0.5}{{b}^{4}}, \frac{a}{{b}^{2}}\right)\right) - \frac{1}{c}\right)}} \]
            15. Taylor expanded in a around 0 94.2%

              \[\leadsto \frac{1}{\color{blue}{-1 \cdot \frac{b}{c} + a \cdot \left(\frac{1}{b} + \frac{a \cdot c}{{b}^{3}}\right)}} \]
          3. Recombined 2 regimes into one program.
          4. Final simplification89.7%

            \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 160:\\ \;\;\;\;\frac{\sqrt{\mathsf{fma}\left(b, b, c \cdot \left(a \cdot -4\right)\right)} - b}{2 \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{a \cdot \left(\frac{1}{b} + \frac{c \cdot a}{{b}^{3}}\right) - \frac{b}{c}}\\ \end{array} \]
          5. Add Preprocessing

          Alternative 6: 88.0% accurate, 0.9× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq 160:\\ \;\;\;\;\frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 4\right)} - b}{2 \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{a \cdot \left(\frac{1}{b} + \frac{c \cdot a}{{b}^{3}}\right) - \frac{b}{c}}\\ \end{array} \end{array} \]
          (FPCore (a b c)
           :precision binary64
           (if (<= b 160.0)
             (/ (- (sqrt (- (* b b) (* c (* a 4.0)))) b) (* 2.0 a))
             (/ 1.0 (- (* a (+ (/ 1.0 b) (/ (* c a) (pow b 3.0)))) (/ b c)))))
          double code(double a, double b, double c) {
          	double tmp;
          	if (b <= 160.0) {
          		tmp = (sqrt(((b * b) - (c * (a * 4.0)))) - b) / (2.0 * a);
          	} else {
          		tmp = 1.0 / ((a * ((1.0 / b) + ((c * a) / pow(b, 3.0)))) - (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) :: tmp
              if (b <= 160.0d0) then
                  tmp = (sqrt(((b * b) - (c * (a * 4.0d0)))) - b) / (2.0d0 * a)
              else
                  tmp = 1.0d0 / ((a * ((1.0d0 / b) + ((c * a) / (b ** 3.0d0)))) - (b / c))
              end if
              code = tmp
          end function
          
          public static double code(double a, double b, double c) {
          	double tmp;
          	if (b <= 160.0) {
          		tmp = (Math.sqrt(((b * b) - (c * (a * 4.0)))) - b) / (2.0 * a);
          	} else {
          		tmp = 1.0 / ((a * ((1.0 / b) + ((c * a) / Math.pow(b, 3.0)))) - (b / c));
          	}
          	return tmp;
          }
          
          def code(a, b, c):
          	tmp = 0
          	if b <= 160.0:
          		tmp = (math.sqrt(((b * b) - (c * (a * 4.0)))) - b) / (2.0 * a)
          	else:
          		tmp = 1.0 / ((a * ((1.0 / b) + ((c * a) / math.pow(b, 3.0)))) - (b / c))
          	return tmp
          
          function code(a, b, c)
          	tmp = 0.0
          	if (b <= 160.0)
          		tmp = Float64(Float64(sqrt(Float64(Float64(b * b) - Float64(c * Float64(a * 4.0)))) - b) / Float64(2.0 * a));
          	else
          		tmp = Float64(1.0 / Float64(Float64(a * Float64(Float64(1.0 / b) + Float64(Float64(c * a) / (b ^ 3.0)))) - Float64(b / c)));
          	end
          	return tmp
          end
          
          function tmp_2 = code(a, b, c)
          	tmp = 0.0;
          	if (b <= 160.0)
          		tmp = (sqrt(((b * b) - (c * (a * 4.0)))) - b) / (2.0 * a);
          	else
          		tmp = 1.0 / ((a * ((1.0 / b) + ((c * a) / (b ^ 3.0)))) - (b / c));
          	end
          	tmp_2 = tmp;
          end
          
          code[a_, b_, c_] := If[LessEqual[b, 160.0], N[(N[(N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(c * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(2.0 * a), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(a * N[(N[(1.0 / b), $MachinePrecision] + N[(N[(c * a), $MachinePrecision] / N[Power[b, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;b \leq 160:\\
          \;\;\;\;\frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 4\right)} - b}{2 \cdot a}\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{1}{a \cdot \left(\frac{1}{b} + \frac{c \cdot a}{{b}^{3}}\right) - \frac{b}{c}}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if b < 160

            1. Initial program 80.7%

              \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
            2. Add Preprocessing

            if 160 < b

            1. Initial program 46.7%

              \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
            2. Step-by-step derivation
              1. *-commutative46.7%

                \[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\color{blue}{a \cdot 2}} \]
            3. Simplified46.7%

              \[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a \cdot 2}} \]
            4. Add Preprocessing
            5. Step-by-step derivation
              1. add-cbrt-cube46.2%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              2. pow1/343.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left(\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              3. pow343.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({\left(b \cdot b\right)}^{3}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              4. pow243.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({\color{blue}{\left({b}^{2}\right)}}^{3}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              5. pow-pow43.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({b}^{\left(2 \cdot 3\right)}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              6. metadata-eval43.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({b}^{\color{blue}{6}}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            6. Applied egg-rr43.9%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            7. Step-by-step derivation
              1. unpow1/346.5%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            8. Simplified46.5%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            9. Step-by-step derivation
              1. clear-num46.5%

                \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot 2}{\left(-b\right) + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}} \]
              2. inv-pow46.5%

                \[\leadsto \color{blue}{{\left(\frac{a \cdot 2}{\left(-b\right) + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}\right)}^{-1}} \]
              3. neg-mul-146.5%

                \[\leadsto {\left(\frac{a \cdot 2}{\color{blue}{-1 \cdot b} + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}\right)}^{-1} \]
              4. fma-define46.5%

                \[\leadsto {\left(\frac{a \cdot 2}{\color{blue}{\mathsf{fma}\left(-1, b, \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}\right)}}\right)}^{-1} \]
              5. pow1/343.9%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
              6. pow-pow46.7%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{b}^{\left(6 \cdot 0.3333333333333333\right)}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
              7. metadata-eval46.7%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{\color{blue}{2}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
              8. *-commutative46.7%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{c \cdot \left(4 \cdot a\right)}}\right)}\right)}^{-1} \]
              9. *-commutative46.7%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \color{blue}{\left(a \cdot 4\right)}}\right)}\right)}^{-1} \]
            10. Applied egg-rr46.7%

              \[\leadsto \color{blue}{{\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}\right)}^{-1}} \]
            11. Step-by-step derivation
              1. unpow-146.7%

                \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}}} \]
              2. associate-/l*46.7%

                \[\leadsto \frac{1}{\color{blue}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}}} \]
              3. *-commutative46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{\left(a \cdot 4\right) \cdot c}}\right)}} \]
              4. *-commutative46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{\left(4 \cdot a\right)} \cdot c}\right)}} \]
              5. associate-*r*46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{4 \cdot \left(a \cdot c\right)}}\right)}} \]
              6. cancel-sign-sub-inv46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{b}^{2} + \left(-4\right) \cdot \left(a \cdot c\right)}}\right)}} \]
              7. metadata-eval46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} + \color{blue}{-4} \cdot \left(a \cdot c\right)}\right)}} \]
              8. +-commutative46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{-4 \cdot \left(a \cdot c\right) + {b}^{2}}}\right)}} \]
              9. fma-define46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{\mathsf{fma}\left(-4, a \cdot c, {b}^{2}\right)}}\right)}} \]
              10. *-commutative46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\mathsf{fma}\left(-4, \color{blue}{c \cdot a}, {b}^{2}\right)}\right)}} \]
            12. Simplified46.7%

              \[\leadsto \color{blue}{\frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\mathsf{fma}\left(-4, c \cdot a, {b}^{2}\right)}\right)}}} \]
            13. Taylor expanded in b around inf 95.8%

              \[\leadsto \frac{1}{\color{blue}{b \cdot \left(\left(-2 \cdot \frac{-1 \cdot \left(a \cdot \left(c \cdot \left(-1 \cdot \left({a}^{2} \cdot c\right) + 0.5 \cdot \left({a}^{2} \cdot c\right)\right)\right)\right) + \left(-0.125 \cdot \frac{4 \cdot \left({a}^{4} \cdot {c}^{4}\right) + 16 \cdot \left({a}^{4} \cdot {c}^{4}\right)}{a \cdot {c}^{2}} + {a}^{3} \cdot {c}^{2}\right)}{{b}^{6}} + \left(-2 \cdot \frac{-1 \cdot \left({a}^{2} \cdot c\right) + 0.5 \cdot \left({a}^{2} \cdot c\right)}{{b}^{4}} + \frac{a}{{b}^{2}}\right)\right) - \frac{1}{c}\right)}} \]
            14. Simplified95.8%

              \[\leadsto \frac{1}{\color{blue}{b \cdot \left(\mathsf{fma}\left(-2, \frac{\mathsf{fma}\left(-0.125, \frac{{a}^{4} \cdot {c}^{4}}{a} \cdot \frac{20}{{c}^{2}}, {c}^{2} \cdot {a}^{3}\right) - \left(c \cdot a\right) \cdot \left(\left(c \cdot {a}^{2}\right) \cdot -0.5\right)}{{b}^{6}}, \mathsf{fma}\left(-2, \frac{\left(c \cdot {a}^{2}\right) \cdot -0.5}{{b}^{4}}, \frac{a}{{b}^{2}}\right)\right) - \frac{1}{c}\right)}} \]
            15. Taylor expanded in a around 0 94.2%

              \[\leadsto \frac{1}{\color{blue}{-1 \cdot \frac{b}{c} + a \cdot \left(\frac{1}{b} + \frac{a \cdot c}{{b}^{3}}\right)}} \]
          3. Recombined 2 regimes into one program.
          4. Final simplification89.7%

            \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 160:\\ \;\;\;\;\frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 4\right)} - b}{2 \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{a \cdot \left(\frac{1}{b} + \frac{c \cdot a}{{b}^{3}}\right) - \frac{b}{c}}\\ \end{array} \]
          5. Add Preprocessing

          Alternative 7: 85.0% accurate, 1.0× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq 160:\\ \;\;\;\;\frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 4\right)} - b}{2 \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{\frac{c \cdot a}{b} - b}{c}}\\ \end{array} \end{array} \]
          (FPCore (a b c)
           :precision binary64
           (if (<= b 160.0)
             (/ (- (sqrt (- (* b b) (* c (* a 4.0)))) b) (* 2.0 a))
             (/ 1.0 (/ (- (/ (* c a) b) b) c))))
          double code(double a, double b, double c) {
          	double tmp;
          	if (b <= 160.0) {
          		tmp = (sqrt(((b * b) - (c * (a * 4.0)))) - b) / (2.0 * a);
          	} else {
          		tmp = 1.0 / ((((c * a) / b) - 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) :: tmp
              if (b <= 160.0d0) then
                  tmp = (sqrt(((b * b) - (c * (a * 4.0d0)))) - b) / (2.0d0 * a)
              else
                  tmp = 1.0d0 / ((((c * a) / b) - b) / c)
              end if
              code = tmp
          end function
          
          public static double code(double a, double b, double c) {
          	double tmp;
          	if (b <= 160.0) {
          		tmp = (Math.sqrt(((b * b) - (c * (a * 4.0)))) - b) / (2.0 * a);
          	} else {
          		tmp = 1.0 / ((((c * a) / b) - b) / c);
          	}
          	return tmp;
          }
          
          def code(a, b, c):
          	tmp = 0
          	if b <= 160.0:
          		tmp = (math.sqrt(((b * b) - (c * (a * 4.0)))) - b) / (2.0 * a)
          	else:
          		tmp = 1.0 / ((((c * a) / b) - b) / c)
          	return tmp
          
          function code(a, b, c)
          	tmp = 0.0
          	if (b <= 160.0)
          		tmp = Float64(Float64(sqrt(Float64(Float64(b * b) - Float64(c * Float64(a * 4.0)))) - b) / Float64(2.0 * a));
          	else
          		tmp = Float64(1.0 / Float64(Float64(Float64(Float64(c * a) / b) - b) / c));
          	end
          	return tmp
          end
          
          function tmp_2 = code(a, b, c)
          	tmp = 0.0;
          	if (b <= 160.0)
          		tmp = (sqrt(((b * b) - (c * (a * 4.0)))) - b) / (2.0 * a);
          	else
          		tmp = 1.0 / ((((c * a) / b) - b) / c);
          	end
          	tmp_2 = tmp;
          end
          
          code[a_, b_, c_] := If[LessEqual[b, 160.0], N[(N[(N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(c * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(2.0 * a), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(N[(N[(c * a), $MachinePrecision] / b), $MachinePrecision] - b), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;b \leq 160:\\
          \;\;\;\;\frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 4\right)} - b}{2 \cdot a}\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{1}{\frac{\frac{c \cdot a}{b} - b}{c}}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if b < 160

            1. Initial program 80.7%

              \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
            2. Add Preprocessing

            if 160 < b

            1. Initial program 46.7%

              \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
            2. Step-by-step derivation
              1. *-commutative46.7%

                \[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\color{blue}{a \cdot 2}} \]
            3. Simplified46.7%

              \[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a \cdot 2}} \]
            4. Add Preprocessing
            5. Step-by-step derivation
              1. add-cbrt-cube46.2%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              2. pow1/343.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left(\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              3. pow343.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({\left(b \cdot b\right)}^{3}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              4. pow243.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({\color{blue}{\left({b}^{2}\right)}}^{3}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              5. pow-pow43.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({b}^{\left(2 \cdot 3\right)}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              6. metadata-eval43.9%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({b}^{\color{blue}{6}}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            6. Applied egg-rr43.9%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            7. Step-by-step derivation
              1. unpow1/346.5%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            8. Simplified46.5%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            9. Step-by-step derivation
              1. clear-num46.5%

                \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot 2}{\left(-b\right) + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}} \]
              2. inv-pow46.5%

                \[\leadsto \color{blue}{{\left(\frac{a \cdot 2}{\left(-b\right) + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}\right)}^{-1}} \]
              3. neg-mul-146.5%

                \[\leadsto {\left(\frac{a \cdot 2}{\color{blue}{-1 \cdot b} + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}\right)}^{-1} \]
              4. fma-define46.5%

                \[\leadsto {\left(\frac{a \cdot 2}{\color{blue}{\mathsf{fma}\left(-1, b, \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}\right)}}\right)}^{-1} \]
              5. pow1/343.9%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
              6. pow-pow46.7%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{b}^{\left(6 \cdot 0.3333333333333333\right)}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
              7. metadata-eval46.7%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{\color{blue}{2}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
              8. *-commutative46.7%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{c \cdot \left(4 \cdot a\right)}}\right)}\right)}^{-1} \]
              9. *-commutative46.7%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \color{blue}{\left(a \cdot 4\right)}}\right)}\right)}^{-1} \]
            10. Applied egg-rr46.7%

              \[\leadsto \color{blue}{{\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}\right)}^{-1}} \]
            11. Step-by-step derivation
              1. unpow-146.7%

                \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}}} \]
              2. associate-/l*46.7%

                \[\leadsto \frac{1}{\color{blue}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}}} \]
              3. *-commutative46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{\left(a \cdot 4\right) \cdot c}}\right)}} \]
              4. *-commutative46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{\left(4 \cdot a\right)} \cdot c}\right)}} \]
              5. associate-*r*46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{4 \cdot \left(a \cdot c\right)}}\right)}} \]
              6. cancel-sign-sub-inv46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{b}^{2} + \left(-4\right) \cdot \left(a \cdot c\right)}}\right)}} \]
              7. metadata-eval46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} + \color{blue}{-4} \cdot \left(a \cdot c\right)}\right)}} \]
              8. +-commutative46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{-4 \cdot \left(a \cdot c\right) + {b}^{2}}}\right)}} \]
              9. fma-define46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{\mathsf{fma}\left(-4, a \cdot c, {b}^{2}\right)}}\right)}} \]
              10. *-commutative46.7%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\mathsf{fma}\left(-4, \color{blue}{c \cdot a}, {b}^{2}\right)}\right)}} \]
            12. Simplified46.7%

              \[\leadsto \color{blue}{\frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\mathsf{fma}\left(-4, c \cdot a, {b}^{2}\right)}\right)}}} \]
            13. Taylor expanded in b around inf 95.8%

              \[\leadsto \frac{1}{\color{blue}{b \cdot \left(\left(-2 \cdot \frac{-1 \cdot \left(a \cdot \left(c \cdot \left(-1 \cdot \left({a}^{2} \cdot c\right) + 0.5 \cdot \left({a}^{2} \cdot c\right)\right)\right)\right) + \left(-0.125 \cdot \frac{4 \cdot \left({a}^{4} \cdot {c}^{4}\right) + 16 \cdot \left({a}^{4} \cdot {c}^{4}\right)}{a \cdot {c}^{2}} + {a}^{3} \cdot {c}^{2}\right)}{{b}^{6}} + \left(-2 \cdot \frac{-1 \cdot \left({a}^{2} \cdot c\right) + 0.5 \cdot \left({a}^{2} \cdot c\right)}{{b}^{4}} + \frac{a}{{b}^{2}}\right)\right) - \frac{1}{c}\right)}} \]
            14. Simplified95.8%

              \[\leadsto \frac{1}{\color{blue}{b \cdot \left(\mathsf{fma}\left(-2, \frac{\mathsf{fma}\left(-0.125, \frac{{a}^{4} \cdot {c}^{4}}{a} \cdot \frac{20}{{c}^{2}}, {c}^{2} \cdot {a}^{3}\right) - \left(c \cdot a\right) \cdot \left(\left(c \cdot {a}^{2}\right) \cdot -0.5\right)}{{b}^{6}}, \mathsf{fma}\left(-2, \frac{\left(c \cdot {a}^{2}\right) \cdot -0.5}{{b}^{4}}, \frac{a}{{b}^{2}}\right)\right) - \frac{1}{c}\right)}} \]
            15. Taylor expanded in c around 0 88.7%

              \[\leadsto \frac{1}{\color{blue}{\frac{-1 \cdot b + \frac{a \cdot c}{b}}{c}}} \]
          3. Recombined 2 regimes into one program.
          4. Final simplification86.0%

            \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 160:\\ \;\;\;\;\frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 4\right)} - b}{2 \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{\frac{c \cdot a}{b} - b}{c}}\\ \end{array} \]
          5. Add Preprocessing

          Alternative 8: 82.1% accurate, 10.5× speedup?

          \[\begin{array}{l} \\ \frac{1}{\frac{\frac{c \cdot a}{b} - b}{c}} \end{array} \]
          (FPCore (a b c) :precision binary64 (/ 1.0 (/ (- (/ (* c a) b) b) c)))
          double code(double a, double b, double c) {
          	return 1.0 / ((((c * a) / b) - 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 / ((((c * a) / b) - b) / c)
          end function
          
          public static double code(double a, double b, double c) {
          	return 1.0 / ((((c * a) / b) - b) / c);
          }
          
          def code(a, b, c):
          	return 1.0 / ((((c * a) / b) - b) / c)
          
          function code(a, b, c)
          	return Float64(1.0 / Float64(Float64(Float64(Float64(c * a) / b) - b) / c))
          end
          
          function tmp = code(a, b, c)
          	tmp = 1.0 / ((((c * a) / b) - b) / c);
          end
          
          code[a_, b_, c_] := N[(1.0 / N[(N[(N[(N[(c * a), $MachinePrecision] / b), $MachinePrecision] - b), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision]
          
          \begin{array}{l}
          
          \\
          \frac{1}{\frac{\frac{c \cdot a}{b} - b}{c}}
          \end{array}
          
          Derivation
          1. Initial program 58.1%

            \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
          2. Step-by-step derivation
            1. *-commutative58.1%

              \[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\color{blue}{a \cdot 2}} \]
          3. Simplified58.1%

            \[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a \cdot 2}} \]
          4. Add Preprocessing
          5. Step-by-step derivation
            1. add-cbrt-cube57.5%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            2. pow1/355.4%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left(\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            3. pow355.4%

              \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({\left(b \cdot b\right)}^{3}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            4. pow255.4%

              \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({\color{blue}{\left({b}^{2}\right)}}^{3}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            5. pow-pow55.4%

              \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({b}^{\left(2 \cdot 3\right)}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            6. metadata-eval55.4%

              \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({b}^{\color{blue}{6}}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
          6. Applied egg-rr55.4%

            \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
          7. Step-by-step derivation
            1. unpow1/357.8%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
          8. Simplified57.8%

            \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
          9. Step-by-step derivation
            1. clear-num57.8%

              \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot 2}{\left(-b\right) + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}} \]
            2. inv-pow57.8%

              \[\leadsto \color{blue}{{\left(\frac{a \cdot 2}{\left(-b\right) + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}\right)}^{-1}} \]
            3. neg-mul-157.8%

              \[\leadsto {\left(\frac{a \cdot 2}{\color{blue}{-1 \cdot b} + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}\right)}^{-1} \]
            4. fma-define57.8%

              \[\leadsto {\left(\frac{a \cdot 2}{\color{blue}{\mathsf{fma}\left(-1, b, \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}\right)}}\right)}^{-1} \]
            5. pow1/355.3%

              \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
            6. pow-pow58.1%

              \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{b}^{\left(6 \cdot 0.3333333333333333\right)}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
            7. metadata-eval58.1%

              \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{\color{blue}{2}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
            8. *-commutative58.1%

              \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{c \cdot \left(4 \cdot a\right)}}\right)}\right)}^{-1} \]
            9. *-commutative58.1%

              \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \color{blue}{\left(a \cdot 4\right)}}\right)}\right)}^{-1} \]
          10. Applied egg-rr58.1%

            \[\leadsto \color{blue}{{\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}\right)}^{-1}} \]
          11. Step-by-step derivation
            1. unpow-158.1%

              \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}}} \]
            2. associate-/l*58.1%

              \[\leadsto \frac{1}{\color{blue}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}}} \]
            3. *-commutative58.1%

              \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{\left(a \cdot 4\right) \cdot c}}\right)}} \]
            4. *-commutative58.1%

              \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{\left(4 \cdot a\right)} \cdot c}\right)}} \]
            5. associate-*r*58.1%

              \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{4 \cdot \left(a \cdot c\right)}}\right)}} \]
            6. cancel-sign-sub-inv58.1%

              \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{b}^{2} + \left(-4\right) \cdot \left(a \cdot c\right)}}\right)}} \]
            7. metadata-eval58.1%

              \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} + \color{blue}{-4} \cdot \left(a \cdot c\right)}\right)}} \]
            8. +-commutative58.1%

              \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{-4 \cdot \left(a \cdot c\right) + {b}^{2}}}\right)}} \]
            9. fma-define58.1%

              \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{\mathsf{fma}\left(-4, a \cdot c, {b}^{2}\right)}}\right)}} \]
            10. *-commutative58.1%

              \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\mathsf{fma}\left(-4, \color{blue}{c \cdot a}, {b}^{2}\right)}\right)}} \]
          12. Simplified58.1%

            \[\leadsto \color{blue}{\frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\mathsf{fma}\left(-4, c \cdot a, {b}^{2}\right)}\right)}}} \]
          13. Taylor expanded in b around inf 89.3%

            \[\leadsto \frac{1}{\color{blue}{b \cdot \left(\left(-2 \cdot \frac{-1 \cdot \left(a \cdot \left(c \cdot \left(-1 \cdot \left({a}^{2} \cdot c\right) + 0.5 \cdot \left({a}^{2} \cdot c\right)\right)\right)\right) + \left(-0.125 \cdot \frac{4 \cdot \left({a}^{4} \cdot {c}^{4}\right) + 16 \cdot \left({a}^{4} \cdot {c}^{4}\right)}{a \cdot {c}^{2}} + {a}^{3} \cdot {c}^{2}\right)}{{b}^{6}} + \left(-2 \cdot \frac{-1 \cdot \left({a}^{2} \cdot c\right) + 0.5 \cdot \left({a}^{2} \cdot c\right)}{{b}^{4}} + \frac{a}{{b}^{2}}\right)\right) - \frac{1}{c}\right)}} \]
          14. Simplified89.3%

            \[\leadsto \frac{1}{\color{blue}{b \cdot \left(\mathsf{fma}\left(-2, \frac{\mathsf{fma}\left(-0.125, \frac{{a}^{4} \cdot {c}^{4}}{a} \cdot \frac{20}{{c}^{2}}, {c}^{2} \cdot {a}^{3}\right) - \left(c \cdot a\right) \cdot \left(\left(c \cdot {a}^{2}\right) \cdot -0.5\right)}{{b}^{6}}, \mathsf{fma}\left(-2, \frac{\left(c \cdot {a}^{2}\right) \cdot -0.5}{{b}^{4}}, \frac{a}{{b}^{2}}\right)\right) - \frac{1}{c}\right)}} \]
          15. Taylor expanded in c around 0 79.3%

            \[\leadsto \frac{1}{\color{blue}{\frac{-1 \cdot b + \frac{a \cdot c}{b}}{c}}} \]
          16. Final simplification79.3%

            \[\leadsto \frac{1}{\frac{\frac{c \cdot a}{b} - b}{c}} \]
          17. Add Preprocessing

          Alternative 9: 82.1% accurate, 12.9× speedup?

          \[\begin{array}{l} \\ \frac{1}{\frac{a}{b} - \frac{b}{c}} \end{array} \]
          (FPCore (a b c) :precision binary64 (/ 1.0 (- (/ a b) (/ b c))))
          double code(double a, double b, double c) {
          	return 1.0 / ((a / b) - (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 / ((a / b) - (b / c))
          end function
          
          public static double code(double a, double b, double c) {
          	return 1.0 / ((a / b) - (b / c));
          }
          
          def code(a, b, c):
          	return 1.0 / ((a / b) - (b / c))
          
          function code(a, b, c)
          	return Float64(1.0 / Float64(Float64(a / b) - Float64(b / c)))
          end
          
          function tmp = code(a, b, c)
          	tmp = 1.0 / ((a / b) - (b / c));
          end
          
          code[a_, b_, c_] := N[(1.0 / N[(N[(a / b), $MachinePrecision] - N[(b / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
          
          \begin{array}{l}
          
          \\
          \frac{1}{\frac{a}{b} - \frac{b}{c}}
          \end{array}
          
          Derivation
          1. Initial program 58.1%

            \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
          2. Step-by-step derivation
            1. *-commutative58.1%

              \[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\color{blue}{a \cdot 2}} \]
          3. Simplified58.1%

            \[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a \cdot 2}} \]
          4. Add Preprocessing
          5. Step-by-step derivation
            1. add-cbrt-cube57.5%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            2. pow1/355.4%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left(\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            3. pow355.4%

              \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({\left(b \cdot b\right)}^{3}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            4. pow255.4%

              \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({\color{blue}{\left({b}^{2}\right)}}^{3}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            5. pow-pow55.4%

              \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({b}^{\left(2 \cdot 3\right)}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            6. metadata-eval55.4%

              \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({b}^{\color{blue}{6}}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
          6. Applied egg-rr55.4%

            \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
          7. Step-by-step derivation
            1. unpow1/357.8%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
          8. Simplified57.8%

            \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
          9. Step-by-step derivation
            1. clear-num57.8%

              \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot 2}{\left(-b\right) + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}} \]
            2. inv-pow57.8%

              \[\leadsto \color{blue}{{\left(\frac{a \cdot 2}{\left(-b\right) + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}\right)}^{-1}} \]
            3. neg-mul-157.8%

              \[\leadsto {\left(\frac{a \cdot 2}{\color{blue}{-1 \cdot b} + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}\right)}^{-1} \]
            4. fma-define57.8%

              \[\leadsto {\left(\frac{a \cdot 2}{\color{blue}{\mathsf{fma}\left(-1, b, \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}\right)}}\right)}^{-1} \]
            5. pow1/355.3%

              \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
            6. pow-pow58.1%

              \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{b}^{\left(6 \cdot 0.3333333333333333\right)}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
            7. metadata-eval58.1%

              \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{\color{blue}{2}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
            8. *-commutative58.1%

              \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{c \cdot \left(4 \cdot a\right)}}\right)}\right)}^{-1} \]
            9. *-commutative58.1%

              \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \color{blue}{\left(a \cdot 4\right)}}\right)}\right)}^{-1} \]
          10. Applied egg-rr58.1%

            \[\leadsto \color{blue}{{\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}\right)}^{-1}} \]
          11. Step-by-step derivation
            1. unpow-158.1%

              \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}}} \]
            2. associate-/l*58.1%

              \[\leadsto \frac{1}{\color{blue}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}}} \]
            3. *-commutative58.1%

              \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{\left(a \cdot 4\right) \cdot c}}\right)}} \]
            4. *-commutative58.1%

              \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{\left(4 \cdot a\right)} \cdot c}\right)}} \]
            5. associate-*r*58.1%

              \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{4 \cdot \left(a \cdot c\right)}}\right)}} \]
            6. cancel-sign-sub-inv58.1%

              \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{b}^{2} + \left(-4\right) \cdot \left(a \cdot c\right)}}\right)}} \]
            7. metadata-eval58.1%

              \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} + \color{blue}{-4} \cdot \left(a \cdot c\right)}\right)}} \]
            8. +-commutative58.1%

              \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{-4 \cdot \left(a \cdot c\right) + {b}^{2}}}\right)}} \]
            9. fma-define58.1%

              \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{\mathsf{fma}\left(-4, a \cdot c, {b}^{2}\right)}}\right)}} \]
            10. *-commutative58.1%

              \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\mathsf{fma}\left(-4, \color{blue}{c \cdot a}, {b}^{2}\right)}\right)}} \]
          12. Simplified58.1%

            \[\leadsto \color{blue}{\frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\mathsf{fma}\left(-4, c \cdot a, {b}^{2}\right)}\right)}}} \]
          13. Taylor expanded in b around inf 89.3%

            \[\leadsto \frac{1}{\color{blue}{b \cdot \left(\left(-2 \cdot \frac{-1 \cdot \left(a \cdot \left(c \cdot \left(-1 \cdot \left({a}^{2} \cdot c\right) + 0.5 \cdot \left({a}^{2} \cdot c\right)\right)\right)\right) + \left(-0.125 \cdot \frac{4 \cdot \left({a}^{4} \cdot {c}^{4}\right) + 16 \cdot \left({a}^{4} \cdot {c}^{4}\right)}{a \cdot {c}^{2}} + {a}^{3} \cdot {c}^{2}\right)}{{b}^{6}} + \left(-2 \cdot \frac{-1 \cdot \left({a}^{2} \cdot c\right) + 0.5 \cdot \left({a}^{2} \cdot c\right)}{{b}^{4}} + \frac{a}{{b}^{2}}\right)\right) - \frac{1}{c}\right)}} \]
          14. Simplified89.3%

            \[\leadsto \frac{1}{\color{blue}{b \cdot \left(\mathsf{fma}\left(-2, \frac{\mathsf{fma}\left(-0.125, \frac{{a}^{4} \cdot {c}^{4}}{a} \cdot \frac{20}{{c}^{2}}, {c}^{2} \cdot {a}^{3}\right) - \left(c \cdot a\right) \cdot \left(\left(c \cdot {a}^{2}\right) \cdot -0.5\right)}{{b}^{6}}, \mathsf{fma}\left(-2, \frac{\left(c \cdot {a}^{2}\right) \cdot -0.5}{{b}^{4}}, \frac{a}{{b}^{2}}\right)\right) - \frac{1}{c}\right)}} \]
          15. Taylor expanded in a around 0 79.3%

            \[\leadsto \frac{1}{\color{blue}{-1 \cdot \frac{b}{c} + \frac{a}{b}}} \]
          16. Final simplification79.3%

            \[\leadsto \frac{1}{\frac{a}{b} - \frac{b}{c}} \]
          17. Add Preprocessing

          Alternative 10: 64.4% accurate, 29.0× speedup?

          \[\begin{array}{l} \\ \frac{c}{-b} \end{array} \]
          (FPCore (a b c) :precision binary64 (/ c (- b)))
          double code(double a, double b, double c) {
          	return 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 = c / -b
          end function
          
          public static double code(double a, double b, double c) {
          	return c / -b;
          }
          
          def code(a, b, c):
          	return c / -b
          
          function code(a, b, c)
          	return Float64(c / Float64(-b))
          end
          
          function tmp = code(a, b, c)
          	tmp = c / -b;
          end
          
          code[a_, b_, c_] := N[(c / (-b)), $MachinePrecision]
          
          \begin{array}{l}
          
          \\
          \frac{c}{-b}
          \end{array}
          
          Derivation
          1. Initial program 58.1%

            \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
          2. Step-by-step derivation
            1. Simplified58.1%

              \[\leadsto \color{blue}{\frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)} - b}{a \cdot 2}} \]
            2. Add Preprocessing
            3. Taylor expanded in a around 0 61.9%

              \[\leadsto \color{blue}{-1 \cdot \frac{c}{b}} \]
            4. Step-by-step derivation
              1. associate-*r/61.9%

                \[\leadsto \color{blue}{\frac{-1 \cdot c}{b}} \]
              2. mul-1-neg61.9%

                \[\leadsto \frac{\color{blue}{-c}}{b} \]
            5. Simplified61.9%

              \[\leadsto \color{blue}{\frac{-c}{b}} \]
            6. Final simplification61.9%

              \[\leadsto \frac{c}{-b} \]
            7. Add Preprocessing

            Alternative 11: 1.6% accurate, 38.7× speedup?

            \[\begin{array}{l} \\ \frac{b}{a} \end{array} \]
            (FPCore (a b c) :precision binary64 (/ b a))
            double code(double a, double b, double c) {
            	return b / 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 / a
            end function
            
            public static double code(double a, double b, double c) {
            	return b / a;
            }
            
            def code(a, b, c):
            	return b / a
            
            function code(a, b, c)
            	return Float64(b / a)
            end
            
            function tmp = code(a, b, c)
            	tmp = b / a;
            end
            
            code[a_, b_, c_] := N[(b / a), $MachinePrecision]
            
            \begin{array}{l}
            
            \\
            \frac{b}{a}
            \end{array}
            
            Derivation
            1. Initial program 58.1%

              \[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a} \]
            2. Step-by-step derivation
              1. *-commutative58.1%

                \[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\color{blue}{a \cdot 2}} \]
            3. Simplified58.1%

              \[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a \cdot 2}} \]
            4. Add Preprocessing
            5. Step-by-step derivation
              1. add-cbrt-cube57.5%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              2. pow1/355.4%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left(\left(\left(b \cdot b\right) \cdot \left(b \cdot b\right)\right) \cdot \left(b \cdot b\right)\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              3. pow355.4%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({\left(b \cdot b\right)}^{3}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              4. pow255.4%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({\color{blue}{\left({b}^{2}\right)}}^{3}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              5. pow-pow55.4%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\color{blue}{\left({b}^{\left(2 \cdot 3\right)}\right)}}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
              6. metadata-eval55.4%

                \[\leadsto \frac{\left(-b\right) + \sqrt{{\left({b}^{\color{blue}{6}}\right)}^{0.3333333333333333} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            6. Applied egg-rr55.4%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            7. Step-by-step derivation
              1. unpow1/357.8%

                \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            8. Simplified57.8%

              \[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{\sqrt[3]{{b}^{6}}} - \left(4 \cdot a\right) \cdot c}}{a \cdot 2} \]
            9. Step-by-step derivation
              1. clear-num57.8%

                \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot 2}{\left(-b\right) + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}}} \]
              2. inv-pow57.8%

                \[\leadsto \color{blue}{{\left(\frac{a \cdot 2}{\left(-b\right) + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}\right)}^{-1}} \]
              3. neg-mul-157.8%

                \[\leadsto {\left(\frac{a \cdot 2}{\color{blue}{-1 \cdot b} + \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}}\right)}^{-1} \]
              4. fma-define57.8%

                \[\leadsto {\left(\frac{a \cdot 2}{\color{blue}{\mathsf{fma}\left(-1, b, \sqrt{\sqrt[3]{{b}^{6}} - \left(4 \cdot a\right) \cdot c}\right)}}\right)}^{-1} \]
              5. pow1/355.3%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{\left({b}^{6}\right)}^{0.3333333333333333}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
              6. pow-pow58.1%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{b}^{\left(6 \cdot 0.3333333333333333\right)}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
              7. metadata-eval58.1%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{\color{blue}{2}} - \left(4 \cdot a\right) \cdot c}\right)}\right)}^{-1} \]
              8. *-commutative58.1%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{c \cdot \left(4 \cdot a\right)}}\right)}\right)}^{-1} \]
              9. *-commutative58.1%

                \[\leadsto {\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \color{blue}{\left(a \cdot 4\right)}}\right)}\right)}^{-1} \]
            10. Applied egg-rr58.1%

              \[\leadsto \color{blue}{{\left(\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}\right)}^{-1}} \]
            11. Step-by-step derivation
              1. unpow-158.1%

                \[\leadsto \color{blue}{\frac{1}{\frac{a \cdot 2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}}} \]
              2. associate-/l*58.1%

                \[\leadsto \frac{1}{\color{blue}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - c \cdot \left(a \cdot 4\right)}\right)}}} \]
              3. *-commutative58.1%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{\left(a \cdot 4\right) \cdot c}}\right)}} \]
              4. *-commutative58.1%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{\left(4 \cdot a\right)} \cdot c}\right)}} \]
              5. associate-*r*58.1%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} - \color{blue}{4 \cdot \left(a \cdot c\right)}}\right)}} \]
              6. cancel-sign-sub-inv58.1%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{{b}^{2} + \left(-4\right) \cdot \left(a \cdot c\right)}}\right)}} \]
              7. metadata-eval58.1%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{{b}^{2} + \color{blue}{-4} \cdot \left(a \cdot c\right)}\right)}} \]
              8. +-commutative58.1%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{-4 \cdot \left(a \cdot c\right) + {b}^{2}}}\right)}} \]
              9. fma-define58.1%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\color{blue}{\mathsf{fma}\left(-4, a \cdot c, {b}^{2}\right)}}\right)}} \]
              10. *-commutative58.1%

                \[\leadsto \frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\mathsf{fma}\left(-4, \color{blue}{c \cdot a}, {b}^{2}\right)}\right)}} \]
            12. Simplified58.1%

              \[\leadsto \color{blue}{\frac{1}{a \cdot \frac{2}{\mathsf{fma}\left(-1, b, \sqrt{\mathsf{fma}\left(-4, c \cdot a, {b}^{2}\right)}\right)}}} \]
            13. Taylor expanded in b around inf 79.1%

              \[\leadsto \frac{1}{a \cdot \color{blue}{\left(b \cdot \left(\frac{1}{{b}^{2}} - \frac{1}{a \cdot c}\right)\right)}} \]
            14. Step-by-step derivation
              1. *-commutative79.1%

                \[\leadsto \frac{1}{a \cdot \left(b \cdot \left(\frac{1}{{b}^{2}} - \frac{1}{\color{blue}{c \cdot a}}\right)\right)} \]
            15. Simplified79.1%

              \[\leadsto \frac{1}{a \cdot \color{blue}{\left(b \cdot \left(\frac{1}{{b}^{2}} - \frac{1}{c \cdot a}\right)\right)}} \]
            16. Taylor expanded in a around inf 1.6%

              \[\leadsto \color{blue}{\frac{b}{a}} \]
            17. Add Preprocessing

            Reproduce

            ?
            herbie shell --seed 2024152 
            (FPCore (a b c)
              :name "Quadratic roots, 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) (* (* 4.0 a) c)))) (* 2.0 a)))