Quadratic roots, narrow range

Percentage Accurate: 55.4% → 99.6%
Time: 17.4s
Alternatives: 10
Speedup: 23.2×

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 10 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: 99.6% accurate, 1.0× speedup?

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

\\
\frac{c \cdot -2}{b + \sqrt{b \cdot b + c \cdot \left(a \cdot -4\right)}}
\end{array}
Derivation
  1. Initial program 58.3%

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

      \[\leadsto \mathsf{/.f64}\left(\left(\left(\mathsf{neg}\left(b\right)\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), \color{blue}{\left(2 \cdot a\right)}\right) \]
    2. +-commutativeN/A

      \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + \left(\mathsf{neg}\left(b\right)\right)\right), \left(\color{blue}{2} \cdot a\right)\right) \]
    3. unsub-negN/A

      \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
    4. --lowering--.f64N/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
    5. sqrt-lowering-sqrt.f64N/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b - \left(4 \cdot a\right) \cdot c\right)\right), b\right), \left(2 \cdot a\right)\right) \]
    6. sub-negN/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b + \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
    7. +-lowering-+.f64N/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\left(b \cdot b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
    8. *-lowering-*.f64N/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
    9. *-commutativeN/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(a \cdot 4\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
    10. associate-*l*N/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(a \cdot \left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
    11. distribute-rgt-neg-inN/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
    12. *-commutativeN/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
    13. *-lowering-*.f64N/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
    14. distribute-rgt-neg-inN/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(c \cdot \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
    15. *-lowering-*.f64N/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
    16. metadata-evalN/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
    17. *-commutativeN/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(a \cdot \color{blue}{2}\right)\right) \]
  3. Simplified58.3%

    \[\leadsto \color{blue}{\frac{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}{a \cdot 2}} \]
  4. Add Preprocessing
  5. Step-by-step derivation
    1. flip-+N/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{b \cdot b - a \cdot \left(c \cdot -4\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
    2. fmm-defN/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{\mathsf{fma}\left(b, b, \mathsf{neg}\left(a \cdot \left(c \cdot -4\right)\right)\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
    3. *-commutativeN/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
    4. clear-numN/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{1}{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
    5. sqrt-divN/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\frac{\sqrt{1}}{\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
    6. metadata-evalN/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\frac{1}{\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
    7. /-lowering-/.f64N/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{/.f64}\left(1, \left(\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}\right)\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
    8. sqrt-lowering-sqrt.f64N/A

      \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{/.f64}\left(1, \mathsf{sqrt.f64}\left(\left(\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}\right)\right)\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
  6. Applied egg-rr57.9%

    \[\leadsto \frac{\color{blue}{\frac{1}{\sqrt{\frac{1}{b \cdot b + a \cdot \left(c \cdot -4\right)}}}} - b}{a \cdot 2} \]
  7. Step-by-step derivation
    1. Applied egg-rr99.4%

      \[\leadsto \color{blue}{\frac{\frac{0 - a \cdot \left(c \cdot -4\right)}{a \cdot 2}}{\left(0 - b\right) - \sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)}}} \]
    2. Taylor expanded in a around 0

      \[\leadsto \mathsf{/.f64}\left(\color{blue}{\left(2 \cdot c\right)}, \mathsf{\_.f64}\left(\mathsf{\_.f64}\left(0, b\right), \mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right)\right)\right) \]
    3. Step-by-step derivation
      1. *-commutativeN/A

        \[\leadsto \mathsf{/.f64}\left(\left(c \cdot 2\right), \mathsf{\_.f64}\left(\color{blue}{\mathsf{\_.f64}\left(0, b\right)}, \mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right)\right)\right) \]
      2. *-lowering-*.f6499.6%

        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \mathsf{\_.f64}\left(\color{blue}{\mathsf{\_.f64}\left(0, b\right)}, \mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right)\right)\right) \]
    4. Simplified99.6%

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

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

    Alternative 2: 90.0% accurate, 1.0× speedup?

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

      1. Initial program 85.8%

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

          \[\leadsto \mathsf{/.f64}\left(\left(\left(\mathsf{neg}\left(b\right)\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), \color{blue}{\left(2 \cdot a\right)}\right) \]
        2. +-commutativeN/A

          \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + \left(\mathsf{neg}\left(b\right)\right)\right), \left(\color{blue}{2} \cdot a\right)\right) \]
        3. unsub-negN/A

          \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
        4. --lowering--.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
        5. sqrt-lowering-sqrt.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b - \left(4 \cdot a\right) \cdot c\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        6. sub-negN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b + \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        7. +-lowering-+.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\left(b \cdot b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        8. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        9. *-commutativeN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(a \cdot 4\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        10. associate-*l*N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(a \cdot \left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        11. distribute-rgt-neg-inN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        12. *-commutativeN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        13. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        14. distribute-rgt-neg-inN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(c \cdot \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        15. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        16. metadata-evalN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        17. *-commutativeN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(a \cdot \color{blue}{2}\right)\right) \]
      3. Simplified85.8%

        \[\leadsto \color{blue}{\frac{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}{a \cdot 2}} \]
      4. Add Preprocessing
      5. Step-by-step derivation
        1. associate-/r*N/A

          \[\leadsto \frac{\frac{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}{a}}{\color{blue}{2}} \]
        2. clear-numN/A

          \[\leadsto \frac{\frac{1}{\frac{a}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}}}{2} \]
        3. associate-/l/N/A

          \[\leadsto \frac{1}{\color{blue}{2 \cdot \frac{a}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}}} \]
        4. associate-/r*N/A

          \[\leadsto \frac{\frac{1}{2}}{\color{blue}{\frac{a}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}}} \]
        5. metadata-evalN/A

          \[\leadsto \frac{\frac{1}{2}}{\frac{\color{blue}{a}}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}} \]
        6. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \color{blue}{\left(\frac{a}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}\right)}\right) \]
        7. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \color{blue}{\left(\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b\right)}\right)\right) \]
        8. --lowering--.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\left(\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)}\right), \color{blue}{b}\right)\right)\right) \]
        9. sqrt-lowering-sqrt.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b + a \cdot \left(c \cdot -4\right)\right)\right), b\right)\right)\right) \]
        10. +-lowering-+.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\left(b \cdot b\right), \left(a \cdot \left(c \cdot -4\right)\right)\right)\right), b\right)\right)\right) \]
        11. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(c \cdot -4\right)\right)\right)\right), b\right)\right)\right) \]
        12. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(c \cdot -4\right)\right)\right)\right), b\right)\right)\right) \]
        13. *-lowering-*.f6485.8%

          \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right)\right)\right) \]
      6. Applied egg-rr85.8%

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

      if 0.122 < b

      1. Initial program 54.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. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\left(\left(\mathsf{neg}\left(b\right)\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), \color{blue}{\left(2 \cdot a\right)}\right) \]
        2. +-commutativeN/A

          \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + \left(\mathsf{neg}\left(b\right)\right)\right), \left(\color{blue}{2} \cdot a\right)\right) \]
        3. unsub-negN/A

          \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
        4. --lowering--.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
        5. sqrt-lowering-sqrt.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b - \left(4 \cdot a\right) \cdot c\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        6. sub-negN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b + \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        7. +-lowering-+.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\left(b \cdot b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        8. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        9. *-commutativeN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(a \cdot 4\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        10. associate-*l*N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(a \cdot \left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        11. distribute-rgt-neg-inN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        12. *-commutativeN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        13. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        14. distribute-rgt-neg-inN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(c \cdot \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        15. *-lowering-*.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        16. metadata-evalN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
        17. *-commutativeN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(a \cdot \color{blue}{2}\right)\right) \]
      3. Simplified54.1%

        \[\leadsto \color{blue}{\frac{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}{a \cdot 2}} \]
      4. Add Preprocessing
      5. Step-by-step derivation
        1. flip-+N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{b \cdot b - a \cdot \left(c \cdot -4\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
        2. fmm-defN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{\mathsf{fma}\left(b, b, \mathsf{neg}\left(a \cdot \left(c \cdot -4\right)\right)\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
        3. *-commutativeN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
        4. clear-numN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{1}{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
        5. sqrt-divN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\frac{\sqrt{1}}{\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
        6. metadata-evalN/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\frac{1}{\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
        7. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{/.f64}\left(1, \left(\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}\right)\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
        8. sqrt-lowering-sqrt.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{/.f64}\left(1, \mathsf{sqrt.f64}\left(\left(\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}\right)\right)\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
      6. Applied egg-rr53.7%

        \[\leadsto \frac{\color{blue}{\frac{1}{\sqrt{\frac{1}{b \cdot b + a \cdot \left(c \cdot -4\right)}}}} - b}{a \cdot 2} \]
      7. Step-by-step derivation
        1. Applied egg-rr99.4%

          \[\leadsto \color{blue}{\frac{\frac{0 - a \cdot \left(c \cdot -4\right)}{a \cdot 2}}{\left(0 - b\right) - \sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)}}} \]
        2. Taylor expanded in a around 0

          \[\leadsto \mathsf{/.f64}\left(\color{blue}{\left(2 \cdot c\right)}, \mathsf{\_.f64}\left(\mathsf{\_.f64}\left(0, b\right), \mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right)\right)\right) \]
        3. Step-by-step derivation
          1. *-commutativeN/A

            \[\leadsto \mathsf{/.f64}\left(\left(c \cdot 2\right), \mathsf{\_.f64}\left(\color{blue}{\mathsf{\_.f64}\left(0, b\right)}, \mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right)\right)\right) \]
          2. *-lowering-*.f6499.6%

            \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \mathsf{\_.f64}\left(\color{blue}{\mathsf{\_.f64}\left(0, b\right)}, \mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right)\right)\right) \]
        4. Simplified99.6%

          \[\leadsto \frac{\color{blue}{c \cdot 2}}{\left(0 - b\right) - \sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)}} \]
        5. Taylor expanded in c around 0

          \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \color{blue}{\left(c \cdot \left(2 \cdot \frac{{a}^{2} \cdot c}{{b}^{3}} - -2 \cdot \frac{a}{b}\right) - 2 \cdot b\right)}\right) \]
        6. Step-by-step derivation
          1. sub-negN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \left(c \cdot \left(2 \cdot \frac{{a}^{2} \cdot c}{{b}^{3}} - -2 \cdot \frac{a}{b}\right) + \color{blue}{\left(\mathsf{neg}\left(2 \cdot b\right)\right)}\right)\right) \]
          2. +-lowering-+.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \mathsf{+.f64}\left(\left(c \cdot \left(2 \cdot \frac{{a}^{2} \cdot c}{{b}^{3}} - -2 \cdot \frac{a}{b}\right)\right), \color{blue}{\left(\mathsf{neg}\left(2 \cdot b\right)\right)}\right)\right) \]
        7. Simplified90.4%

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

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

      Alternative 3: 90.0% accurate, 1.0× speedup?

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

        1. Initial program 85.8%

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

            \[\leadsto \mathsf{/.f64}\left(\left(\left(\mathsf{neg}\left(b\right)\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), \color{blue}{\left(2 \cdot a\right)}\right) \]
          2. +-commutativeN/A

            \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + \left(\mathsf{neg}\left(b\right)\right)\right), \left(\color{blue}{2} \cdot a\right)\right) \]
          3. unsub-negN/A

            \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
          4. --lowering--.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
          5. sqrt-lowering-sqrt.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b - \left(4 \cdot a\right) \cdot c\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          6. sub-negN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b + \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          7. +-lowering-+.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\left(b \cdot b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          8. *-lowering-*.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          9. *-commutativeN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(a \cdot 4\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          10. associate-*l*N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(a \cdot \left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          11. distribute-rgt-neg-inN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          12. *-commutativeN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          13. *-lowering-*.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          14. distribute-rgt-neg-inN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(c \cdot \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          15. *-lowering-*.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          16. metadata-evalN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          17. *-commutativeN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(a \cdot \color{blue}{2}\right)\right) \]
        3. Simplified85.8%

          \[\leadsto \color{blue}{\frac{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}{a \cdot 2}} \]
        4. Add Preprocessing
        5. Step-by-step derivation
          1. clear-numN/A

            \[\leadsto \frac{1}{\color{blue}{\frac{a \cdot 2}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}}} \]
          2. associate-/r/N/A

            \[\leadsto \frac{1}{a \cdot 2} \cdot \color{blue}{\left(\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b\right)} \]
          3. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(\left(\frac{1}{a \cdot 2}\right), \color{blue}{\left(\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b\right)}\right) \]
          4. *-commutativeN/A

            \[\leadsto \mathsf{*.f64}\left(\left(\frac{1}{2 \cdot a}\right), \left(\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b\right)\right) \]
          5. associate-/r*N/A

            \[\leadsto \mathsf{*.f64}\left(\left(\frac{\frac{1}{2}}{a}\right), \left(\color{blue}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)}} - b\right)\right) \]
          6. metadata-evalN/A

            \[\leadsto \mathsf{*.f64}\left(\left(\frac{\frac{1}{2}}{a}\right), \left(\sqrt{\color{blue}{b \cdot b + a \cdot \left(c \cdot -4\right)}} - b\right)\right) \]
          7. /-lowering-/.f64N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{1}{2}, a\right), \left(\color{blue}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)}} - b\right)\right) \]
          8. --lowering--.f64N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{1}{2}, a\right), \mathsf{\_.f64}\left(\left(\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)}\right), \color{blue}{b}\right)\right) \]
          9. sqrt-lowering-sqrt.f64N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{1}{2}, a\right), \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b + a \cdot \left(c \cdot -4\right)\right)\right), b\right)\right) \]
          10. +-lowering-+.f64N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{1}{2}, a\right), \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\left(b \cdot b\right), \left(a \cdot \left(c \cdot -4\right)\right)\right)\right), b\right)\right) \]
          11. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{1}{2}, a\right), \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(c \cdot -4\right)\right)\right)\right), b\right)\right) \]
          12. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{1}{2}, a\right), \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(c \cdot -4\right)\right)\right)\right), b\right)\right) \]
          13. *-lowering-*.f6485.7%

            \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\frac{1}{2}, a\right), \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right)\right) \]
        6. Applied egg-rr85.7%

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

        if 0.122 < b

        1. Initial program 54.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. /-lowering-/.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\left(\left(\mathsf{neg}\left(b\right)\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), \color{blue}{\left(2 \cdot a\right)}\right) \]
          2. +-commutativeN/A

            \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + \left(\mathsf{neg}\left(b\right)\right)\right), \left(\color{blue}{2} \cdot a\right)\right) \]
          3. unsub-negN/A

            \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
          4. --lowering--.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
          5. sqrt-lowering-sqrt.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b - \left(4 \cdot a\right) \cdot c\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          6. sub-negN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b + \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          7. +-lowering-+.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\left(b \cdot b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          8. *-lowering-*.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          9. *-commutativeN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(a \cdot 4\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          10. associate-*l*N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(a \cdot \left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          11. distribute-rgt-neg-inN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          12. *-commutativeN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          13. *-lowering-*.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          14. distribute-rgt-neg-inN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(c \cdot \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          15. *-lowering-*.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          16. metadata-evalN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          17. *-commutativeN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(a \cdot \color{blue}{2}\right)\right) \]
        3. Simplified54.1%

          \[\leadsto \color{blue}{\frac{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}{a \cdot 2}} \]
        4. Add Preprocessing
        5. Step-by-step derivation
          1. flip-+N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{b \cdot b - a \cdot \left(c \cdot -4\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
          2. fmm-defN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{\mathsf{fma}\left(b, b, \mathsf{neg}\left(a \cdot \left(c \cdot -4\right)\right)\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
          3. *-commutativeN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
          4. clear-numN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{1}{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
          5. sqrt-divN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\frac{\sqrt{1}}{\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
          6. metadata-evalN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\frac{1}{\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
          7. /-lowering-/.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{/.f64}\left(1, \left(\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}\right)\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
          8. sqrt-lowering-sqrt.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{/.f64}\left(1, \mathsf{sqrt.f64}\left(\left(\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}\right)\right)\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
        6. Applied egg-rr53.7%

          \[\leadsto \frac{\color{blue}{\frac{1}{\sqrt{\frac{1}{b \cdot b + a \cdot \left(c \cdot -4\right)}}}} - b}{a \cdot 2} \]
        7. Step-by-step derivation
          1. Applied egg-rr99.4%

            \[\leadsto \color{blue}{\frac{\frac{0 - a \cdot \left(c \cdot -4\right)}{a \cdot 2}}{\left(0 - b\right) - \sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)}}} \]
          2. Taylor expanded in a around 0

            \[\leadsto \mathsf{/.f64}\left(\color{blue}{\left(2 \cdot c\right)}, \mathsf{\_.f64}\left(\mathsf{\_.f64}\left(0, b\right), \mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right)\right)\right) \]
          3. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \mathsf{/.f64}\left(\left(c \cdot 2\right), \mathsf{\_.f64}\left(\color{blue}{\mathsf{\_.f64}\left(0, b\right)}, \mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right)\right)\right) \]
            2. *-lowering-*.f6499.6%

              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \mathsf{\_.f64}\left(\color{blue}{\mathsf{\_.f64}\left(0, b\right)}, \mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right)\right)\right) \]
          4. Simplified99.6%

            \[\leadsto \frac{\color{blue}{c \cdot 2}}{\left(0 - b\right) - \sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)}} \]
          5. Taylor expanded in c around 0

            \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \color{blue}{\left(c \cdot \left(2 \cdot \frac{{a}^{2} \cdot c}{{b}^{3}} - -2 \cdot \frac{a}{b}\right) - 2 \cdot b\right)}\right) \]
          6. Step-by-step derivation
            1. sub-negN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \left(c \cdot \left(2 \cdot \frac{{a}^{2} \cdot c}{{b}^{3}} - -2 \cdot \frac{a}{b}\right) + \color{blue}{\left(\mathsf{neg}\left(2 \cdot b\right)\right)}\right)\right) \]
            2. +-lowering-+.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \mathsf{+.f64}\left(\left(c \cdot \left(2 \cdot \frac{{a}^{2} \cdot c}{{b}^{3}} - -2 \cdot \frac{a}{b}\right)\right), \color{blue}{\left(\mathsf{neg}\left(2 \cdot b\right)\right)}\right)\right) \]
          7. Simplified90.4%

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

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

        Alternative 4: 88.4% accurate, 4.3× speedup?

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

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

            \[\leadsto \mathsf{/.f64}\left(\left(\left(\mathsf{neg}\left(b\right)\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), \color{blue}{\left(2 \cdot a\right)}\right) \]
          2. +-commutativeN/A

            \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + \left(\mathsf{neg}\left(b\right)\right)\right), \left(\color{blue}{2} \cdot a\right)\right) \]
          3. unsub-negN/A

            \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
          4. --lowering--.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
          5. sqrt-lowering-sqrt.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b - \left(4 \cdot a\right) \cdot c\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          6. sub-negN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b + \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          7. +-lowering-+.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\left(b \cdot b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          8. *-lowering-*.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          9. *-commutativeN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(a \cdot 4\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          10. associate-*l*N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(a \cdot \left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          11. distribute-rgt-neg-inN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          12. *-commutativeN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          13. *-lowering-*.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          14. distribute-rgt-neg-inN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(c \cdot \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          15. *-lowering-*.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          16. metadata-evalN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
          17. *-commutativeN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(a \cdot \color{blue}{2}\right)\right) \]
        3. Simplified58.3%

          \[\leadsto \color{blue}{\frac{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}{a \cdot 2}} \]
        4. Add Preprocessing
        5. Step-by-step derivation
          1. flip-+N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{b \cdot b - a \cdot \left(c \cdot -4\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
          2. fmm-defN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{\mathsf{fma}\left(b, b, \mathsf{neg}\left(a \cdot \left(c \cdot -4\right)\right)\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
          3. *-commutativeN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
          4. clear-numN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{1}{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
          5. sqrt-divN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\frac{\sqrt{1}}{\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
          6. metadata-evalN/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\frac{1}{\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
          7. /-lowering-/.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{/.f64}\left(1, \left(\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}\right)\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
          8. sqrt-lowering-sqrt.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{/.f64}\left(1, \mathsf{sqrt.f64}\left(\left(\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}\right)\right)\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
        6. Applied egg-rr57.9%

          \[\leadsto \frac{\color{blue}{\frac{1}{\sqrt{\frac{1}{b \cdot b + a \cdot \left(c \cdot -4\right)}}}} - b}{a \cdot 2} \]
        7. Step-by-step derivation
          1. Applied egg-rr99.4%

            \[\leadsto \color{blue}{\frac{\frac{0 - a \cdot \left(c \cdot -4\right)}{a \cdot 2}}{\left(0 - b\right) - \sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)}}} \]
          2. Taylor expanded in a around 0

            \[\leadsto \mathsf{/.f64}\left(\color{blue}{\left(2 \cdot c\right)}, \mathsf{\_.f64}\left(\mathsf{\_.f64}\left(0, b\right), \mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right)\right)\right) \]
          3. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \mathsf{/.f64}\left(\left(c \cdot 2\right), \mathsf{\_.f64}\left(\color{blue}{\mathsf{\_.f64}\left(0, b\right)}, \mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right)\right)\right) \]
            2. *-lowering-*.f6499.6%

              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \mathsf{\_.f64}\left(\color{blue}{\mathsf{\_.f64}\left(0, b\right)}, \mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right)\right)\right) \]
          4. Simplified99.6%

            \[\leadsto \frac{\color{blue}{c \cdot 2}}{\left(0 - b\right) - \sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)}} \]
          5. Taylor expanded in c around 0

            \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \color{blue}{\left(c \cdot \left(2 \cdot \frac{{a}^{2} \cdot c}{{b}^{3}} - -2 \cdot \frac{a}{b}\right) - 2 \cdot b\right)}\right) \]
          6. Step-by-step derivation
            1. sub-negN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \left(c \cdot \left(2 \cdot \frac{{a}^{2} \cdot c}{{b}^{3}} - -2 \cdot \frac{a}{b}\right) + \color{blue}{\left(\mathsf{neg}\left(2 \cdot b\right)\right)}\right)\right) \]
            2. +-lowering-+.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \mathsf{+.f64}\left(\left(c \cdot \left(2 \cdot \frac{{a}^{2} \cdot c}{{b}^{3}} - -2 \cdot \frac{a}{b}\right)\right), \color{blue}{\left(\mathsf{neg}\left(2 \cdot b\right)\right)}\right)\right) \]
          7. Simplified87.0%

            \[\leadsto \frac{c \cdot 2}{\color{blue}{c \cdot \left(2 \cdot \left(\frac{c \cdot \left(a \cdot a\right)}{b \cdot \left(b \cdot b\right)} + \frac{a}{b}\right)\right) + b \cdot -2}} \]
          8. Final simplification87.0%

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

          Alternative 5: 88.2% accurate, 4.6× speedup?

          \[\begin{array}{l} \\ \frac{0.5}{\frac{b \cdot -0.5}{c} + a \cdot \left(a \cdot \frac{c \cdot 0.5}{b \cdot \left(b \cdot b\right)} + \frac{0.5}{b}\right)} \end{array} \]
          (FPCore (a b c)
           :precision binary64
           (/
            0.5
            (+ (/ (* b -0.5) c) (* a (+ (* a (/ (* c 0.5) (* b (* b b)))) (/ 0.5 b))))))
          double code(double a, double b, double c) {
          	return 0.5 / (((b * -0.5) / c) + (a * ((a * ((c * 0.5) / (b * (b * b)))) + (0.5 / b))));
          }
          
          real(8) function code(a, b, c)
              real(8), intent (in) :: a
              real(8), intent (in) :: b
              real(8), intent (in) :: c
              code = 0.5d0 / (((b * (-0.5d0)) / c) + (a * ((a * ((c * 0.5d0) / (b * (b * b)))) + (0.5d0 / b))))
          end function
          
          public static double code(double a, double b, double c) {
          	return 0.5 / (((b * -0.5) / c) + (a * ((a * ((c * 0.5) / (b * (b * b)))) + (0.5 / b))));
          }
          
          def code(a, b, c):
          	return 0.5 / (((b * -0.5) / c) + (a * ((a * ((c * 0.5) / (b * (b * b)))) + (0.5 / b))))
          
          function code(a, b, c)
          	return Float64(0.5 / Float64(Float64(Float64(b * -0.5) / c) + Float64(a * Float64(Float64(a * Float64(Float64(c * 0.5) / Float64(b * Float64(b * b)))) + Float64(0.5 / b)))))
          end
          
          function tmp = code(a, b, c)
          	tmp = 0.5 / (((b * -0.5) / c) + (a * ((a * ((c * 0.5) / (b * (b * b)))) + (0.5 / b))));
          end
          
          code[a_, b_, c_] := N[(0.5 / N[(N[(N[(b * -0.5), $MachinePrecision] / c), $MachinePrecision] + N[(a * N[(N[(a * N[(N[(c * 0.5), $MachinePrecision] / N[(b * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.5 / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
          
          \begin{array}{l}
          
          \\
          \frac{0.5}{\frac{b \cdot -0.5}{c} + a \cdot \left(a \cdot \frac{c \cdot 0.5}{b \cdot \left(b \cdot b\right)} + \frac{0.5}{b}\right)}
          \end{array}
          
          Derivation
          1. Initial program 58.3%

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

              \[\leadsto \mathsf{/.f64}\left(\left(\left(\mathsf{neg}\left(b\right)\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), \color{blue}{\left(2 \cdot a\right)}\right) \]
            2. +-commutativeN/A

              \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + \left(\mathsf{neg}\left(b\right)\right)\right), \left(\color{blue}{2} \cdot a\right)\right) \]
            3. unsub-negN/A

              \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
            4. --lowering--.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
            5. sqrt-lowering-sqrt.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b - \left(4 \cdot a\right) \cdot c\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            6. sub-negN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b + \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            7. +-lowering-+.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\left(b \cdot b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            8. *-lowering-*.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            9. *-commutativeN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(a \cdot 4\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            10. associate-*l*N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(a \cdot \left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            11. distribute-rgt-neg-inN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            12. *-commutativeN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            13. *-lowering-*.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            14. distribute-rgt-neg-inN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(c \cdot \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            15. *-lowering-*.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            16. metadata-evalN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            17. *-commutativeN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(a \cdot \color{blue}{2}\right)\right) \]
          3. Simplified58.3%

            \[\leadsto \color{blue}{\frac{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}{a \cdot 2}} \]
          4. Add Preprocessing
          5. Step-by-step derivation
            1. associate-/r*N/A

              \[\leadsto \frac{\frac{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}{a}}{\color{blue}{2}} \]
            2. clear-numN/A

              \[\leadsto \frac{\frac{1}{\frac{a}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}}}{2} \]
            3. associate-/l/N/A

              \[\leadsto \frac{1}{\color{blue}{2 \cdot \frac{a}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}}} \]
            4. associate-/r*N/A

              \[\leadsto \frac{\frac{1}{2}}{\color{blue}{\frac{a}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}}} \]
            5. metadata-evalN/A

              \[\leadsto \frac{\frac{1}{2}}{\frac{\color{blue}{a}}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}} \]
            6. /-lowering-/.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \color{blue}{\left(\frac{a}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}\right)}\right) \]
            7. /-lowering-/.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \color{blue}{\left(\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b\right)}\right)\right) \]
            8. --lowering--.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\left(\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)}\right), \color{blue}{b}\right)\right)\right) \]
            9. sqrt-lowering-sqrt.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b + a \cdot \left(c \cdot -4\right)\right)\right), b\right)\right)\right) \]
            10. +-lowering-+.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\left(b \cdot b\right), \left(a \cdot \left(c \cdot -4\right)\right)\right)\right), b\right)\right)\right) \]
            11. *-lowering-*.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(c \cdot -4\right)\right)\right)\right), b\right)\right)\right) \]
            12. *-lowering-*.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(c \cdot -4\right)\right)\right)\right), b\right)\right)\right) \]
            13. *-lowering-*.f6458.3%

              \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right)\right)\right) \]
          6. Applied egg-rr58.3%

            \[\leadsto \color{blue}{\frac{0.5}{\frac{a}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}}} \]
          7. Taylor expanded in a around 0

            \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \color{blue}{\left(\frac{-1}{2} \cdot \frac{b}{c} + a \cdot \left(-1 \cdot \left(a \cdot \left(-1 \cdot \frac{c}{{b}^{3}} + \frac{1}{2} \cdot \frac{c}{{b}^{3}}\right)\right) + \frac{1}{2} \cdot \frac{1}{b}\right)\right)}\right) \]
          8. Step-by-step derivation
            1. +-lowering-+.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\left(\frac{-1}{2} \cdot \frac{b}{c}\right), \color{blue}{\left(a \cdot \left(-1 \cdot \left(a \cdot \left(-1 \cdot \frac{c}{{b}^{3}} + \frac{1}{2} \cdot \frac{c}{{b}^{3}}\right)\right) + \frac{1}{2} \cdot \frac{1}{b}\right)\right)}\right)\right) \]
            2. associate-*r/N/A

              \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\left(\frac{\frac{-1}{2} \cdot b}{c}\right), \left(\color{blue}{a} \cdot \left(-1 \cdot \left(a \cdot \left(-1 \cdot \frac{c}{{b}^{3}} + \frac{1}{2} \cdot \frac{c}{{b}^{3}}\right)\right) + \frac{1}{2} \cdot \frac{1}{b}\right)\right)\right)\right) \]
            3. /-lowering-/.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{2} \cdot b\right), c\right), \left(\color{blue}{a} \cdot \left(-1 \cdot \left(a \cdot \left(-1 \cdot \frac{c}{{b}^{3}} + \frac{1}{2} \cdot \frac{c}{{b}^{3}}\right)\right) + \frac{1}{2} \cdot \frac{1}{b}\right)\right)\right)\right) \]
            4. *-commutativeN/A

              \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\left(b \cdot \frac{-1}{2}\right), c\right), \left(a \cdot \left(-1 \cdot \left(a \cdot \left(-1 \cdot \frac{c}{{b}^{3}} + \frac{1}{2} \cdot \frac{c}{{b}^{3}}\right)\right) + \frac{1}{2} \cdot \frac{1}{b}\right)\right)\right)\right) \]
            5. *-lowering-*.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{*.f64}\left(b, \frac{-1}{2}\right), c\right), \left(a \cdot \left(-1 \cdot \left(a \cdot \left(-1 \cdot \frac{c}{{b}^{3}} + \frac{1}{2} \cdot \frac{c}{{b}^{3}}\right)\right) + \frac{1}{2} \cdot \frac{1}{b}\right)\right)\right)\right) \]
            6. *-lowering-*.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{*.f64}\left(b, \frac{-1}{2}\right), c\right), \mathsf{*.f64}\left(a, \color{blue}{\left(-1 \cdot \left(a \cdot \left(-1 \cdot \frac{c}{{b}^{3}} + \frac{1}{2} \cdot \frac{c}{{b}^{3}}\right)\right) + \frac{1}{2} \cdot \frac{1}{b}\right)}\right)\right)\right) \]
            7. +-lowering-+.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{*.f64}\left(b, \frac{-1}{2}\right), c\right), \mathsf{*.f64}\left(a, \mathsf{+.f64}\left(\left(-1 \cdot \left(a \cdot \left(-1 \cdot \frac{c}{{b}^{3}} + \frac{1}{2} \cdot \frac{c}{{b}^{3}}\right)\right)\right), \color{blue}{\left(\frac{1}{2} \cdot \frac{1}{b}\right)}\right)\right)\right)\right) \]
          9. Simplified86.9%

            \[\leadsto \frac{0.5}{\color{blue}{\frac{b \cdot -0.5}{c} + a \cdot \left(a \cdot \frac{0.5 \cdot c}{b \cdot \left(b \cdot b\right)} + \frac{0.5}{b}\right)}} \]
          10. Final simplification86.9%

            \[\leadsto \frac{0.5}{\frac{b \cdot -0.5}{c} + a \cdot \left(a \cdot \frac{c \cdot 0.5}{b \cdot \left(b \cdot b\right)} + \frac{0.5}{b}\right)} \]
          11. Add Preprocessing

          Alternative 6: 82.3% accurate, 8.9× speedup?

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

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

              \[\leadsto \mathsf{/.f64}\left(\left(\left(\mathsf{neg}\left(b\right)\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), \color{blue}{\left(2 \cdot a\right)}\right) \]
            2. +-commutativeN/A

              \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + \left(\mathsf{neg}\left(b\right)\right)\right), \left(\color{blue}{2} \cdot a\right)\right) \]
            3. unsub-negN/A

              \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
            4. --lowering--.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
            5. sqrt-lowering-sqrt.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b - \left(4 \cdot a\right) \cdot c\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            6. sub-negN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b + \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            7. +-lowering-+.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\left(b \cdot b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            8. *-lowering-*.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            9. *-commutativeN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(a \cdot 4\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            10. associate-*l*N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(a \cdot \left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            11. distribute-rgt-neg-inN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            12. *-commutativeN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            13. *-lowering-*.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            14. distribute-rgt-neg-inN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(c \cdot \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            15. *-lowering-*.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            16. metadata-evalN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
            17. *-commutativeN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(a \cdot \color{blue}{2}\right)\right) \]
          3. Simplified58.3%

            \[\leadsto \color{blue}{\frac{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}{a \cdot 2}} \]
          4. Add Preprocessing
          5. Step-by-step derivation
            1. flip-+N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{b \cdot b - a \cdot \left(c \cdot -4\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
            2. fmm-defN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{\mathsf{fma}\left(b, b, \mathsf{neg}\left(a \cdot \left(c \cdot -4\right)\right)\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
            3. *-commutativeN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
            4. clear-numN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{1}{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
            5. sqrt-divN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\frac{\sqrt{1}}{\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
            6. metadata-evalN/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\frac{1}{\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
            7. /-lowering-/.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{/.f64}\left(1, \left(\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}\right)\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
            8. sqrt-lowering-sqrt.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{/.f64}\left(1, \mathsf{sqrt.f64}\left(\left(\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}\right)\right)\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
          6. Applied egg-rr57.9%

            \[\leadsto \frac{\color{blue}{\frac{1}{\sqrt{\frac{1}{b \cdot b + a \cdot \left(c \cdot -4\right)}}}} - b}{a \cdot 2} \]
          7. Step-by-step derivation
            1. Applied egg-rr99.4%

              \[\leadsto \color{blue}{\frac{\frac{0 - a \cdot \left(c \cdot -4\right)}{a \cdot 2}}{\left(0 - b\right) - \sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)}}} \]
            2. Taylor expanded in a around 0

              \[\leadsto \mathsf{/.f64}\left(\color{blue}{\left(2 \cdot c\right)}, \mathsf{\_.f64}\left(\mathsf{\_.f64}\left(0, b\right), \mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right)\right)\right) \]
            3. Step-by-step derivation
              1. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\left(c \cdot 2\right), \mathsf{\_.f64}\left(\color{blue}{\mathsf{\_.f64}\left(0, b\right)}, \mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right)\right)\right) \]
              2. *-lowering-*.f6499.6%

                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \mathsf{\_.f64}\left(\color{blue}{\mathsf{\_.f64}\left(0, b\right)}, \mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right)\right)\right) \]
            4. Simplified99.6%

              \[\leadsto \frac{\color{blue}{c \cdot 2}}{\left(0 - b\right) - \sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)}} \]
            5. Taylor expanded in a around 0

              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \color{blue}{\left(2 \cdot \frac{a \cdot c}{b} - 2 \cdot b\right)}\right) \]
            6. Step-by-step derivation
              1. distribute-lft-out--N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \left(2 \cdot \color{blue}{\left(\frac{a \cdot c}{b} - b\right)}\right)\right) \]
              2. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \mathsf{*.f64}\left(2, \color{blue}{\left(\frac{a \cdot c}{b} - b\right)}\right)\right) \]
              3. --lowering--.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \mathsf{*.f64}\left(2, \mathsf{\_.f64}\left(\left(\frac{a \cdot c}{b}\right), \color{blue}{b}\right)\right)\right) \]
              4. /-lowering-/.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \mathsf{*.f64}\left(2, \mathsf{\_.f64}\left(\mathsf{/.f64}\left(\left(a \cdot c\right), b\right), b\right)\right)\right) \]
              5. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \mathsf{*.f64}\left(2, \mathsf{\_.f64}\left(\mathsf{/.f64}\left(\left(c \cdot a\right), b\right), b\right)\right)\right) \]
              6. *-lowering-*.f6481.0%

                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(c, 2\right), \mathsf{*.f64}\left(2, \mathsf{\_.f64}\left(\mathsf{/.f64}\left(\mathsf{*.f64}\left(c, a\right), b\right), b\right)\right)\right) \]
            7. Simplified81.0%

              \[\leadsto \frac{c \cdot 2}{\color{blue}{2 \cdot \left(\frac{c \cdot a}{b} - b\right)}} \]
            8. Add Preprocessing

            Alternative 7: 82.2% accurate, 8.9× speedup?

            \[\begin{array}{l} \\ \frac{0.5}{\frac{b \cdot -0.5}{c} + \frac{a \cdot 0.5}{b}} \end{array} \]
            (FPCore (a b c)
             :precision binary64
             (/ 0.5 (+ (/ (* b -0.5) c) (/ (* a 0.5) b))))
            double code(double a, double b, double c) {
            	return 0.5 / (((b * -0.5) / c) + ((a * 0.5) / b));
            }
            
            real(8) function code(a, b, c)
                real(8), intent (in) :: a
                real(8), intent (in) :: b
                real(8), intent (in) :: c
                code = 0.5d0 / (((b * (-0.5d0)) / c) + ((a * 0.5d0) / b))
            end function
            
            public static double code(double a, double b, double c) {
            	return 0.5 / (((b * -0.5) / c) + ((a * 0.5) / b));
            }
            
            def code(a, b, c):
            	return 0.5 / (((b * -0.5) / c) + ((a * 0.5) / b))
            
            function code(a, b, c)
            	return Float64(0.5 / Float64(Float64(Float64(b * -0.5) / c) + Float64(Float64(a * 0.5) / b)))
            end
            
            function tmp = code(a, b, c)
            	tmp = 0.5 / (((b * -0.5) / c) + ((a * 0.5) / b));
            end
            
            code[a_, b_, c_] := N[(0.5 / N[(N[(N[(b * -0.5), $MachinePrecision] / c), $MachinePrecision] + N[(N[(a * 0.5), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
            
            \begin{array}{l}
            
            \\
            \frac{0.5}{\frac{b \cdot -0.5}{c} + \frac{a \cdot 0.5}{b}}
            \end{array}
            
            Derivation
            1. Initial program 58.3%

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

                \[\leadsto \mathsf{/.f64}\left(\left(\left(\mathsf{neg}\left(b\right)\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), \color{blue}{\left(2 \cdot a\right)}\right) \]
              2. +-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + \left(\mathsf{neg}\left(b\right)\right)\right), \left(\color{blue}{2} \cdot a\right)\right) \]
              3. unsub-negN/A

                \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
              4. --lowering--.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
              5. sqrt-lowering-sqrt.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b - \left(4 \cdot a\right) \cdot c\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              6. sub-negN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b + \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              7. +-lowering-+.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\left(b \cdot b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              8. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              9. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(a \cdot 4\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              10. associate-*l*N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(a \cdot \left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              11. distribute-rgt-neg-inN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              12. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              13. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              14. distribute-rgt-neg-inN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(c \cdot \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              15. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              16. metadata-evalN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              17. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(a \cdot \color{blue}{2}\right)\right) \]
            3. Simplified58.3%

              \[\leadsto \color{blue}{\frac{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}{a \cdot 2}} \]
            4. Add Preprocessing
            5. Step-by-step derivation
              1. associate-/r*N/A

                \[\leadsto \frac{\frac{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}{a}}{\color{blue}{2}} \]
              2. clear-numN/A

                \[\leadsto \frac{\frac{1}{\frac{a}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}}}{2} \]
              3. associate-/l/N/A

                \[\leadsto \frac{1}{\color{blue}{2 \cdot \frac{a}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}}} \]
              4. associate-/r*N/A

                \[\leadsto \frac{\frac{1}{2}}{\color{blue}{\frac{a}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}}} \]
              5. metadata-evalN/A

                \[\leadsto \frac{\frac{1}{2}}{\frac{\color{blue}{a}}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}} \]
              6. /-lowering-/.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \color{blue}{\left(\frac{a}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}\right)}\right) \]
              7. /-lowering-/.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \color{blue}{\left(\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b\right)}\right)\right) \]
              8. --lowering--.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\left(\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)}\right), \color{blue}{b}\right)\right)\right) \]
              9. sqrt-lowering-sqrt.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b + a \cdot \left(c \cdot -4\right)\right)\right), b\right)\right)\right) \]
              10. +-lowering-+.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\left(b \cdot b\right), \left(a \cdot \left(c \cdot -4\right)\right)\right)\right), b\right)\right)\right) \]
              11. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(c \cdot -4\right)\right)\right)\right), b\right)\right)\right) \]
              12. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(c \cdot -4\right)\right)\right)\right), b\right)\right)\right) \]
              13. *-lowering-*.f6458.3%

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{/.f64}\left(a, \mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right)\right)\right) \]
            6. Applied egg-rr58.3%

              \[\leadsto \color{blue}{\frac{0.5}{\frac{a}{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}}} \]
            7. Taylor expanded in a around 0

              \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \color{blue}{\left(\frac{-1}{2} \cdot \frac{b}{c} + \frac{1}{2} \cdot \frac{a}{b}\right)}\right) \]
            8. Step-by-step derivation
              1. metadata-evalN/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \left(\frac{-1}{2} \cdot \frac{b}{c} + \left(\mathsf{neg}\left(\frac{-1}{2}\right)\right) \cdot \frac{\color{blue}{a}}{b}\right)\right) \]
              2. distribute-lft-neg-inN/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \left(\frac{-1}{2} \cdot \frac{b}{c} + \left(\mathsf{neg}\left(\frac{-1}{2} \cdot \frac{a}{b}\right)\right)\right)\right) \]
              3. +-lowering-+.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\left(\frac{-1}{2} \cdot \frac{b}{c}\right), \color{blue}{\left(\mathsf{neg}\left(\frac{-1}{2} \cdot \frac{a}{b}\right)\right)}\right)\right) \]
              4. associate-*r/N/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\left(\frac{\frac{-1}{2} \cdot b}{c}\right), \left(\mathsf{neg}\left(\color{blue}{\frac{-1}{2} \cdot \frac{a}{b}}\right)\right)\right)\right) \]
              5. /-lowering-/.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\left(\frac{-1}{2} \cdot b\right), c\right), \left(\mathsf{neg}\left(\color{blue}{\frac{-1}{2} \cdot \frac{a}{b}}\right)\right)\right)\right) \]
              6. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\left(b \cdot \frac{-1}{2}\right), c\right), \left(\mathsf{neg}\left(\color{blue}{\frac{-1}{2}} \cdot \frac{a}{b}\right)\right)\right)\right) \]
              7. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{*.f64}\left(b, \frac{-1}{2}\right), c\right), \left(\mathsf{neg}\left(\color{blue}{\frac{-1}{2}} \cdot \frac{a}{b}\right)\right)\right)\right) \]
              8. distribute-lft-neg-inN/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{*.f64}\left(b, \frac{-1}{2}\right), c\right), \left(\left(\mathsf{neg}\left(\frac{-1}{2}\right)\right) \cdot \color{blue}{\frac{a}{b}}\right)\right)\right) \]
              9. metadata-evalN/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{*.f64}\left(b, \frac{-1}{2}\right), c\right), \left(\frac{1}{2} \cdot \frac{\color{blue}{a}}{b}\right)\right)\right) \]
              10. associate-*r/N/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{*.f64}\left(b, \frac{-1}{2}\right), c\right), \left(\frac{\frac{1}{2} \cdot a}{\color{blue}{b}}\right)\right)\right) \]
              11. /-lowering-/.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{*.f64}\left(b, \frac{-1}{2}\right), c\right), \mathsf{/.f64}\left(\left(\frac{1}{2} \cdot a\right), \color{blue}{b}\right)\right)\right) \]
              12. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{*.f64}\left(b, \frac{-1}{2}\right), c\right), \mathsf{/.f64}\left(\left(a \cdot \frac{1}{2}\right), b\right)\right)\right) \]
              13. *-lowering-*.f6480.9%

                \[\leadsto \mathsf{/.f64}\left(\frac{1}{2}, \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{*.f64}\left(b, \frac{-1}{2}\right), c\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(a, \frac{1}{2}\right), b\right)\right)\right) \]
            9. Simplified80.9%

              \[\leadsto \frac{0.5}{\color{blue}{\frac{b \cdot -0.5}{c} + \frac{a \cdot 0.5}{b}}} \]
            10. Add Preprocessing

            Alternative 8: 64.4% accurate, 23.2× speedup?

            \[\begin{array}{l} \\ 0 - \frac{c}{b} \end{array} \]
            (FPCore (a b c) :precision binary64 (- 0.0 (/ c b)))
            double code(double a, double b, double c) {
            	return 0.0 - (c / b);
            }
            
            real(8) function code(a, b, c)
                real(8), intent (in) :: a
                real(8), intent (in) :: b
                real(8), intent (in) :: c
                code = 0.0d0 - (c / b)
            end function
            
            public static double code(double a, double b, double c) {
            	return 0.0 - (c / b);
            }
            
            def code(a, b, c):
            	return 0.0 - (c / b)
            
            function code(a, b, c)
            	return Float64(0.0 - Float64(c / b))
            end
            
            function tmp = code(a, b, c)
            	tmp = 0.0 - (c / b);
            end
            
            code[a_, b_, c_] := N[(0.0 - N[(c / b), $MachinePrecision]), $MachinePrecision]
            
            \begin{array}{l}
            
            \\
            0 - \frac{c}{b}
            \end{array}
            
            Derivation
            1. Initial program 58.3%

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

                \[\leadsto \mathsf{/.f64}\left(\left(\left(\mathsf{neg}\left(b\right)\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), \color{blue}{\left(2 \cdot a\right)}\right) \]
              2. +-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + \left(\mathsf{neg}\left(b\right)\right)\right), \left(\color{blue}{2} \cdot a\right)\right) \]
              3. unsub-negN/A

                \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
              4. --lowering--.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
              5. sqrt-lowering-sqrt.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b - \left(4 \cdot a\right) \cdot c\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              6. sub-negN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b + \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              7. +-lowering-+.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\left(b \cdot b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              8. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              9. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(a \cdot 4\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              10. associate-*l*N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(a \cdot \left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              11. distribute-rgt-neg-inN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              12. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              13. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              14. distribute-rgt-neg-inN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(c \cdot \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              15. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              16. metadata-evalN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              17. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(a \cdot \color{blue}{2}\right)\right) \]
            3. Simplified58.3%

              \[\leadsto \color{blue}{\frac{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}{a \cdot 2}} \]
            4. Add Preprocessing
            5. Step-by-step derivation
              1. flip-+N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{b \cdot b - a \cdot \left(c \cdot -4\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
              2. fmm-defN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{\mathsf{fma}\left(b, b, \mathsf{neg}\left(a \cdot \left(c \cdot -4\right)\right)\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
              3. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
              4. clear-numN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{1}{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
              5. sqrt-divN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\frac{\sqrt{1}}{\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
              6. metadata-evalN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\frac{1}{\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
              7. /-lowering-/.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{/.f64}\left(1, \left(\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}\right)\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
              8. sqrt-lowering-sqrt.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{/.f64}\left(1, \mathsf{sqrt.f64}\left(\left(\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}\right)\right)\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
            6. Applied egg-rr57.9%

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

              \[\leadsto \color{blue}{-1 \cdot \frac{c}{b}} \]
            8. Step-by-step derivation
              1. associate-*r/N/A

                \[\leadsto \frac{-1 \cdot c}{\color{blue}{b}} \]
              2. /-lowering-/.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\left(-1 \cdot c\right), \color{blue}{b}\right) \]
              3. mul-1-negN/A

                \[\leadsto \mathsf{/.f64}\left(\left(\mathsf{neg}\left(c\right)\right), b\right) \]
              4. neg-lowering-neg.f6462.0%

                \[\leadsto \mathsf{/.f64}\left(\mathsf{neg.f64}\left(c\right), b\right) \]
            9. Simplified62.0%

              \[\leadsto \color{blue}{\frac{-c}{b}} \]
            10. Final simplification62.0%

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

            Alternative 9: 11.6% accurate, 23.2× speedup?

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

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

                \[\leadsto \mathsf{/.f64}\left(\left(\left(\mathsf{neg}\left(b\right)\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), \color{blue}{\left(2 \cdot a\right)}\right) \]
              2. +-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + \left(\mathsf{neg}\left(b\right)\right)\right), \left(\color{blue}{2} \cdot a\right)\right) \]
              3. unsub-negN/A

                \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
              4. --lowering--.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
              5. sqrt-lowering-sqrt.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b - \left(4 \cdot a\right) \cdot c\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              6. sub-negN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b + \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              7. +-lowering-+.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\left(b \cdot b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              8. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              9. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(a \cdot 4\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              10. associate-*l*N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(a \cdot \left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              11. distribute-rgt-neg-inN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              12. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              13. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              14. distribute-rgt-neg-inN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(c \cdot \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              15. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              16. metadata-evalN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              17. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(a \cdot \color{blue}{2}\right)\right) \]
            3. Simplified58.3%

              \[\leadsto \color{blue}{\frac{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}{a \cdot 2}} \]
            4. Add Preprocessing
            5. Taylor expanded in b around -inf

              \[\leadsto \color{blue}{-1 \cdot \frac{b}{a}} \]
            6. Step-by-step derivation
              1. mul-1-negN/A

                \[\leadsto \mathsf{neg}\left(\frac{b}{a}\right) \]
              2. distribute-neg-frac2N/A

                \[\leadsto \frac{b}{\color{blue}{\mathsf{neg}\left(a\right)}} \]
              3. mul-1-negN/A

                \[\leadsto \frac{b}{-1 \cdot \color{blue}{a}} \]
              4. /-lowering-/.f64N/A

                \[\leadsto \mathsf{/.f64}\left(b, \color{blue}{\left(-1 \cdot a\right)}\right) \]
              5. mul-1-negN/A

                \[\leadsto \mathsf{/.f64}\left(b, \left(\mathsf{neg}\left(a\right)\right)\right) \]
              6. neg-lowering-neg.f6411.7%

                \[\leadsto \mathsf{/.f64}\left(b, \mathsf{neg.f64}\left(a\right)\right) \]
            7. Simplified11.7%

              \[\leadsto \color{blue}{\frac{b}{-a}} \]
            8. Final simplification11.7%

              \[\leadsto 0 - \frac{b}{a} \]
            9. Add Preprocessing

            Alternative 10: 1.6% accurate, 38.7× 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 / 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.3%

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

                \[\leadsto \mathsf{/.f64}\left(\left(\left(\mathsf{neg}\left(b\right)\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), \color{blue}{\left(2 \cdot a\right)}\right) \]
              2. +-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + \left(\mathsf{neg}\left(b\right)\right)\right), \left(\color{blue}{2} \cdot a\right)\right) \]
              3. unsub-negN/A

                \[\leadsto \mathsf{/.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
              4. --lowering--.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right), b\right), \left(\color{blue}{2} \cdot a\right)\right) \]
              5. sqrt-lowering-sqrt.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b - \left(4 \cdot a\right) \cdot c\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              6. sub-negN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\left(b \cdot b + \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              7. +-lowering-+.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\left(b \cdot b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              8. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(4 \cdot a\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              9. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(\left(a \cdot 4\right) \cdot c\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              10. associate-*l*N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(\mathsf{neg}\left(a \cdot \left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              11. distribute-rgt-neg-inN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(4 \cdot c\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              12. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \left(a \cdot \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              13. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(\mathsf{neg}\left(c \cdot 4\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              14. distribute-rgt-neg-inN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \left(c \cdot \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              15. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, \left(\mathsf{neg}\left(4\right)\right)\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              16. metadata-evalN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(2 \cdot a\right)\right) \]
              17. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{sqrt.f64}\left(\mathsf{+.f64}\left(\mathsf{*.f64}\left(b, b\right), \mathsf{*.f64}\left(a, \mathsf{*.f64}\left(c, -4\right)\right)\right)\right), b\right), \left(a \cdot \color{blue}{2}\right)\right) \]
            3. Simplified58.3%

              \[\leadsto \color{blue}{\frac{\sqrt{b \cdot b + a \cdot \left(c \cdot -4\right)} - b}{a \cdot 2}} \]
            4. Add Preprocessing
            5. Step-by-step derivation
              1. flip-+N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{b \cdot b - a \cdot \left(c \cdot -4\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
              2. fmm-defN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{\mathsf{fma}\left(b, b, \mathsf{neg}\left(a \cdot \left(c \cdot -4\right)\right)\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
              3. *-commutativeN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
              4. clear-numN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\sqrt{\frac{1}{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
              5. sqrt-divN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\frac{\sqrt{1}}{\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
              6. metadata-evalN/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\left(\frac{1}{\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}}\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
              7. /-lowering-/.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{/.f64}\left(1, \left(\sqrt{\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}}\right)\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
              8. sqrt-lowering-sqrt.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{\_.f64}\left(\mathsf{/.f64}\left(1, \mathsf{sqrt.f64}\left(\left(\frac{\mathsf{fma}\left(b, b, \mathsf{neg}\left(\left(c \cdot -4\right) \cdot a\right)\right)}{\left(b \cdot b\right) \cdot \left(b \cdot b\right) - \left(a \cdot \left(c \cdot -4\right)\right) \cdot \left(a \cdot \left(c \cdot -4\right)\right)}\right)\right)\right), b\right), \mathsf{*.f64}\left(a, 2\right)\right) \]
            6. Applied egg-rr57.9%

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

              \[\leadsto \color{blue}{-1 \cdot \frac{c}{b}} \]
            8. Step-by-step derivation
              1. associate-*r/N/A

                \[\leadsto \frac{-1 \cdot c}{\color{blue}{b}} \]
              2. /-lowering-/.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\left(-1 \cdot c\right), \color{blue}{b}\right) \]
              3. mul-1-negN/A

                \[\leadsto \mathsf{/.f64}\left(\left(\mathsf{neg}\left(c\right)\right), b\right) \]
              4. neg-lowering-neg.f6462.0%

                \[\leadsto \mathsf{/.f64}\left(\mathsf{neg.f64}\left(c\right), b\right) \]
            9. Simplified62.0%

              \[\leadsto \color{blue}{\frac{-c}{b}} \]
            10. Step-by-step derivation
              1. unpow1N/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{{b}^{\color{blue}{1}}} \]
              2. metadata-evalN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{{b}^{\left(3 - \color{blue}{2}\right)}} \]
              3. pow-divN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{b}^{3}}{\color{blue}{{b}^{2}}}} \]
              4. metadata-evalN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{b}^{\left(2 \cdot \frac{3}{2}\right)}}{{b}^{2}}} \]
              5. metadata-evalN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{b}^{\left(2 \cdot \left(\frac{1}{2} \cdot 3\right)\right)}}{{b}^{2}}} \]
              6. pow-powN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{\left({b}^{2}\right)}^{\left(\frac{1}{2} \cdot 3\right)}}{{\color{blue}{b}}^{2}}} \]
              7. pow2N/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{\left(b \cdot b\right)}^{\left(\frac{1}{2} \cdot 3\right)}}{{b}^{2}}} \]
              8. sqr-negN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{\left(\left(\mathsf{neg}\left(b\right)\right) \cdot \left(\mathsf{neg}\left(b\right)\right)\right)}^{\left(\frac{1}{2} \cdot 3\right)}}{{b}^{2}}} \]
              9. sub0-negN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{\left(\left(0 - b\right) \cdot \left(\mathsf{neg}\left(b\right)\right)\right)}^{\left(\frac{1}{2} \cdot 3\right)}}{{b}^{2}}} \]
              10. sub0-negN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{\left(\left(0 - b\right) \cdot \left(0 - b\right)\right)}^{\left(\frac{1}{2} \cdot 3\right)}}{{b}^{2}}} \]
              11. pow2N/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{\left({\left(0 - b\right)}^{2}\right)}^{\left(\frac{1}{2} \cdot 3\right)}}{{b}^{2}}} \]
              12. pow-powN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{\left(0 - b\right)}^{\left(2 \cdot \left(\frac{1}{2} \cdot 3\right)\right)}}{{\color{blue}{b}}^{2}}} \]
              13. metadata-evalN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{\left(0 - b\right)}^{\left(2 \cdot \frac{3}{2}\right)}}{{b}^{2}}} \]
              14. metadata-evalN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{\left(0 - b\right)}^{3}}{{b}^{2}}} \]
              15. pow2N/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{\left(0 - b\right)}^{3}}{b \cdot \color{blue}{b}}} \]
              16. sub0-negN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{\left(\mathsf{neg}\left(b\right)\right)}^{3}}{b \cdot b}} \]
              17. cube-negN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{\mathsf{neg}\left({b}^{3}\right)}{\color{blue}{b} \cdot b}} \]
              18. cube-unmultN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{\mathsf{neg}\left(b \cdot \left(b \cdot b\right)\right)}{b \cdot b}} \]
              19. neg-sub0N/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{0 - b \cdot \left(b \cdot b\right)}{\color{blue}{b} \cdot b}} \]
              20. metadata-evalN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{0}^{3} - b \cdot \left(b \cdot b\right)}{b \cdot b}} \]
              21. cube-unmultN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{0}^{3} - {b}^{3}}{b \cdot b}} \]
              22. +-lft-identityN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{0}^{3} - {b}^{3}}{b \cdot \left(0 + \color{blue}{b}\right)}} \]
              23. +-commutativeN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{0}^{3} - {b}^{3}}{b \cdot \left(b + \color{blue}{0}\right)}} \]
              24. distribute-rgt-outN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{0}^{3} - {b}^{3}}{b \cdot b + \color{blue}{0 \cdot b}}} \]
              25. +-lft-identityN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{0}^{3} - {b}^{3}}{0 + \color{blue}{\left(b \cdot b + 0 \cdot b\right)}}} \]
              26. metadata-evalN/A

                \[\leadsto \frac{\mathsf{neg}\left(c\right)}{\frac{{0}^{3} - {b}^{3}}{0 \cdot 0 + \left(\color{blue}{b \cdot b} + 0 \cdot b\right)}} \]
            11. Applied egg-rr1.6%

              \[\leadsto \color{blue}{\frac{c}{b}} \]
            12. Add Preprocessing

            Reproduce

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