| Alternative 1 | |
|---|---|
| Accuracy | 81.5% |
| Cost | 20164 |

(FPCore (A B C) :precision binary64 (* 180.0 (/ (atan (* (/ 1.0 B) (- (- C A) (sqrt (+ (pow (- A C) 2.0) (pow B 2.0)))))) PI)))
(FPCore (A B C) :precision binary64 (if (<= C 4.6e+107) (/ (atan (/ (- (- C A) (hypot B (- A C))) B)) (* PI 0.005555555555555556)) (/ (atan (/ B (/ C -0.5))) (* PI 0.005555555555555556))))
double code(double A, double B, double C) {
return 180.0 * (atan(((1.0 / B) * ((C - A) - sqrt((pow((A - C), 2.0) + pow(B, 2.0)))))) / ((double) M_PI));
}
double code(double A, double B, double C) {
double tmp;
if (C <= 4.6e+107) {
tmp = atan((((C - A) - hypot(B, (A - C))) / B)) / (((double) M_PI) * 0.005555555555555556);
} else {
tmp = atan((B / (C / -0.5))) / (((double) M_PI) * 0.005555555555555556);
}
return tmp;
}
public static double code(double A, double B, double C) {
return 180.0 * (Math.atan(((1.0 / B) * ((C - A) - Math.sqrt((Math.pow((A - C), 2.0) + Math.pow(B, 2.0)))))) / Math.PI);
}
public static double code(double A, double B, double C) {
double tmp;
if (C <= 4.6e+107) {
tmp = Math.atan((((C - A) - Math.hypot(B, (A - C))) / B)) / (Math.PI * 0.005555555555555556);
} else {
tmp = Math.atan((B / (C / -0.5))) / (Math.PI * 0.005555555555555556);
}
return tmp;
}
def code(A, B, C): return 180.0 * (math.atan(((1.0 / B) * ((C - A) - math.sqrt((math.pow((A - C), 2.0) + math.pow(B, 2.0)))))) / math.pi)
def code(A, B, C): tmp = 0 if C <= 4.6e+107: tmp = math.atan((((C - A) - math.hypot(B, (A - C))) / B)) / (math.pi * 0.005555555555555556) else: tmp = math.atan((B / (C / -0.5))) / (math.pi * 0.005555555555555556) return tmp
function code(A, B, C) return Float64(180.0 * Float64(atan(Float64(Float64(1.0 / B) * Float64(Float64(C - A) - sqrt(Float64((Float64(A - C) ^ 2.0) + (B ^ 2.0)))))) / pi)) end
function code(A, B, C) tmp = 0.0 if (C <= 4.6e+107) tmp = Float64(atan(Float64(Float64(Float64(C - A) - hypot(B, Float64(A - C))) / B)) / Float64(pi * 0.005555555555555556)); else tmp = Float64(atan(Float64(B / Float64(C / -0.5))) / Float64(pi * 0.005555555555555556)); end return tmp end
function tmp = code(A, B, C) tmp = 180.0 * (atan(((1.0 / B) * ((C - A) - sqrt((((A - C) ^ 2.0) + (B ^ 2.0)))))) / pi); end
function tmp_2 = code(A, B, C) tmp = 0.0; if (C <= 4.6e+107) tmp = atan((((C - A) - hypot(B, (A - C))) / B)) / (pi * 0.005555555555555556); else tmp = atan((B / (C / -0.5))) / (pi * 0.005555555555555556); end tmp_2 = tmp; end
code[A_, B_, C_] := N[(180.0 * N[(N[ArcTan[N[(N[(1.0 / B), $MachinePrecision] * N[(N[(C - A), $MachinePrecision] - N[Sqrt[N[(N[Power[N[(A - C), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[B, 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]
code[A_, B_, C_] := If[LessEqual[C, 4.6e+107], N[(N[ArcTan[N[(N[(N[(C - A), $MachinePrecision] - N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision] / N[(Pi * 0.005555555555555556), $MachinePrecision]), $MachinePrecision], N[(N[ArcTan[N[(B / N[(C / -0.5), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[(Pi * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]]
180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\left(C - A\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)\right)}{\pi}
\begin{array}{l}
\mathbf{if}\;C \leq 4.6 \cdot 10^{+107}:\\
\;\;\;\;\frac{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right)}{\pi \cdot 0.005555555555555556}\\
\mathbf{else}:\\
\;\;\;\;\frac{\tan^{-1} \left(\frac{B}{\frac{C}{-0.5}}\right)}{\pi \cdot 0.005555555555555556}\\
\end{array}
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
Results
if C < 4.6000000000000001e107Initial program 64.8%
Simplified82.8%
[Start]64.8% | \[ 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\left(C - A\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)\right)}{\pi}
\] |
|---|---|
associate-*l/ [=>]64.8% | \[ 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{1 \cdot \left(\left(C - A\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}{B}\right)}}{\pi}
\] |
*-lft-identity [=>]64.8% | \[ 180 \cdot \frac{\tan^{-1} \left(\frac{\color{blue}{\left(C - A\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}}}{B}\right)}{\pi}
\] |
+-commutative [=>]64.8% | \[ 180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}}{B}\right)}{\pi}
\] |
unpow2 [=>]64.8% | \[ 180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}}{B}\right)}{\pi}
\] |
unpow2 [=>]64.8% | \[ 180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}}{B}\right)}{\pi}
\] |
hypot-def [=>]82.8% | \[ 180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \color{blue}{\mathsf{hypot}\left(B, A - C\right)}}{B}\right)}{\pi}
\] |
Applied egg-rr77.5%
[Start]82.8% | \[ 180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right)}{\pi}
\] |
|---|---|
associate-*r/ [=>]82.8% | \[ \color{blue}{\frac{180 \cdot \tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right)}{\pi}}
\] |
associate--r+ [<=]77.4% | \[ \frac{180 \cdot \tan^{-1} \left(\frac{\color{blue}{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B}\right)}{\pi}
\] |
associate-*l/ [<=]77.4% | \[ \color{blue}{\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}{B}\right)}
\] |
*-commutative [=>]77.4% | \[ \color{blue}{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}{B}\right) \cdot \frac{180}{\pi}}
\] |
associate--r+ [=>]82.8% | \[ \tan^{-1} \left(\frac{\color{blue}{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}}{B}\right) \cdot \frac{180}{\pi}
\] |
clear-num [=>]82.8% | \[ \tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right) \cdot \color{blue}{\frac{1}{\frac{\pi}{180}}}
\] |
un-div-inv [=>]82.8% | \[ \color{blue}{\frac{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right)}{\frac{\pi}{180}}}
\] |
associate--r+ [<=]77.5% | \[ \frac{\tan^{-1} \left(\frac{\color{blue}{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B}\right)}{\frac{\pi}{180}}
\] |
div-inv [=>]77.5% | \[ \frac{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}{B}\right)}{\color{blue}{\pi \cdot \frac{1}{180}}}
\] |
metadata-eval [=>]77.5% | \[ \frac{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}{B}\right)}{\pi \cdot \color{blue}{0.005555555555555556}}
\] |
Simplified82.8%
[Start]77.5% | \[ \frac{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
|---|---|
associate--r+ [=>]82.8% | \[ \frac{\tan^{-1} \left(\frac{\color{blue}{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
if 4.6000000000000001e107 < C Initial program 15.4%
Simplified42.4%
[Start]15.4% | \[ 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\left(C - A\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)\right)}{\pi}
\] |
|---|---|
associate-*l/ [=>]15.4% | \[ 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{1 \cdot \left(\left(C - A\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)}{B}\right)}}{\pi}
\] |
*-lft-identity [=>]15.4% | \[ 180 \cdot \frac{\tan^{-1} \left(\frac{\color{blue}{\left(C - A\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}}}{B}\right)}{\pi}
\] |
+-commutative [=>]15.4% | \[ 180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}}{B}\right)}{\pi}
\] |
unpow2 [=>]15.4% | \[ 180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \sqrt{\color{blue}{B \cdot B} + {\left(A - C\right)}^{2}}}{B}\right)}{\pi}
\] |
unpow2 [=>]15.4% | \[ 180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \sqrt{B \cdot B + \color{blue}{\left(A - C\right) \cdot \left(A - C\right)}}}{B}\right)}{\pi}
\] |
hypot-def [=>]42.4% | \[ 180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \color{blue}{\mathsf{hypot}\left(B, A - C\right)}}{B}\right)}{\pi}
\] |
Applied egg-rr42.4%
[Start]42.4% | \[ 180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right)}{\pi}
\] |
|---|---|
associate-*r/ [=>]42.4% | \[ \color{blue}{\frac{180 \cdot \tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right)}{\pi}}
\] |
associate--r+ [<=]42.4% | \[ \frac{180 \cdot \tan^{-1} \left(\frac{\color{blue}{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B}\right)}{\pi}
\] |
associate-*l/ [<=]42.4% | \[ \color{blue}{\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}{B}\right)}
\] |
*-commutative [=>]42.4% | \[ \color{blue}{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}{B}\right) \cdot \frac{180}{\pi}}
\] |
associate--r+ [=>]42.4% | \[ \tan^{-1} \left(\frac{\color{blue}{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}}{B}\right) \cdot \frac{180}{\pi}
\] |
clear-num [=>]42.4% | \[ \tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right) \cdot \color{blue}{\frac{1}{\frac{\pi}{180}}}
\] |
un-div-inv [=>]42.4% | \[ \color{blue}{\frac{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right)}{\frac{\pi}{180}}}
\] |
associate--r+ [<=]42.4% | \[ \frac{\tan^{-1} \left(\frac{\color{blue}{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}}{B}\right)}{\frac{\pi}{180}}
\] |
div-inv [=>]42.4% | \[ \frac{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}{B}\right)}{\color{blue}{\pi \cdot \frac{1}{180}}}
\] |
metadata-eval [=>]42.4% | \[ \frac{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}{B}\right)}{\pi \cdot \color{blue}{0.005555555555555556}}
\] |
Simplified42.4%
[Start]42.4% | \[ \frac{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
|---|---|
associate--r+ [=>]42.4% | \[ \frac{\tan^{-1} \left(\frac{\color{blue}{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
Taylor expanded in C around inf 55.5%
Simplified67.4%
[Start]55.5% | \[ \frac{\tan^{-1} \left(\frac{-0.5 \cdot \frac{\left({B}^{2} + {A}^{2}\right) - {\left(-1 \cdot A\right)}^{2}}{C} + -1 \cdot \left(A + -1 \cdot A\right)}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
|---|---|
fma-def [=>]55.5% | \[ \frac{\tan^{-1} \left(\frac{\color{blue}{\mathsf{fma}\left(-0.5, \frac{\left({B}^{2} + {A}^{2}\right) - {\left(-1 \cdot A\right)}^{2}}{C}, -1 \cdot \left(A + -1 \cdot A\right)\right)}}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
associate--l+ [=>]59.7% | \[ \frac{\tan^{-1} \left(\frac{\mathsf{fma}\left(-0.5, \frac{\color{blue}{{B}^{2} + \left({A}^{2} - {\left(-1 \cdot A\right)}^{2}\right)}}{C}, -1 \cdot \left(A + -1 \cdot A\right)\right)}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
unpow2 [=>]59.7% | \[ \frac{\tan^{-1} \left(\frac{\mathsf{fma}\left(-0.5, \frac{\color{blue}{B \cdot B} + \left({A}^{2} - {\left(-1 \cdot A\right)}^{2}\right)}{C}, -1 \cdot \left(A + -1 \cdot A\right)\right)}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
fma-def [=>]59.7% | \[ \frac{\tan^{-1} \left(\frac{\mathsf{fma}\left(-0.5, \frac{\color{blue}{\mathsf{fma}\left(B, B, {A}^{2} - {\left(-1 \cdot A\right)}^{2}\right)}}{C}, -1 \cdot \left(A + -1 \cdot A\right)\right)}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
unpow2 [=>]59.7% | \[ \frac{\tan^{-1} \left(\frac{\mathsf{fma}\left(-0.5, \frac{\mathsf{fma}\left(B, B, \color{blue}{A \cdot A} - {\left(-1 \cdot A\right)}^{2}\right)}{C}, -1 \cdot \left(A + -1 \cdot A\right)\right)}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
unpow2 [=>]59.7% | \[ \frac{\tan^{-1} \left(\frac{\mathsf{fma}\left(-0.5, \frac{\mathsf{fma}\left(B, B, A \cdot A - \color{blue}{\left(-1 \cdot A\right) \cdot \left(-1 \cdot A\right)}\right)}{C}, -1 \cdot \left(A + -1 \cdot A\right)\right)}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
difference-of-squares [=>]67.4% | \[ \frac{\tan^{-1} \left(\frac{\mathsf{fma}\left(-0.5, \frac{\mathsf{fma}\left(B, B, \color{blue}{\left(A + -1 \cdot A\right) \cdot \left(A - -1 \cdot A\right)}\right)}{C}, -1 \cdot \left(A + -1 \cdot A\right)\right)}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
distribute-rgt1-in [=>]67.4% | \[ \frac{\tan^{-1} \left(\frac{\mathsf{fma}\left(-0.5, \frac{\mathsf{fma}\left(B, B, \color{blue}{\left(\left(-1 + 1\right) \cdot A\right)} \cdot \left(A - -1 \cdot A\right)\right)}{C}, -1 \cdot \left(A + -1 \cdot A\right)\right)}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
metadata-eval [=>]67.4% | \[ \frac{\tan^{-1} \left(\frac{\mathsf{fma}\left(-0.5, \frac{\mathsf{fma}\left(B, B, \left(\color{blue}{0} \cdot A\right) \cdot \left(A - -1 \cdot A\right)\right)}{C}, -1 \cdot \left(A + -1 \cdot A\right)\right)}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
mul0-lft [=>]67.4% | \[ \frac{\tan^{-1} \left(\frac{\mathsf{fma}\left(-0.5, \frac{\mathsf{fma}\left(B, B, \color{blue}{0} \cdot \left(A - -1 \cdot A\right)\right)}{C}, -1 \cdot \left(A + -1 \cdot A\right)\right)}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
mul-1-neg [=>]67.4% | \[ \frac{\tan^{-1} \left(\frac{\mathsf{fma}\left(-0.5, \frac{\mathsf{fma}\left(B, B, 0 \cdot \left(A - \color{blue}{\left(-A\right)}\right)\right)}{C}, -1 \cdot \left(A + -1 \cdot A\right)\right)}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
distribute-rgt1-in [=>]67.4% | \[ \frac{\tan^{-1} \left(\frac{\mathsf{fma}\left(-0.5, \frac{\mathsf{fma}\left(B, B, 0 \cdot \left(A - \left(-A\right)\right)\right)}{C}, -1 \cdot \color{blue}{\left(\left(-1 + 1\right) \cdot A\right)}\right)}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
metadata-eval [=>]67.4% | \[ \frac{\tan^{-1} \left(\frac{\mathsf{fma}\left(-0.5, \frac{\mathsf{fma}\left(B, B, 0 \cdot \left(A - \left(-A\right)\right)\right)}{C}, -1 \cdot \left(\color{blue}{0} \cdot A\right)\right)}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
mul0-lft [=>]67.4% | \[ \frac{\tan^{-1} \left(\frac{\mathsf{fma}\left(-0.5, \frac{\mathsf{fma}\left(B, B, 0 \cdot \left(A - \left(-A\right)\right)\right)}{C}, -1 \cdot \color{blue}{0}\right)}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
metadata-eval [=>]67.4% | \[ \frac{\tan^{-1} \left(\frac{\mathsf{fma}\left(-0.5, \frac{\mathsf{fma}\left(B, B, 0 \cdot \left(A - \left(-A\right)\right)\right)}{C}, \color{blue}{0}\right)}{B}\right)}{\pi \cdot 0.005555555555555556}
\] |
Taylor expanded in B around 0 89.7%
Simplified89.7%
[Start]89.7% | \[ \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi \cdot 0.005555555555555556}
\] |
|---|---|
associate-*r/ [=>]89.7% | \[ \frac{\tan^{-1} \color{blue}{\left(\frac{-0.5 \cdot B}{C}\right)}}{\pi \cdot 0.005555555555555556}
\] |
*-commutative [=>]89.7% | \[ \frac{\tan^{-1} \left(\frac{\color{blue}{B \cdot -0.5}}{C}\right)}{\pi \cdot 0.005555555555555556}
\] |
associate-/l* [=>]89.7% | \[ \frac{\tan^{-1} \color{blue}{\left(\frac{B}{\frac{C}{-0.5}}\right)}}{\pi \cdot 0.005555555555555556}
\] |
Final simplification84.1%
| Alternative 1 | |
|---|---|
| Accuracy | 81.5% |
| Cost | 20164 |
| Alternative 2 | |
|---|---|
| Accuracy | 81.5% |
| Cost | 20164 |
| Alternative 3 | |
|---|---|
| Accuracy | 78.5% |
| Cost | 20104 |
| Alternative 4 | |
|---|---|
| Accuracy | 75.0% |
| Cost | 20040 |
| Alternative 5 | |
|---|---|
| Accuracy | 46.4% |
| Cost | 14040 |
| Alternative 6 | |
|---|---|
| Accuracy | 46.1% |
| Cost | 13712 |
| Alternative 7 | |
|---|---|
| Accuracy | 52.0% |
| Cost | 13708 |
| Alternative 8 | |
|---|---|
| Accuracy | 52.0% |
| Cost | 13708 |
| Alternative 9 | |
|---|---|
| Accuracy | 56.4% |
| Cost | 13708 |
| Alternative 10 | |
|---|---|
| Accuracy | 56.4% |
| Cost | 13708 |
| Alternative 11 | |
|---|---|
| Accuracy | 56.4% |
| Cost | 13708 |
| Alternative 12 | |
|---|---|
| Accuracy | 61.1% |
| Cost | 13704 |
| Alternative 13 | |
|---|---|
| Accuracy | 61.1% |
| Cost | 13704 |
| Alternative 14 | |
|---|---|
| Accuracy | 61.2% |
| Cost | 13704 |
| Alternative 15 | |
|---|---|
| Accuracy | 47.7% |
| Cost | 13644 |
| Alternative 16 | |
|---|---|
| Accuracy | 61.1% |
| Cost | 13576 |
| Alternative 17 | |
|---|---|
| Accuracy | 44.7% |
| Cost | 13448 |
| Alternative 18 | |
|---|---|
| Accuracy | 40.3% |
| Cost | 13188 |
| Alternative 19 | |
|---|---|
| Accuracy | 20.9% |
| Cost | 13056 |
herbie shell --seed 2023263
(FPCore (A B C)
:name "ABCF->ab-angle angle"
:precision binary64
(* 180.0 (/ (atan (* (/ 1.0 B) (- (- C A) (sqrt (+ (pow (- A C) 2.0) (pow B 2.0)))))) PI)))