| Alternative 1 | |
|---|---|
| Error | 63.38% |
| Cost | 28820 |
(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 B B (* A (* C -4.0))))
(t_1 (+ (pow B 2.0) (* C (* A -4.0))))
(t_2
(/
(-
(sqrt
(*
(* 2.0 (* t_1 F))
(- (+ A C) (sqrt (+ (pow B 2.0) (pow (- A C) 2.0)))))))
t_1)))
(if (<= t_2 -2e-191)
(/
(* (sqrt (* F (+ A (- C (hypot B (- A C)))))) (- (sqrt (* 2.0 t_0))))
t_0)
(if (<= t_2 2e+224)
(/
(-
(sqrt
(*
t_0
(*
(+ A (+ A (/ -0.5 (/ C (+ (* B B) (- (* A A) (pow (- A) 2.0)))))))
(* 2.0 F)))))
t_0)
(if (<= t_2 INFINITY)
(sqrt (/ 2.0 (* -2.0 (/ C F))))
(* (pow (pow (* F (- C (hypot B C))) 0.25) 2.0) (/ (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 = fma(B, B, (A * (C * -4.0)));
double t_1 = pow(B, 2.0) + (C * (A * -4.0));
double t_2 = -sqrt(((2.0 * (t_1 * F)) * ((A + C) - sqrt((pow(B, 2.0) + pow((A - C), 2.0)))))) / t_1;
double tmp;
if (t_2 <= -2e-191) {
tmp = (sqrt((F * (A + (C - hypot(B, (A - C)))))) * -sqrt((2.0 * t_0))) / t_0;
} else if (t_2 <= 2e+224) {
tmp = -sqrt((t_0 * ((A + (A + (-0.5 / (C / ((B * B) + ((A * A) - pow(-A, 2.0))))))) * (2.0 * F)))) / t_0;
} else if (t_2 <= ((double) INFINITY)) {
tmp = sqrt((2.0 / (-2.0 * (C / F))));
} else {
tmp = pow(pow((F * (C - hypot(B, C))), 0.25), 2.0) * (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 = fma(B, B, Float64(A * Float64(C * -4.0))) t_1 = Float64((B ^ 2.0) + Float64(C * Float64(A * -4.0))) t_2 = Float64(Float64(-sqrt(Float64(Float64(2.0 * Float64(t_1 * F)) * Float64(Float64(A + C) - sqrt(Float64((B ^ 2.0) + (Float64(A - C) ^ 2.0))))))) / t_1) tmp = 0.0 if (t_2 <= -2e-191) tmp = Float64(Float64(sqrt(Float64(F * Float64(A + Float64(C - hypot(B, Float64(A - C)))))) * Float64(-sqrt(Float64(2.0 * t_0)))) / t_0); elseif (t_2 <= 2e+224) tmp = Float64(Float64(-sqrt(Float64(t_0 * Float64(Float64(A + Float64(A + Float64(-0.5 / Float64(C / Float64(Float64(B * B) + Float64(Float64(A * A) - (Float64(-A) ^ 2.0))))))) * Float64(2.0 * F))))) / t_0); elseif (t_2 <= Inf) tmp = sqrt(Float64(2.0 / Float64(-2.0 * Float64(C / F)))); else tmp = Float64(((Float64(F * Float64(C - hypot(B, C))) ^ 0.25) ^ 2.0) * 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[(B * B + N[(A * N[(C * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[Power[B, 2.0], $MachinePrecision] + N[(C * N[(A * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-N[Sqrt[N[(N[(2.0 * N[(t$95$1 * F), $MachinePrecision]), $MachinePrecision] * N[(N[(A + C), $MachinePrecision] - N[Sqrt[N[(N[Power[B, 2.0], $MachinePrecision] + N[Power[N[(A - C), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$1), $MachinePrecision]}, If[LessEqual[t$95$2, -2e-191], N[(N[(N[Sqrt[N[(F * N[(A + N[(C - N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * (-N[Sqrt[N[(2.0 * t$95$0), $MachinePrecision]], $MachinePrecision])), $MachinePrecision] / t$95$0), $MachinePrecision], If[LessEqual[t$95$2, 2e+224], N[((-N[Sqrt[N[(t$95$0 * N[(N[(A + N[(A + N[(-0.5 / N[(C / N[(N[(B * B), $MachinePrecision] + N[(N[(A * A), $MachinePrecision] - N[Power[(-A), 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(2.0 * F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / t$95$0), $MachinePrecision], If[LessEqual[t$95$2, Infinity], N[Sqrt[N[(2.0 / N[(-2.0 * N[(C / F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[Power[N[Power[N[(F * N[(C - N[Sqrt[B ^ 2 + C ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 0.25], $MachinePrecision], 2.0], $MachinePrecision] * 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{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\\
t_1 := {B}^{2} + C \cdot \left(A \cdot -4\right)\\
t_2 := \frac{-\sqrt{\left(2 \cdot \left(t_1 \cdot F\right)\right) \cdot \left(\left(A + C\right) - \sqrt{{B}^{2} + {\left(A - C\right)}^{2}}\right)}}{t_1}\\
\mathbf{if}\;t_2 \leq -2 \cdot 10^{-191}:\\
\;\;\;\;\frac{\sqrt{F \cdot \left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right)} \cdot \left(-\sqrt{2 \cdot t_0}\right)}{t_0}\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{+224}:\\
\;\;\;\;\frac{-\sqrt{t_0 \cdot \left(\left(A + \left(A + \frac{-0.5}{\frac{C}{B \cdot B + \left(A \cdot A - {\left(-A\right)}^{2}\right)}}\right)\right) \cdot \left(2 \cdot F\right)\right)}}{t_0}\\
\mathbf{elif}\;t_2 \leq \infty:\\
\;\;\;\;\sqrt{\frac{2}{-2 \cdot \frac{C}{F}}}\\
\mathbf{else}:\\
\;\;\;\;{\left({\left(F \cdot \left(C - \mathsf{hypot}\left(B, C\right)\right)\right)}^{0.25}\right)}^{2} \cdot \frac{\sqrt{2}}{B}\\
\end{array}
if (/.f64 (neg.f64 (sqrt.f64 (*.f64 (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) F)) (-.f64 (+.f64 A C) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2))))))) (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C))) < -2e-191Initial program 58.37
Simplified49.74
[Start]58.37 | \[ \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-rr34.44
Simplified34.44
[Start]34.44 | \[ \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 [=>]34.44 | \[ \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)}
\] |
*-commutative [=>]34.44 | \[ \frac{-\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 \color{blue}{\left(C \cdot -4\right)}\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}
\] |
if -2e-191 < (/.f64 (neg.f64 (sqrt.f64 (*.f64 (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) F)) (-.f64 (+.f64 A C) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2))))))) (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C))) < 1.99999999999999994e224Initial program 77.49
Simplified73.52
[Start]77.49 | \[ \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 68.41
Simplified68.69
[Start]68.41 | \[ \frac{-\sqrt{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(\left(A + \left(A + -0.5 \cdot \frac{\left({B}^{2} + {A}^{2}\right) - {\left(-1 \cdot A\right)}^{2}}{C}\right)\right) \cdot \left(2 \cdot F\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}
\] |
|---|---|
associate-*r/ [=>]68.41 | \[ \frac{-\sqrt{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(\left(A + \left(A + \color{blue}{\frac{-0.5 \cdot \left(\left({B}^{2} + {A}^{2}\right) - {\left(-1 \cdot A\right)}^{2}\right)}{C}}\right)\right) \cdot \left(2 \cdot F\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}
\] |
associate-/l* [=>]68.4 | \[ \frac{-\sqrt{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(\left(A + \left(A + \color{blue}{\frac{-0.5}{\frac{C}{\left({B}^{2} + {A}^{2}\right) - {\left(-1 \cdot A\right)}^{2}}}}\right)\right) \cdot \left(2 \cdot F\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}
\] |
associate--l+ [=>]68.68 | \[ \frac{-\sqrt{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(\left(A + \left(A + \frac{-0.5}{\frac{C}{\color{blue}{{B}^{2} + \left({A}^{2} - {\left(-1 \cdot A\right)}^{2}\right)}}}\right)\right) \cdot \left(2 \cdot F\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}
\] |
unpow2 [=>]68.68 | \[ \frac{-\sqrt{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(\left(A + \left(A + \frac{-0.5}{\frac{C}{\color{blue}{B \cdot B} + \left({A}^{2} - {\left(-1 \cdot A\right)}^{2}\right)}}\right)\right) \cdot \left(2 \cdot F\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}
\] |
unpow2 [=>]68.69 | \[ \frac{-\sqrt{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(\left(A + \left(A + \frac{-0.5}{\frac{C}{B \cdot B + \left(\color{blue}{A \cdot A} - {\left(-1 \cdot A\right)}^{2}\right)}}\right)\right) \cdot \left(2 \cdot F\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}
\] |
mul-1-neg [=>]68.69 | \[ \frac{-\sqrt{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right) \cdot \left(\left(A + \left(A + \frac{-0.5}{\frac{C}{B \cdot B + \left(A \cdot A - {\color{blue}{\left(-A\right)}}^{2}\right)}}\right)\right) \cdot \left(2 \cdot F\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)}
\] |
if 1.99999999999999994e224 < (/.f64 (neg.f64 (sqrt.f64 (*.f64 (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) F)) (-.f64 (+.f64 A C) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2))))))) (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C))) < +inf.0Initial program 94.42
Simplified66.57
[Start]94.42 | \[ \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-rr80.94
Simplified73.53
[Start]80.94 | \[ \sqrt{\frac{2 \cdot \left(\left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot F\right)\right)}{{\left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)\right)}^{2}}}
\] |
|---|---|
associate-/l* [=>]80.94 | \[ \sqrt{\color{blue}{\frac{2}{\frac{{\left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)\right)}^{2}}{\left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot F\right)}}}}
\] |
associate-/r* [=>]73.53 | \[ \sqrt{\frac{2}{\color{blue}{\frac{\frac{{\left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)\right)}^{2}}{A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot F}}}}
\] |
*-commutative [=>]73.53 | \[ \sqrt{\frac{2}{\frac{\frac{{\left(\mathsf{fma}\left(B, B, A \cdot \color{blue}{\left(C \cdot -4\right)}\right)\right)}^{2}}{A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot F}}}
\] |
*-commutative [=>]73.53 | \[ \sqrt{\frac{2}{\frac{\frac{{\left(\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right)}^{2}}{A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)}}{\color{blue}{F \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}}}
\] |
*-commutative [=>]73.53 | \[ \sqrt{\frac{2}{\frac{\frac{{\left(\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right)}^{2}}{A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)}}{F \cdot \mathsf{fma}\left(B, B, A \cdot \color{blue}{\left(C \cdot -4\right)}\right)}}}
\] |
Taylor expanded in A around -inf 61.14
if +inf.0 < (/.f64 (neg.f64 (sqrt.f64 (*.f64 (*.f64 2 (*.f64 (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C)) F)) (-.f64 (+.f64 A C) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) 2) (pow.f64 B 2))))))) (-.f64 (pow.f64 B 2) (*.f64 (*.f64 4 A) C))) Initial program 100
Simplified98.61
[Start]100 | \[ \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-rr99.25
Simplified99.34
[Start]99.25 | \[ \sqrt{\frac{2 \cdot \left(\left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot F\right)\right)}{{\left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)\right)}^{2}}}
\] |
|---|---|
associate-/l* [=>]99.26 | \[ \sqrt{\color{blue}{\frac{2}{\frac{{\left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)\right)}^{2}}{\left(A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)\right) \cdot \left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot F\right)}}}}
\] |
associate-/r* [=>]99.34 | \[ \sqrt{\frac{2}{\color{blue}{\frac{\frac{{\left(\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)\right)}^{2}}{A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot F}}}}
\] |
*-commutative [=>]99.34 | \[ \sqrt{\frac{2}{\frac{\frac{{\left(\mathsf{fma}\left(B, B, A \cdot \color{blue}{\left(C \cdot -4\right)}\right)\right)}^{2}}{A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)}}{\mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right) \cdot F}}}
\] |
*-commutative [=>]99.34 | \[ \sqrt{\frac{2}{\frac{\frac{{\left(\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right)}^{2}}{A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)}}{\color{blue}{F \cdot \mathsf{fma}\left(B, B, A \cdot \left(-4 \cdot C\right)\right)}}}}
\] |
*-commutative [=>]99.34 | \[ \sqrt{\frac{2}{\frac{\frac{{\left(\mathsf{fma}\left(B, B, A \cdot \left(C \cdot -4\right)\right)\right)}^{2}}{A + \left(C - \mathsf{hypot}\left(B, A - C\right)\right)}}{F \cdot \mathsf{fma}\left(B, B, A \cdot \color{blue}{\left(C \cdot -4\right)}\right)}}}
\] |
Taylor expanded in A around 0 99.41
Simplified99.41
[Start]99.41 | \[ \sqrt{\left(C - \sqrt{{B}^{2} + {C}^{2}}\right) \cdot F} \cdot \frac{\sqrt{2}}{B}
\] |
|---|---|
*-commutative [=>]99.41 | \[ \sqrt{\color{blue}{F \cdot \left(C - \sqrt{{B}^{2} + {C}^{2}}\right)}} \cdot \frac{\sqrt{2}}{B}
\] |
unpow2 [=>]99.41 | \[ \sqrt{F \cdot \left(C - \sqrt{\color{blue}{B \cdot B} + {C}^{2}}\right)} \cdot \frac{\sqrt{2}}{B}
\] |
unpow2 [=>]99.41 | \[ \sqrt{F \cdot \left(C - \sqrt{B \cdot B + \color{blue}{C \cdot C}}\right)} \cdot \frac{\sqrt{2}}{B}
\] |
Applied egg-rr83.45
Final simplification63.07
| Alternative 1 | |
|---|---|
| Error | 63.38% |
| Cost | 28820 |
| Alternative 2 | |
|---|---|
| Error | 62.56% |
| Cost | 27984 |
| Alternative 3 | |
|---|---|
| Error | 62.54% |
| Cost | 27984 |
| Alternative 4 | |
|---|---|
| Error | 67.22% |
| Cost | 26500 |
| Alternative 5 | |
|---|---|
| Error | 67.15% |
| Cost | 22228 |
| Alternative 6 | |
|---|---|
| Error | 67.74% |
| Cost | 21000 |
| Alternative 7 | |
|---|---|
| Error | 67.35% |
| Cost | 20488 |
| Alternative 8 | |
|---|---|
| Error | 67.1% |
| Cost | 20488 |
| Alternative 9 | |
|---|---|
| Error | 72.65% |
| Cost | 19972 |
| Alternative 10 | |
|---|---|
| Error | 76.09% |
| Cost | 14872 |
| Alternative 11 | |
|---|---|
| Error | 74.66% |
| Cost | 14736 |
| Alternative 12 | |
|---|---|
| Error | 81.29% |
| Cost | 14689 |
| Alternative 13 | |
|---|---|
| Error | 76.33% |
| Cost | 14608 |
| Alternative 14 | |
|---|---|
| Error | 76.23% |
| Cost | 14608 |
| Alternative 15 | |
|---|---|
| Error | 77.83% |
| Cost | 13896 |
| Alternative 16 | |
|---|---|
| Error | 77.28% |
| Cost | 13508 |
| Alternative 17 | |
|---|---|
| Error | 82.57% |
| Cost | 9228 |
| Alternative 18 | |
|---|---|
| Error | 84.91% |
| Cost | 8717 |
| Alternative 19 | |
|---|---|
| Error | 82.8% |
| Cost | 8716 |
| Alternative 20 | |
|---|---|
| Error | 82.34% |
| Cost | 8716 |
| Alternative 21 | |
|---|---|
| Error | 82.59% |
| Cost | 8716 |
| Alternative 22 | |
|---|---|
| Error | 84.5% |
| Cost | 7245 |
| Alternative 23 | |
|---|---|
| Error | 88.84% |
| Cost | 6848 |
| Alternative 24 | |
|---|---|
| Error | 98.16% |
| Cost | 6720 |
| Alternative 25 | |
|---|---|
| Error | 98.13% |
| Cost | 6720 |
herbie shell --seed 2023090
(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))))