Math FPCore C Java Python Julia MATLAB Wolfram TeX \[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}\;A \leq -1.22 \cdot 10^{+99}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(0.5 \cdot \frac{B}{A}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right)}{\pi}\\
\end{array}
\]
(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 (<= A -1.22e+99)
(/ (* 180.0 (atan (* 0.5 (/ B A)))) PI)
(* 180.0 (/ (atan (/ (- (- C A) (hypot B (- A C))) B)) PI)))) 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 (A <= -1.22e+99) {
tmp = (180.0 * atan((0.5 * (B / A)))) / ((double) M_PI);
} else {
tmp = 180.0 * (atan((((C - A) - hypot(B, (A - C))) / B)) / ((double) M_PI));
}
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 (A <= -1.22e+99) {
tmp = (180.0 * Math.atan((0.5 * (B / A)))) / Math.PI;
} else {
tmp = 180.0 * (Math.atan((((C - A) - Math.hypot(B, (A - C))) / B)) / Math.PI);
}
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 A <= -1.22e+99:
tmp = (180.0 * math.atan((0.5 * (B / A)))) / math.pi
else:
tmp = 180.0 * (math.atan((((C - A) - math.hypot(B, (A - C))) / B)) / math.pi)
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 (A <= -1.22e+99)
tmp = Float64(Float64(180.0 * atan(Float64(0.5 * Float64(B / A)))) / pi);
else
tmp = Float64(180.0 * Float64(atan(Float64(Float64(Float64(C - A) - hypot(B, Float64(A - C))) / B)) / pi));
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 (A <= -1.22e+99)
tmp = (180.0 * atan((0.5 * (B / A)))) / pi;
else
tmp = 180.0 * (atan((((C - A) - hypot(B, (A - C))) / B)) / pi);
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[A, -1.22e+99], N[(N[(180.0 * N[ArcTan[N[(0.5 * N[(B / A), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(N[(N[(C - A), $MachinePrecision] - N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision] / Pi), $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}\;A \leq -1.22 \cdot 10^{+99}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(0.5 \cdot \frac{B}{A}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right)}{\pi}\\
\end{array}
Alternatives Alternative 1 Error 13.8 Cost 20168
\[\begin{array}{l}
\mathbf{if}\;A \leq -1.06 \cdot 10^{+99}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(0.5 \cdot \frac{B}{A}\right)}{\pi}\\
\mathbf{elif}\;A \leq 9.5 \cdot 10^{-139}:\\
\;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C - \mathsf{hypot}\left(B, C\right)}{B}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A\right)\right)}{B}\right)}{\pi}\\
\end{array}
\]
Alternative 2 Error 14.1 Cost 20104
\[\begin{array}{l}
\mathbf{if}\;A \leq -8 \cdot 10^{+98}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(0.5 \cdot \frac{B}{A}\right)}{\pi}\\
\mathbf{elif}\;A \leq 5.2 \cdot 10^{-41}:\\
\;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C - \mathsf{hypot}\left(B, C\right)}{B}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{\left(-A\right) - \mathsf{hypot}\left(B, A\right)}{B}\right)\\
\end{array}
\]
Alternative 3 Error 15.5 Cost 20040
\[\begin{array}{l}
\mathbf{if}\;A \leq -3.4 \cdot 10^{+98}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(0.5 \cdot \frac{B}{A}\right)}{\pi}\\
\mathbf{elif}\;A \leq 1.75 \cdot 10^{+97}:\\
\;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C - \mathsf{hypot}\left(B, C\right)}{B}\right)\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 + \frac{C - A}{B}\right)}{\pi}\\
\end{array}
\]
Alternative 4 Error 33.4 Cost 13972
\[\begin{array}{l}
t_0 := \frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C}{B}\right)\\
t_1 := 180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\
\mathbf{if}\;B \leq -4.7 \cdot 10^{-49}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} 1}{\pi}\\
\mathbf{elif}\;B \leq 8.5 \cdot 10^{-268}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;B \leq 1.35 \cdot 10^{-106}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;B \leq 1.05 \cdot 10^{-73}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;B \leq 8.6 \cdot 10^{+24}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} -1}{\pi}\\
\end{array}
\]
Alternative 5 Error 29.4 Cost 13972
\[\begin{array}{l}
t_0 := \tan^{-1} \left(\frac{C - B}{B}\right)\\
\mathbf{if}\;A \leq -2.05 \cdot 10^{+34}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{\frac{B}{2}}{A}\right)}{\pi}\\
\mathbf{elif}\;A \leq 2.5 \cdot 10^{-201}:\\
\;\;\;\;\frac{\frac{t_0}{\pi}}{0.005555555555555556}\\
\mathbf{elif}\;A \leq 3.4 \cdot 10^{-74}:\\
\;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)\\
\mathbf{elif}\;A \leq 6 \cdot 10^{+16}:\\
\;\;\;\;\frac{180}{\pi} \cdot t_0\\
\mathbf{elif}\;A \leq 8.2 \cdot 10^{+156}:\\
\;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{B + C}{B}\right)\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{A \cdot -2}{B}\right)}{\pi}\\
\end{array}
\]
Alternative 6 Error 26.5 Cost 13968
\[\begin{array}{l}
t_0 := \frac{C - A}{B}\\
\mathbf{if}\;A \leq -1.16 \cdot 10^{+35}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{\frac{B}{2}}{A}\right)}{\pi}\\
\mathbf{elif}\;A \leq 1.9 \cdot 10^{-201}:\\
\;\;\;\;\frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{0.005555555555555556} \cdot \frac{1}{\pi}\\
\mathbf{elif}\;A \leq 1.75 \cdot 10^{-74}:\\
\;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)\\
\mathbf{elif}\;A \leq 10^{+18}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(t_0 + -1\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 + t_0\right)}{\pi}\\
\end{array}
\]
Alternative 7 Error 33.5 Cost 13841
\[\begin{array}{l}
\mathbf{if}\;A \leq -1.6 \cdot 10^{-166}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(0.5 \cdot \frac{B}{A}\right)}{\pi}\\
\mathbf{elif}\;A \leq 2.25 \cdot 10^{-60}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\
\mathbf{elif}\;A \leq 5.8 \cdot 10^{+19} \lor \neg \left(A \leq 1.8 \cdot 10^{+68}\right):\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{A \cdot -2}{B}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} 1}{\pi}\\
\end{array}
\]
Alternative 8 Error 33.5 Cost 13841
\[\begin{array}{l}
\mathbf{if}\;A \leq -1.95 \cdot 10^{-166}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(0.5 \cdot \frac{B}{A}\right)}{\pi}\\
\mathbf{elif}\;A \leq 6.4 \cdot 10^{-59}:\\
\;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)\\
\mathbf{elif}\;A \leq 5.6 \cdot 10^{+19} \lor \neg \left(A \leq 1.7 \cdot 10^{+68}\right):\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{A \cdot -2}{B}\right)}{\pi}\\
\mathbf{else}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} 1}{\pi}\\
\end{array}
\]
Alternative 9 Error 32.9 Cost 13840
\[\begin{array}{l}
t_0 := 180 \cdot \frac{\tan^{-1} \left(0.5 \cdot \frac{B}{A}\right)}{\pi}\\
\mathbf{if}\;C \leq -2.8 \cdot 10^{-45}:\\
\;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C}{B}\right)\\
\mathbf{elif}\;C \leq -1.65 \cdot 10^{-284}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;C \leq 3.1 \cdot 10^{-171}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} -1}{\pi}\\
\mathbf{elif}\;C \leq 6 \cdot 10^{-48}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\
\end{array}
\]
Alternative 10 Error 28.6 Cost 13840
\[\begin{array}{l}
t_0 := \frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C - B}{B}\right)\\
\mathbf{if}\;A \leq -5.5 \cdot 10^{+33}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(0.5 \cdot \frac{B}{A}\right)}{\pi}\\
\mathbf{elif}\;A \leq 2.2 \cdot 10^{-201}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;A \leq 3.4 \cdot 10^{-73}:\\
\;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)\\
\mathbf{elif}\;A \leq 1.05 \cdot 10^{+66}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{A \cdot -2}{B}\right)}{\pi}\\
\end{array}
\]
Alternative 11 Error 28.6 Cost 13840
\[\begin{array}{l}
t_0 := \frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C - B}{B}\right)\\
\mathbf{if}\;A \leq -2.5 \cdot 10^{+33}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(0.5 \cdot \frac{B}{A}\right)}{\pi}\\
\mathbf{elif}\;A \leq 2.5 \cdot 10^{-201}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;A \leq 6.9 \cdot 10^{-74}:\\
\;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)\\
\mathbf{elif}\;A \leq 1.6 \cdot 10^{+66}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{A \cdot -2}{B}\right)}{\pi}\\
\end{array}
\]
Alternative 12 Error 28.6 Cost 13840
\[\begin{array}{l}
t_0 := \frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C - B}{B}\right)\\
\mathbf{if}\;A \leq -1.25 \cdot 10^{+35}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{\frac{B}{2}}{A}\right)}{\pi}\\
\mathbf{elif}\;A \leq 1.75 \cdot 10^{-201}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;A \leq 1.14 \cdot 10^{-73}:\\
\;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)\\
\mathbf{elif}\;A \leq 4 \cdot 10^{+65}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{A \cdot -2}{B}\right)}{\pi}\\
\end{array}
\]
Alternative 13 Error 28.6 Cost 13840
\[\begin{array}{l}
t_0 := \tan^{-1} \left(\frac{C - B}{B}\right)\\
\mathbf{if}\;A \leq -1.65 \cdot 10^{+35}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{\frac{B}{2}}{A}\right)}{\pi}\\
\mathbf{elif}\;A \leq 2.5 \cdot 10^{-201}:\\
\;\;\;\;\frac{\frac{t_0}{\pi}}{0.005555555555555556}\\
\mathbf{elif}\;A \leq 1.65 \cdot 10^{-74}:\\
\;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)\\
\mathbf{elif}\;A \leq 6 \cdot 10^{+65}:\\
\;\;\;\;\frac{180}{\pi} \cdot t_0\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{A \cdot -2}{B}\right)}{\pi}\\
\end{array}
\]
Alternative 14 Error 25.6 Cost 13704
\[\begin{array}{l}
\mathbf{if}\;A \leq -6.2 \cdot 10^{+35}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{\frac{B}{2}}{A}\right)}{\pi}\\
\mathbf{elif}\;A \leq 2.8 \cdot 10^{-148}:\\
\;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C - B}{B}\right)\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 + \frac{C - A}{B}\right)}{\pi}\\
\end{array}
\]
Alternative 15 Error 25.5 Cost 13704
\[\begin{array}{l}
\mathbf{if}\;A \leq -5.2 \cdot 10^{+33}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{\frac{B}{2}}{A}\right)}{\pi}\\
\mathbf{elif}\;A \leq 3.4 \cdot 10^{-148}:\\
\;\;\;\;\frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{0.005555555555555556} \cdot \frac{1}{\pi}\\
\mathbf{else}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 + \frac{C - A}{B}\right)}{\pi}\\
\end{array}
\]
Alternative 16 Error 34.9 Cost 13448
\[\begin{array}{l}
\mathbf{if}\;B \leq -3.1 \cdot 10^{-144}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} 1}{\pi}\\
\mathbf{elif}\;B \leq 3.3 \cdot 10^{-185}:\\
\;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{0}{B}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} -1}{\pi}\\
\end{array}
\]
Alternative 17 Error 33.6 Cost 13448
\[\begin{array}{l}
\mathbf{if}\;B \leq -2.7 \cdot 10^{-49}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} 1}{\pi}\\
\mathbf{elif}\;B \leq 1.6 \cdot 10^{+23}:\\
\;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C}{B}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} -1}{\pi}\\
\end{array}
\]
Alternative 18 Error 37.8 Cost 13188
\[\begin{array}{l}
\mathbf{if}\;B \leq -5.4 \cdot 10^{-301}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} 1}{\pi}\\
\mathbf{else}:\\
\;\;\;\;\frac{180 \cdot \tan^{-1} -1}{\pi}\\
\end{array}
\]
Alternative 19 Error 50.2 Cost 13056
\[\frac{180 \cdot \tan^{-1} -1}{\pi}
\]