| Alternative 1 | |
|---|---|
| Accuracy | 39.9% |
| Cost | 27720 |
(FPCore (A B C F)
:precision binary64
(/
(-
(sqrt
(*
(* 2.0 (* (- (pow B 2.0) (* (* 4.0 A) C)) F))
(- (+ A C) (sqrt (+ (pow (- A C) 2.0) (pow B 2.0)))))))
(- (pow B 2.0) (* (* 4.0 A) C))))(FPCore (A B C F)
:precision binary64
(let* ((t_0 (hypot B (- A C)))
(t_1 (fma B B (* A (* C -4.0))))
(t_2 (sqrt (* F (+ C (- A t_0)))))
(t_3 (/ B (sqrt 2.0))))
(if (<= B -2.1e+57)
(* t_2 (/ -1.0 (- (* (/ A (sqrt 2.0)) (* 2.0 (/ C B))) t_3)))
(if (<= B 2.1e-145)
(* (sqrt (* -2.0 (* (* F t_1) (- (- t_0 C) A)))) (/ 1.0 (- t_1)))
(if (<= B 8.4e+40)
(* t_2 (/ -1.0 (sqrt (/ (fma A (* C -4.0) (* B B)) 2.0))))
(if (<= B 2.6e+49)
(/
(-
(sqrt
(* 2.0 (* t_1 (* F (fma -0.5 (/ (* B B) (- A C)) (* C 2.0)))))))
t_1)
(* t_2 (/ -1.0 t_3))))))))double code(double A, double B, double C, double F) {
return -sqrt(((2.0 * ((pow(B, 2.0) - ((4.0 * A) * C)) * F)) * ((A + C) - sqrt((pow((A - C), 2.0) + pow(B, 2.0)))))) / (pow(B, 2.0) - ((4.0 * A) * C));
}
double code(double A, double B, double C, double F) {
double t_0 = hypot(B, (A - C));
double t_1 = fma(B, B, (A * (C * -4.0)));
double t_2 = sqrt((F * (C + (A - t_0))));
double t_3 = B / sqrt(2.0);
double tmp;
if (B <= -2.1e+57) {
tmp = t_2 * (-1.0 / (((A / sqrt(2.0)) * (2.0 * (C / B))) - t_3));
} else if (B <= 2.1e-145) {
tmp = sqrt((-2.0 * ((F * t_1) * ((t_0 - C) - A)))) * (1.0 / -t_1);
} else if (B <= 8.4e+40) {
tmp = t_2 * (-1.0 / sqrt((fma(A, (C * -4.0), (B * B)) / 2.0)));
} else if (B <= 2.6e+49) {
tmp = -sqrt((2.0 * (t_1 * (F * fma(-0.5, ((B * B) / (A - C)), (C * 2.0)))))) / t_1;
} else {
tmp = t_2 * (-1.0 / t_3);
}
return tmp;
}
function code(A, B, C, F) return Float64(Float64(-sqrt(Float64(Float64(2.0 * Float64(Float64((B ^ 2.0) - Float64(Float64(4.0 * A) * C)) * F)) * Float64(Float64(A + C) - sqrt(Float64((Float64(A - C) ^ 2.0) + (B ^ 2.0))))))) / Float64((B ^ 2.0) - Float64(Float64(4.0 * A) * C))) end
function code(A, B, C, F) t_0 = hypot(B, Float64(A - C)) t_1 = fma(B, B, Float64(A * Float64(C * -4.0))) t_2 = sqrt(Float64(F * Float64(C + Float64(A - t_0)))) t_3 = Float64(B / sqrt(2.0)) tmp = 0.0 if (B <= -2.1e+57) tmp = Float64(t_2 * Float64(-1.0 / Float64(Float64(Float64(A / sqrt(2.0)) * Float64(2.0 * Float64(C / B))) - t_3))); elseif (B <= 2.1e-145) tmp = Float64(sqrt(Float64(-2.0 * Float64(Float64(F * t_1) * Float64(Float64(t_0 - C) - A)))) * Float64(1.0 / Float64(-t_1))); elseif (B <= 8.4e+40) tmp = Float64(t_2 * Float64(-1.0 / sqrt(Float64(fma(A, Float64(C * -4.0), Float64(B * B)) / 2.0)))); elseif (B <= 2.6e+49) tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(t_1 * Float64(F * fma(-0.5, Float64(Float64(B * B) / Float64(A - C)), Float64(C * 2.0))))))) / t_1); else tmp = Float64(t_2 * Float64(-1.0 / t_3)); end return tmp end
code[A_, B_, C_, F_] := N[((-N[Sqrt[N[(N[(2.0 * N[(N[(N[Power[B, 2.0], $MachinePrecision] - N[(N[(4.0 * A), $MachinePrecision] * C), $MachinePrecision]), $MachinePrecision] * F), $MachinePrecision]), $MachinePrecision] * N[(N[(A + C), $MachinePrecision] - N[Sqrt[N[(N[Power[N[(A - C), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[B, 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / N[(N[Power[B, 2.0], $MachinePrecision] - N[(N[(4.0 * A), $MachinePrecision] * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[A_, B_, C_, F_] := Block[{t$95$0 = N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]}, Block[{t$95$1 = N[(B * B + N[(A * N[(C * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(F * N[(C + N[(A - t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[(B / N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, -2.1e+57], N[(t$95$2 * N[(-1.0 / N[(N[(N[(A / N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] * N[(2.0 * N[(C / B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, 2.1e-145], N[(N[Sqrt[N[(-2.0 * N[(N[(F * t$95$1), $MachinePrecision] * N[(N[(t$95$0 - C), $MachinePrecision] - A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(1.0 / (-t$95$1)), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, 8.4e+40], N[(t$95$2 * N[(-1.0 / N[Sqrt[N[(N[(A * N[(C * -4.0), $MachinePrecision] + N[(B * B), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, 2.6e+49], N[((-N[Sqrt[N[(2.0 * N[(t$95$1 * N[(F * N[(-0.5 * N[(N[(B * B), $MachinePrecision] / N[(A - C), $MachinePrecision]), $MachinePrecision] + N[(C * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$1), $MachinePrecision], N[(t$95$2 * N[(-1.0 / t$95$3), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C}
\begin{array}{l}
t_0 := \mathsf{hypot}\left(B, A - C\right)\\
t_1 := \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\\
t_2 := \sqrt{F \cdot \left(C + \left(A - t_0\right)\right)}\\
t_3 := \frac{B}{\sqrt{2}}\\
\mathbf{if}\;B \leq -2.1 \cdot 10^{+57}:\\
\;\;\;\;t_2 \cdot \frac{-1}{\frac{A}{\sqrt{2}} \cdot \left(2 \cdot \frac{C}{B}\right) - t_3}\\
\mathbf{elif}\;B \leq 2.1 \cdot 10^{-145}:\\
\;\;\;\;\sqrt{-2 \cdot \left(\left(F \cdot t_1\right) \cdot \left(\left(t_0 - C\right) - A\right)\right)} \cdot \frac{1}{-t_1}\\
\mathbf{elif}\;B \leq 8.4 \cdot 10^{+40}:\\
\;\;\;\;t_2 \cdot \frac{-1}{\sqrt{\frac{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}{2}}}\\
\mathbf{elif}\;B \leq 2.6 \cdot 10^{+49}:\\
\;\;\;\;\frac{-\sqrt{2 \cdot \left(t_1 \cdot \left(F \cdot \mathsf{fma}\left(-0.5, \frac{B \cdot B}{A - C}, C \cdot 2\right)\right)\right)}}{t_1}\\
\mathbf{else}:\\
\;\;\;\;t_2 \cdot \frac{-1}{t_3}\\
\end{array}
if B < -2.09999999999999991e57Initial program 8.9%
Simplified10.7%
[Start]8.9 | \[ \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C}
\] |
|---|
Applied egg-rr19.0%
[Start]10.7 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot \left(F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
|---|---|
associate-*r* [=>]10.7 | \[ \frac{-\sqrt{\color{blue}{\left(2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)\right) \cdot \left(F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
sqrt-prod [=>]19.0 | \[ \frac{-\color{blue}{\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
associate--r- [=>]19.0 | \[ \frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \color{blue}{\left(\left(C - \mathsf{hypot}\left(B, A - C\right)\right) + A\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
+-commutative [=>]19.0 | \[ \frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \color{blue}{\left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
Simplified18.9%
[Start]19.0 | \[ \frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
|---|---|
*-commutative [=>]19.0 | \[ \frac{-\color{blue}{\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
associate-+r- [=>]18.9 | \[ \frac{-\sqrt{F \cdot \color{blue}{\left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)}} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
*-commutative [=>]18.9 | \[ \frac{-\sqrt{F \cdot \left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \color{blue}{\left(C \cdot -4\right)}\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
Applied egg-rr19.0%
[Start]18.9 | \[ \frac{-\sqrt{F \cdot \left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
|---|---|
div-inv [=>]18.9 | \[ \color{blue}{\left(-\sqrt{F \cdot \left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}
\] |
distribute-rgt-neg-in [=>]18.9 | \[ \color{blue}{\left(\sqrt{F \cdot \left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right)\right)} \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
associate-*l* [=>]18.9 | \[ \color{blue}{\sqrt{F \cdot \left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}\right)}
\] |
+-commutative [=>]18.9 | \[ \sqrt{F \cdot \left(\color{blue}{\left(C + A\right)} - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}\right)
\] |
associate--l+ [=>]19.0 | \[ \sqrt{F \cdot \color{blue}{\left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)}} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}\right)
\] |
*-commutative [=>]19.0 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \color{blue}{\left(C \cdot -4\right)}\right)}\right)
\] |
Applied egg-rr19.0%
[Start]19.0 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right)
\] |
|---|---|
un-div-inv [=>]19.0 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \color{blue}{\frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}
\] |
neg-mul-1 [=>]19.0 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{\color{blue}{-1 \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}
\] |
associate-/l* [=>]19.0 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \color{blue}{\frac{-1}{\frac{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}{\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}}}
\] |
Taylor expanded in B around -inf 47.0%
Simplified49.4%
[Start]47.0 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{2 \cdot \frac{A \cdot C}{\sqrt{2} \cdot B} + -1 \cdot \frac{B}{\sqrt{2}}}
\] |
|---|---|
mul-1-neg [=>]47.0 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{2 \cdot \frac{A \cdot C}{\sqrt{2} \cdot B} + \color{blue}{\left(-\frac{B}{\sqrt{2}}\right)}}
\] |
unsub-neg [=>]47.0 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\color{blue}{2 \cdot \frac{A \cdot C}{\sqrt{2} \cdot B} - \frac{B}{\sqrt{2}}}}
\] |
*-commutative [=>]47.0 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\color{blue}{\frac{A \cdot C}{\sqrt{2} \cdot B} \cdot 2} - \frac{B}{\sqrt{2}}}
\] |
times-frac [=>]49.4 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\color{blue}{\left(\frac{A}{\sqrt{2}} \cdot \frac{C}{B}\right)} \cdot 2 - \frac{B}{\sqrt{2}}}
\] |
associate-*l* [=>]49.4 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\color{blue}{\frac{A}{\sqrt{2}} \cdot \left(\frac{C}{B} \cdot 2\right)} - \frac{B}{\sqrt{2}}}
\] |
*-commutative [=>]49.4 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\frac{A}{\sqrt{2}} \cdot \color{blue}{\left(2 \cdot \frac{C}{B}\right)} - \frac{B}{\sqrt{2}}}
\] |
if -2.09999999999999991e57 < B < 2.09999999999999991e-145Initial program 21.2%
Simplified30.8%
[Start]21.2 | \[ \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C}
\] |
|---|
Applied egg-rr30.1%
[Start]30.8 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot \left(F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
|---|---|
frac-2neg [=>]30.8 | \[ \color{blue}{\frac{-\left(-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot \left(F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)\right)\right)}\right)}{-\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}
\] |
remove-double-neg [=>]30.8 | \[ \frac{\color{blue}{\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot \left(F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)\right)\right)}}}{-\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
div-inv [=>]30.5 | \[ \color{blue}{\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot \left(F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)\right)\right)} \cdot \frac{1}{-\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}
\] |
associate-*r* [=>]30.3 | \[ \sqrt{2 \cdot \color{blue}{\left(\left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot F\right) \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)\right)}} \cdot \frac{1}{-\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
*-commutative [=>]30.3 | \[ \sqrt{2 \cdot \color{blue}{\left(\left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right) \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot F\right)\right)}} \cdot \frac{1}{-\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
associate--r- [=>]30.1 | \[ \sqrt{2 \cdot \left(\color{blue}{\left(\left(C - \mathsf{hypot}\left(B, A - C\right)\right) + A\right)} \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot F\right)\right)} \cdot \frac{1}{-\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
+-commutative [=>]30.1 | \[ \sqrt{2 \cdot \left(\color{blue}{\left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot F\right)\right)} \cdot \frac{1}{-\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
if 2.09999999999999991e-145 < B < 8.4000000000000004e40Initial program 30.2%
Simplified38.3%
[Start]30.2 | \[ \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C}
\] |
|---|
Applied egg-rr35.8%
[Start]38.3 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot \left(F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
|---|---|
associate-*r* [=>]38.3 | \[ \frac{-\sqrt{\color{blue}{\left(2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)\right) \cdot \left(F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
sqrt-prod [=>]35.8 | \[ \frac{-\color{blue}{\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
associate--r- [=>]35.8 | \[ \frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \color{blue}{\left(\left(C - \mathsf{hypot}\left(B, A - C\right)\right) + A\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
+-commutative [=>]35.8 | \[ \frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \color{blue}{\left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
Simplified35.0%
[Start]35.8 | \[ \frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
|---|---|
*-commutative [=>]35.8 | \[ \frac{-\color{blue}{\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
associate-+r- [=>]35.0 | \[ \frac{-\sqrt{F \cdot \color{blue}{\left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)}} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
*-commutative [=>]35.0 | \[ \frac{-\sqrt{F \cdot \left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \color{blue}{\left(C \cdot -4\right)}\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
Applied egg-rr35.8%
[Start]35.0 | \[ \frac{-\sqrt{F \cdot \left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
|---|---|
div-inv [=>]35.0 | \[ \color{blue}{\left(-\sqrt{F \cdot \left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}
\] |
distribute-rgt-neg-in [=>]35.0 | \[ \color{blue}{\left(\sqrt{F \cdot \left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right)\right)} \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
associate-*l* [=>]35.0 | \[ \color{blue}{\sqrt{F \cdot \left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}\right)}
\] |
+-commutative [=>]35.0 | \[ \sqrt{F \cdot \left(\color{blue}{\left(C + A\right)} - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}\right)
\] |
associate--l+ [=>]35.8 | \[ \sqrt{F \cdot \color{blue}{\left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)}} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}\right)
\] |
*-commutative [=>]35.8 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \color{blue}{\left(C \cdot -4\right)}\right)}\right)
\] |
Applied egg-rr35.8%
[Start]35.8 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right)
\] |
|---|---|
un-div-inv [=>]35.8 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \color{blue}{\frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}
\] |
neg-mul-1 [=>]35.8 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{\color{blue}{-1 \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}
\] |
associate-/l* [=>]35.8 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \color{blue}{\frac{-1}{\frac{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}{\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}}}
\] |
Applied egg-rr28.6%
[Start]35.8 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\frac{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}{\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}}
\] |
|---|---|
add-sqr-sqrt [=>]35.7 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\color{blue}{\sqrt{\frac{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}{\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}} \cdot \sqrt{\frac{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}{\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}}}}
\] |
sqrt-unprod [=>]35.8 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\color{blue}{\sqrt{\frac{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}{\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}} \cdot \frac{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}{\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}}}}
\] |
frac-times [=>]28.5 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\color{blue}{\frac{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}{\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}}}}
\] |
pow2 [=>]28.5 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{\color{blue}{{\left(\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right)}^{2}}}{\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}}}
\] |
*-commutative [=>]28.5 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{{\left(\mathsf{fma}\left(B, B, \color{blue}{\left(C \cdot -4\right) \cdot A}\right)\right)}^{2}}{\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}}}
\] |
associate-*l* [=>]28.5 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{{\left(\mathsf{fma}\left(B, B, \color{blue}{C \cdot \left(-4 \cdot A\right)}\right)\right)}^{2}}{\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}}}
\] |
add-sqr-sqrt [<=]28.6 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right)\right)}^{2}}{\color{blue}{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}}}
\] |
*-commutative [=>]28.6 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right)\right)}^{2}}{\color{blue}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot 2}}}}
\] |
*-commutative [=>]28.6 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right)\right)}^{2}}{\mathsf{fma}\left(B, B, \color{blue}{\left(C \cdot -4\right) \cdot A}\right) \cdot 2}}}
\] |
associate-*l* [=>]28.6 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right)\right)}^{2}}{\mathsf{fma}\left(B, B, \color{blue}{C \cdot \left(-4 \cdot A\right)}\right) \cdot 2}}}
\] |
Simplified36.0%
[Start]28.6 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right)\right)}^{2}}{\mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right) \cdot 2}}}
\] |
|---|---|
unpow2 [=>]28.6 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{\color{blue}{\mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right) \cdot \mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right) \cdot 2}}}
\] |
associate-/l* [=>]35.8 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\color{blue}{\frac{\mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right)}{\frac{\mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right) \cdot 2}{\mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right)}}}}}
\] |
*-commutative [=>]35.8 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{\mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right)}{\frac{\color{blue}{2 \cdot \mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right)}}}}
\] |
associate-/l* [=>]35.8 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{\mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right)}{\color{blue}{\frac{2}{\frac{\mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right)}{\mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right)}}}}}}
\] |
*-inverses [=>]36.0 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{\mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right)}{\frac{2}{\color{blue}{1}}}}}
\] |
fma-udef [=>]36.0 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{\color{blue}{B \cdot B + C \cdot \left(-4 \cdot A\right)}}{\frac{2}{1}}}}
\] |
+-commutative [<=]36.0 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{\color{blue}{C \cdot \left(-4 \cdot A\right) + B \cdot B}}{\frac{2}{1}}}}
\] |
associate-*r* [=>]36.0 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{\color{blue}{\left(C \cdot -4\right) \cdot A} + B \cdot B}{\frac{2}{1}}}}
\] |
*-commutative [=>]36.0 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{\color{blue}{A \cdot \left(C \cdot -4\right)} + B \cdot B}{\frac{2}{1}}}}
\] |
fma-def [=>]36.0 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{\color{blue}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}}{\frac{2}{1}}}}
\] |
metadata-eval [=>]36.0 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{-1}{\sqrt{\frac{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}{\color{blue}{2}}}}
\] |
if 8.4000000000000004e40 < B < 2.59999999999999989e49Initial program 35.2%
Simplified45.6%
[Start]35.2 | \[ \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C}
\] |
|---|
Taylor expanded in B around 0 17.1%
Simplified17.1%
[Start]17.1 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot \left(F \cdot \left(-0.5 \cdot \frac{{B}^{2}}{A - C} + 2 \cdot C\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
|---|---|
fma-def [=>]17.1 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot \left(F \cdot \color{blue}{\mathsf{fma}\left(-0.5, \frac{{B}^{2}}{A - C}, 2 \cdot C\right)}\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
unpow2 [=>]17.1 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot \left(F \cdot \mathsf{fma}\left(-0.5, \frac{\color{blue}{B \cdot B}}{A - C}, 2 \cdot C\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
if 2.59999999999999989e49 < B Initial program 9.1%
Simplified11.3%
[Start]9.1 | \[ \frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C}
\] |
|---|
Applied egg-rr20.5%
[Start]11.3 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot \left(F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
|---|---|
associate-*r* [=>]11.3 | \[ \frac{-\sqrt{\color{blue}{\left(2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)\right) \cdot \left(F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
sqrt-prod [=>]20.5 | \[ \frac{-\color{blue}{\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
associate--r- [=>]20.5 | \[ \frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \color{blue}{\left(\left(C - \mathsf{hypot}\left(B, A - C\right)\right) + A\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
+-commutative [=>]20.5 | \[ \frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \color{blue}{\left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
Simplified20.4%
[Start]20.5 | \[ \frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
|---|---|
*-commutative [=>]20.5 | \[ \frac{-\color{blue}{\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
associate-+r- [=>]20.4 | \[ \frac{-\sqrt{F \cdot \color{blue}{\left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)}} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
*-commutative [=>]20.4 | \[ \frac{-\sqrt{F \cdot \left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \color{blue}{\left(C \cdot -4\right)}\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
Applied egg-rr20.5%
[Start]20.4 | \[ \frac{-\sqrt{F \cdot \left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
|---|---|
div-inv [=>]20.4 | \[ \color{blue}{\left(-\sqrt{F \cdot \left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}
\] |
distribute-rgt-neg-in [=>]20.4 | \[ \color{blue}{\left(\sqrt{F \cdot \left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right)\right)} \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
associate-*l* [=>]20.4 | \[ \color{blue}{\sqrt{F \cdot \left(\left(A + C\right) - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}\right)}
\] |
+-commutative [=>]20.4 | \[ \sqrt{F \cdot \left(\color{blue}{\left(C + A\right)} - \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}\right)
\] |
associate--l+ [=>]20.5 | \[ \sqrt{F \cdot \color{blue}{\left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)}} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}\right)
\] |
*-commutative [=>]20.5 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \color{blue}{\left(C \cdot -4\right)}\right)}\right)
\] |
Applied egg-rr20.5%
[Start]20.5 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right)
\] |
|---|---|
un-div-inv [=>]20.5 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \color{blue}{\frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}
\] |
neg-mul-1 [=>]20.5 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \frac{\color{blue}{-1 \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}
\] |
associate-/l* [=>]20.5 | \[ \sqrt{F \cdot \left(C + \left(A - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \color{blue}{\frac{-1}{\frac{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}{\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}}}
\] |
Taylor expanded in B around inf 50.2%
Final simplification39.1%
| Alternative 1 | |
|---|---|
| Accuracy | 39.9% |
| Cost | 27720 |
| Alternative 2 | |
|---|---|
| Accuracy | 39.8% |
| Cost | 27720 |
| Alternative 3 | |
|---|---|
| Accuracy | 38.0% |
| Cost | 27536 |
| Alternative 4 | |
|---|---|
| Accuracy | 38.0% |
| Cost | 27536 |
| Alternative 5 | |
|---|---|
| Accuracy | 36.3% |
| Cost | 21264 |
| Alternative 6 | |
|---|---|
| Accuracy | 31.9% |
| Cost | 20620 |
| Alternative 7 | |
|---|---|
| Accuracy | 34.7% |
| Cost | 20620 |
| Alternative 8 | |
|---|---|
| Accuracy | 31.9% |
| Cost | 20556 |
| Alternative 9 | |
|---|---|
| Accuracy | 30.6% |
| Cost | 20300 |
| Alternative 10 | |
|---|---|
| Accuracy | 29.4% |
| Cost | 14228 |
| Alternative 11 | |
|---|---|
| Accuracy | 19.9% |
| Cost | 14096 |
| Alternative 12 | |
|---|---|
| Accuracy | 19.8% |
| Cost | 13968 |
| Alternative 13 | |
|---|---|
| Accuracy | 19.9% |
| Cost | 13904 |
| Alternative 14 | |
|---|---|
| Accuracy | 12.8% |
| Cost | 8848 |
| Alternative 15 | |
|---|---|
| Accuracy | 18.8% |
| Cost | 8716 |
| Alternative 16 | |
|---|---|
| Accuracy | 12.3% |
| Cost | 8204 |
| Alternative 17 | |
|---|---|
| Accuracy | 16.3% |
| Cost | 8068 |
| Alternative 18 | |
|---|---|
| Accuracy | 15.3% |
| Cost | 8068 |
| Alternative 19 | |
|---|---|
| Accuracy | 9.1% |
| Cost | 7808 |
| Alternative 20 | |
|---|---|
| Accuracy | 9.1% |
| Cost | 7680 |
| Alternative 21 | |
|---|---|
| Accuracy | 3.0% |
| Cost | 6848 |
| Alternative 22 | |
|---|---|
| Accuracy | 3.0% |
| Cost | 6848 |
herbie shell --seed 2023131
(FPCore (A B C F)
:name "ABCF->ab-angle b"
:precision binary64
(/ (- (sqrt (* (* 2.0 (* (- (pow B 2.0) (* (* 4.0 A) C)) F)) (- (+ A C) (sqrt (+ (pow (- A C) 2.0) (pow B 2.0))))))) (- (pow B 2.0) (* (* 4.0 A) C))))