| Alternative 1 | |
|---|---|
| Accuracy | 41.6% |
| Cost | 149260 |
(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 (fma -4.0 (* A C) (* B B)))
(t_1 (fma B B (* C (* -4.0 A))))
(t_2 (+ A (+ C (hypot B (- A C)))))
(t_3 (/ (* (sqrt t_0) (sqrt F)) (/ t_0 (- (sqrt (* 2.0 t_2))))))
(t_4 (* -4.0 (* A C)))
(t_5 (sqrt (* 2.0 (* F (fma B B t_4)))))
(t_6 (hypot B (sqrt t_4)))
(t_7 (+ (* B B) t_4)))
(if (<= B -3.2e+153)
(*
(/ (* B (sqrt 2.0)) t_6)
(/ (sqrt (* F (fma -0.5 (* A (/ A B)) (- A B)))) t_6))
(if (<= B -4.7e-35)
t_3
(if (<= B -4.6e-70)
(/ (* (sqrt (+ A (+ A (/ (* -0.5 (* B B)) C)))) (- t_5)) t_7)
(if (<= B -5.2e-194)
t_3
(if (<= B -8e-249)
(/ (* (sqrt (* F t_0)) (- (sqrt (* 2.0 (* 2.0 C))))) t_0)
(if (<= B 2.8e-256)
t_3
(if (<= B 9.2e-183)
(- (/ (sqrt (* 2.0 (* t_1 (* F (* 2.0 C))))) t_1))
(if (<= B 4.2e-130)
(/
(- (sqrt (* 2.0 (* (* A (* -4.0 C)) (* F (+ A A))))))
t_1)
(if (<= B 5.8e+65)
(- (/ (* t_5 (sqrt t_2)) t_7))
(* (sqrt (/ F B)) (- (sqrt 2.0))))))))))))))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 = fma(-4.0, (A * C), (B * B));
double t_1 = fma(B, B, (C * (-4.0 * A)));
double t_2 = A + (C + hypot(B, (A - C)));
double t_3 = (sqrt(t_0) * sqrt(F)) / (t_0 / -sqrt((2.0 * t_2)));
double t_4 = -4.0 * (A * C);
double t_5 = sqrt((2.0 * (F * fma(B, B, t_4))));
double t_6 = hypot(B, sqrt(t_4));
double t_7 = (B * B) + t_4;
double tmp;
if (B <= -3.2e+153) {
tmp = ((B * sqrt(2.0)) / t_6) * (sqrt((F * fma(-0.5, (A * (A / B)), (A - B)))) / t_6);
} else if (B <= -4.7e-35) {
tmp = t_3;
} else if (B <= -4.6e-70) {
tmp = (sqrt((A + (A + ((-0.5 * (B * B)) / C)))) * -t_5) / t_7;
} else if (B <= -5.2e-194) {
tmp = t_3;
} else if (B <= -8e-249) {
tmp = (sqrt((F * t_0)) * -sqrt((2.0 * (2.0 * C)))) / t_0;
} else if (B <= 2.8e-256) {
tmp = t_3;
} else if (B <= 9.2e-183) {
tmp = -(sqrt((2.0 * (t_1 * (F * (2.0 * C))))) / t_1);
} else if (B <= 4.2e-130) {
tmp = -sqrt((2.0 * ((A * (-4.0 * C)) * (F * (A + A))))) / t_1;
} else if (B <= 5.8e+65) {
tmp = -((t_5 * sqrt(t_2)) / t_7);
} else {
tmp = sqrt((F / B)) * -sqrt(2.0);
}
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 = fma(-4.0, Float64(A * C), Float64(B * B)) t_1 = fma(B, B, Float64(C * Float64(-4.0 * A))) t_2 = Float64(A + Float64(C + hypot(B, Float64(A - C)))) t_3 = Float64(Float64(sqrt(t_0) * sqrt(F)) / Float64(t_0 / Float64(-sqrt(Float64(2.0 * t_2))))) t_4 = Float64(-4.0 * Float64(A * C)) t_5 = sqrt(Float64(2.0 * Float64(F * fma(B, B, t_4)))) t_6 = hypot(B, sqrt(t_4)) t_7 = Float64(Float64(B * B) + t_4) tmp = 0.0 if (B <= -3.2e+153) tmp = Float64(Float64(Float64(B * sqrt(2.0)) / t_6) * Float64(sqrt(Float64(F * fma(-0.5, Float64(A * Float64(A / B)), Float64(A - B)))) / t_6)); elseif (B <= -4.7e-35) tmp = t_3; elseif (B <= -4.6e-70) tmp = Float64(Float64(sqrt(Float64(A + Float64(A + Float64(Float64(-0.5 * Float64(B * B)) / C)))) * Float64(-t_5)) / t_7); elseif (B <= -5.2e-194) tmp = t_3; elseif (B <= -8e-249) tmp = Float64(Float64(sqrt(Float64(F * t_0)) * Float64(-sqrt(Float64(2.0 * Float64(2.0 * C))))) / t_0); elseif (B <= 2.8e-256) tmp = t_3; elseif (B <= 9.2e-183) tmp = Float64(-Float64(sqrt(Float64(2.0 * Float64(t_1 * Float64(F * Float64(2.0 * C))))) / t_1)); elseif (B <= 4.2e-130) tmp = Float64(Float64(-sqrt(Float64(2.0 * Float64(Float64(A * Float64(-4.0 * C)) * Float64(F * Float64(A + A)))))) / t_1); elseif (B <= 5.8e+65) tmp = Float64(-Float64(Float64(t_5 * sqrt(t_2)) / t_7)); else tmp = Float64(sqrt(Float64(F / B)) * Float64(-sqrt(2.0))); 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[(-4.0 * N[(A * C), $MachinePrecision] + N[(B * B), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(B * B + N[(C * N[(-4.0 * A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(A + N[(C + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[Sqrt[t$95$0], $MachinePrecision] * N[Sqrt[F], $MachinePrecision]), $MachinePrecision] / N[(t$95$0 / (-N[Sqrt[N[(2.0 * t$95$2), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(-4.0 * N[(A * C), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[Sqrt[N[(2.0 * N[(F * N[(B * B + t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$6 = N[Sqrt[B ^ 2 + N[Sqrt[t$95$4], $MachinePrecision] ^ 2], $MachinePrecision]}, Block[{t$95$7 = N[(N[(B * B), $MachinePrecision] + t$95$4), $MachinePrecision]}, If[LessEqual[B, -3.2e+153], N[(N[(N[(B * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / t$95$6), $MachinePrecision] * N[(N[Sqrt[N[(F * N[(-0.5 * N[(A * N[(A / B), $MachinePrecision]), $MachinePrecision] + N[(A - B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$6), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, -4.7e-35], t$95$3, If[LessEqual[B, -4.6e-70], N[(N[(N[Sqrt[N[(A + N[(A + N[(N[(-0.5 * N[(B * B), $MachinePrecision]), $MachinePrecision] / C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * (-t$95$5)), $MachinePrecision] / t$95$7), $MachinePrecision], If[LessEqual[B, -5.2e-194], t$95$3, If[LessEqual[B, -8e-249], N[(N[(N[Sqrt[N[(F * t$95$0), $MachinePrecision]], $MachinePrecision] * (-N[Sqrt[N[(2.0 * N[(2.0 * C), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$0), $MachinePrecision], If[LessEqual[B, 2.8e-256], t$95$3, If[LessEqual[B, 9.2e-183], (-N[(N[Sqrt[N[(2.0 * N[(t$95$1 * N[(F * N[(2.0 * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$1), $MachinePrecision]), If[LessEqual[B, 4.2e-130], N[((-N[Sqrt[N[(2.0 * N[(N[(A * N[(-4.0 * C), $MachinePrecision]), $MachinePrecision] * N[(F * N[(A + A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$1), $MachinePrecision], If[LessEqual[B, 5.8e+65], (-N[(N[(t$95$5 * N[Sqrt[t$95$2], $MachinePrecision]), $MachinePrecision] / t$95$7), $MachinePrecision]), N[(N[Sqrt[N[(F / B), $MachinePrecision]], $MachinePrecision] * (-N[Sqrt[2.0], $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{fma}\left(-4, A \cdot C, B \cdot B\right)\\
t_1 := \mathsf{fma}\left(B, B, C \cdot \left(-4 \cdot A\right)\right)\\
t_2 := A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)\\
t_3 := \frac{\sqrt{t_0} \cdot \sqrt{F}}{\frac{t_0}{-\sqrt{2 \cdot t_2}}}\\
t_4 := -4 \cdot \left(A \cdot C\right)\\
t_5 := \sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, t_4\right)\right)}\\
t_6 := \mathsf{hypot}\left(B, \sqrt{t_4}\right)\\
t_7 := B \cdot B + t_4\\
\mathbf{if}\;B \leq -3.2 \cdot 10^{+153}:\\
\;\;\;\;\frac{B \cdot \sqrt{2}}{t_6} \cdot \frac{\sqrt{F \cdot \mathsf{fma}\left(-0.5, A \cdot \frac{A}{B}, A - B\right)}}{t_6}\\
\mathbf{elif}\;B \leq -4.7 \cdot 10^{-35}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;B \leq -4.6 \cdot 10^{-70}:\\
\;\;\;\;\frac{\sqrt{A + \left(A + \frac{-0.5 \cdot \left(B \cdot B\right)}{C}\right)} \cdot \left(-t_5\right)}{t_7}\\
\mathbf{elif}\;B \leq -5.2 \cdot 10^{-194}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;B \leq -8 \cdot 10^{-249}:\\
\;\;\;\;\frac{\sqrt{F \cdot t_0} \cdot \left(-\sqrt{2 \cdot \left(2 \cdot C\right)}\right)}{t_0}\\
\mathbf{elif}\;B \leq 2.8 \cdot 10^{-256}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;B \leq 9.2 \cdot 10^{-183}:\\
\;\;\;\;-\frac{\sqrt{2 \cdot \left(t_1 \cdot \left(F \cdot \left(2 \cdot C\right)\right)\right)}}{t_1}\\
\mathbf{elif}\;B \leq 4.2 \cdot 10^{-130}:\\
\;\;\;\;\frac{-\sqrt{2 \cdot \left(\left(A \cdot \left(-4 \cdot C\right)\right) \cdot \left(F \cdot \left(A + A\right)\right)\right)}}{t_1}\\
\mathbf{elif}\;B \leq 5.8 \cdot 10^{+65}:\\
\;\;\;\;-\frac{t_5 \cdot \sqrt{t_2}}{t_7}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\frac{F}{B}} \cdot \left(-\sqrt{2}\right)\\
\end{array}
if B < -3.2000000000000001e153Initial program 0.1%
Simplified0.1%
[Start]0.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}
\] |
|---|
Taylor expanded in B around -inf 0.1%
Taylor expanded in C around 0 1.4%
Simplified1.8%
[Start]1.4 | \[ \frac{-\left(\sqrt{2} \cdot B\right) \cdot \sqrt{F \cdot \left(A + \left(-0.5 \cdot \frac{{A}^{2}}{B} + -1 \cdot B\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
|---|---|
associate-*l* [=>]1.4 | \[ \frac{-\color{blue}{\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \left(A + \left(-0.5 \cdot \frac{{A}^{2}}{B} + -1 \cdot B\right)\right)}\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
+-commutative [=>]1.4 | \[ \frac{-\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \color{blue}{\left(\left(-0.5 \cdot \frac{{A}^{2}}{B} + -1 \cdot B\right) + A\right)}}\right)}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
associate-+r+ [<=]1.4 | \[ \frac{-\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \color{blue}{\left(-0.5 \cdot \frac{{A}^{2}}{B} + \left(-1 \cdot B + A\right)\right)}}\right)}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
+-commutative [<=]1.4 | \[ \frac{-\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \left(-0.5 \cdot \frac{{A}^{2}}{B} + \color{blue}{\left(A + -1 \cdot B\right)}\right)}\right)}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
fma-def [=>]1.4 | \[ \frac{-\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \color{blue}{\mathsf{fma}\left(-0.5, \frac{{A}^{2}}{B}, A + -1 \cdot B\right)}}\right)}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
unpow2 [=>]1.4 | \[ \frac{-\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \mathsf{fma}\left(-0.5, \frac{\color{blue}{A \cdot A}}{B}, A + -1 \cdot B\right)}\right)}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
associate-*r/ [<=]1.8 | \[ \frac{-\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \mathsf{fma}\left(-0.5, \color{blue}{A \cdot \frac{A}{B}}, A + -1 \cdot B\right)}\right)}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
mul-1-neg [=>]1.8 | \[ \frac{-\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \mathsf{fma}\left(-0.5, A \cdot \frac{A}{B}, A + \color{blue}{\left(-B\right)}\right)}\right)}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
unsub-neg [=>]1.8 | \[ \frac{-\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \mathsf{fma}\left(-0.5, A \cdot \frac{A}{B}, \color{blue}{A - B}\right)}\right)}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
Applied egg-rr24.6%
[Start]1.8 | \[ \frac{-\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \mathsf{fma}\left(-0.5, A \cdot \frac{A}{B}, A - B\right)}\right)}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
|---|---|
add-sqr-sqrt [=>]1.8 | \[ \frac{\color{blue}{\sqrt{-\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \mathsf{fma}\left(-0.5, A \cdot \frac{A}{B}, A - B\right)}\right)} \cdot \sqrt{-\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \mathsf{fma}\left(-0.5, A \cdot \frac{A}{B}, A - B\right)}\right)}}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
sqrt-unprod [=>]0.2 | \[ \frac{\color{blue}{\sqrt{\left(-\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \mathsf{fma}\left(-0.5, A \cdot \frac{A}{B}, A - B\right)}\right)\right) \cdot \left(-\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \mathsf{fma}\left(-0.5, A \cdot \frac{A}{B}, A - B\right)}\right)\right)}}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
sqr-neg [=>]0.2 | \[ \frac{\sqrt{\color{blue}{\left(\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \mathsf{fma}\left(-0.5, A \cdot \frac{A}{B}, A - B\right)}\right)\right) \cdot \left(\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \mathsf{fma}\left(-0.5, A \cdot \frac{A}{B}, A - B\right)}\right)\right)}}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
sqrt-unprod [<=]0.0 | \[ \frac{\color{blue}{\sqrt{\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \mathsf{fma}\left(-0.5, A \cdot \frac{A}{B}, A - B\right)}\right)} \cdot \sqrt{\sqrt{2} \cdot \left(B \cdot \sqrt{F \cdot \mathsf{fma}\left(-0.5, A \cdot \frac{A}{B}, A - B\right)}\right)}}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
if -3.2000000000000001e153 < B < -4.7e-35 or -4.60000000000000001e-70 < B < -5.20000000000000003e-194 or -8.00000000000000043e-249 < B < 2.80000000000000023e-256Initial program 23.1%
Simplified30.9%
[Start]23.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-rr39.3%
[Start]30.9 | \[ \frac{-\sqrt{\left(\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F\right) \cdot \left(2 \cdot \left(A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
|---|---|
sqrt-prod [=>]40.0 | \[ \frac{-\color{blue}{\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F} \cdot \sqrt{2 \cdot \left(A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)\right)}}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
associate-+r+ [=>]39.3 | \[ \frac{-\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F} \cdot \sqrt{2 \cdot \color{blue}{\left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)}}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
+-commutative [=>]39.3 | \[ \frac{-\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F} \cdot \sqrt{2 \cdot \color{blue}{\left(\mathsf{hypot}\left(B, A - C\right) + \left(A + C\right)\right)}}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
Applied egg-rr40.1%
[Start]39.3 | \[ \frac{-\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F} \cdot \sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \left(A + C\right)\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
|---|---|
distribute-rgt-neg-in [=>]39.3 | \[ \frac{\color{blue}{\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F} \cdot \left(-\sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \left(A + C\right)\right)}\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
*-un-lft-identity [=>]39.3 | \[ \frac{\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F} \cdot \left(-\sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \left(A + C\right)\right)}\right)}{\color{blue}{1 \cdot \mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}}
\] |
times-frac [=>]39.3 | \[ \color{blue}{\frac{\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F}}{1} \cdot \frac{-\sqrt{2 \cdot \left(\mathsf{hypot}\left(B, A - C\right) + \left(A + C\right)\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}}
\] |
associate-+r+ [=>]40.1 | \[ \frac{\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F}}{1} \cdot \frac{-\sqrt{2 \cdot \color{blue}{\left(\left(\mathsf{hypot}\left(B, A - C\right) + A\right) + C\right)}}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
+-commutative [=>]40.1 | \[ \frac{\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F}}{1} \cdot \frac{-\sqrt{2 \cdot \color{blue}{\left(C + \left(\mathsf{hypot}\left(B, A - C\right) + A\right)\right)}}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
+-commutative [=>]40.1 | \[ \frac{\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F}}{1} \cdot \frac{-\sqrt{2 \cdot \left(C + \color{blue}{\left(A + \mathsf{hypot}\left(B, A - C\right)\right)}\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
Simplified40.0%
[Start]40.1 | \[ \frac{\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F}}{1} \cdot \frac{-\sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
|---|---|
associate-*r/ [=>]40.1 | \[ \color{blue}{\frac{\frac{\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F}}{1} \cdot \left(-\sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)}\right)}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}}
\] |
/-rgt-identity [=>]40.1 | \[ \frac{\color{blue}{\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F}} \cdot \left(-\sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)}\right)}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
associate-/l* [=>]40.1 | \[ \color{blue}{\frac{\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F}}{\frac{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}{-\sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)}}}}
\] |
*-commutative [=>]40.1 | \[ \frac{\sqrt{\color{blue}{F \cdot \mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}}}{\frac{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}{-\sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)}}}
\] |
associate-+r+ [=>]39.3 | \[ \frac{\sqrt{F \cdot \mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}}{\frac{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}{-\sqrt{2 \cdot \color{blue}{\left(\left(C + A\right) + \mathsf{hypot}\left(B, A - C\right)\right)}}}}
\] |
+-commutative [<=]39.3 | \[ \frac{\sqrt{F \cdot \mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}}{\frac{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}{-\sqrt{2 \cdot \left(\color{blue}{\left(A + C\right)} + \mathsf{hypot}\left(B, A - C\right)\right)}}}
\] |
associate-+l+ [=>]40.0 | \[ \frac{\sqrt{F \cdot \mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}}{\frac{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}{-\sqrt{2 \cdot \color{blue}{\left(A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)\right)}}}}
\] |
Applied egg-rr38.6%
[Start]40.0 | \[ \frac{\sqrt{F \cdot \mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}}{\frac{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}{-\sqrt{2 \cdot \left(A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)\right)}}}
\] |
|---|---|
sqrt-prod [=>]38.6 | \[ \frac{\color{blue}{\sqrt{F} \cdot \sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}}}{\frac{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}{-\sqrt{2 \cdot \left(A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)\right)}}}
\] |
*-commutative [=>]38.6 | \[ \frac{\color{blue}{\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)} \cdot \sqrt{F}}}{\frac{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}{-\sqrt{2 \cdot \left(A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)\right)}}}
\] |
if -4.7e-35 < B < -4.60000000000000001e-70Initial program 28.9%
Simplified28.9%
[Start]28.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-rr41.4%
[Start]28.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* [=>]28.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 [=>]29.2 | \[ \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 [=>]29.2 | \[ \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 [=>]29.2 | \[ \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 [=>]29.2 | \[ \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 [=>]29.2 | \[ \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+ [=>]29.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 [=>]29.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 [=>]41.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)}
\] |
Simplified41.4%
[Start]41.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 [=>]41.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)}
\] |
*-commutative [=>]41.4 | \[ \frac{-\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\left(F \cdot \mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
Taylor expanded in C around -inf 16.0%
Simplified16.0%
[Start]16.0 | \[ \frac{-\sqrt{A + \left(A + -0.5 \cdot \frac{{B}^{2}}{C}\right)} \cdot \sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
|---|---|
associate-*r/ [=>]16.0 | \[ \frac{-\sqrt{A + \left(A + \color{blue}{\frac{-0.5 \cdot {B}^{2}}{C}}\right)} \cdot \sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
unpow2 [=>]16.0 | \[ \frac{-\sqrt{A + \left(A + \frac{-0.5 \cdot \color{blue}{\left(B \cdot B\right)}}{C}\right)} \cdot \sqrt{2 \cdot \left(F \cdot \mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right)\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
if -5.20000000000000003e-194 < B < -8.00000000000000043e-249Initial program 19.4%
Simplified30.7%
[Start]19.4 | \[ \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-rr32.0%
[Start]30.7 | \[ \frac{-\sqrt{\left(\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F\right) \cdot \left(2 \cdot \left(A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)\right)\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
|---|---|
sqrt-prod [=>]33.6 | \[ \frac{-\color{blue}{\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F} \cdot \sqrt{2 \cdot \left(A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)\right)}}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
associate-+r+ [=>]32.0 | \[ \frac{-\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F} \cdot \sqrt{2 \cdot \color{blue}{\left(\left(A + C\right) + \mathsf{hypot}\left(B, A - C\right)\right)}}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
+-commutative [=>]32.0 | \[ \frac{-\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F} \cdot \sqrt{2 \cdot \color{blue}{\left(\mathsf{hypot}\left(B, A - C\right) + \left(A + C\right)\right)}}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
Taylor expanded in A around -inf 21.0%
Simplified21.0%
[Start]21.0 | \[ \frac{-\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F} \cdot \sqrt{2 \cdot \left(2 \cdot C\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
|---|---|
*-commutative [=>]21.0 | \[ \frac{-\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F} \cdot \sqrt{2 \cdot \color{blue}{\left(C \cdot 2\right)}}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
if 2.80000000000000023e-256 < B < 9.20000000000000064e-183Initial program 17.9%
Simplified24.4%
[Start]17.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}
\] |
|---|
Taylor expanded in A around -inf 28.2%
if 9.20000000000000064e-183 < B < 4.20000000000000004e-130Initial program 20.3%
Simplified29.7%
[Start]20.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 24.8%
Taylor expanded in B around 0 24.3%
Simplified24.3%
[Start]24.3 | \[ \frac{-\sqrt{2 \cdot \left(\left(-4 \cdot \left(A \cdot C\right)\right) \cdot \left(F \cdot \left(A + A\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
|---|---|
associate-*r* [=>]24.3 | \[ \frac{-\sqrt{2 \cdot \left(\color{blue}{\left(\left(-4 \cdot A\right) \cdot C\right)} \cdot \left(F \cdot \left(A + A\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
*-commutative [<=]24.3 | \[ \frac{-\sqrt{2 \cdot \left(\left(\color{blue}{\left(A \cdot -4\right)} \cdot C\right) \cdot \left(F \cdot \left(A + A\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
associate-*l* [=>]24.3 | \[ \frac{-\sqrt{2 \cdot \left(\color{blue}{\left(A \cdot \left(-4 \cdot C\right)\right)} \cdot \left(F \cdot \left(A + A\right)\right)\right)}}{\mathsf{fma}\left(B, B, C \cdot \left(A \cdot -4\right)\right)}
\] |
if 4.20000000000000004e-130 < B < 5.8000000000000001e65Initial program 28.7%
Simplified28.7%
[Start]28.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-rr43.2%
[Start]28.7 | \[ \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* [=>]28.7 | \[ \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 [=>]31.9 | \[ \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 [=>]31.9 | \[ \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 [=>]31.9 | \[ \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 [=>]31.9 | \[ \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 [=>]31.9 | \[ \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+ [=>]32.3 | \[ \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 [=>]32.3 | \[ \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 [=>]43.2 | \[ \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)}
\] |
Simplified43.2%
[Start]43.2 | \[ \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 [=>]43.2 | \[ \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)}
\] |
*-commutative [=>]43.2 | \[ \frac{-\sqrt{A + \left(C + \mathsf{hypot}\left(B, A - C\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\left(F \cdot \mathsf{fma}\left(B, B, \left(A \cdot C\right) \cdot -4\right)\right)}}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
if 5.8000000000000001e65 < B Initial program 7.6%
Simplified7.6%
[Start]7.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}
\] |
|---|
Taylor expanded in A around 0 13.8%
Simplified13.8%
[Start]13.8 | \[ \frac{-\sqrt{\left(C + \sqrt{{B}^{2} + {C}^{2}}\right) \cdot F} \cdot \left(\sqrt{2} \cdot B\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
|---|---|
*-commutative [=>]13.8 | \[ \frac{-\sqrt{\color{blue}{F \cdot \left(C + \sqrt{{B}^{2} + {C}^{2}}\right)}} \cdot \left(\sqrt{2} \cdot B\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
unpow2 [=>]13.8 | \[ \frac{-\sqrt{F \cdot \left(C + \sqrt{\color{blue}{B \cdot B} + {C}^{2}}\right)} \cdot \left(\sqrt{2} \cdot B\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
unpow2 [=>]13.8 | \[ \frac{-\sqrt{F \cdot \left(C + \sqrt{B \cdot B + \color{blue}{C \cdot C}}\right)} \cdot \left(\sqrt{2} \cdot B\right)}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
*-commutative [=>]13.8 | \[ \frac{-\sqrt{F \cdot \left(C + \sqrt{B \cdot B + C \cdot C}\right)} \cdot \color{blue}{\left(B \cdot \sqrt{2}\right)}}{B \cdot B - 4 \cdot \left(A \cdot C\right)}
\] |
Taylor expanded in C around 0 46.8%
Simplified46.8%
[Start]46.8 | \[ -1 \cdot \left(\sqrt{2} \cdot \sqrt{\frac{F}{B}}\right)
\] |
|---|---|
mul-1-neg [=>]46.8 | \[ \color{blue}{-\sqrt{2} \cdot \sqrt{\frac{F}{B}}}
\] |
distribute-rgt-neg-in [=>]46.8 | \[ \color{blue}{\sqrt{2} \cdot \left(-\sqrt{\frac{F}{B}}\right)}
\] |
Final simplification36.5%
| Alternative 1 | |
|---|---|
| Accuracy | 41.6% |
| Cost | 149260 |
| Alternative 2 | |
|---|---|
| Accuracy | 34.1% |
| Cost | 40520 |
| Alternative 3 | |
|---|---|
| Accuracy | 35.1% |
| Cost | 33988 |
| Alternative 4 | |
|---|---|
| Accuracy | 31.6% |
| Cost | 28248 |
| Alternative 5 | |
|---|---|
| Accuracy | 32.5% |
| Cost | 28248 |
| Alternative 6 | |
|---|---|
| Accuracy | 29.5% |
| Cost | 27984 |
| Alternative 7 | |
|---|---|
| Accuracy | 35.1% |
| Cost | 27980 |
| Alternative 8 | |
|---|---|
| Accuracy | 31.6% |
| Cost | 27856 |
| Alternative 9 | |
|---|---|
| Accuracy | 31.7% |
| Cost | 27796 |
| Alternative 10 | |
|---|---|
| Accuracy | 31.9% |
| Cost | 27268 |
| Alternative 11 | |
|---|---|
| Accuracy | 29.0% |
| Cost | 21640 |
| Alternative 12 | |
|---|---|
| Accuracy | 26.4% |
| Cost | 21636 |
| Alternative 13 | |
|---|---|
| Accuracy | 28.3% |
| Cost | 21396 |
| Alternative 14 | |
|---|---|
| Accuracy | 29.0% |
| Cost | 21396 |
| Alternative 15 | |
|---|---|
| Accuracy | 29.8% |
| Cost | 15044 |
| Alternative 16 | |
|---|---|
| Accuracy | 25.8% |
| Cost | 14736 |
| Alternative 17 | |
|---|---|
| Accuracy | 21.9% |
| Cost | 14604 |
| Alternative 18 | |
|---|---|
| Accuracy | 17.1% |
| Cost | 14084 |
| Alternative 19 | |
|---|---|
| Accuracy | 19.1% |
| Cost | 13316 |
| Alternative 20 | |
|---|---|
| Accuracy | 10.8% |
| Cost | 8716 |
| Alternative 21 | |
|---|---|
| Accuracy | 14.4% |
| Cost | 8712 |
| Alternative 22 | |
|---|---|
| Accuracy | 15.4% |
| Cost | 8584 |
| Alternative 23 | |
|---|---|
| Accuracy | 10.3% |
| Cost | 8196 |
| Alternative 24 | |
|---|---|
| Accuracy | 9.9% |
| Cost | 8196 |
| Alternative 25 | |
|---|---|
| Accuracy | 10.8% |
| Cost | 8196 |
| Alternative 26 | |
|---|---|
| Accuracy | 9.7% |
| Cost | 7940 |
| Alternative 27 | |
|---|---|
| Accuracy | 4.3% |
| Cost | 6976 |
| Alternative 28 | |
|---|---|
| Accuracy | 2.9% |
| Cost | 6848 |
| Alternative 29 | |
|---|---|
| Accuracy | 2.9% |
| Cost | 6848 |
| Alternative 30 | |
|---|---|
| Accuracy | 2.8% |
| Cost | 6848 |
herbie shell --seed 2023125
(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))))