| Alternative 1 | |
|---|---|
| Accuracy | 48.3% |
| Cost | 34120 |
(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 (* A (* C -4.0)))
(t_2 (fma B B t_1))
(t_3 (* 2.0 t_2))
(t_4 (+ (* B B) (* -4.0 (* C A))))
(t_5 (+ C (+ A t_0)))
(t_6 (sqrt (* 2.0 t_5)))
(t_7 (sqrt (+ A (+ C t_0))))
(t_8 (/ (* t_7 (- (sqrt (* F (* 2.0 (+ (* B B) t_1)))))) t_4))
(t_9 (fma B B (* C (* A -4.0)))))
(if (<= B -3.7e+64)
(* t_6 (* (sqrt F) (/ 1.0 B)))
(if (<= B -25000000000000.0)
(/
(- (sqrt (* 2.0 (* t_9 (* F (fma 2.0 C (/ (* -0.5 (* B B)) A)))))))
t_9)
(if (<= B -3.6e-34)
(/ (* t_7 (* (sqrt F) (- (sqrt t_3)))) t_4)
(if (<= B -1.25e-249)
(/ (- (sqrt t_5)) (/ t_2 (sqrt (* F t_3))))
(if (<= B 1.8e-263)
(/ (- (pow (* (* A (* F (* C A))) -16.0) 0.5)) t_4)
(if (<= B 1.55e-52)
t_8
(if (<= B 8.8e-11)
(/
(-
(sqrt
(* 2.0 (* t_9 (* F (fma 2.0 A (* -0.5 (/ (* B B) C))))))))
t_9)
(if (<= B 4.6e+66)
t_8
(* t_6 (* (sqrt F) (/ -1.0 B)))))))))))))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 = A * (C * -4.0);
double t_2 = fma(B, B, t_1);
double t_3 = 2.0 * t_2;
double t_4 = (B * B) + (-4.0 * (C * A));
double t_5 = C + (A + t_0);
double t_6 = sqrt((2.0 * t_5));
double t_7 = sqrt((A + (C + t_0)));
double t_8 = (t_7 * -sqrt((F * (2.0 * ((B * B) + t_1))))) / t_4;
double t_9 = fma(B, B, (C * (A * -4.0)));
double tmp;
if (B <= -3.7e+64) {
tmp = t_6 * (sqrt(F) * (1.0 / B));
} else if (B <= -25000000000000.0) {
tmp = -sqrt((2.0 * (t_9 * (F * fma(2.0, C, ((-0.5 * (B * B)) / A)))))) / t_9;
} else if (B <= -3.6e-34) {
tmp = (t_7 * (sqrt(F) * -sqrt(t_3))) / t_4;
} else if (B <= -1.25e-249) {
tmp = -sqrt(t_5) / (t_2 / sqrt((F * t_3)));
} else if (B <= 1.8e-263) {
tmp = -pow(((A * (F * (C * A))) * -16.0), 0.5) / t_4;
} else if (B <= 1.55e-52) {
tmp = t_8;
} else if (B <= 8.8e-11) {
tmp = -sqrt((2.0 * (t_9 * (F * fma(2.0, A, (-0.5 * ((B * B) / C))))))) / t_9;
} else if (B <= 4.6e+66) {
tmp = t_8;
} else {
tmp = t_6 * (sqrt(F) * (-1.0 / B));
}
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 = Float64(A * Float64(C * -4.0)) t_2 = fma(B, B, t_1) t_3 = Float64(2.0 * t_2) t_4 = Float64(Float64(B * B) + Float64(-4.0 * Float64(C * A))) t_5 = Float64(C + Float64(A + t_0)) t_6 = sqrt(Float64(2.0 * t_5)) t_7 = sqrt(Float64(A + Float64(C + t_0))) t_8 = Float64(Float64(t_7 * Float64(-sqrt(Float64(F * Float64(2.0 * Float64(Float64(B * B) + t_1)))))) / t_4) t_9 = fma(B, B, Float64(C * Float64(A * -4.0))) tmp = 0.0 if (B <= -3.7e+64) tmp = Float64(t_6 * Float64(sqrt(F) * Float64(1.0 / B))); elseif (B <= -25000000000000.0) tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(t_9 * Float64(F * fma(2.0, C, Float64(Float64(-0.5 * Float64(B * B)) / A))))))) / t_9); elseif (B <= -3.6e-34) tmp = Float64(Float64(t_7 * Float64(sqrt(F) * Float64(-sqrt(t_3)))) / t_4); elseif (B <= -1.25e-249) tmp = Float64(Float64(-sqrt(t_5)) / Float64(t_2 / sqrt(Float64(F * t_3)))); elseif (B <= 1.8e-263) tmp = Float64(Float64(-(Float64(Float64(A * Float64(F * Float64(C * A))) * -16.0) ^ 0.5)) / t_4); elseif (B <= 1.55e-52) tmp = t_8; elseif (B <= 8.8e-11) tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(t_9 * Float64(F * fma(2.0, A, Float64(-0.5 * Float64(Float64(B * B) / C)))))))) / t_9); elseif (B <= 4.6e+66) tmp = t_8; else tmp = Float64(t_6 * Float64(sqrt(F) * Float64(-1.0 / B))); 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[(A * N[(C * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(B * B + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(2.0 * t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[(N[(B * B), $MachinePrecision] + N[(-4.0 * N[(C * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(C + N[(A + t$95$0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[Sqrt[N[(2.0 * t$95$5), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$7 = N[Sqrt[N[(A + N[(C + t$95$0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$8 = N[(N[(t$95$7 * (-N[Sqrt[N[(F * N[(2.0 * N[(N[(B * B), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$4), $MachinePrecision]}, Block[{t$95$9 = N[(B * B + N[(C * N[(A * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, -3.7e+64], N[(t$95$6 * N[(N[Sqrt[F], $MachinePrecision] * N[(1.0 / B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, -25000000000000.0], N[((-N[Sqrt[N[(2.0 * N[(t$95$9 * N[(F * N[(2.0 * C + N[(N[(-0.5 * N[(B * B), $MachinePrecision]), $MachinePrecision] / A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$9), $MachinePrecision], If[LessEqual[B, -3.6e-34], N[(N[(t$95$7 * N[(N[Sqrt[F], $MachinePrecision] * (-N[Sqrt[t$95$3], $MachinePrecision])), $MachinePrecision]), $MachinePrecision] / t$95$4), $MachinePrecision], If[LessEqual[B, -1.25e-249], N[((-N[Sqrt[t$95$5], $MachinePrecision]) / N[(t$95$2 / N[Sqrt[N[(F * t$95$3), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, 1.8e-263], N[((-N[Power[N[(N[(A * N[(F * N[(C * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * -16.0), $MachinePrecision], 0.5], $MachinePrecision]) / t$95$4), $MachinePrecision], If[LessEqual[B, 1.55e-52], t$95$8, If[LessEqual[B, 8.8e-11], N[((-N[Sqrt[N[(2.0 * N[(t$95$9 * N[(F * N[(2.0 * A + N[(-0.5 * N[(N[(B * B), $MachinePrecision] / C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$9), $MachinePrecision], If[LessEqual[B, 4.6e+66], t$95$8, N[(t$95$6 * N[(N[Sqrt[F], $MachinePrecision] * N[(-1.0 / B), $MachinePrecision]), $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 := A \cdot \left(C \cdot -4\right)\\
t_2 := \mathsf{fma}\left(B, B, t_1\right)\\
t_3 := 2 \cdot t_2\\
t_4 := B \cdot B + -4 \cdot \left(C \cdot A\right)\\
t_5 := C + \left(A + t_0\right)\\
t_6 := \sqrt{2 \cdot t_5}\\
t_7 := \sqrt{A + \left(C + t_0\right)}\\
t_8 := \frac{t_7 \cdot \left(-\sqrt{F \cdot \left(2 \cdot \left(B \cdot B + t_1\right)\right)}\right)}{t_4}\\
t_9 := \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\\
\mathbf{if}\;B \leq -3.7 \cdot 10^{+64}:\\
\;\;\;\;t_6 \cdot \left(\sqrt{F} \cdot \frac{1}{B}\right)\\
\mathbf{elif}\;B \leq -25000000000000:\\
\;\;\;\;\frac{-\sqrt{2 \cdot \left(t_9 \cdot \left(F \cdot \mathsf{fma}\left(2, C, \frac{-0.5 \cdot \left(B \cdot B\right)}{A}\right)\right)\right)}}{t_9}\\
\mathbf{elif}\;B \leq -3.6 \cdot 10^{-34}:\\
\;\;\;\;\frac{t_7 \cdot \left(\sqrt{F} \cdot \left(-\sqrt{t_3}\right)\right)}{t_4}\\
\mathbf{elif}\;B \leq -1.25 \cdot 10^{-249}:\\
\;\;\;\;\frac{-\sqrt{t_5}}{\frac{t_2}{\sqrt{F \cdot t_3}}}\\
\mathbf{elif}\;B \leq 1.8 \cdot 10^{-263}:\\
\;\;\;\;\frac{-{\left(\left(A \cdot \left(F \cdot \left(C \cdot A\right)\right)\right) \cdot -16\right)}^{0.5}}{t_4}\\
\mathbf{elif}\;B \leq 1.55 \cdot 10^{-52}:\\
\;\;\;\;t_8\\
\mathbf{elif}\;B \leq 8.8 \cdot 10^{-11}:\\
\;\;\;\;\frac{-\sqrt{2 \cdot \left(t_9 \cdot \left(F \cdot \mathsf{fma}\left(2, A, -0.5 \cdot \frac{B \cdot B}{C}\right)\right)\right)}}{t_9}\\
\mathbf{elif}\;B \leq 4.6 \cdot 10^{+66}:\\
\;\;\;\;t_8\\
\mathbf{else}:\\
\;\;\;\;t_6 \cdot \left(\sqrt{F} \cdot \frac{-1}{B}\right)\\
\end{array}
if B < -3.69999999999999983e64Initial program 8.7%
Simplified10.1%
[Start]8.7 | \[ \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-rr0.6%
[Start]10.1 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
|---|---|
add-sqr-sqrt [=>]0.4 | \[ \color{blue}{\sqrt{\frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}} \cdot \sqrt{\frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}
\] |
sqrt-unprod [=>]0.6 | \[ \color{blue}{\sqrt{\frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)} \cdot \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}
\] |
frac-times [=>]0.6 | \[ \sqrt{\color{blue}{\frac{\left(-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}\right) \cdot \left(-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}\right)}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}
\] |
Simplified0.8%
[Start]0.6 | \[ \sqrt{\frac{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot F\right)\right)}{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}}
\] |
|---|---|
associate-*r* [=>]0.6 | \[ \sqrt{\frac{\color{blue}{\left(2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right) \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot F\right)}}{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}}
\] |
associate-/l* [=>]0.8 | \[ \sqrt{\color{blue}{\frac{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot F}}}}
\] |
*-commutative [=>]0.8 | \[ \sqrt{\frac{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{\color{blue}{F \cdot \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}}
\] |
Applied egg-rr1.1%
[Start]0.8 | \[ \sqrt{\frac{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{F \cdot \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}
\] |
|---|---|
div-inv [=>]0.8 | \[ \sqrt{\color{blue}{\left(2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right) \cdot \frac{1}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{F \cdot \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}}
\] |
sqrt-prod [=>]0.7 | \[ \color{blue}{\sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{\frac{1}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{F \cdot \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}}
\] |
associate-+r+ [=>]0.8 | \[ \sqrt{2 \cdot \color{blue}{\left(\left(C + A\right) + \mathsf{hypot}\left(B, A - C\right)\right)}} \cdot \sqrt{\frac{1}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{F \cdot \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}
\] |
+-commutative [=>]0.8 | \[ \sqrt{2 \cdot \color{blue}{\left(\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)\right)}} \cdot \sqrt{\frac{1}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{F \cdot \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}
\] |
clear-num [<=]0.8 | \[ \sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)\right)} \cdot \sqrt{\color{blue}{\frac{F \cdot \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}}}
\] |
*-commutative [=>]0.8 | \[ \sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)\right)} \cdot \sqrt{\frac{\color{blue}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot F}}{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}}
\] |
associate-/l* [=>]1.1 | \[ \sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)\right)} \cdot \sqrt{\color{blue}{\frac{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{F}}}}
\] |
associate-*r* [=>]1.1 | \[ \sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)\right)} \cdot \sqrt{\frac{\mathsf{fma}\left(B, B, \color{blue}{\left(C \cdot A\right) \cdot -4}\right)}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{F}}}
\] |
*-commutative [=>]1.1 | \[ \sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)\right)} \cdot \sqrt{\frac{\mathsf{fma}\left(B, B, \color{blue}{-4 \cdot \left(C \cdot A\right)}\right)}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{F}}}
\] |
Simplified4.2%
[Start]1.1 | \[ \sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)\right)} \cdot \sqrt{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)\right)}^{2}}{F}}}
\] |
|---|---|
+-commutative [<=]1.1 | \[ \sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \color{blue}{\left(A + C\right)}\right)} \cdot \sqrt{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)\right)}^{2}}{F}}}
\] |
+-commutative [=>]1.1 | \[ \sqrt{2 \cdot \color{blue}{\left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)}} \cdot \sqrt{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)\right)}^{2}}{F}}}
\] |
+-commutative [=>]1.1 | \[ \sqrt{2 \cdot \left(\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)\right)}^{2}}{F}}}
\] |
associate-+l+ [=>]1.0 | \[ \sqrt{2 \cdot \color{blue}{\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)}} \cdot \sqrt{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)\right)}^{2}}{F}}}
\] |
associate-/r/ [=>]1.0 | \[ \sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{\color{blue}{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}{{\left(\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)\right)}^{2}} \cdot F}}
\] |
unpow2 [=>]1.0 | \[ \sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}{\color{blue}{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right) \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}} \cdot F}
\] |
associate-/r* [=>]1.2 | \[ \sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{\color{blue}{\frac{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}}{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}} \cdot F}
\] |
*-inverses [=>]4.2 | \[ \sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{\frac{\color{blue}{1}}{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)} \cdot F}
\] |
*-commutative [<=]4.2 | \[ \sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{\frac{1}{\mathsf{fma}\left(B, B, -4 \cdot \color{blue}{\left(A \cdot C\right)}\right)} \cdot F}
\] |
Taylor expanded in B around inf 68.4%
if -3.69999999999999983e64 < B < -2.5e13Initial program 36.8%
Simplified43.1%
[Start]36.8 | \[ \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 A around -inf 13.2%
Simplified13.2%
[Start]13.2 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \left(2 \cdot C + -0.5 \cdot \frac{{B}^{2}}{A}\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
|---|---|
fma-def [=>]13.2 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \color{blue}{\mathsf{fma}\left(2, C, -0.5 \cdot \frac{{B}^{2}}{A}\right)}\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
associate-*r/ [=>]13.2 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \mathsf{fma}\left(2, C, \color{blue}{\frac{-0.5 \cdot {B}^{2}}{A}}\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
unpow2 [=>]13.2 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \mathsf{fma}\left(2, C, \frac{-0.5 \cdot \color{blue}{\left(B \cdot B\right)}}{A}\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
if -2.5e13 < B < -3.60000000000000008e-34Initial program 36.1%
Simplified36.1%
[Start]36.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-rr50.4%
[Start]36.1 | \[ \frac{-\sqrt{2 \cdot \left(\left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
|---|---|
associate-*r* [=>]36.1 | \[ \frac{-\sqrt{\color{blue}{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
sqrt-prod [=>]37.3 | \[ \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
fma-neg [=>]37.3 | \[ \frac{-\sqrt{2 \cdot \left(\color{blue}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)} \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
distribute-lft-neg-in [=>]37.3 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \color{blue}{\left(-4\right) \cdot \left(A \cdot C\right)}\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
*-commutative [=>]37.3 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \color{blue}{\left(A \cdot C\right) \cdot \left(-4\right)}\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
metadata-eval [=>]37.3 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot \color{blue}{-4}\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
associate-+l+ [=>]37.6 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right) \cdot F\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
unpow2 [=>]37.6 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right) \cdot F\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
hypot-def [=>]50.4 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right) \cdot F\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
Simplified50.4%
[Start]50.4 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right) \cdot F\right)} \cdot \sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
|---|---|
*-commutative [=>]50.4 | \[ \frac{-\color{blue}{\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right) \cdot F\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
associate-*r* [=>]50.4 | \[ \frac{-\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{\color{blue}{\left(2 \cdot \mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right)\right) \cdot F}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
associate-*l* [=>]50.4 | \[ \frac{-\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{\left(2 \cdot \mathsf{fma}\left(B, B, \color{blue}{A \cdot \left(C \cdot -4\right)}\right)\right) \cdot F}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
Applied egg-rr46.8%
[Start]50.4 | \[ \frac{-\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{\left(2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right) \cdot F}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
|---|---|
sqrt-prod [=>]46.8 | \[ \frac{-\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \color{blue}{\left(\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)} \cdot \sqrt{F}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
if -3.60000000000000008e-34 < B < -1.24999999999999997e-249Initial program 20.9%
Simplified20.9%
[Start]20.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-rr36.4%
[Start]20.9 | \[ \frac{-\sqrt{2 \cdot \left(\left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
|---|---|
associate-*r* [=>]20.9 | \[ \frac{-\sqrt{\color{blue}{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
sqrt-prod [=>]23.8 | \[ \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
fma-neg [=>]23.8 | \[ \frac{-\sqrt{2 \cdot \left(\color{blue}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)} \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
distribute-lft-neg-in [=>]23.8 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \color{blue}{\left(-4\right) \cdot \left(A \cdot C\right)}\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
*-commutative [=>]23.8 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \color{blue}{\left(A \cdot C\right) \cdot \left(-4\right)}\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
metadata-eval [=>]23.8 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot \color{blue}{-4}\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
associate-+l+ [=>]24.4 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right) \cdot F\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
unpow2 [=>]24.4 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right) \cdot F\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
hypot-def [=>]36.4 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right) \cdot F\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
Simplified36.4%
[Start]36.4 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right) \cdot F\right)} \cdot \sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
|---|---|
*-commutative [=>]36.4 | \[ \frac{-\color{blue}{\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right) \cdot F\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
associate-*r* [=>]36.4 | \[ \frac{-\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{\color{blue}{\left(2 \cdot \mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right)\right) \cdot F}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
associate-*l* [=>]36.4 | \[ \frac{-\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{\left(2 \cdot \mathsf{fma}\left(B, B, \color{blue}{A \cdot \left(C \cdot -4\right)}\right)\right) \cdot F}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
Applied egg-rr36.0%
[Start]36.4 | \[ \frac{-\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{\left(2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right) \cdot F}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
|---|---|
div-inv [=>]36.0 | \[ \color{blue}{\left(-\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{\left(2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right) \cdot F}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}}
\] |
distribute-rgt-neg-in [=>]36.0 | \[ \color{blue}{\left(\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(-\sqrt{\left(2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right) \cdot F}\right)\right)} \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
associate-*l* [=>]36.0 | \[ \color{blue}{\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\left(-\sqrt{\left(2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right) \cdot F}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\right)}
\] |
*-commutative [=>]36.0 | \[ \sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\left(-\sqrt{\color{blue}{\left(\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot 2\right)} \cdot F}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\right)
\] |
associate-*l* [=>]36.0 | \[ \sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\left(-\sqrt{\color{blue}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(2 \cdot F\right)}}\right) \cdot \frac{1}{B \cdot B - 4 \cdot \left(A \cdot C\right)}\right)
\] |
fma-neg [=>]36.0 | \[ \sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\left(-\sqrt{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(2 \cdot F\right)}\right) \cdot \frac{1}{\color{blue}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}}\right)
\] |
distribute-lft-neg-in [=>]36.0 | \[ \sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\left(-\sqrt{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(2 \cdot F\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, \color{blue}{\left(-4\right) \cdot \left(A \cdot C\right)}\right)}\right)
\] |
metadata-eval [=>]36.0 | \[ \sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\left(-\sqrt{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(2 \cdot F\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, \color{blue}{-4} \cdot \left(A \cdot C\right)\right)}\right)
\] |
*-commutative [<=]36.0 | \[ \sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\left(-\sqrt{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(2 \cdot F\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, \color{blue}{\left(A \cdot C\right) \cdot -4}\right)}\right)
\] |
associate-*r* [<=]36.0 | \[ \sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\left(-\sqrt{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(2 \cdot F\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, \color{blue}{A \cdot \left(C \cdot -4\right)}\right)}\right)
\] |
Simplified36.3%
[Start]36.0 | \[ \sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \left(\left(-\sqrt{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(2 \cdot F\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right)
\] |
|---|---|
+-commutative [=>]36.0 | \[ \sqrt{\color{blue}{\left(C + \mathsf{hypot}\left(B, A - C\right)\right) + A}} \cdot \left(\left(-\sqrt{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(2 \cdot F\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right)
\] |
associate-+l+ [=>]36.0 | \[ \sqrt{\color{blue}{C + \left(\mathsf{hypot}\left(B, A - C\right) + A\right)}} \cdot \left(\left(-\sqrt{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(2 \cdot F\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right)
\] |
*-commutative [=>]36.0 | \[ \sqrt{C + \left(\mathsf{hypot}\left(B, A - C\right) + A\right)} \cdot \color{blue}{\left(\frac{1}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)} \cdot \left(-\sqrt{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(2 \cdot F\right)}\right)\right)}
\] |
associate-*l/ [=>]36.4 | \[ \sqrt{C + \left(\mathsf{hypot}\left(B, A - C\right) + A\right)} \cdot \color{blue}{\frac{1 \cdot \left(-\sqrt{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(2 \cdot F\right)}\right)}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}
\] |
Applied egg-rr35.3%
[Start]36.3 | \[ \sqrt{C + \left(\mathsf{hypot}\left(B, A - C\right) + A\right)} \cdot \frac{-\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}
\] |
|---|---|
distribute-frac-neg [=>]36.3 | \[ \sqrt{C + \left(\mathsf{hypot}\left(B, A - C\right) + A\right)} \cdot \color{blue}{\left(-\frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}\right)}
\] |
distribute-rgt-neg-out [=>]36.3 | \[ \color{blue}{-\sqrt{C + \left(\mathsf{hypot}\left(B, A - C\right) + A\right)} \cdot \frac{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}}
\] |
add-sqr-sqrt [=>]36.3 | \[ -\sqrt{C + \left(\mathsf{hypot}\left(B, A - C\right) + A\right)} \cdot \frac{\sqrt{\color{blue}{\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right)} \cdot \sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right)}}}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}
\] |
sqr-neg [<=]36.3 | \[ -\sqrt{C + \left(\mathsf{hypot}\left(B, A - C\right) + A\right)} \cdot \frac{\sqrt{\color{blue}{\left(-\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right)}\right) \cdot \left(-\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right)}\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}
\] |
sqrt-unprod [<=]0.3 | \[ -\sqrt{C + \left(\mathsf{hypot}\left(B, A - C\right) + A\right)} \cdot \frac{\color{blue}{\sqrt{-\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right)}} \cdot \sqrt{-\sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right)}}}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}
\] |
Simplified36.4%
[Start]35.3 | \[ -\frac{\sqrt{\mathsf{hypot}\left(B, A - C\right) + \left(A + C\right)}}{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}{\sqrt{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right) \cdot \left(2 \cdot F\right)}}}
\] |
|---|---|
distribute-neg-frac [=>]35.3 | \[ \color{blue}{\frac{-\sqrt{\mathsf{hypot}\left(B, A - C\right) + \left(A + C\right)}}{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}{\sqrt{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right) \cdot \left(2 \cdot F\right)}}}}
\] |
associate-+r+ [=>]36.3 | \[ \frac{-\sqrt{\color{blue}{\left(\mathsf{hypot}\left(B, A - C\right) + A\right) + C}}}{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}{\sqrt{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right) \cdot \left(2 \cdot F\right)}}}
\] |
+-commutative [=>]36.3 | \[ \frac{-\sqrt{\color{blue}{C + \left(\mathsf{hypot}\left(B, A - C\right) + A\right)}}}{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}{\sqrt{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right) \cdot \left(2 \cdot F\right)}}}
\] |
+-commutative [=>]36.3 | \[ \frac{-\sqrt{C + \color{blue}{\left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}}{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}{\sqrt{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right) \cdot \left(2 \cdot F\right)}}}
\] |
*-commutative [=>]36.3 | \[ \frac{-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{\frac{\mathsf{fma}\left(B, B, \color{blue}{\left(A \cdot C\right) \cdot -4}\right)}{\sqrt{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right) \cdot \left(2 \cdot F\right)}}}
\] |
associate-*l* [=>]36.4 | \[ \frac{-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{\frac{\mathsf{fma}\left(B, B, \color{blue}{A \cdot \left(C \cdot -4\right)}\right)}{\sqrt{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right) \cdot \left(2 \cdot F\right)}}}
\] |
*-commutative [=>]36.4 | \[ \frac{-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{\frac{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}{\sqrt{\color{blue}{\left(2 \cdot F\right) \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}}}}
\] |
*-commutative [=>]36.4 | \[ \frac{-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{\frac{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}{\sqrt{\color{blue}{\left(F \cdot 2\right)} \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)}}}
\] |
associate-*l* [=>]36.4 | \[ \frac{-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{\frac{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}{\sqrt{\color{blue}{F \cdot \left(2 \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)\right)}}}}
\] |
*-commutative [=>]36.4 | \[ \frac{-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{\frac{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}{\sqrt{F \cdot \left(2 \cdot \mathsf{fma}\left(B, B, \color{blue}{\left(A \cdot C\right) \cdot -4}\right)\right)}}}
\] |
associate-*l* [=>]36.4 | \[ \frac{-\sqrt{C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{\frac{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}{\sqrt{F \cdot \left(2 \cdot \mathsf{fma}\left(B, B, \color{blue}{A \cdot \left(C \cdot -4\right)}\right)\right)}}}
\] |
if -1.24999999999999997e-249 < B < 1.8e-263Initial program 16.8%
Simplified16.8%
[Start]16.8 | \[ \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 15.6%
Simplified17.6%
[Start]15.6 | \[ \frac{-\sqrt{2 \cdot \left(-8 \cdot \left({A}^{2} \cdot \left(C \cdot F\right)\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
|---|---|
associate-*r* [=>]17.6 | \[ \frac{-\sqrt{2 \cdot \left(-8 \cdot \color{blue}{\left(\left({A}^{2} \cdot C\right) \cdot F\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
unpow2 [=>]17.6 | \[ \frac{-\sqrt{2 \cdot \left(-8 \cdot \left(\left(\color{blue}{\left(A \cdot A\right)} \cdot C\right) \cdot F\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
Applied egg-rr22.1%
[Start]17.6 | \[ \frac{-\sqrt{2 \cdot \left(-8 \cdot \left(\left(\left(A \cdot A\right) \cdot C\right) \cdot F\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
|---|---|
pow1/2 [=>]17.6 | \[ \frac{-\color{blue}{{\left(2 \cdot \left(-8 \cdot \left(\left(\left(A \cdot A\right) \cdot C\right) \cdot F\right)\right)\right)}^{0.5}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
associate-*r* [=>]17.6 | \[ \frac{-{\color{blue}{\left(\left(2 \cdot -8\right) \cdot \left(\left(\left(A \cdot A\right) \cdot C\right) \cdot F\right)\right)}}^{0.5}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
*-commutative [=>]17.6 | \[ \frac{-{\color{blue}{\left(\left(\left(\left(A \cdot A\right) \cdot C\right) \cdot F\right) \cdot \left(2 \cdot -8\right)\right)}}^{0.5}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
associate-*l* [=>]19.7 | \[ \frac{-{\left(\left(\color{blue}{\left(A \cdot \left(A \cdot C\right)\right)} \cdot F\right) \cdot \left(2 \cdot -8\right)\right)}^{0.5}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
associate-*l* [=>]22.1 | \[ \frac{-{\left(\color{blue}{\left(A \cdot \left(\left(A \cdot C\right) \cdot F\right)\right)} \cdot \left(2 \cdot -8\right)\right)}^{0.5}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
metadata-eval [=>]22.1 | \[ \frac{-{\left(\left(A \cdot \left(\left(A \cdot C\right) \cdot F\right)\right) \cdot \color{blue}{-16}\right)}^{0.5}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
if 1.8e-263 < B < 1.5499999999999999e-52 or 8.8000000000000006e-11 < B < 4.6e66Initial program 25.2%
Simplified25.2%
[Start]25.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-rr40.7%
[Start]25.2 | \[ \frac{-\sqrt{2 \cdot \left(\left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
|---|---|
associate-*r* [=>]25.2 | \[ \frac{-\sqrt{\color{blue}{\left(2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
sqrt-prod [=>]27.0 | \[ \frac{-\color{blue}{\sqrt{2 \cdot \left(\left(B \cdot B - 4 \cdot \left(A \cdot C\right)\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
fma-neg [=>]27.0 | \[ \frac{-\sqrt{2 \cdot \left(\color{blue}{\mathsf{fma}\left(B, B, -4 \cdot \left(A \cdot C\right)\right)} \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
distribute-lft-neg-in [=>]27.0 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \color{blue}{\left(-4\right) \cdot \left(A \cdot C\right)}\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
*-commutative [=>]27.0 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \color{blue}{\left(A \cdot C\right) \cdot \left(-4\right)}\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
metadata-eval [=>]27.0 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot \color{blue}{-4}\right) \cdot F\right)} \cdot \sqrt{\left(A + C\right) + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
associate-+l+ [=>]27.4 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right) \cdot F\right)} \cdot \sqrt{\color{blue}{A + \left(C + \sqrt{B \cdot B + {\left(A - C\right)}^{2}}\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
unpow2 [=>]27.4 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right) \cdot F\right)} \cdot \sqrt{A + \left(C + \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
hypot-def [=>]40.7 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right) \cdot F\right)} \cdot \sqrt{A + \left(C + \color{blue}{\mathsf{hypot}\left(B, A - C\right)}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
Simplified40.7%
[Start]40.7 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right) \cdot F\right)} \cdot \sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
|---|---|
*-commutative [=>]40.7 | \[ \frac{-\color{blue}{\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right) \cdot F\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
associate-*r* [=>]40.7 | \[ \frac{-\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{\color{blue}{\left(2 \cdot \mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right)\right) \cdot F}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
associate-*l* [=>]40.7 | \[ \frac{-\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{\left(2 \cdot \mathsf{fma}\left(B, B, \color{blue}{A \cdot \left(C \cdot -4\right)}\right)\right) \cdot F}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
Applied egg-rr40.7%
[Start]40.7 | \[ \frac{-\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{\left(2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right) \cdot F}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
|---|---|
fma-udef [=>]40.7 | \[ \frac{-\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{\left(2 \cdot \color{blue}{\left(B \cdot B + A \cdot \left(C \cdot -4\right)\right)}\right) \cdot F}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
if 1.5499999999999999e-52 < B < 8.8000000000000006e-11Initial program 35.3%
Simplified45.0%
[Start]35.3 | \[ \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 C around -inf 16.2%
Simplified16.2%
[Start]16.2 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \left(2 \cdot A + -0.5 \cdot \frac{{B}^{2}}{C}\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
|---|---|
fma-def [=>]16.2 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \color{blue}{\mathsf{fma}\left(2, A, -0.5 \cdot \frac{{B}^{2}}{C}\right)}\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
unpow2 [=>]16.2 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \mathsf{fma}\left(2, A, -0.5 \cdot \frac{\color{blue}{B \cdot B}}{C}\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
if 4.6e66 < B Initial program 8.6%
Simplified10.0%
[Start]8.6 | \[ \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-rr0.6%
[Start]10.0 | \[ \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
|---|---|
add-sqr-sqrt [=>]0.4 | \[ \color{blue}{\sqrt{\frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}} \cdot \sqrt{\frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}
\] |
sqrt-unprod [=>]0.6 | \[ \color{blue}{\sqrt{\frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)} \cdot \frac{-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}
\] |
frac-times [=>]0.7 | \[ \sqrt{\color{blue}{\frac{\left(-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}\right) \cdot \left(-\sqrt{2 \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \left(F \cdot \left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}\right)}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}
\] |
Simplified0.8%
[Start]0.6 | \[ \sqrt{\frac{2 \cdot \left(\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot F\right)\right)}{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}}
\] |
|---|---|
associate-*r* [=>]0.6 | \[ \sqrt{\frac{\color{blue}{\left(2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right) \cdot \left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot F\right)}}{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}}
\] |
associate-/l* [=>]0.8 | \[ \sqrt{\color{blue}{\frac{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot F}}}}
\] |
*-commutative [=>]0.8 | \[ \sqrt{\frac{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{\color{blue}{F \cdot \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}}
\] |
Applied egg-rr1.2%
[Start]0.8 | \[ \sqrt{\frac{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{F \cdot \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}
\] |
|---|---|
div-inv [=>]0.8 | \[ \sqrt{\color{blue}{\left(2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right) \cdot \frac{1}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{F \cdot \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}}
\] |
sqrt-prod [=>]0.8 | \[ \color{blue}{\sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{\frac{1}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{F \cdot \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}}
\] |
associate-+r+ [=>]0.8 | \[ \sqrt{2 \cdot \color{blue}{\left(\left(C + A\right) + \mathsf{hypot}\left(B, A - C\right)\right)}} \cdot \sqrt{\frac{1}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{F \cdot \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}
\] |
+-commutative [=>]0.8 | \[ \sqrt{2 \cdot \color{blue}{\left(\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)\right)}} \cdot \sqrt{\frac{1}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{F \cdot \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}}}
\] |
clear-num [<=]0.8 | \[ \sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)\right)} \cdot \sqrt{\color{blue}{\frac{F \cdot \mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}}}
\] |
*-commutative [=>]0.8 | \[ \sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)\right)} \cdot \sqrt{\frac{\color{blue}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right) \cdot F}}{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}}
\] |
associate-/l* [=>]1.2 | \[ \sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)\right)} \cdot \sqrt{\color{blue}{\frac{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{F}}}}
\] |
associate-*r* [=>]1.2 | \[ \sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)\right)} \cdot \sqrt{\frac{\mathsf{fma}\left(B, B, \color{blue}{\left(C \cdot A\right) \cdot -4}\right)}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{F}}}
\] |
*-commutative [=>]1.2 | \[ \sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)\right)} \cdot \sqrt{\frac{\mathsf{fma}\left(B, B, \color{blue}{-4 \cdot \left(C \cdot A\right)}\right)}{\frac{{\left(\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)\right)}^{2}}{F}}}
\] |
Simplified4.2%
[Start]1.2 | \[ \sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \left(C + A\right)\right)} \cdot \sqrt{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)\right)}^{2}}{F}}}
\] |
|---|---|
+-commutative [<=]1.2 | \[ \sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \color{blue}{\left(A + C\right)}\right)} \cdot \sqrt{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)\right)}^{2}}{F}}}
\] |
+-commutative [=>]1.2 | \[ \sqrt{2 \cdot \color{blue}{\left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)}} \cdot \sqrt{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)\right)}^{2}}{F}}}
\] |
+-commutative [=>]1.2 | \[ \sqrt{2 \cdot \left(\color{blue}{\left(C + A\right)} + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)\right)}^{2}}{F}}}
\] |
associate-+l+ [=>]1.1 | \[ \sqrt{2 \cdot \color{blue}{\left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)}} \cdot \sqrt{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}{\frac{{\left(\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)\right)}^{2}}{F}}}
\] |
associate-/r/ [=>]1.1 | \[ \sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{\color{blue}{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}{{\left(\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)\right)}^{2}} \cdot F}}
\] |
unpow2 [=>]1.1 | \[ \sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}{\color{blue}{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right) \cdot \mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}} \cdot F}
\] |
associate-/r* [=>]1.2 | \[ \sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{\color{blue}{\frac{\frac{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}}{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)}} \cdot F}
\] |
*-inverses [=>]4.2 | \[ \sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{\frac{\color{blue}{1}}{\mathsf{fma}\left(B, B, -4 \cdot \left(C \cdot A\right)\right)} \cdot F}
\] |
*-commutative [<=]4.2 | \[ \sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{\frac{1}{\mathsf{fma}\left(B, B, -4 \cdot \color{blue}{\left(A \cdot C\right)}\right)} \cdot F}
\] |
Taylor expanded in B around -inf 66.0%
Simplified66.0%
[Start]66.0 | \[ \sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \left(-1 \cdot \left(\sqrt{F} \cdot \frac{1}{B}\right)\right)
\] |
|---|---|
mul-1-neg [=>]66.0 | \[ \sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \color{blue}{\left(-\sqrt{F} \cdot \frac{1}{B}\right)}
\] |
Final simplification46.7%
| Alternative 1 | |
|---|---|
| Accuracy | 48.3% |
| Cost | 34120 |
| Alternative 2 | |
|---|---|
| Accuracy | 48.3% |
| Cost | 34120 |
| Alternative 3 | |
|---|---|
| Accuracy | 49.2% |
| Cost | 27916 |
| Alternative 4 | |
|---|---|
| Accuracy | 50.3% |
| Cost | 21576 |
| Alternative 5 | |
|---|---|
| Accuracy | 42.1% |
| Cost | 21264 |
| Alternative 6 | |
|---|---|
| Accuracy | 42.1% |
| Cost | 21264 |
| Alternative 7 | |
|---|---|
| Accuracy | 45.8% |
| Cost | 21192 |
| Alternative 8 | |
|---|---|
| Accuracy | 31.5% |
| Cost | 20753 |
| Alternative 9 | |
|---|---|
| Accuracy | 41.7% |
| Cost | 20752 |
| Alternative 10 | |
|---|---|
| Accuracy | 26.0% |
| Cost | 20488 |
| Alternative 11 | |
|---|---|
| Accuracy | 23.3% |
| Cost | 13704 |
| Alternative 12 | |
|---|---|
| Accuracy | 21.2% |
| Cost | 13640 |
| Alternative 13 | |
|---|---|
| Accuracy | 19.1% |
| Cost | 13188 |
| Alternative 14 | |
|---|---|
| Accuracy | 17.7% |
| Cost | 8848 |
| Alternative 15 | |
|---|---|
| Accuracy | 17.4% |
| Cost | 8716 |
| Alternative 16 | |
|---|---|
| Accuracy | 17.3% |
| Cost | 8272 |
| Alternative 17 | |
|---|---|
| Accuracy | 17.0% |
| Cost | 8208 |
| Alternative 18 | |
|---|---|
| Accuracy | 15.2% |
| Cost | 7053 |
| Alternative 19 | |
|---|---|
| Accuracy | 11.5% |
| Cost | 6656 |
| Alternative 20 | |
|---|---|
| Accuracy | 1.2% |
| Cost | 6592 |
herbie shell --seed 2023133
(FPCore (A B C F)
:name "ABCF->ab-angle a"
: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))))