The quadratic formula (r1)

Percentage Accurate: 52.4% → 90.8%
Time: 18.6s
Alternatives: 12
Speedup: 19.1×

Specification

?
\[\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 12 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: 52.4% accurate, 1.0× speedup?

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

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

Alternative 1: 90.8% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -5.5 \cdot 10^{+119}:\\ \;\;\;\;\frac{c}{b} - \frac{b}{a}\\ \mathbf{elif}\;b \leq -3.5 \cdot 10^{-286}:\\ \;\;\;\;\frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)} - b}{a \cdot 2}\\ \mathbf{elif}\;b \leq 2.6 \cdot 10^{+117}:\\ \;\;\;\;\frac{c \cdot -2}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)}}\\ \mathbf{else}:\\ \;\;\;\;\frac{-c}{b}\\ \end{array} \end{array} \]
(FPCore (a b c)
 :precision binary64
 (if (<= b -5.5e+119)
   (- (/ c b) (/ b a))
   (if (<= b -3.5e-286)
     (/ (- (sqrt (fma a (* c -4.0) (* b b))) b) (* a 2.0))
     (if (<= b 2.6e+117)
       (/ (* c -2.0) (+ b (sqrt (fma a (* c -4.0) (pow b 2.0)))))
       (/ (- c) b)))))
double code(double a, double b, double c) {
	double tmp;
	if (b <= -5.5e+119) {
		tmp = (c / b) - (b / a);
	} else if (b <= -3.5e-286) {
		tmp = (sqrt(fma(a, (c * -4.0), (b * b))) - b) / (a * 2.0);
	} else if (b <= 2.6e+117) {
		tmp = (c * -2.0) / (b + sqrt(fma(a, (c * -4.0), pow(b, 2.0))));
	} else {
		tmp = -c / b;
	}
	return tmp;
}
function code(a, b, c)
	tmp = 0.0
	if (b <= -5.5e+119)
		tmp = Float64(Float64(c / b) - Float64(b / a));
	elseif (b <= -3.5e-286)
		tmp = Float64(Float64(sqrt(fma(a, Float64(c * -4.0), Float64(b * b))) - b) / Float64(a * 2.0));
	elseif (b <= 2.6e+117)
		tmp = Float64(Float64(c * -2.0) / Float64(b + sqrt(fma(a, Float64(c * -4.0), (b ^ 2.0)))));
	else
		tmp = Float64(Float64(-c) / b);
	end
	return tmp
end
code[a_, b_, c_] := If[LessEqual[b, -5.5e+119], N[(N[(c / b), $MachinePrecision] - N[(b / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.5e-286], N[(N[(N[Sqrt[N[(a * N[(c * -4.0), $MachinePrecision] + N[(b * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(a * 2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.6e+117], N[(N[(c * -2.0), $MachinePrecision] / N[(b + N[Sqrt[N[(a * N[(c * -4.0), $MachinePrecision] + N[Power[b, 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-c) / b), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.5 \cdot 10^{+119}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\

\mathbf{elif}\;b \leq -3.5 \cdot 10^{-286}:\\
\;\;\;\;\frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)} - b}{a \cdot 2}\\

\mathbf{elif}\;b \leq 2.6 \cdot 10^{+117}:\\
\;\;\;\;\frac{c \cdot -2}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)}}\\

\mathbf{else}:\\
\;\;\;\;\frac{-c}{b}\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if b < -5.5000000000000003e119

    1. Initial program 43.9%

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \frac{b}{a} + \frac{c}{b}} \]
    5. Step-by-step derivation
      1. +-commutative98.1%

        \[\leadsto \color{blue}{\frac{c}{b} + -1 \cdot \frac{b}{a}} \]
      2. mul-1-neg98.1%

        \[\leadsto \frac{c}{b} + \color{blue}{\left(-\frac{b}{a}\right)} \]
      3. unsub-neg98.1%

        \[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}} \]
    6. Simplified98.1%

      \[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}} \]

    if -5.5000000000000003e119 < b < -3.49999999999999988e-286

    1. Initial program 89.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. Simplified89.1%

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

      if -3.49999999999999988e-286 < b < 2.5999999999999999e117

      1. Initial program 45.9%

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

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

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

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

          \[\leadsto \frac{\color{blue}{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b}}{a \cdot 2} \]
        3. *-un-lft-identity45.9%

          \[\leadsto \frac{\sqrt{\color{blue}{1 \cdot \left(b \cdot b - \left(4 \cdot a\right) \cdot c\right)}} - b}{a \cdot 2} \]
        4. *-un-lft-identity45.9%

          \[\leadsto \frac{\sqrt{\color{blue}{b \cdot b - \left(4 \cdot a\right) \cdot c}} - b}{a \cdot 2} \]
        5. cancel-sign-sub-inv45.9%

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

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

          \[\leadsto \frac{\sqrt{\left(-\color{blue}{a \cdot 4}\right) \cdot c + b \cdot b} - b}{a \cdot 2} \]
        8. distribute-rgt-neg-in45.9%

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

          \[\leadsto \frac{\sqrt{\left(a \cdot \color{blue}{-4}\right) \cdot c + b \cdot b} - b}{a \cdot 2} \]
        10. associate-*r*45.9%

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

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

          \[\leadsto \frac{\sqrt{\color{blue}{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)}} - b}{a \cdot 2} \]
        13. div-sub45.7%

          \[\leadsto \color{blue}{\frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)}}{a \cdot 2} - \frac{b}{a \cdot 2}} \]
        14. sub-neg45.7%

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

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

          \[\leadsto \color{blue}{\sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)} \cdot \frac{0.5}{a} - b \cdot \frac{0.5}{a}} \]
        2. distribute-rgt-out--45.8%

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

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

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

          \[\leadsto \frac{0.5}{a} \cdot \frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)} \cdot \sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)} - b \cdot b}{\color{blue}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)}}} \]
        3. associate-*r/45.5%

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

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

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

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

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

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

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

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

      if 2.5999999999999999e117 < b

      1. Initial program 4.0%

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

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

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

        \[\leadsto \color{blue}{-1 \cdot \frac{c}{b}} \]
      5. Step-by-step derivation
        1. mul-1-neg98.0%

          \[\leadsto \color{blue}{-\frac{c}{b}} \]
        2. distribute-neg-frac98.0%

          \[\leadsto \color{blue}{\frac{-c}{b}} \]
      6. Simplified98.0%

        \[\leadsto \color{blue}{\frac{-c}{b}} \]
    3. Recombined 4 regimes into one program.
    4. Final simplification91.9%

      \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -5.5 \cdot 10^{+119}:\\ \;\;\;\;\frac{c}{b} - \frac{b}{a}\\ \mathbf{elif}\;b \leq -3.5 \cdot 10^{-286}:\\ \;\;\;\;\frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)} - b}{a \cdot 2}\\ \mathbf{elif}\;b \leq 2.6 \cdot 10^{+117}:\\ \;\;\;\;\frac{c \cdot -2}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)}}\\ \mathbf{else}:\\ \;\;\;\;\frac{-c}{b}\\ \end{array} \]

    Alternative 2: 88.3% accurate, 0.5× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -4 \cdot 10^{+119}:\\ \;\;\;\;\frac{c}{b} - \frac{b}{a}\\ \mathbf{elif}\;b \leq -6.8 \cdot 10^{-286}:\\ \;\;\;\;\frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)} - b}{a \cdot 2}\\ \mathbf{elif}\;b \leq 2.4 \cdot 10^{-62}:\\ \;\;\;\;\frac{\frac{a}{a} \cdot \frac{c}{-0.5}}{b + \mathsf{hypot}\left(\sqrt{c \cdot \left(a \cdot -4\right)}, b\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{-c}{b}\\ \end{array} \end{array} \]
    (FPCore (a b c)
     :precision binary64
     (if (<= b -4e+119)
       (- (/ c b) (/ b a))
       (if (<= b -6.8e-286)
         (/ (- (sqrt (fma a (* c -4.0) (* b b))) b) (* a 2.0))
         (if (<= b 2.4e-62)
           (/ (* (/ a a) (/ c -0.5)) (+ b (hypot (sqrt (* c (* a -4.0))) b)))
           (/ (- c) b)))))
    double code(double a, double b, double c) {
    	double tmp;
    	if (b <= -4e+119) {
    		tmp = (c / b) - (b / a);
    	} else if (b <= -6.8e-286) {
    		tmp = (sqrt(fma(a, (c * -4.0), (b * b))) - b) / (a * 2.0);
    	} else if (b <= 2.4e-62) {
    		tmp = ((a / a) * (c / -0.5)) / (b + hypot(sqrt((c * (a * -4.0))), b));
    	} else {
    		tmp = -c / b;
    	}
    	return tmp;
    }
    
    function code(a, b, c)
    	tmp = 0.0
    	if (b <= -4e+119)
    		tmp = Float64(Float64(c / b) - Float64(b / a));
    	elseif (b <= -6.8e-286)
    		tmp = Float64(Float64(sqrt(fma(a, Float64(c * -4.0), Float64(b * b))) - b) / Float64(a * 2.0));
    	elseif (b <= 2.4e-62)
    		tmp = Float64(Float64(Float64(a / a) * Float64(c / -0.5)) / Float64(b + hypot(sqrt(Float64(c * Float64(a * -4.0))), b)));
    	else
    		tmp = Float64(Float64(-c) / b);
    	end
    	return tmp
    end
    
    code[a_, b_, c_] := If[LessEqual[b, -4e+119], N[(N[(c / b), $MachinePrecision] - N[(b / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.8e-286], N[(N[(N[Sqrt[N[(a * N[(c * -4.0), $MachinePrecision] + N[(b * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(a * 2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.4e-62], N[(N[(N[(a / a), $MachinePrecision] * N[(c / -0.5), $MachinePrecision]), $MachinePrecision] / N[(b + N[Sqrt[N[Sqrt[N[(c * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] ^ 2 + b ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-c) / b), $MachinePrecision]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;b \leq -4 \cdot 10^{+119}:\\
    \;\;\;\;\frac{c}{b} - \frac{b}{a}\\
    
    \mathbf{elif}\;b \leq -6.8 \cdot 10^{-286}:\\
    \;\;\;\;\frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)} - b}{a \cdot 2}\\
    
    \mathbf{elif}\;b \leq 2.4 \cdot 10^{-62}:\\
    \;\;\;\;\frac{\frac{a}{a} \cdot \frac{c}{-0.5}}{b + \mathsf{hypot}\left(\sqrt{c \cdot \left(a \cdot -4\right)}, b\right)}\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{-c}{b}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if b < -3.99999999999999978e119

      1. Initial program 43.9%

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

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

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

        \[\leadsto \color{blue}{-1 \cdot \frac{b}{a} + \frac{c}{b}} \]
      5. Step-by-step derivation
        1. +-commutative98.1%

          \[\leadsto \color{blue}{\frac{c}{b} + -1 \cdot \frac{b}{a}} \]
        2. mul-1-neg98.1%

          \[\leadsto \frac{c}{b} + \color{blue}{\left(-\frac{b}{a}\right)} \]
        3. unsub-neg98.1%

          \[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}} \]
      6. Simplified98.1%

        \[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}} \]

      if -3.99999999999999978e119 < b < -6.8000000000000002e-286

      1. Initial program 89.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. Simplified89.1%

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

        if -6.8000000000000002e-286 < b < 2.39999999999999984e-62

        1. Initial program 62.5%

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

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

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

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

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

            \[\leadsto \frac{\sqrt{\color{blue}{1 \cdot \left(b \cdot b - \left(4 \cdot a\right) \cdot c\right)}} - b}{a \cdot 2} \]
          4. *-un-lft-identity62.5%

            \[\leadsto \frac{\sqrt{\color{blue}{b \cdot b - \left(4 \cdot a\right) \cdot c}} - b}{a \cdot 2} \]
          5. cancel-sign-sub-inv62.5%

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

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

            \[\leadsto \frac{\sqrt{\left(-\color{blue}{a \cdot 4}\right) \cdot c + b \cdot b} - b}{a \cdot 2} \]
          8. distribute-rgt-neg-in62.5%

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

            \[\leadsto \frac{\sqrt{\left(a \cdot \color{blue}{-4}\right) \cdot c + b \cdot b} - b}{a \cdot 2} \]
          10. associate-*r*62.5%

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

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

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

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

            \[\leadsto \color{blue}{\frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)}}{a \cdot 2} + \left(-\frac{b}{a \cdot 2}\right)} \]
        5. Applied egg-rr62.3%

          \[\leadsto \color{blue}{\sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)} \cdot \frac{0.5}{a} + \left(-b \cdot \frac{0.5}{a}\right)} \]
        6. Step-by-step derivation
          1. sub-neg62.3%

            \[\leadsto \color{blue}{\sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)} \cdot \frac{0.5}{a} - b \cdot \frac{0.5}{a}} \]
          2. distribute-rgt-out--62.4%

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

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

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

            \[\leadsto \frac{0.5}{a} \cdot \frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)} \cdot \sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)} - b \cdot b}{\color{blue}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)}}} \]
          3. associate-*r/62.0%

            \[\leadsto \color{blue}{\frac{\frac{0.5}{a} \cdot \left(\sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)} \cdot \sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)} - b \cdot b\right)}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)}}} \]
          4. add-sqr-sqrt62.3%

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

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

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

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

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

          \[\leadsto \color{blue}{\frac{\frac{0.5}{a} \cdot \left(a \cdot \left(c \cdot -4\right) + 0\right)}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)}}} \]
        10. Step-by-step derivation
          1. expm1-log1p-u52.5%

            \[\leadsto \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\frac{\frac{0.5}{a} \cdot \left(a \cdot \left(c \cdot -4\right) + 0\right)}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)}}\right)\right)} \]
          2. expm1-udef22.5%

            \[\leadsto \color{blue}{e^{\mathsf{log1p}\left(\frac{\frac{0.5}{a} \cdot \left(a \cdot \left(c \cdot -4\right) + 0\right)}{b + \sqrt{\mathsf{fma}\left(a, c \cdot -4, {b}^{2}\right)}}\right)} - 1} \]
        11. Applied egg-rr20.4%

          \[\leadsto \color{blue}{e^{\mathsf{log1p}\left(\frac{0.5}{\frac{b + \mathsf{hypot}\left(\sqrt{a \cdot \left(c \cdot -4\right)}, b\right)}{a \cdot \left(c \cdot -4\right)} \cdot a}\right)} - 1} \]
        12. Step-by-step derivation
          1. expm1-def46.4%

            \[\leadsto \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\frac{0.5}{\frac{b + \mathsf{hypot}\left(\sqrt{a \cdot \left(c \cdot -4\right)}, b\right)}{a \cdot \left(c \cdot -4\right)} \cdot a}\right)\right)} \]
          2. expm1-log1p60.1%

            \[\leadsto \color{blue}{\frac{0.5}{\frac{b + \mathsf{hypot}\left(\sqrt{a \cdot \left(c \cdot -4\right)}, b\right)}{a \cdot \left(c \cdot -4\right)} \cdot a}} \]
          3. *-commutative60.1%

            \[\leadsto \frac{0.5}{\color{blue}{a \cdot \frac{b + \mathsf{hypot}\left(\sqrt{a \cdot \left(c \cdot -4\right)}, b\right)}{a \cdot \left(c \cdot -4\right)}}} \]
          4. associate-/r*60.1%

            \[\leadsto \color{blue}{\frac{\frac{0.5}{a}}{\frac{b + \mathsf{hypot}\left(\sqrt{a \cdot \left(c \cdot -4\right)}, b\right)}{a \cdot \left(c \cdot -4\right)}}} \]
          5. associate-/l*60.3%

            \[\leadsto \color{blue}{\frac{\frac{0.5}{a} \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{b + \mathsf{hypot}\left(\sqrt{a \cdot \left(c \cdot -4\right)}, b\right)}} \]
          6. associate-*l/60.3%

            \[\leadsto \frac{\color{blue}{\frac{0.5 \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{a}}}{b + \mathsf{hypot}\left(\sqrt{a \cdot \left(c \cdot -4\right)}, b\right)} \]
          7. /-rgt-identity60.3%

            \[\leadsto \frac{\frac{\color{blue}{\frac{0.5 \cdot \left(a \cdot \left(c \cdot -4\right)\right)}{1}}}{a}}{b + \mathsf{hypot}\left(\sqrt{a \cdot \left(c \cdot -4\right)}, b\right)} \]
          8. *-commutative60.3%

            \[\leadsto \frac{\frac{\frac{\color{blue}{\left(a \cdot \left(c \cdot -4\right)\right) \cdot 0.5}}{1}}{a}}{b + \mathsf{hypot}\left(\sqrt{a \cdot \left(c \cdot -4\right)}, b\right)} \]
          9. associate-/l*60.3%

            \[\leadsto \frac{\frac{\color{blue}{\frac{a \cdot \left(c \cdot -4\right)}{\frac{1}{0.5}}}}{a}}{b + \mathsf{hypot}\left(\sqrt{a \cdot \left(c \cdot -4\right)}, b\right)} \]
          10. metadata-eval60.3%

            \[\leadsto \frac{\frac{\frac{a \cdot \left(c \cdot -4\right)}{\color{blue}{2}}}{a}}{b + \mathsf{hypot}\left(\sqrt{a \cdot \left(c \cdot -4\right)}, b\right)} \]
          11. associate-/r*60.3%

            \[\leadsto \frac{\color{blue}{\frac{a \cdot \left(c \cdot -4\right)}{2 \cdot a}}}{b + \mathsf{hypot}\left(\sqrt{a \cdot \left(c \cdot -4\right)}, b\right)} \]
          12. *-commutative60.3%

            \[\leadsto \frac{\frac{a \cdot \left(c \cdot -4\right)}{\color{blue}{a \cdot 2}}}{b + \mathsf{hypot}\left(\sqrt{a \cdot \left(c \cdot -4\right)}, b\right)} \]
          13. times-frac77.5%

            \[\leadsto \frac{\color{blue}{\frac{a}{a} \cdot \frac{c \cdot -4}{2}}}{b + \mathsf{hypot}\left(\sqrt{a \cdot \left(c \cdot -4\right)}, b\right)} \]
          14. associate-/l*77.5%

            \[\leadsto \frac{\frac{a}{a} \cdot \color{blue}{\frac{c}{\frac{2}{-4}}}}{b + \mathsf{hypot}\left(\sqrt{a \cdot \left(c \cdot -4\right)}, b\right)} \]
          15. metadata-eval77.5%

            \[\leadsto \frac{\frac{a}{a} \cdot \frac{c}{\color{blue}{-0.5}}}{b + \mathsf{hypot}\left(\sqrt{a \cdot \left(c \cdot -4\right)}, b\right)} \]
        13. Simplified77.5%

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

        if 2.39999999999999984e-62 < b

        1. Initial program 11.5%

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

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

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

          \[\leadsto \color{blue}{-1 \cdot \frac{c}{b}} \]
        5. Step-by-step derivation
          1. mul-1-neg91.1%

            \[\leadsto \color{blue}{-\frac{c}{b}} \]
          2. distribute-neg-frac91.1%

            \[\leadsto \color{blue}{\frac{-c}{b}} \]
        6. Simplified91.1%

          \[\leadsto \color{blue}{\frac{-c}{b}} \]
      3. Recombined 4 regimes into one program.
      4. Final simplification89.4%

        \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -4 \cdot 10^{+119}:\\ \;\;\;\;\frac{c}{b} - \frac{b}{a}\\ \mathbf{elif}\;b \leq -6.8 \cdot 10^{-286}:\\ \;\;\;\;\frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)} - b}{a \cdot 2}\\ \mathbf{elif}\;b \leq 2.4 \cdot 10^{-62}:\\ \;\;\;\;\frac{\frac{a}{a} \cdot \frac{c}{-0.5}}{b + \mathsf{hypot}\left(\sqrt{c \cdot \left(a \cdot -4\right)}, b\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{-c}{b}\\ \end{array} \]

      Alternative 3: 86.3% accurate, 0.5× speedup?

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

        1. Initial program 43.9%

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

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

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

          \[\leadsto \color{blue}{-1 \cdot \frac{b}{a} + \frac{c}{b}} \]
        5. Step-by-step derivation
          1. +-commutative98.1%

            \[\leadsto \color{blue}{\frac{c}{b} + -1 \cdot \frac{b}{a}} \]
          2. mul-1-neg98.1%

            \[\leadsto \frac{c}{b} + \color{blue}{\left(-\frac{b}{a}\right)} \]
          3. unsub-neg98.1%

            \[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}} \]
        6. Simplified98.1%

          \[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}} \]

        if -1.6500000000000001e119 < b < 3.9999999999999999e-66

        1. Initial program 80.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. Simplified80.1%

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

          if 3.9999999999999999e-66 < b

          1. Initial program 12.4%

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

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

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

            \[\leadsto \color{blue}{-1 \cdot \frac{c}{b}} \]
          5. Step-by-step derivation
            1. mul-1-neg90.3%

              \[\leadsto \color{blue}{-\frac{c}{b}} \]
            2. distribute-neg-frac90.3%

              \[\leadsto \color{blue}{\frac{-c}{b}} \]
          6. Simplified90.3%

            \[\leadsto \color{blue}{\frac{-c}{b}} \]
        3. Recombined 3 regimes into one program.
        4. Final simplification87.0%

          \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.65 \cdot 10^{+119}:\\ \;\;\;\;\frac{c}{b} - \frac{b}{a}\\ \mathbf{elif}\;b \leq 4 \cdot 10^{-66}:\\ \;\;\;\;\frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)} - b}{a \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{-c}{b}\\ \end{array} \]

        Alternative 4: 86.3% accurate, 1.0× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -5.8 \cdot 10^{+119}:\\ \;\;\;\;\frac{c}{b} - \frac{b}{a}\\ \mathbf{elif}\;b \leq 1.75 \cdot 10^{-66}:\\ \;\;\;\;\frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 4\right)} - b}{a \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{-c}{b}\\ \end{array} \end{array} \]
        (FPCore (a b c)
         :precision binary64
         (if (<= b -5.8e+119)
           (- (/ c b) (/ b a))
           (if (<= b 1.75e-66)
             (/ (- (sqrt (- (* b b) (* c (* a 4.0)))) b) (* a 2.0))
             (/ (- c) b))))
        double code(double a, double b, double c) {
        	double tmp;
        	if (b <= -5.8e+119) {
        		tmp = (c / b) - (b / a);
        	} else if (b <= 1.75e-66) {
        		tmp = (sqrt(((b * b) - (c * (a * 4.0)))) - b) / (a * 2.0);
        	} else {
        		tmp = -c / b;
        	}
        	return tmp;
        }
        
        real(8) function code(a, b, c)
            real(8), intent (in) :: a
            real(8), intent (in) :: b
            real(8), intent (in) :: c
            real(8) :: tmp
            if (b <= (-5.8d+119)) then
                tmp = (c / b) - (b / a)
            else if (b <= 1.75d-66) then
                tmp = (sqrt(((b * b) - (c * (a * 4.0d0)))) - b) / (a * 2.0d0)
            else
                tmp = -c / b
            end if
            code = tmp
        end function
        
        public static double code(double a, double b, double c) {
        	double tmp;
        	if (b <= -5.8e+119) {
        		tmp = (c / b) - (b / a);
        	} else if (b <= 1.75e-66) {
        		tmp = (Math.sqrt(((b * b) - (c * (a * 4.0)))) - b) / (a * 2.0);
        	} else {
        		tmp = -c / b;
        	}
        	return tmp;
        }
        
        def code(a, b, c):
        	tmp = 0
        	if b <= -5.8e+119:
        		tmp = (c / b) - (b / a)
        	elif b <= 1.75e-66:
        		tmp = (math.sqrt(((b * b) - (c * (a * 4.0)))) - b) / (a * 2.0)
        	else:
        		tmp = -c / b
        	return tmp
        
        function code(a, b, c)
        	tmp = 0.0
        	if (b <= -5.8e+119)
        		tmp = Float64(Float64(c / b) - Float64(b / a));
        	elseif (b <= 1.75e-66)
        		tmp = Float64(Float64(sqrt(Float64(Float64(b * b) - Float64(c * Float64(a * 4.0)))) - b) / Float64(a * 2.0));
        	else
        		tmp = Float64(Float64(-c) / b);
        	end
        	return tmp
        end
        
        function tmp_2 = code(a, b, c)
        	tmp = 0.0;
        	if (b <= -5.8e+119)
        		tmp = (c / b) - (b / a);
        	elseif (b <= 1.75e-66)
        		tmp = (sqrt(((b * b) - (c * (a * 4.0)))) - b) / (a * 2.0);
        	else
        		tmp = -c / b;
        	end
        	tmp_2 = tmp;
        end
        
        code[a_, b_, c_] := If[LessEqual[b, -5.8e+119], N[(N[(c / b), $MachinePrecision] - N[(b / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.75e-66], N[(N[(N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(c * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(a * 2.0), $MachinePrecision]), $MachinePrecision], N[((-c) / b), $MachinePrecision]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;b \leq -5.8 \cdot 10^{+119}:\\
        \;\;\;\;\frac{c}{b} - \frac{b}{a}\\
        
        \mathbf{elif}\;b \leq 1.75 \cdot 10^{-66}:\\
        \;\;\;\;\frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 4\right)} - b}{a \cdot 2}\\
        
        \mathbf{else}:\\
        \;\;\;\;\frac{-c}{b}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if b < -5.80000000000000014e119

          1. Initial program 43.9%

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

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

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

            \[\leadsto \color{blue}{-1 \cdot \frac{b}{a} + \frac{c}{b}} \]
          5. Step-by-step derivation
            1. +-commutative98.1%

              \[\leadsto \color{blue}{\frac{c}{b} + -1 \cdot \frac{b}{a}} \]
            2. mul-1-neg98.1%

              \[\leadsto \frac{c}{b} + \color{blue}{\left(-\frac{b}{a}\right)} \]
            3. unsub-neg98.1%

              \[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}} \]
          6. Simplified98.1%

            \[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}} \]

          if -5.80000000000000014e119 < b < 1.75e-66

          1. Initial program 80.1%

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

          if 1.75e-66 < b

          1. Initial program 12.4%

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

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

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

            \[\leadsto \color{blue}{-1 \cdot \frac{c}{b}} \]
          5. Step-by-step derivation
            1. mul-1-neg90.3%

              \[\leadsto \color{blue}{-\frac{c}{b}} \]
            2. distribute-neg-frac90.3%

              \[\leadsto \color{blue}{\frac{-c}{b}} \]
          6. Simplified90.3%

            \[\leadsto \color{blue}{\frac{-c}{b}} \]
        3. Recombined 3 regimes into one program.
        4. Final simplification87.0%

          \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -5.8 \cdot 10^{+119}:\\ \;\;\;\;\frac{c}{b} - \frac{b}{a}\\ \mathbf{elif}\;b \leq 1.75 \cdot 10^{-66}:\\ \;\;\;\;\frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 4\right)} - b}{a \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{-c}{b}\\ \end{array} \]

        Alternative 5: 80.9% accurate, 1.0× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -7 \cdot 10^{-55}:\\ \;\;\;\;\frac{c}{b} - \frac{b}{a}\\ \mathbf{elif}\;b \leq 5.2 \cdot 10^{-118}:\\ \;\;\;\;\left(b - \sqrt{c \cdot \left(a \cdot -4\right)}\right) \cdot \frac{-0.5}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{-c}{b}\\ \end{array} \end{array} \]
        (FPCore (a b c)
         :precision binary64
         (if (<= b -7e-55)
           (- (/ c b) (/ b a))
           (if (<= b 5.2e-118)
             (* (- b (sqrt (* c (* a -4.0)))) (/ -0.5 a))
             (/ (- c) b))))
        double code(double a, double b, double c) {
        	double tmp;
        	if (b <= -7e-55) {
        		tmp = (c / b) - (b / a);
        	} else if (b <= 5.2e-118) {
        		tmp = (b - sqrt((c * (a * -4.0)))) * (-0.5 / a);
        	} else {
        		tmp = -c / b;
        	}
        	return tmp;
        }
        
        real(8) function code(a, b, c)
            real(8), intent (in) :: a
            real(8), intent (in) :: b
            real(8), intent (in) :: c
            real(8) :: tmp
            if (b <= (-7d-55)) then
                tmp = (c / b) - (b / a)
            else if (b <= 5.2d-118) then
                tmp = (b - sqrt((c * (a * (-4.0d0))))) * ((-0.5d0) / a)
            else
                tmp = -c / b
            end if
            code = tmp
        end function
        
        public static double code(double a, double b, double c) {
        	double tmp;
        	if (b <= -7e-55) {
        		tmp = (c / b) - (b / a);
        	} else if (b <= 5.2e-118) {
        		tmp = (b - Math.sqrt((c * (a * -4.0)))) * (-0.5 / a);
        	} else {
        		tmp = -c / b;
        	}
        	return tmp;
        }
        
        def code(a, b, c):
        	tmp = 0
        	if b <= -7e-55:
        		tmp = (c / b) - (b / a)
        	elif b <= 5.2e-118:
        		tmp = (b - math.sqrt((c * (a * -4.0)))) * (-0.5 / a)
        	else:
        		tmp = -c / b
        	return tmp
        
        function code(a, b, c)
        	tmp = 0.0
        	if (b <= -7e-55)
        		tmp = Float64(Float64(c / b) - Float64(b / a));
        	elseif (b <= 5.2e-118)
        		tmp = Float64(Float64(b - sqrt(Float64(c * Float64(a * -4.0)))) * Float64(-0.5 / a));
        	else
        		tmp = Float64(Float64(-c) / b);
        	end
        	return tmp
        end
        
        function tmp_2 = code(a, b, c)
        	tmp = 0.0;
        	if (b <= -7e-55)
        		tmp = (c / b) - (b / a);
        	elseif (b <= 5.2e-118)
        		tmp = (b - sqrt((c * (a * -4.0)))) * (-0.5 / a);
        	else
        		tmp = -c / b;
        	end
        	tmp_2 = tmp;
        end
        
        code[a_, b_, c_] := If[LessEqual[b, -7e-55], N[(N[(c / b), $MachinePrecision] - N[(b / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.2e-118], N[(N[(b - N[Sqrt[N[(c * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(-0.5 / a), $MachinePrecision]), $MachinePrecision], N[((-c) / b), $MachinePrecision]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;b \leq -7 \cdot 10^{-55}:\\
        \;\;\;\;\frac{c}{b} - \frac{b}{a}\\
        
        \mathbf{elif}\;b \leq 5.2 \cdot 10^{-118}:\\
        \;\;\;\;\left(b - \sqrt{c \cdot \left(a \cdot -4\right)}\right) \cdot \frac{-0.5}{a}\\
        
        \mathbf{else}:\\
        \;\;\;\;\frac{-c}{b}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if b < -7.00000000000000051e-55

          1. Initial program 66.7%

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

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

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

            \[\leadsto \color{blue}{-1 \cdot \frac{b}{a} + \frac{c}{b}} \]
          5. Step-by-step derivation
            1. +-commutative91.6%

              \[\leadsto \color{blue}{\frac{c}{b} + -1 \cdot \frac{b}{a}} \]
            2. mul-1-neg91.6%

              \[\leadsto \frac{c}{b} + \color{blue}{\left(-\frac{b}{a}\right)} \]
            3. unsub-neg91.6%

              \[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}} \]
          6. Simplified91.6%

            \[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}} \]

          if -7.00000000000000051e-55 < b < 5.2e-118

          1. Initial program 75.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \left(\left(-\color{blue}{\sqrt{b} \cdot \sqrt{b}}\right) + \left(-\sqrt{a \cdot \left(c \cdot -4\right)}\right)\right) \cdot \frac{1}{-a \cdot 2} \]
            10. add-sqr-sqrt67.9%

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

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

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

              \[\leadsto \left(\color{blue}{\sqrt{\left(-b\right) \cdot \left(-b\right)}} - \sqrt{a \cdot \left(c \cdot -4\right)}\right) \cdot \frac{1}{-a \cdot 2} \]
            14. sqr-neg68.0%

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

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

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

              \[\leadsto \left(\color{blue}{\sqrt{b} \cdot \sqrt{b}} - \sqrt{a \cdot \left(c \cdot -4\right)}\right) \cdot \frac{1}{-a \cdot 2} \]
            18. add-sqr-sqrt69.7%

              \[\leadsto \left(\color{blue}{b} - \sqrt{a \cdot \left(c \cdot -4\right)}\right) \cdot \frac{1}{-a \cdot 2} \]
            19. distribute-rgt-neg-in69.7%

              \[\leadsto \left(b - \sqrt{a \cdot \left(c \cdot -4\right)}\right) \cdot \frac{1}{\color{blue}{a \cdot \left(-2\right)}} \]
            20. metadata-eval69.7%

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

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

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

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

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

              \[\leadsto \left(b - \sqrt{c \cdot \left(-4 \cdot a\right)}\right) \cdot \color{blue}{\frac{\frac{1}{-2}}{a}} \]
            5. metadata-eval69.7%

              \[\leadsto \left(b - \sqrt{c \cdot \left(-4 \cdot a\right)}\right) \cdot \frac{\color{blue}{-0.5}}{a} \]
          10. Simplified69.7%

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

          if 5.2e-118 < b

          1. Initial program 16.4%

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

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

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

            \[\leadsto \color{blue}{-1 \cdot \frac{c}{b}} \]
          5. Step-by-step derivation
            1. mul-1-neg85.8%

              \[\leadsto \color{blue}{-\frac{c}{b}} \]
            2. distribute-neg-frac85.8%

              \[\leadsto \color{blue}{\frac{-c}{b}} \]
          6. Simplified85.8%

            \[\leadsto \color{blue}{\frac{-c}{b}} \]
        3. Recombined 3 regimes into one program.
        4. Final simplification83.2%

          \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -7 \cdot 10^{-55}:\\ \;\;\;\;\frac{c}{b} - \frac{b}{a}\\ \mathbf{elif}\;b \leq 5.2 \cdot 10^{-118}:\\ \;\;\;\;\left(b - \sqrt{c \cdot \left(a \cdot -4\right)}\right) \cdot \frac{-0.5}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{-c}{b}\\ \end{array} \]

        Alternative 6: 81.0% accurate, 1.0× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -5.1 \cdot 10^{-61}:\\ \;\;\;\;\frac{c}{b} - \frac{b}{a}\\ \mathbf{elif}\;b \leq 3.6 \cdot 10^{-118}:\\ \;\;\;\;\frac{\sqrt{c \cdot \left(a \cdot -4\right)} - b}{a \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{-c}{b}\\ \end{array} \end{array} \]
        (FPCore (a b c)
         :precision binary64
         (if (<= b -5.1e-61)
           (- (/ c b) (/ b a))
           (if (<= b 3.6e-118)
             (/ (- (sqrt (* c (* a -4.0))) b) (* a 2.0))
             (/ (- c) b))))
        double code(double a, double b, double c) {
        	double tmp;
        	if (b <= -5.1e-61) {
        		tmp = (c / b) - (b / a);
        	} else if (b <= 3.6e-118) {
        		tmp = (sqrt((c * (a * -4.0))) - b) / (a * 2.0);
        	} else {
        		tmp = -c / b;
        	}
        	return tmp;
        }
        
        real(8) function code(a, b, c)
            real(8), intent (in) :: a
            real(8), intent (in) :: b
            real(8), intent (in) :: c
            real(8) :: tmp
            if (b <= (-5.1d-61)) then
                tmp = (c / b) - (b / a)
            else if (b <= 3.6d-118) then
                tmp = (sqrt((c * (a * (-4.0d0)))) - b) / (a * 2.0d0)
            else
                tmp = -c / b
            end if
            code = tmp
        end function
        
        public static double code(double a, double b, double c) {
        	double tmp;
        	if (b <= -5.1e-61) {
        		tmp = (c / b) - (b / a);
        	} else if (b <= 3.6e-118) {
        		tmp = (Math.sqrt((c * (a * -4.0))) - b) / (a * 2.0);
        	} else {
        		tmp = -c / b;
        	}
        	return tmp;
        }
        
        def code(a, b, c):
        	tmp = 0
        	if b <= -5.1e-61:
        		tmp = (c / b) - (b / a)
        	elif b <= 3.6e-118:
        		tmp = (math.sqrt((c * (a * -4.0))) - b) / (a * 2.0)
        	else:
        		tmp = -c / b
        	return tmp
        
        function code(a, b, c)
        	tmp = 0.0
        	if (b <= -5.1e-61)
        		tmp = Float64(Float64(c / b) - Float64(b / a));
        	elseif (b <= 3.6e-118)
        		tmp = Float64(Float64(sqrt(Float64(c * Float64(a * -4.0))) - b) / Float64(a * 2.0));
        	else
        		tmp = Float64(Float64(-c) / b);
        	end
        	return tmp
        end
        
        function tmp_2 = code(a, b, c)
        	tmp = 0.0;
        	if (b <= -5.1e-61)
        		tmp = (c / b) - (b / a);
        	elseif (b <= 3.6e-118)
        		tmp = (sqrt((c * (a * -4.0))) - b) / (a * 2.0);
        	else
        		tmp = -c / b;
        	end
        	tmp_2 = tmp;
        end
        
        code[a_, b_, c_] := If[LessEqual[b, -5.1e-61], N[(N[(c / b), $MachinePrecision] - N[(b / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.6e-118], N[(N[(N[Sqrt[N[(c * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] - b), $MachinePrecision] / N[(a * 2.0), $MachinePrecision]), $MachinePrecision], N[((-c) / b), $MachinePrecision]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;b \leq -5.1 \cdot 10^{-61}:\\
        \;\;\;\;\frac{c}{b} - \frac{b}{a}\\
        
        \mathbf{elif}\;b \leq 3.6 \cdot 10^{-118}:\\
        \;\;\;\;\frac{\sqrt{c \cdot \left(a \cdot -4\right)} - b}{a \cdot 2}\\
        
        \mathbf{else}:\\
        \;\;\;\;\frac{-c}{b}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if b < -5.09999999999999968e-61

          1. Initial program 66.7%

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

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

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

            \[\leadsto \color{blue}{-1 \cdot \frac{b}{a} + \frac{c}{b}} \]
          5. Step-by-step derivation
            1. +-commutative91.6%

              \[\leadsto \color{blue}{\frac{c}{b} + -1 \cdot \frac{b}{a}} \]
            2. mul-1-neg91.6%

              \[\leadsto \frac{c}{b} + \color{blue}{\left(-\frac{b}{a}\right)} \]
            3. unsub-neg91.6%

              \[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}} \]
          6. Simplified91.6%

            \[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}} \]

          if -5.09999999999999968e-61 < b < 3.6000000000000002e-118

          1. Initial program 75.4%

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

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

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

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

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

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

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

              \[\leadsto \frac{\color{blue}{\left(0 - b\right)} + \sqrt{a \cdot \left(c \cdot -4\right)}}{a \cdot 2} \]
            2. associate-+l-69.9%

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

            \[\leadsto \frac{\color{blue}{0 - \left(b - \sqrt{a \cdot \left(c \cdot -4\right)}\right)}}{a \cdot 2} \]
          9. Step-by-step derivation
            1. associate--r-69.9%

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

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

              \[\leadsto \frac{\color{blue}{\left(\sqrt{a \cdot \left(c \cdot -4\right)} + 0\right) - b}}{a \cdot 2} \]
            4. +-rgt-identity69.9%

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

              \[\leadsto \frac{\sqrt{\color{blue}{\left(c \cdot -4\right) \cdot a}} - b}{a \cdot 2} \]
            6. associate-*l*69.9%

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

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

          if 3.6000000000000002e-118 < b

          1. Initial program 16.4%

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

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

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

            \[\leadsto \color{blue}{-1 \cdot \frac{c}{b}} \]
          5. Step-by-step derivation
            1. mul-1-neg85.8%

              \[\leadsto \color{blue}{-\frac{c}{b}} \]
            2. distribute-neg-frac85.8%

              \[\leadsto \color{blue}{\frac{-c}{b}} \]
          6. Simplified85.8%

            \[\leadsto \color{blue}{\frac{-c}{b}} \]
        3. Recombined 3 regimes into one program.
        4. Final simplification83.2%

          \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -5.1 \cdot 10^{-61}:\\ \;\;\;\;\frac{c}{b} - \frac{b}{a}\\ \mathbf{elif}\;b \leq 3.6 \cdot 10^{-118}:\\ \;\;\;\;\frac{\sqrt{c \cdot \left(a \cdot -4\right)} - b}{a \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{-c}{b}\\ \end{array} \]

        Alternative 7: 68.1% accurate, 12.8× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -5 \cdot 10^{-310}:\\ \;\;\;\;\frac{c}{b} - \frac{b}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{-c}{b}\\ \end{array} \end{array} \]
        (FPCore (a b c)
         :precision binary64
         (if (<= b -5e-310) (- (/ c b) (/ b a)) (/ (- c) b)))
        double code(double a, double b, double c) {
        	double tmp;
        	if (b <= -5e-310) {
        		tmp = (c / b) - (b / a);
        	} else {
        		tmp = -c / b;
        	}
        	return tmp;
        }
        
        real(8) function code(a, b, c)
            real(8), intent (in) :: a
            real(8), intent (in) :: b
            real(8), intent (in) :: c
            real(8) :: tmp
            if (b <= (-5d-310)) then
                tmp = (c / b) - (b / a)
            else
                tmp = -c / b
            end if
            code = tmp
        end function
        
        public static double code(double a, double b, double c) {
        	double tmp;
        	if (b <= -5e-310) {
        		tmp = (c / b) - (b / a);
        	} else {
        		tmp = -c / b;
        	}
        	return tmp;
        }
        
        def code(a, b, c):
        	tmp = 0
        	if b <= -5e-310:
        		tmp = (c / b) - (b / a)
        	else:
        		tmp = -c / b
        	return tmp
        
        function code(a, b, c)
        	tmp = 0.0
        	if (b <= -5e-310)
        		tmp = Float64(Float64(c / b) - Float64(b / a));
        	else
        		tmp = Float64(Float64(-c) / b);
        	end
        	return tmp
        end
        
        function tmp_2 = code(a, b, c)
        	tmp = 0.0;
        	if (b <= -5e-310)
        		tmp = (c / b) - (b / a);
        	else
        		tmp = -c / b;
        	end
        	tmp_2 = tmp;
        end
        
        code[a_, b_, c_] := If[LessEqual[b, -5e-310], N[(N[(c / b), $MachinePrecision] - N[(b / a), $MachinePrecision]), $MachinePrecision], N[((-c) / b), $MachinePrecision]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;b \leq -5 \cdot 10^{-310}:\\
        \;\;\;\;\frac{c}{b} - \frac{b}{a}\\
        
        \mathbf{else}:\\
        \;\;\;\;\frac{-c}{b}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if b < -4.999999999999985e-310

          1. Initial program 71.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. *-commutative71.3%

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

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

            \[\leadsto \color{blue}{-1 \cdot \frac{b}{a} + \frac{c}{b}} \]
          5. Step-by-step derivation
            1. +-commutative67.8%

              \[\leadsto \color{blue}{\frac{c}{b} + -1 \cdot \frac{b}{a}} \]
            2. mul-1-neg67.8%

              \[\leadsto \frac{c}{b} + \color{blue}{\left(-\frac{b}{a}\right)} \]
            3. unsub-neg67.8%

              \[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}} \]
          6. Simplified67.8%

            \[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}} \]

          if -4.999999999999985e-310 < b

          1. Initial program 28.9%

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

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

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

            \[\leadsto \color{blue}{-1 \cdot \frac{c}{b}} \]
          5. Step-by-step derivation
            1. mul-1-neg69.3%

              \[\leadsto \color{blue}{-\frac{c}{b}} \]
            2. distribute-neg-frac69.3%

              \[\leadsto \color{blue}{\frac{-c}{b}} \]
          6. Simplified69.3%

            \[\leadsto \color{blue}{\frac{-c}{b}} \]
        3. Recombined 2 regimes into one program.
        4. Final simplification68.5%

          \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -5 \cdot 10^{-310}:\\ \;\;\;\;\frac{c}{b} - \frac{b}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{-c}{b}\\ \end{array} \]

        Alternative 8: 44.2% accurate, 19.1× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq 9 \cdot 10^{+44}:\\ \;\;\;\;\frac{-b}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{c}{b}\\ \end{array} \end{array} \]
        (FPCore (a b c) :precision binary64 (if (<= b 9e+44) (/ (- b) a) (/ c b)))
        double code(double a, double b, double c) {
        	double tmp;
        	if (b <= 9e+44) {
        		tmp = -b / a;
        	} else {
        		tmp = c / b;
        	}
        	return tmp;
        }
        
        real(8) function code(a, b, c)
            real(8), intent (in) :: a
            real(8), intent (in) :: b
            real(8), intent (in) :: c
            real(8) :: tmp
            if (b <= 9d+44) then
                tmp = -b / a
            else
                tmp = c / b
            end if
            code = tmp
        end function
        
        public static double code(double a, double b, double c) {
        	double tmp;
        	if (b <= 9e+44) {
        		tmp = -b / a;
        	} else {
        		tmp = c / b;
        	}
        	return tmp;
        }
        
        def code(a, b, c):
        	tmp = 0
        	if b <= 9e+44:
        		tmp = -b / a
        	else:
        		tmp = c / b
        	return tmp
        
        function code(a, b, c)
        	tmp = 0.0
        	if (b <= 9e+44)
        		tmp = Float64(Float64(-b) / a);
        	else
        		tmp = Float64(c / b);
        	end
        	return tmp
        end
        
        function tmp_2 = code(a, b, c)
        	tmp = 0.0;
        	if (b <= 9e+44)
        		tmp = -b / a;
        	else
        		tmp = c / b;
        	end
        	tmp_2 = tmp;
        end
        
        code[a_, b_, c_] := If[LessEqual[b, 9e+44], N[((-b) / a), $MachinePrecision], N[(c / b), $MachinePrecision]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;b \leq 9 \cdot 10^{+44}:\\
        \;\;\;\;\frac{-b}{a}\\
        
        \mathbf{else}:\\
        \;\;\;\;\frac{c}{b}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if b < 9e44

          1. Initial program 63.9%

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

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

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

            \[\leadsto \color{blue}{-1 \cdot \frac{b}{a}} \]
          5. Step-by-step derivation
            1. associate-*r/47.9%

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

              \[\leadsto \frac{\color{blue}{-b}}{a} \]
          6. Simplified47.9%

            \[\leadsto \color{blue}{\frac{-b}{a}} \]

          if 9e44 < b

          1. Initial program 11.9%

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

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

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

            \[\leadsto \frac{\color{blue}{-2 \cdot b + 2 \cdot \frac{a \cdot c}{b}}}{a \cdot 2} \]
          5. Taylor expanded in b around 0 29.4%

            \[\leadsto \color{blue}{\frac{c}{b}} \]
        3. Recombined 2 regimes into one program.
        4. Final simplification43.3%

          \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 9 \cdot 10^{+44}:\\ \;\;\;\;\frac{-b}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{c}{b}\\ \end{array} \]

        Alternative 9: 67.9% accurate, 19.1× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq 9 \cdot 10^{-309}:\\ \;\;\;\;\frac{-b}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{-c}{b}\\ \end{array} \end{array} \]
        (FPCore (a b c) :precision binary64 (if (<= b 9e-309) (/ (- b) a) (/ (- c) b)))
        double code(double a, double b, double c) {
        	double tmp;
        	if (b <= 9e-309) {
        		tmp = -b / a;
        	} else {
        		tmp = -c / b;
        	}
        	return tmp;
        }
        
        real(8) function code(a, b, c)
            real(8), intent (in) :: a
            real(8), intent (in) :: b
            real(8), intent (in) :: c
            real(8) :: tmp
            if (b <= 9d-309) then
                tmp = -b / a
            else
                tmp = -c / b
            end if
            code = tmp
        end function
        
        public static double code(double a, double b, double c) {
        	double tmp;
        	if (b <= 9e-309) {
        		tmp = -b / a;
        	} else {
        		tmp = -c / b;
        	}
        	return tmp;
        }
        
        def code(a, b, c):
        	tmp = 0
        	if b <= 9e-309:
        		tmp = -b / a
        	else:
        		tmp = -c / b
        	return tmp
        
        function code(a, b, c)
        	tmp = 0.0
        	if (b <= 9e-309)
        		tmp = Float64(Float64(-b) / a);
        	else
        		tmp = Float64(Float64(-c) / b);
        	end
        	return tmp
        end
        
        function tmp_2 = code(a, b, c)
        	tmp = 0.0;
        	if (b <= 9e-309)
        		tmp = -b / a;
        	else
        		tmp = -c / b;
        	end
        	tmp_2 = tmp;
        end
        
        code[a_, b_, c_] := If[LessEqual[b, 9e-309], N[((-b) / a), $MachinePrecision], N[((-c) / b), $MachinePrecision]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;b \leq 9 \cdot 10^{-309}:\\
        \;\;\;\;\frac{-b}{a}\\
        
        \mathbf{else}:\\
        \;\;\;\;\frac{-c}{b}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if b < 9.0000000000000021e-309

          1. Initial program 71.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. *-commutative71.3%

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

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

            \[\leadsto \color{blue}{-1 \cdot \frac{b}{a}} \]
          5. Step-by-step derivation
            1. associate-*r/67.5%

              \[\leadsto \color{blue}{\frac{-1 \cdot b}{a}} \]
            2. mul-1-neg67.5%

              \[\leadsto \frac{\color{blue}{-b}}{a} \]
          6. Simplified67.5%

            \[\leadsto \color{blue}{\frac{-b}{a}} \]

          if 9.0000000000000021e-309 < b

          1. Initial program 28.9%

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

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

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

            \[\leadsto \color{blue}{-1 \cdot \frac{c}{b}} \]
          5. Step-by-step derivation
            1. mul-1-neg69.3%

              \[\leadsto \color{blue}{-\frac{c}{b}} \]
            2. distribute-neg-frac69.3%

              \[\leadsto \color{blue}{\frac{-c}{b}} \]
          6. Simplified69.3%

            \[\leadsto \color{blue}{\frac{-c}{b}} \]
        3. Recombined 2 regimes into one program.
        4. Final simplification68.4%

          \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 9 \cdot 10^{-309}:\\ \;\;\;\;\frac{-b}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{-c}{b}\\ \end{array} \]

        Alternative 10: 2.3% accurate, 38.7× speedup?

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

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

            \[\leadsto \color{blue}{\frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)} - b}{a \cdot 2}} \]
          2. Step-by-step derivation
            1. *-un-lft-identity51.0%

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

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

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

              \[\leadsto \frac{\mathsf{fma}\left(1, \sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)}, -\color{blue}{1 \cdot b}\right) + \mathsf{fma}\left(-b, 1, b \cdot 1\right)}{a \cdot 2} \]
            5. *-un-lft-identity51.0%

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

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

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

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

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

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

              \[\leadsto \frac{\left(\color{blue}{\left(1 \cdot \sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)} - b\right)} + \mathsf{fma}\left(-b, 1, b \cdot 1\right)\right) + \mathsf{fma}\left(-b, 1, b \cdot 1\right)}{a \cdot 2} \]
            12. *-un-lft-identity51.0%

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{\color{blue}{b} + \left(b + 2 \cdot \left(b + b\right)\right)}{a \cdot 2} \]
          7. Step-by-step derivation
            1. *-un-lft-identity2.5%

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

              \[\leadsto \frac{\color{blue}{\frac{2}{2}} \cdot \left(b + \left(b + 2 \cdot \left(b + b\right)\right)\right)}{a \cdot 2} \]
            3. *-commutative2.5%

              \[\leadsto \frac{\frac{2}{2} \cdot \left(b + \left(b + 2 \cdot \left(b + b\right)\right)\right)}{\color{blue}{2 \cdot a}} \]
            4. times-frac2.5%

              \[\leadsto \color{blue}{\frac{\frac{2}{2}}{2} \cdot \frac{b + \left(b + 2 \cdot \left(b + b\right)\right)}{a}} \]
            5. metadata-eval2.5%

              \[\leadsto \frac{\color{blue}{1}}{2} \cdot \frac{b + \left(b + 2 \cdot \left(b + b\right)\right)}{a} \]
            6. metadata-eval2.5%

              \[\leadsto \color{blue}{0.5} \cdot \frac{b + \left(b + 2 \cdot \left(b + b\right)\right)}{a} \]
            7. associate-+r+2.5%

              \[\leadsto 0.5 \cdot \frac{\color{blue}{\left(b + b\right) + 2 \cdot \left(b + b\right)}}{a} \]
            8. flip-+0.0%

              \[\leadsto 0.5 \cdot \frac{\left(b + b\right) + 2 \cdot \color{blue}{\frac{b \cdot b - b \cdot b}{b - b}}}{a} \]
            9. associate-*r/0.0%

              \[\leadsto 0.5 \cdot \frac{\left(b + b\right) + \color{blue}{\frac{2 \cdot \left(b \cdot b - b \cdot b\right)}{b - b}}}{a} \]
            10. +-inverses0.0%

              \[\leadsto 0.5 \cdot \frac{\left(b + b\right) + \frac{2 \cdot \color{blue}{0}}{b - b}}{a} \]
            11. metadata-eval0.0%

              \[\leadsto 0.5 \cdot \frac{\left(b + b\right) + \frac{\color{blue}{0}}{b - b}}{a} \]
            12. +-inverses0.0%

              \[\leadsto 0.5 \cdot \frac{\left(b + b\right) + \frac{\color{blue}{b \cdot b - b \cdot b}}{b - b}}{a} \]
            13. flip-+2.5%

              \[\leadsto 0.5 \cdot \frac{\left(b + b\right) + \color{blue}{\left(b + b\right)}}{a} \]
            14. count-22.5%

              \[\leadsto 0.5 \cdot \frac{\color{blue}{2 \cdot \left(b + b\right)}}{a} \]
            15. flip-+0.0%

              \[\leadsto 0.5 \cdot \frac{2 \cdot \color{blue}{\frac{b \cdot b - b \cdot b}{b - b}}}{a} \]
            16. associate-*r/0.0%

              \[\leadsto 0.5 \cdot \frac{\color{blue}{\frac{2 \cdot \left(b \cdot b - b \cdot b\right)}{b - b}}}{a} \]
            17. +-inverses0.0%

              \[\leadsto 0.5 \cdot \frac{\frac{2 \cdot \color{blue}{0}}{b - b}}{a} \]
            18. metadata-eval0.0%

              \[\leadsto 0.5 \cdot \frac{\frac{\color{blue}{0}}{b - b}}{a} \]
            19. +-inverses0.0%

              \[\leadsto 0.5 \cdot \frac{\frac{0}{\color{blue}{0}}}{a} \]
          8. Applied egg-rr0.0%

            \[\leadsto \color{blue}{0.5 \cdot \frac{\frac{0}{0}}{a}} \]
          9. Simplified2.4%

            \[\leadsto \color{blue}{\frac{-3}{a}} \]
          10. Final simplification2.4%

            \[\leadsto \frac{-3}{a} \]

          Alternative 11: 2.5% accurate, 38.7× speedup?

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

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

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

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

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

              \[\leadsto \frac{\color{blue}{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} - b}}{a \cdot 2} \]
            3. *-un-lft-identity50.9%

              \[\leadsto \frac{\sqrt{\color{blue}{1 \cdot \left(b \cdot b - \left(4 \cdot a\right) \cdot c\right)}} - b}{a \cdot 2} \]
            4. *-un-lft-identity50.9%

              \[\leadsto \frac{\sqrt{\color{blue}{b \cdot b - \left(4 \cdot a\right) \cdot c}} - b}{a \cdot 2} \]
            5. cancel-sign-sub-inv50.9%

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

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

              \[\leadsto \frac{\sqrt{\left(-\color{blue}{a \cdot 4}\right) \cdot c + b \cdot b} - b}{a \cdot 2} \]
            8. distribute-rgt-neg-in50.9%

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

              \[\leadsto \frac{\sqrt{\left(a \cdot \color{blue}{-4}\right) \cdot c + b \cdot b} - b}{a \cdot 2} \]
            10. associate-*r*50.9%

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

              \[\leadsto \frac{\sqrt{a \cdot \color{blue}{\left(c \cdot -4\right)} + b \cdot b} - b}{a \cdot 2} \]
            12. fma-udef51.0%

              \[\leadsto \frac{\sqrt{\color{blue}{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)}} - b}{a \cdot 2} \]
            13. add-cbrt-cube28.5%

              \[\leadsto \color{blue}{\sqrt[3]{\left(\frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)} - b}{a \cdot 2} \cdot \frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)} - b}{a \cdot 2}\right) \cdot \frac{\sqrt{\mathsf{fma}\left(a, c \cdot -4, b \cdot b\right)} - b}{a \cdot 2}}} \]
          5. Applied egg-rr18.9%

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

            \[\leadsto \color{blue}{\frac{b}{a}} \]
          7. Final simplification2.5%

            \[\leadsto \frac{b}{a} \]

          Alternative 12: 11.0% 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 50.9%

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

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

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

            \[\leadsto \frac{\color{blue}{-2 \cdot b + 2 \cdot \frac{a \cdot c}{b}}}{a \cdot 2} \]
          5. Taylor expanded in b around 0 9.7%

            \[\leadsto \color{blue}{\frac{c}{b}} \]
          6. Final simplification9.7%

            \[\leadsto \frac{c}{b} \]

          Developer target: 70.5% accurate, 1.0× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_0 := \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\\ \mathbf{if}\;b < 0:\\ \;\;\;\;\frac{\left(-b\right) + t_0}{2 \cdot a}\\ \mathbf{else}:\\ \;\;\;\;\frac{c}{a \cdot \frac{\left(-b\right) - t_0}{2 \cdot a}}\\ \end{array} \end{array} \]
          (FPCore (a b c)
           :precision binary64
           (let* ((t_0 (sqrt (- (* b b) (* (* 4.0 a) c)))))
             (if (< b 0.0)
               (/ (+ (- b) t_0) (* 2.0 a))
               (/ c (* a (/ (- (- b) t_0) (* 2.0 a)))))))
          double code(double a, double b, double c) {
          	double t_0 = sqrt(((b * b) - ((4.0 * a) * c)));
          	double tmp;
          	if (b < 0.0) {
          		tmp = (-b + t_0) / (2.0 * a);
          	} else {
          		tmp = c / (a * ((-b - t_0) / (2.0 * a)));
          	}
          	return tmp;
          }
          
          real(8) function code(a, b, c)
              real(8), intent (in) :: a
              real(8), intent (in) :: b
              real(8), intent (in) :: c
              real(8) :: t_0
              real(8) :: tmp
              t_0 = sqrt(((b * b) - ((4.0d0 * a) * c)))
              if (b < 0.0d0) then
                  tmp = (-b + t_0) / (2.0d0 * a)
              else
                  tmp = c / (a * ((-b - t_0) / (2.0d0 * a)))
              end if
              code = tmp
          end function
          
          public static double code(double a, double b, double c) {
          	double t_0 = Math.sqrt(((b * b) - ((4.0 * a) * c)));
          	double tmp;
          	if (b < 0.0) {
          		tmp = (-b + t_0) / (2.0 * a);
          	} else {
          		tmp = c / (a * ((-b - t_0) / (2.0 * a)));
          	}
          	return tmp;
          }
          
          def code(a, b, c):
          	t_0 = math.sqrt(((b * b) - ((4.0 * a) * c)))
          	tmp = 0
          	if b < 0.0:
          		tmp = (-b + t_0) / (2.0 * a)
          	else:
          		tmp = c / (a * ((-b - t_0) / (2.0 * a)))
          	return tmp
          
          function code(a, b, c)
          	t_0 = sqrt(Float64(Float64(b * b) - Float64(Float64(4.0 * a) * c)))
          	tmp = 0.0
          	if (b < 0.0)
          		tmp = Float64(Float64(Float64(-b) + t_0) / Float64(2.0 * a));
          	else
          		tmp = Float64(c / Float64(a * Float64(Float64(Float64(-b) - t_0) / Float64(2.0 * a))));
          	end
          	return tmp
          end
          
          function tmp_2 = code(a, b, c)
          	t_0 = sqrt(((b * b) - ((4.0 * a) * c)));
          	tmp = 0.0;
          	if (b < 0.0)
          		tmp = (-b + t_0) / (2.0 * a);
          	else
          		tmp = c / (a * ((-b - t_0) / (2.0 * a)));
          	end
          	tmp_2 = tmp;
          end
          
          code[a_, b_, c_] := Block[{t$95$0 = N[Sqrt[N[(N[(b * b), $MachinePrecision] - N[(N[(4.0 * a), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[Less[b, 0.0], N[(N[((-b) + t$95$0), $MachinePrecision] / N[(2.0 * a), $MachinePrecision]), $MachinePrecision], N[(c / N[(a * N[(N[((-b) - t$95$0), $MachinePrecision] / N[(2.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_0 := \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\\
          \mathbf{if}\;b < 0:\\
          \;\;\;\;\frac{\left(-b\right) + t_0}{2 \cdot a}\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{c}{a \cdot \frac{\left(-b\right) - t_0}{2 \cdot a}}\\
          
          
          \end{array}
          \end{array}
          

          Reproduce

          ?
          herbie shell --seed 2023326 
          (FPCore (a b c)
            :name "The quadratic formula (r1)"
            :precision binary64
          
            :herbie-target
            (if (< b 0.0) (/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)) (/ c (* a (/ (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)))))
          
            (/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)))