| Alternative 1 | |
|---|---|
| Error | 45.9 |
| Cost | 27984 |
(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 (sqrt (* 2.0 (+ C (+ A (hypot B (- A C)))))))
(t_1 (- (pow B 2.0) (* (* 4.0 A) C)))
(t_2
(/
(-
(sqrt
(*
(* 2.0 (* t_1 F))
(+ (+ A C) (sqrt (+ (pow B 2.0) (pow (- A C) 2.0)))))))
t_1))
(t_3 (fma -4.0 (* A C) (* B B)))
(t_4 (sqrt (* A -16.0))))
(if (<= t_2 -4e-229)
(* (* (sqrt t_3) (sqrt F)) (- (/ t_0 t_3)))
(if (<= t_2 0.0)
(* t_4 (* (sqrt F) (/ (- C) t_3)))
(if (<= t_2 INFINITY)
(* (sqrt (* F t_3)) (* t_0 (/ -1.0 t_3)))
(/ (* C (* (sqrt F) t_4)) t_3))))))double code(double A, double B, double C, double F) {
return -sqrt(((2.0 * ((pow(B, 2.0) - ((4.0 * A) * C)) * F)) * ((A + C) + sqrt((pow((A - C), 2.0) + pow(B, 2.0)))))) / (pow(B, 2.0) - ((4.0 * A) * C));
}
double code(double A, double B, double C, double F) {
double t_0 = sqrt((2.0 * (C + (A + hypot(B, (A - C))))));
double t_1 = pow(B, 2.0) - ((4.0 * A) * C);
double t_2 = -sqrt(((2.0 * (t_1 * F)) * ((A + C) + sqrt((pow(B, 2.0) + pow((A - C), 2.0)))))) / t_1;
double t_3 = fma(-4.0, (A * C), (B * B));
double t_4 = sqrt((A * -16.0));
double tmp;
if (t_2 <= -4e-229) {
tmp = (sqrt(t_3) * sqrt(F)) * -(t_0 / t_3);
} else if (t_2 <= 0.0) {
tmp = t_4 * (sqrt(F) * (-C / t_3));
} else if (t_2 <= ((double) INFINITY)) {
tmp = sqrt((F * t_3)) * (t_0 * (-1.0 / t_3));
} else {
tmp = (C * (sqrt(F) * t_4)) / t_3;
}
return tmp;
}
function code(A, B, C, F) return Float64(Float64(-sqrt(Float64(Float64(2.0 * Float64(Float64((B ^ 2.0) - Float64(Float64(4.0 * A) * C)) * F)) * Float64(Float64(A + C) + sqrt(Float64((Float64(A - C) ^ 2.0) + (B ^ 2.0))))))) / Float64((B ^ 2.0) - Float64(Float64(4.0 * A) * C))) end
function code(A, B, C, F) t_0 = sqrt(Float64(2.0 * Float64(C + Float64(A + hypot(B, Float64(A - C)))))) t_1 = Float64((B ^ 2.0) - Float64(Float64(4.0 * A) * C)) 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) t_3 = fma(-4.0, Float64(A * C), Float64(B * B)) t_4 = sqrt(Float64(A * -16.0)) tmp = 0.0 if (t_2 <= -4e-229) tmp = Float64(Float64(sqrt(t_3) * sqrt(F)) * Float64(-Float64(t_0 / t_3))); elseif (t_2 <= 0.0) tmp = Float64(t_4 * Float64(sqrt(F) * Float64(Float64(-C) / t_3))); elseif (t_2 <= Inf) tmp = Float64(sqrt(Float64(F * t_3)) * Float64(t_0 * Float64(-1.0 / t_3))); else tmp = Float64(Float64(C * Float64(sqrt(F) * t_4)) / t_3); end return tmp end
code[A_, B_, C_, F_] := N[((-N[Sqrt[N[(N[(2.0 * N[(N[(N[Power[B, 2.0], $MachinePrecision] - N[(N[(4.0 * A), $MachinePrecision] * C), $MachinePrecision]), $MachinePrecision] * F), $MachinePrecision]), $MachinePrecision] * N[(N[(A + C), $MachinePrecision] + N[Sqrt[N[(N[Power[N[(A - C), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[B, 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]) / N[(N[Power[B, 2.0], $MachinePrecision] - N[(N[(4.0 * A), $MachinePrecision] * C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[A_, B_, C_, F_] := Block[{t$95$0 = N[Sqrt[N[(2.0 * N[(C + N[(A + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(N[Power[B, 2.0], $MachinePrecision] - N[(N[(4.0 * A), $MachinePrecision] * C), $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]}, Block[{t$95$3 = N[(-4.0 * N[(A * C), $MachinePrecision] + N[(B * B), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[Sqrt[N[(A * -16.0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$2, -4e-229], N[(N[(N[Sqrt[t$95$3], $MachinePrecision] * N[Sqrt[F], $MachinePrecision]), $MachinePrecision] * (-N[(t$95$0 / t$95$3), $MachinePrecision])), $MachinePrecision], If[LessEqual[t$95$2, 0.0], N[(t$95$4 * N[(N[Sqrt[F], $MachinePrecision] * N[((-C) / t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, Infinity], N[(N[Sqrt[N[(F * t$95$3), $MachinePrecision]], $MachinePrecision] * N[(t$95$0 * N[(-1.0 / t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(C * N[(N[Sqrt[F], $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision] / t$95$3), $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 := \sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)}\\
t_1 := {B}^{2} - \left(4 \cdot A\right) \cdot C\\
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}\\
t_3 := \mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)\\
t_4 := \sqrt{A \cdot -16}\\
\mathbf{if}\;t_2 \leq -4 \cdot 10^{-229}:\\
\;\;\;\;\left(\sqrt{t_3} \cdot \sqrt{F}\right) \cdot \left(-\frac{t_0}{t_3}\right)\\
\mathbf{elif}\;t_2 \leq 0:\\
\;\;\;\;t_4 \cdot \left(\sqrt{F} \cdot \frac{-C}{t_3}\right)\\
\mathbf{elif}\;t_2 \leq \infty:\\
\;\;\;\;\sqrt{F \cdot t_3} \cdot \left(t_0 \cdot \frac{-1}{t_3}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{C \cdot \left(\sqrt{F} \cdot t_4\right)}{t_3}\\
\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))) < -4.00000000000000028e-229Initial program 37.6
Simplified31.5
[Start]37.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-rr23.2
Applied egg-rr22.7
Simplified22.7
[Start]22.7 | \[ \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)}
\] |
|---|---|
/-rgt-identity [=>]22.7 | \[ \color{blue}{\sqrt{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right) \cdot F}} \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)}
\] |
*-commutative [=>]22.7 | \[ \sqrt{\color{blue}{F \cdot \mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}} \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)}
\] |
*-commutative [=>]22.7 | \[ \sqrt{F \cdot \mathsf{fma}\left(-4, \color{blue}{C \cdot A}, B \cdot B\right)} \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)}
\] |
*-commutative [=>]22.7 | \[ \sqrt{F \cdot \mathsf{fma}\left(-4, C \cdot A, B \cdot B\right)} \cdot \frac{-\sqrt{2 \cdot \left(C + \left(A + \mathsf{hypot}\left(B, A - C\right)\right)\right)}}{\mathsf{fma}\left(-4, \color{blue}{C \cdot A}, B \cdot B\right)}
\] |
Applied egg-rr12.3
if -4.00000000000000028e-229 < (/.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))) < -0.0Initial program 61.8
Simplified59.5
[Start]61.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 52.8
Simplified52.8
[Start]52.8 | \[ \frac{-\sqrt{-16 \cdot \left(A \cdot \left({C}^{2} \cdot F\right)\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
|---|---|
associate-*r* [=>]52.8 | \[ \frac{-\sqrt{\color{blue}{\left(-16 \cdot A\right) \cdot \left({C}^{2} \cdot F\right)}}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
unpow2 [=>]52.8 | \[ \frac{-\sqrt{\left(-16 \cdot A\right) \cdot \left(\color{blue}{\left(C \cdot C\right)} \cdot F\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
Applied egg-rr58.3
Simplified50.9
[Start]58.3 | \[ \left(0 - e^{\mathsf{log1p}\left(\frac{\sqrt{-16 \cdot A} \cdot \left(C \cdot \sqrt{F}\right)}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}\right)}\right) + 1
\] |
|---|---|
associate-+l- [=>]58.3 | \[ \color{blue}{0 - \left(e^{\mathsf{log1p}\left(\frac{\sqrt{-16 \cdot A} \cdot \left(C \cdot \sqrt{F}\right)}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}\right)} - 1\right)}
\] |
expm1-def [=>]52.0 | \[ 0 - \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\frac{\sqrt{-16 \cdot A} \cdot \left(C \cdot \sqrt{F}\right)}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}\right)\right)}
\] |
expm1-log1p [=>]51.7 | \[ 0 - \color{blue}{\frac{\sqrt{-16 \cdot A} \cdot \left(C \cdot \sqrt{F}\right)}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}}
\] |
sub0-neg [=>]51.7 | \[ \color{blue}{-\frac{\sqrt{-16 \cdot A} \cdot \left(C \cdot \sqrt{F}\right)}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}}
\] |
associate-*r/ [<=]51.5 | \[ -\color{blue}{\sqrt{-16 \cdot A} \cdot \frac{C \cdot \sqrt{F}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}}
\] |
distribute-lft-neg-in [=>]51.5 | \[ \color{blue}{\left(-\sqrt{-16 \cdot A}\right) \cdot \frac{C \cdot \sqrt{F}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}}
\] |
*-commutative [=>]51.5 | \[ \left(-\sqrt{\color{blue}{A \cdot -16}}\right) \cdot \frac{C \cdot \sqrt{F}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
associate-/l* [=>]51.9 | \[ \left(-\sqrt{A \cdot -16}\right) \cdot \color{blue}{\frac{C}{\frac{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}{\sqrt{F}}}}
\] |
associate-/r/ [=>]50.9 | \[ \left(-\sqrt{A \cdot -16}\right) \cdot \color{blue}{\left(\frac{C}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)} \cdot \sqrt{F}\right)}
\] |
if -0.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))) < +inf.0Initial program 39.2
Simplified25.5
[Start]39.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-rr12.2
Applied egg-rr12.2
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 64.0
Simplified63.4
[Start]64.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}
\] |
|---|
Taylor expanded in A around -inf 61.9
Simplified61.9
[Start]61.9 | \[ \frac{-\sqrt{-16 \cdot \left(A \cdot \left({C}^{2} \cdot F\right)\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
|---|---|
associate-*r* [=>]61.9 | \[ \frac{-\sqrt{\color{blue}{\left(-16 \cdot A\right) \cdot \left({C}^{2} \cdot F\right)}}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
unpow2 [=>]61.9 | \[ \frac{-\sqrt{\left(-16 \cdot A\right) \cdot \left(\color{blue}{\left(C \cdot C\right)} \cdot F\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
Applied egg-rr63.1
Simplified59.8
[Start]63.1 | \[ \frac{-\left(\left(0 - e^{\mathsf{log1p}\left(\sqrt{-16 \cdot A} \cdot \left(C \cdot \sqrt{F}\right)\right)}\right) + 1\right)}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
|---|---|
associate-+l- [=>]63.1 | \[ \frac{-\color{blue}{\left(0 - \left(e^{\mathsf{log1p}\left(\sqrt{-16 \cdot A} \cdot \left(C \cdot \sqrt{F}\right)\right)} - 1\right)\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
expm1-def [=>]62.0 | \[ \frac{-\left(0 - \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\sqrt{-16 \cdot A} \cdot \left(C \cdot \sqrt{F}\right)\right)\right)}\right)}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
expm1-log1p [=>]60.1 | \[ \frac{-\left(0 - \color{blue}{\sqrt{-16 \cdot A} \cdot \left(C \cdot \sqrt{F}\right)}\right)}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
sub0-neg [=>]60.1 | \[ \frac{-\color{blue}{\left(-\sqrt{-16 \cdot A} \cdot \left(C \cdot \sqrt{F}\right)\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
mul-1-neg [<=]60.1 | \[ \frac{-\color{blue}{-1 \cdot \left(\sqrt{-16 \cdot A} \cdot \left(C \cdot \sqrt{F}\right)\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
associate-*r* [=>]60.1 | \[ \frac{-\color{blue}{\left(-1 \cdot \sqrt{-16 \cdot A}\right) \cdot \left(C \cdot \sqrt{F}\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
*-commutative [=>]60.1 | \[ \frac{-\color{blue}{\left(C \cdot \sqrt{F}\right) \cdot \left(-1 \cdot \sqrt{-16 \cdot A}\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
associate-*l* [=>]59.8 | \[ \frac{-\color{blue}{C \cdot \left(\sqrt{F} \cdot \left(-1 \cdot \sqrt{-16 \cdot A}\right)\right)}}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
mul-1-neg [=>]59.8 | \[ \frac{-C \cdot \left(\sqrt{F} \cdot \color{blue}{\left(-\sqrt{-16 \cdot A}\right)}\right)}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
*-commutative [=>]59.8 | \[ \frac{-C \cdot \left(\sqrt{F} \cdot \left(-\sqrt{\color{blue}{A \cdot -16}}\right)\right)}{\mathsf{fma}\left(-4, A \cdot C, B \cdot B\right)}
\] |
Final simplification38.1
| Alternative 1 | |
|---|---|
| Error | 45.9 |
| Cost | 27984 |
| Alternative 2 | |
|---|---|
| Error | 46.0 |
| Cost | 27984 |
| Alternative 3 | |
|---|---|
| Error | 46.6 |
| Cost | 27984 |
| Alternative 4 | |
|---|---|
| Error | 40.9 |
| Cost | 27716 |
| Alternative 5 | |
|---|---|
| Error | 45.9 |
| Cost | 20356 |
| Alternative 6 | |
|---|---|
| Error | 51.9 |
| Cost | 15184 |
| Alternative 7 | |
|---|---|
| Error | 45.7 |
| Cost | 15176 |
| Alternative 8 | |
|---|---|
| Error | 51.9 |
| Cost | 15056 |
| Alternative 9 | |
|---|---|
| Error | 52.0 |
| Cost | 14748 |
| Alternative 10 | |
|---|---|
| Error | 51.9 |
| Cost | 14748 |
| Alternative 11 | |
|---|---|
| Error | 52.7 |
| Cost | 14484 |
| Alternative 12 | |
|---|---|
| Error | 53.4 |
| Cost | 8848 |
| Alternative 13 | |
|---|---|
| Error | 53.3 |
| Cost | 8848 |
| Alternative 14 | |
|---|---|
| Error | 53.6 |
| Cost | 8584 |
| Alternative 15 | |
|---|---|
| Error | 54.7 |
| Cost | 8452 |
| Alternative 16 | |
|---|---|
| Error | 55.9 |
| Cost | 8196 |
| Alternative 17 | |
|---|---|
| Error | 55.9 |
| Cost | 7556 |
| Alternative 18 | |
|---|---|
| Error | 58.0 |
| Cost | 7492 |
| Alternative 19 | |
|---|---|
| Error | 62.0 |
| Cost | 6976 |
| Alternative 20 | |
|---|---|
| Error | 62.2 |
| Cost | 6848 |
| Alternative 21 | |
|---|---|
| Error | 62.0 |
| Cost | 6848 |
herbie shell --seed 2023018
(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))))