| Alternative 1 | |
|---|---|
| Error | 41.2 |
| Cost | 47052 |
(FPCore (A B C F)
:precision binary64
(/
(-
(sqrt
(*
(* 2.0 (* (- (pow B 2.0) (* (* 4.0 A) C)) F))
(- (+ A C) (sqrt (+ (pow (- A C) 2.0) (pow B 2.0)))))))
(- (pow B 2.0) (* (* 4.0 A) C))))(FPCore (A B C F)
:precision binary64
(let* ((t_0 (hypot B (- A C)))
(t_1 (fma A (* C -4.0) (* B B)))
(t_2 (* A (* C -4.0)))
(t_3 (sqrt (* F (+ C (- A t_0)))))
(t_4 (- (sqrt (* 2.0 t_1))))
(t_5 (log (* F -2.0)))
(t_6
(*
(sqrt (* F (- C (fma -1.0 C (* 0.5 (/ (* B B) (- A C)))))))
(/ t_4 t_1)))
(t_7 (fma B B t_2)))
(if (<= B -7e-19)
(* t_3 (/ (sqrt 2.0) B))
(if (<= B -4.4e-35)
(sqrt (/ (- F) A))
(if (<= B -3.3e-45)
t_6
(if (<= B -1e-136)
(/ (* t_4 (pow (exp (* 0.25 (- t_5 (log (/ -1.0 C))))) 2.0)) t_7)
(if (<= B -5e-164)
(/ (- (sqrt (* t_2 (* (+ A (- C t_0)) (* F 2.0))))) t_7)
(if (<= B 1.5e-203)
(/
(* t_4 (pow (exp (* 0.25 (- t_5 (log (/ -1.0 A))))) 2.0))
t_7)
(if (<= B 8e-30) t_6 (* t_3 (/ (- (sqrt 2.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 = fma(A, (C * -4.0), (B * B));
double t_2 = A * (C * -4.0);
double t_3 = sqrt((F * (C + (A - t_0))));
double t_4 = -sqrt((2.0 * t_1));
double t_5 = log((F * -2.0));
double t_6 = sqrt((F * (C - fma(-1.0, C, (0.5 * ((B * B) / (A - C))))))) * (t_4 / t_1);
double t_7 = fma(B, B, t_2);
double tmp;
if (B <= -7e-19) {
tmp = t_3 * (sqrt(2.0) / B);
} else if (B <= -4.4e-35) {
tmp = sqrt((-F / A));
} else if (B <= -3.3e-45) {
tmp = t_6;
} else if (B <= -1e-136) {
tmp = (t_4 * pow(exp((0.25 * (t_5 - log((-1.0 / C))))), 2.0)) / t_7;
} else if (B <= -5e-164) {
tmp = -sqrt((t_2 * ((A + (C - t_0)) * (F * 2.0)))) / t_7;
} else if (B <= 1.5e-203) {
tmp = (t_4 * pow(exp((0.25 * (t_5 - log((-1.0 / A))))), 2.0)) / t_7;
} else if (B <= 8e-30) {
tmp = t_6;
} else {
tmp = t_3 * (-sqrt(2.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 = fma(A, Float64(C * -4.0), Float64(B * B)) t_2 = Float64(A * Float64(C * -4.0)) t_3 = sqrt(Float64(F * Float64(C + Float64(A - t_0)))) t_4 = Float64(-sqrt(Float64(2.0 * t_1))) t_5 = log(Float64(F * -2.0)) t_6 = Float64(sqrt(Float64(F * Float64(C - fma(-1.0, C, Float64(0.5 * Float64(Float64(B * B) / Float64(A - C))))))) * Float64(t_4 / t_1)) t_7 = fma(B, B, t_2) tmp = 0.0 if (B <= -7e-19) tmp = Float64(t_3 * Float64(sqrt(2.0) / B)); elseif (B <= -4.4e-35) tmp = sqrt(Float64(Float64(-F) / A)); elseif (B <= -3.3e-45) tmp = t_6; elseif (B <= -1e-136) tmp = Float64(Float64(t_4 * (exp(Float64(0.25 * Float64(t_5 - log(Float64(-1.0 / C))))) ^ 2.0)) / t_7); elseif (B <= -5e-164) tmp = Float64(Float64(-sqrt(Float64(t_2 * Float64(Float64(A + Float64(C - t_0)) * Float64(F * 2.0))))) / t_7); elseif (B <= 1.5e-203) tmp = Float64(Float64(t_4 * (exp(Float64(0.25 * Float64(t_5 - log(Float64(-1.0 / A))))) ^ 2.0)) / t_7); elseif (B <= 8e-30) tmp = t_6; else tmp = Float64(t_3 * Float64(Float64(-sqrt(2.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] + N[(B * B), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(A * N[(C * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[Sqrt[N[(F * N[(C + N[(A - t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$4 = (-N[Sqrt[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision])}, Block[{t$95$5 = N[Log[N[(F * -2.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$6 = N[(N[Sqrt[N[(F * N[(C - N[(-1.0 * C + N[(0.5 * N[(N[(B * B), $MachinePrecision] / N[(A - C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(t$95$4 / t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(B * B + t$95$2), $MachinePrecision]}, If[LessEqual[B, -7e-19], N[(t$95$3 * N[(N[Sqrt[2.0], $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, -4.4e-35], N[Sqrt[N[((-F) / A), $MachinePrecision]], $MachinePrecision], If[LessEqual[B, -3.3e-45], t$95$6, If[LessEqual[B, -1e-136], N[(N[(t$95$4 * N[Power[N[Exp[N[(0.25 * N[(t$95$5 - N[Log[N[(-1.0 / C), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / t$95$7), $MachinePrecision], If[LessEqual[B, -5e-164], N[((-N[Sqrt[N[(t$95$2 * N[(N[(A + N[(C - t$95$0), $MachinePrecision]), $MachinePrecision] * N[(F * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$7), $MachinePrecision], If[LessEqual[B, 1.5e-203], N[(N[(t$95$4 * N[Power[N[Exp[N[(0.25 * N[(t$95$5 - N[Log[N[(-1.0 / A), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / t$95$7), $MachinePrecision], If[LessEqual[B, 8e-30], t$95$6, N[(t$95$3 * N[((-N[Sqrt[2.0], $MachinePrecision]) / B), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\frac{-\sqrt{\left(2 \cdot \left(\left({B}^{2} - \left(4 \cdot A\right) \cdot C\right) \cdot F\right)\right) \cdot \left(\left(A + C\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}}{{B}^{2} - \left(4 \cdot A\right) \cdot C}
\begin{array}{l}
t_0 := \mathsf{hypot}\left(B, A - C\right)\\
t_1 := \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)\\
t_2 := A \cdot \left(C \cdot -4\right)\\
t_3 := \sqrt{F \cdot \left(C + \left(A - t_0\right)\right)}\\
t_4 := -\sqrt{2 \cdot t_1}\\
t_5 := \log \left(F \cdot -2\right)\\
t_6 := \sqrt{F \cdot \left(C - \mathsf{fma}\left(-1, C, 0.5 \cdot \frac{B \cdot B}{A - C}\right)\right)} \cdot \frac{t_4}{t_1}\\
t_7 := \mathsf{fma}\left(B, B, t_2\right)\\
\mathbf{if}\;B \leq -7 \cdot 10^{-19}:\\
\;\;\;\;t_3 \cdot \frac{\sqrt{2}}{B}\\
\mathbf{elif}\;B \leq -4.4 \cdot 10^{-35}:\\
\;\;\;\;\sqrt{\frac{-F}{A}}\\
\mathbf{elif}\;B \leq -3.3 \cdot 10^{-45}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;B \leq -1 \cdot 10^{-136}:\\
\;\;\;\;\frac{t_4 \cdot {\left(e^{0.25 \cdot \left(t_5 - \log \left(\frac{-1}{C}\right)\right)}\right)}^{2}}{t_7}\\
\mathbf{elif}\;B \leq -5 \cdot 10^{-164}:\\
\;\;\;\;\frac{-\sqrt{t_2 \cdot \left(\left(A + \left(C - t_0\right)\right) \cdot \left(F \cdot 2\right)\right)}}{t_7}\\
\mathbf{elif}\;B \leq 1.5 \cdot 10^{-203}:\\
\;\;\;\;\frac{t_4 \cdot {\left(e^{0.25 \cdot \left(t_5 - \log \left(\frac{-1}{A}\right)\right)}\right)}^{2}}{t_7}\\
\mathbf{elif}\;B \leq 8 \cdot 10^{-30}:\\
\;\;\;\;t_6\\
\mathbf{else}:\\
\;\;\;\;t_3 \cdot \frac{-\sqrt{2}}{B}\\
\end{array}
if B < -7.00000000000000031e-19Initial program 54.1
Simplified52.0
[Start]54.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-rr47.9
Simplified47.9
[Start]47.9 | \[ \frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
|---|---|
*-commutative [=>]47.9 | \[ \frac{-\color{blue}{\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
fma-def [<=]47.9 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\left(B \cdot B + A \cdot \left(-4 \cdot C\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
unpow2 [<=]47.9 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \left(\color{blue}{{B}^{2}} + A \cdot \left(-4 \cdot C\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
+-commutative [=>]47.9 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\left(A \cdot \left(-4 \cdot C\right) + {B}^{2}\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
fma-def [=>]47.9 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\mathsf{fma}\left(A, -4 \cdot C, {B}^{2}\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
*-commutative [=>]47.9 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(A, \color{blue}{C \cdot -4}, {B}^{2}\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
unpow2 [=>]47.9 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, \color{blue}{B \cdot B}\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
Applied egg-rr47.9
Simplified47.9
[Start]47.9 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}\right)
\] |
|---|---|
distribute-lft-neg-out [=>]47.9 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \color{blue}{\left(-\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)} \cdot \frac{1}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}\right)}
\] |
associate-*r/ [=>]47.9 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \left(-\color{blue}{\frac{\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)} \cdot 1}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}}\right)
\] |
*-rgt-identity [=>]47.9 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \left(-\frac{\color{blue}{\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}}}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}\right)
\] |
distribute-frac-neg [<=]47.9 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \color{blue}{\frac{-\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}}
\] |
Taylor expanded in B around -inf 33.4
if -7.00000000000000031e-19 < B < -4.39999999999999987e-35Initial program 34.3
Simplified30.3
[Start]34.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}
\] |
|---|
Applied egg-rr30.4
Simplified30.4
[Start]30.4 | \[ \frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
|---|---|
*-commutative [=>]30.4 | \[ \frac{-\color{blue}{\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
fma-def [<=]30.4 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\left(B \cdot B + A \cdot \left(-4 \cdot C\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
unpow2 [<=]30.4 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \left(\color{blue}{{B}^{2}} + A \cdot \left(-4 \cdot C\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
+-commutative [=>]30.4 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\left(A \cdot \left(-4 \cdot C\right) + {B}^{2}\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
fma-def [=>]30.4 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\mathsf{fma}\left(A, -4 \cdot C, {B}^{2}\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
*-commutative [=>]30.4 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(A, \color{blue}{C \cdot -4}, {B}^{2}\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
unpow2 [=>]30.4 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, \color{blue}{B \cdot B}\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
Applied egg-rr62.0
Simplified61.4
[Start]62.0 | \[ \sqrt{\frac{F \cdot \left(\left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right) \cdot \left(2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)\right)\right)}{{\left(\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)\right)}^{2}}}
\] |
|---|---|
associate-/l* [=>]61.4 | \[ \sqrt{\color{blue}{\frac{F}{\frac{{\left(\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)\right)}^{2}}{\left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right) \cdot \left(2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)\right)}}}}
\] |
associate-/r/ [=>]61.5 | \[ \sqrt{\color{blue}{\frac{F}{{\left(\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)\right)}^{2}} \cdot \left(\left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right) \cdot \left(2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)\right)\right)}}
\] |
*-commutative [=>]61.5 | \[ \sqrt{\frac{F}{{\left(\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)\right)}^{2}} \cdot \color{blue}{\left(\left(2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)\right) \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)\right)}}
\] |
associate--r- [=>]61.4 | \[ \sqrt{\frac{F}{{\left(\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)\right)}^{2}} \cdot \left(\left(2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)\right) \cdot \color{blue}{\left(\left(C - \mathsf{hypot}\left(B, A - C\right)\right) + A\right)}\right)}
\] |
+-commutative [=>]61.4 | \[ \sqrt{\frac{F}{{\left(\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)\right)}^{2}} \cdot \left(\left(2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)\right) \cdot \color{blue}{\left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)}\right)}
\] |
Taylor expanded in C around -inf 58.6
Simplified58.6
[Start]58.6 | \[ \sqrt{-1 \cdot \frac{F}{A}}
\] |
|---|---|
associate-*r/ [=>]58.6 | \[ \sqrt{\color{blue}{\frac{-1 \cdot F}{A}}}
\] |
neg-mul-1 [<=]58.6 | \[ \sqrt{\frac{\color{blue}{-F}}{A}}
\] |
if -4.39999999999999987e-35 < B < -3.3000000000000001e-45 or 1.5000000000000001e-203 < B < 8.000000000000001e-30Initial program 48.1
Simplified43.0
[Start]48.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-rr46.5
Simplified46.5
[Start]46.5 | \[ \frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
|---|---|
*-commutative [=>]46.5 | \[ \frac{-\color{blue}{\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
fma-def [<=]46.5 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\left(B \cdot B + A \cdot \left(-4 \cdot C\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
unpow2 [<=]46.5 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \left(\color{blue}{{B}^{2}} + A \cdot \left(-4 \cdot C\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
+-commutative [=>]46.5 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\left(A \cdot \left(-4 \cdot C\right) + {B}^{2}\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
fma-def [=>]46.5 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\mathsf{fma}\left(A, -4 \cdot C, {B}^{2}\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
*-commutative [=>]46.5 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(A, \color{blue}{C \cdot -4}, {B}^{2}\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
unpow2 [=>]46.5 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, \color{blue}{B \cdot B}\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
Applied egg-rr46.8
Simplified46.5
[Start]46.8 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}\right)
\] |
|---|---|
distribute-lft-neg-out [=>]46.8 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \color{blue}{\left(-\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)} \cdot \frac{1}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}\right)}
\] |
associate-*r/ [=>]46.5 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \left(-\color{blue}{\frac{\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)} \cdot 1}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}}\right)
\] |
*-rgt-identity [=>]46.5 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \left(-\frac{\color{blue}{\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}}}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}\right)
\] |
distribute-frac-neg [<=]46.5 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \color{blue}{\frac{-\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}}
\] |
Taylor expanded in B around 0 53.2
Simplified53.2
[Start]53.2 | \[ \sqrt{F \cdot \left(C - \left(-1 \cdot C + 0.5 \cdot \frac{{B}^{2}}{A - C}\right)\right)} \cdot \frac{-\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}
\] |
|---|---|
fma-def [=>]53.2 | \[ \sqrt{F \cdot \left(C - \color{blue}{\mathsf{fma}\left(-1, C, 0.5 \cdot \frac{{B}^{2}}{A - C}\right)}\right)} \cdot \frac{-\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}
\] |
unpow2 [=>]53.2 | \[ \sqrt{F \cdot \left(C - \mathsf{fma}\left(-1, C, 0.5 \cdot \frac{\color{blue}{B \cdot B}}{A - C}\right)\right)} \cdot \frac{-\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}
\] |
if -3.3000000000000001e-45 < B < -1e-136Initial program 48.0
Simplified42.2
[Start]48.0 | \[ \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-rr42.5
Simplified42.5
[Start]42.5 | \[ \frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
|---|---|
*-commutative [=>]42.5 | \[ \frac{-\color{blue}{\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
fma-def [<=]42.5 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\left(B \cdot B + A \cdot \left(-4 \cdot C\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
unpow2 [<=]42.5 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \left(\color{blue}{{B}^{2}} + A \cdot \left(-4 \cdot C\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
+-commutative [=>]42.5 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\left(A \cdot \left(-4 \cdot C\right) + {B}^{2}\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
fma-def [=>]42.5 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\mathsf{fma}\left(A, -4 \cdot C, {B}^{2}\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
*-commutative [=>]42.5 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(A, \color{blue}{C \cdot -4}, {B}^{2}\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
unpow2 [=>]42.5 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, \color{blue}{B \cdot B}\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
Applied egg-rr42.5
Taylor expanded in C around -inf 50.2
if -1e-136 < B < -4.99999999999999962e-164Initial program 52.8
Simplified47.4
[Start]52.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 49.6
Simplified49.6
[Start]49.6 | \[ \frac{-\sqrt{\left(-4 \cdot \left(A \cdot C\right)\right) \cdot \left(\left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(2 \cdot F\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}
\] |
|---|---|
*-commutative [=>]49.6 | \[ \frac{-\sqrt{\color{blue}{\left(\left(A \cdot C\right) \cdot -4\right)} \cdot \left(\left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(2 \cdot F\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}
\] |
associate-*r* [<=]49.6 | \[ \frac{-\sqrt{\color{blue}{\left(A \cdot \left(C \cdot -4\right)\right)} \cdot \left(\left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(2 \cdot F\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}
\] |
if -4.99999999999999962e-164 < B < 1.5000000000000001e-203Initial program 53.7
Simplified47.8
[Start]53.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-rr54.2
Simplified54.2
[Start]54.2 | \[ \frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
|---|---|
*-commutative [=>]54.2 | \[ \frac{-\color{blue}{\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
fma-def [<=]54.2 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\left(B \cdot B + A \cdot \left(-4 \cdot C\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
unpow2 [<=]54.2 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \left(\color{blue}{{B}^{2}} + A \cdot \left(-4 \cdot C\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
+-commutative [=>]54.2 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\left(A \cdot \left(-4 \cdot C\right) + {B}^{2}\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
fma-def [=>]54.2 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\mathsf{fma}\left(A, -4 \cdot C, {B}^{2}\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
*-commutative [=>]54.2 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(A, \color{blue}{C \cdot -4}, {B}^{2}\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
unpow2 [=>]54.2 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, \color{blue}{B \cdot B}\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
Applied egg-rr54.3
Taylor expanded in A around -inf 53.9
if 8.000000000000001e-30 < B Initial program 53.5
Simplified51.2
[Start]53.5 | \[ \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-rr46.9
Simplified46.9
[Start]46.9 | \[ \frac{-\sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)} \cdot \sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
|---|---|
*-commutative [=>]46.9 | \[ \frac{-\color{blue}{\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
fma-def [<=]46.9 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\left(B \cdot B + A \cdot \left(-4 \cdot C\right)\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
unpow2 [<=]46.9 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \left(\color{blue}{{B}^{2}} + A \cdot \left(-4 \cdot C\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
+-commutative [=>]46.9 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\left(A \cdot \left(-4 \cdot C\right) + {B}^{2}\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
fma-def [=>]46.9 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \color{blue}{\mathsf{fma}\left(A, -4 \cdot C, {B}^{2}\right)}}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
*-commutative [=>]46.9 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(A, \color{blue}{C \cdot -4}, {B}^{2}\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
unpow2 [=>]46.9 | \[ \frac{-\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, \color{blue}{B \cdot B}\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
Applied egg-rr46.9
Simplified46.9
[Start]46.9 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \left(\left(-\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}\right) \cdot \frac{1}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}\right)
\] |
|---|---|
distribute-lft-neg-out [=>]46.9 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \color{blue}{\left(-\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)} \cdot \frac{1}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}\right)}
\] |
associate-*r/ [=>]46.9 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \left(-\color{blue}{\frac{\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)} \cdot 1}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}}\right)
\] |
*-rgt-identity [=>]46.9 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \left(-\frac{\color{blue}{\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}}}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}\right)
\] |
distribute-frac-neg [<=]46.9 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \color{blue}{\frac{-\sqrt{2 \cdot \mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}}{\mathsf{fma}\left(A, C \cdot -4, B \cdot B\right)}}
\] |
Taylor expanded in A around 0 33.5
Simplified33.5
[Start]33.5 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \left(-1 \cdot \frac{\sqrt{2}}{B}\right)
\] |
|---|---|
mul-1-neg [=>]33.5 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \color{blue}{\left(-\frac{\sqrt{2}}{B}\right)}
\] |
distribute-neg-frac [=>]33.5 | \[ \sqrt{F \cdot \left(C - \left(\mathsf{hypot}\left(B, A - C\right) - A\right)\right)} \cdot \color{blue}{\frac{-\sqrt{2}}{B}}
\] |
Final simplification42.5
| Alternative 1 | |
|---|---|
| Error | 41.2 |
| Cost | 47052 |
| Alternative 2 | |
|---|---|
| Error | 41.7 |
| Cost | 34836 |
| Alternative 3 | |
|---|---|
| Error | 41.1 |
| Cost | 20688 |
| Alternative 4 | |
|---|---|
| Error | 42.6 |
| Cost | 20228 |
| Alternative 5 | |
|---|---|
| Error | 43.9 |
| Cost | 15632 |
| Alternative 6 | |
|---|---|
| Error | 49.2 |
| Cost | 13964 |
| Alternative 7 | |
|---|---|
| Error | 44.7 |
| Cost | 13964 |
| Alternative 8 | |
|---|---|
| Error | 51.3 |
| Cost | 8716 |
| Alternative 9 | |
|---|---|
| Error | 51.4 |
| Cost | 8456 |
| Alternative 10 | |
|---|---|
| Error | 54.4 |
| Cost | 8072 |
| Alternative 11 | |
|---|---|
| Error | 55.5 |
| Cost | 6921 |
| Alternative 12 | |
|---|---|
| Error | 56.7 |
| Cost | 6656 |
| Alternative 13 | |
|---|---|
| Error | 63.3 |
| Cost | 6592 |
herbie shell --seed 2023045
(FPCore (A B C F)
:name "ABCF->ab-angle b"
:precision binary64
(/ (- (sqrt (* (* 2.0 (* (- (pow B 2.0) (* (* 4.0 A) C)) F)) (- (+ A C) (sqrt (+ (pow (- A C) 2.0) (pow B 2.0))))))) (- (pow B 2.0) (* (* 4.0 A) C))))