ABCF->ab-angle angle

Percentage Accurate: 53.8% → 82.0%
Time: 21.1s
Alternatives: 26
Speedup: 3.6×

Specification

?
\[\begin{array}{l} \\ 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} \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)))
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));
}
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);
}
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)
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 tmp = code(A, B, C)
	tmp = 180.0 * (atan(((1.0 / B) * ((C - A) - sqrt((((A - C) ^ 2.0) + (B ^ 2.0)))))) / pi);
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]
\begin{array}{l}

\\
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}
\end{array}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 26 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 53.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ 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} \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)))
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));
}
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);
}
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)
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 tmp = code(A, B, C)
	tmp = 180.0 * (atan(((1.0 / B) * ((C - A) - sqrt((((A - C) ^ 2.0) + (B ^ 2.0)))))) / pi);
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]
\begin{array}{l}

\\
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}
\end{array}

Alternative 1: 82.0% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := \frac{1}{B} \cdot \left(\left(C - A\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)\\ \mathbf{if}\;t\_0 \leq -0.5:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}\\ \mathbf{elif}\;t\_0 \leq 0:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\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} \end{array} \]
(FPCore (A B C)
 :precision binary64
 (let* ((t_0
         (* (/ 1.0 B) (- (- C A) (sqrt (+ (pow (- A C) 2.0) (pow B 2.0)))))))
   (if (<= t_0 -0.5)
     (/ 180.0 (/ PI (atan (/ (- (- C A) (hypot (- A C) B)) B))))
     (if (<= t_0 0.0)
       (* 180.0 (/ (atan (* -0.5 (/ B C))) PI))
       (* 180.0 (/ (atan (/ (- (- C A) (hypot B (- A C))) B)) PI))))))
double code(double A, double B, double C) {
	double t_0 = (1.0 / B) * ((C - A) - sqrt((pow((A - C), 2.0) + pow(B, 2.0))));
	double tmp;
	if (t_0 <= -0.5) {
		tmp = 180.0 / (((double) M_PI) / atan((((C - A) - hypot((A - C), B)) / B)));
	} else if (t_0 <= 0.0) {
		tmp = 180.0 * (atan((-0.5 * (B / C))) / ((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) {
	double t_0 = (1.0 / B) * ((C - A) - Math.sqrt((Math.pow((A - C), 2.0) + Math.pow(B, 2.0))));
	double tmp;
	if (t_0 <= -0.5) {
		tmp = 180.0 / (Math.PI / Math.atan((((C - A) - Math.hypot((A - C), B)) / B)));
	} else if (t_0 <= 0.0) {
		tmp = 180.0 * (Math.atan((-0.5 * (B / C))) / 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):
	t_0 = (1.0 / B) * ((C - A) - math.sqrt((math.pow((A - C), 2.0) + math.pow(B, 2.0))))
	tmp = 0
	if t_0 <= -0.5:
		tmp = 180.0 / (math.pi / math.atan((((C - A) - math.hypot((A - C), B)) / B)))
	elif t_0 <= 0.0:
		tmp = 180.0 * (math.atan((-0.5 * (B / C))) / 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)
	t_0 = Float64(Float64(1.0 / B) * Float64(Float64(C - A) - sqrt(Float64((Float64(A - C) ^ 2.0) + (B ^ 2.0)))))
	tmp = 0.0
	if (t_0 <= -0.5)
		tmp = Float64(180.0 / Float64(pi / atan(Float64(Float64(Float64(C - A) - hypot(Float64(A - C), B)) / B))));
	elseif (t_0 <= 0.0)
		tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(B / C))) / 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_2 = code(A, B, C)
	t_0 = (1.0 / B) * ((C - A) - sqrt((((A - C) ^ 2.0) + (B ^ 2.0))));
	tmp = 0.0;
	if (t_0 <= -0.5)
		tmp = 180.0 / (pi / atan((((C - A) - hypot((A - C), B)) / B)));
	elseif (t_0 <= 0.0)
		tmp = 180.0 * (atan((-0.5 * (B / C))) / pi);
	else
		tmp = 180.0 * (atan((((C - A) - hypot(B, (A - C))) / B)) / pi);
	end
	tmp_2 = tmp;
end
code[A_, B_, C_] := Block[{t$95$0 = 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]}, If[LessEqual[t$95$0, -0.5], N[(180.0 / N[(Pi / N[ArcTan[N[(N[(N[(C - A), $MachinePrecision] - N[Sqrt[N[(A - C), $MachinePrecision] ^ 2 + B ^ 2], $MachinePrecision]), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 0.0], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $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]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := \frac{1}{B} \cdot \left(\left(C - A\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)\\
\mathbf{if}\;t\_0 \leq -0.5:\\
\;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}\\

\mathbf{elif}\;t\_0 \leq 0:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\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}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (*.f64 (/.f64 #s(literal 1 binary64) B) (-.f64 (-.f64 C A) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) #s(literal 2 binary64)) (pow.f64 B #s(literal 2 binary64)))))) < -0.5

    1. Initial program 61.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} \]
    2. Add Preprocessing
    3. Applied egg-rr92.5%

      \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]

    if -0.5 < (*.f64 (/.f64 #s(literal 1 binary64) B) (-.f64 (-.f64 C A) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) #s(literal 2 binary64)) (pow.f64 B #s(literal 2 binary64)))))) < -0.0

    1. Initial program 14.3%

      \[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} \]
    2. Add Preprocessing
    3. Taylor expanded in C around inf 37.5%

      \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(-0.5 \cdot \frac{{B}^{2}}{C} - \left(A + -1 \cdot A\right)\right)}\right)}{\pi} \]
    4. Step-by-step derivation
      1. distribute-rgt1-in37.5%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{\left(-1 + 1\right) \cdot A}\right)\right)}{\pi} \]
      2. metadata-eval37.5%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{0} \cdot A\right)\right)}{\pi} \]
      3. associate-*r/37.5%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\color{blue}{\frac{-0.5 \cdot {B}^{2}}{C}} - 0 \cdot A\right)\right)}{\pi} \]
    5. Simplified37.5%

      \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(\frac{-0.5 \cdot {B}^{2}}{C} - 0 \cdot A\right)}\right)}{\pi} \]
    6. Taylor expanded in B around 0 55.1%

      \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-0.5 \cdot \frac{B}{C}\right)}}{\pi} \]

    if -0.0 < (*.f64 (/.f64 #s(literal 1 binary64) B) (-.f64 (-.f64 C A) (sqrt.f64 (+.f64 (pow.f64 (-.f64 A C) #s(literal 2 binary64)) (pow.f64 B #s(literal 2 binary64))))))

    1. Initial program 56.0%

      \[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} \]
    2. Step-by-step derivation
      1. associate-*l/55.9%

        \[\leadsto 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} \]
      2. *-lft-identity55.9%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{\color{blue}{\left(C - A\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}}}{B}\right)}{\pi} \]
      3. +-commutative55.9%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}}{B}\right)}{\pi} \]
      4. unpow255.9%

        \[\leadsto 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} \]
      5. unpow255.9%

        \[\leadsto 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} \]
      6. hypot-define89.1%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \color{blue}{\mathsf{hypot}\left(B, A - C\right)}}{B}\right)}{\pi} \]
    3. Simplified89.1%

      \[\leadsto \color{blue}{180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right)}{\pi}} \]
    4. Add Preprocessing
  3. Recombined 3 regimes into one program.
  4. Add Preprocessing

Alternative 2: 78.2% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;C \leq -1.5 \cdot 10^{-177}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A\right)\right)}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 1.15 \cdot 10^{+72}:\\ \;\;\;\;\frac{-180 \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\ \end{array} \end{array} \]
(FPCore (A B C)
 :precision binary64
 (if (<= C -1.5e-177)
   (* 180.0 (/ (atan (/ (- C (+ A (hypot B A))) B)) PI))
   (if (<= C 1.15e+72)
     (/ (* -180.0 (atan (/ (+ A (hypot A B)) B))) PI)
     (/ 180.0 (/ PI (atan (+ (* -0.5 (/ B C)) (/ (- A A) B))))))))
double code(double A, double B, double C) {
	double tmp;
	if (C <= -1.5e-177) {
		tmp = 180.0 * (atan(((C - (A + hypot(B, A))) / B)) / ((double) M_PI));
	} else if (C <= 1.15e+72) {
		tmp = (-180.0 * atan(((A + hypot(A, B)) / B))) / ((double) M_PI);
	} else {
		tmp = 180.0 / (((double) M_PI) / atan(((-0.5 * (B / C)) + ((A - A) / B))));
	}
	return tmp;
}
public static double code(double A, double B, double C) {
	double tmp;
	if (C <= -1.5e-177) {
		tmp = 180.0 * (Math.atan(((C - (A + Math.hypot(B, A))) / B)) / Math.PI);
	} else if (C <= 1.15e+72) {
		tmp = (-180.0 * Math.atan(((A + Math.hypot(A, B)) / B))) / Math.PI;
	} else {
		tmp = 180.0 / (Math.PI / Math.atan(((-0.5 * (B / C)) + ((A - A) / B))));
	}
	return tmp;
}
def code(A, B, C):
	tmp = 0
	if C <= -1.5e-177:
		tmp = 180.0 * (math.atan(((C - (A + math.hypot(B, A))) / B)) / math.pi)
	elif C <= 1.15e+72:
		tmp = (-180.0 * math.atan(((A + math.hypot(A, B)) / B))) / math.pi
	else:
		tmp = 180.0 / (math.pi / math.atan(((-0.5 * (B / C)) + ((A - A) / B))))
	return tmp
function code(A, B, C)
	tmp = 0.0
	if (C <= -1.5e-177)
		tmp = Float64(180.0 * Float64(atan(Float64(Float64(C - Float64(A + hypot(B, A))) / B)) / pi));
	elseif (C <= 1.15e+72)
		tmp = Float64(Float64(-180.0 * atan(Float64(Float64(A + hypot(A, B)) / B))) / pi);
	else
		tmp = Float64(180.0 / Float64(pi / atan(Float64(Float64(-0.5 * Float64(B / C)) + Float64(Float64(A - A) / B)))));
	end
	return tmp
end
function tmp_2 = code(A, B, C)
	tmp = 0.0;
	if (C <= -1.5e-177)
		tmp = 180.0 * (atan(((C - (A + hypot(B, A))) / B)) / pi);
	elseif (C <= 1.15e+72)
		tmp = (-180.0 * atan(((A + hypot(A, B)) / B))) / pi;
	else
		tmp = 180.0 / (pi / atan(((-0.5 * (B / C)) + ((A - A) / B))));
	end
	tmp_2 = tmp;
end
code[A_, B_, C_] := If[LessEqual[C, -1.5e-177], N[(180.0 * N[(N[ArcTan[N[(N[(C - N[(A + N[Sqrt[B ^ 2 + A ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 1.15e+72], N[(N[(-180.0 * N[ArcTan[N[(N[(A + N[Sqrt[A ^ 2 + B ^ 2], $MachinePrecision]), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], N[(180.0 / N[(Pi / N[ArcTan[N[(N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision] + N[(N[(A - A), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;C \leq -1.5 \cdot 10^{-177}:\\
\;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A\right)\right)}{B}\right)}{\pi}\\

\mathbf{elif}\;C \leq 1.15 \cdot 10^{+72}:\\
\;\;\;\;\frac{-180 \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}\\

\mathbf{else}:\\
\;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if C < -1.50000000000000004e-177

    1. Initial program 76.7%

      \[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} \]
    2. Step-by-step derivation
      1. Simplified88.7%

        \[\leadsto \color{blue}{180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}{B}\right)}{\pi}} \]
      2. Add Preprocessing
      3. Taylor expanded in C around 0 76.3%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \color{blue}{\left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}}{B}\right)}{\pi} \]
      4. Step-by-step derivation
        1. +-commutative76.3%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \sqrt{\color{blue}{{B}^{2} + {A}^{2}}}\right)}{B}\right)}{\pi} \]
        2. unpow276.3%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right)}{B}\right)}{\pi} \]
        3. unpow276.3%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right)}{B}\right)}{\pi} \]
        4. hypot-define88.0%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}{B}\right)}{\pi} \]
      5. Simplified88.0%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \color{blue}{\left(A + \mathsf{hypot}\left(B, A\right)\right)}}{B}\right)}{\pi} \]

      if -1.50000000000000004e-177 < C < 1.15e72

      1. Initial program 45.1%

        \[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} \]
      2. Add Preprocessing
      3. Taylor expanded in C around 0 44.7%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-1 \cdot \frac{A + \sqrt{{A}^{2} + {B}^{2}}}{B}\right)}}{\pi} \]
      4. Step-by-step derivation
        1. associate-*r/44.7%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-1 \cdot \left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}{B}\right)}}{\pi} \]
        2. mul-1-neg44.7%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{\color{blue}{-\left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}}{B}\right)}{\pi} \]
        3. +-commutative44.7%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{\color{blue}{{B}^{2} + {A}^{2}}}\right)}{B}\right)}{\pi} \]
        4. unpow244.7%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right)}{B}\right)}{\pi} \]
        5. unpow244.7%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right)}{B}\right)}{\pi} \]
        6. hypot-define75.9%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}{B}\right)}{\pi} \]
      5. Simplified75.9%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-\left(A + \mathsf{hypot}\left(B, A\right)\right)}{B}\right)}}{\pi} \]
      6. Step-by-step derivation
        1. associate-*r/75.9%

          \[\leadsto \color{blue}{\frac{180 \cdot \tan^{-1} \left(\frac{-\left(A + \mathsf{hypot}\left(B, A\right)\right)}{B}\right)}{\pi}} \]
        2. distribute-frac-neg75.9%

          \[\leadsto \frac{180 \cdot \tan^{-1} \color{blue}{\left(-\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)}}{\pi} \]
        3. atan-neg75.9%

          \[\leadsto \frac{180 \cdot \color{blue}{\left(-\tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)\right)}}{\pi} \]
      7. Applied egg-rr75.9%

        \[\leadsto \color{blue}{\frac{180 \cdot \left(-\tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)\right)}{\pi}} \]
      8. Step-by-step derivation
        1. distribute-rgt-neg-out75.9%

          \[\leadsto \frac{\color{blue}{-180 \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)}}{\pi} \]
        2. distribute-lft-neg-in75.9%

          \[\leadsto \frac{\color{blue}{\left(-180\right) \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)}}{\pi} \]
        3. metadata-eval75.9%

          \[\leadsto \frac{\color{blue}{-180} \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)}{\pi} \]
        4. hypot-undefine44.7%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \color{blue}{\sqrt{B \cdot B + A \cdot A}}}{B}\right)}{\pi} \]
        5. unpow244.7%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{\color{blue}{{B}^{2}} + A \cdot A}}{B}\right)}{\pi} \]
        6. unpow244.7%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{{B}^{2} + \color{blue}{{A}^{2}}}}{B}\right)}{\pi} \]
        7. +-commutative44.7%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{\color{blue}{{A}^{2} + {B}^{2}}}}{B}\right)}{\pi} \]
        8. unpow244.7%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{\color{blue}{A \cdot A} + {B}^{2}}}{B}\right)}{\pi} \]
        9. unpow244.7%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{A \cdot A + \color{blue}{B \cdot B}}}{B}\right)}{\pi} \]
        10. hypot-define75.9%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \color{blue}{\mathsf{hypot}\left(A, B\right)}}{B}\right)}{\pi} \]
      9. Simplified75.9%

        \[\leadsto \color{blue}{\frac{-180 \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}} \]

      if 1.15e72 < C

      1. Initial program 14.2%

        \[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} \]
      2. Add Preprocessing
      3. Applied egg-rr56.5%

        \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
      4. Taylor expanded in C around inf 76.2%

        \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-1 \cdot \frac{A + -1 \cdot A}{B} + -0.5 \cdot \frac{B}{C}\right)}}} \]
    3. Recombined 3 regimes into one program.
    4. Final simplification80.8%

      \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq -1.5 \cdot 10^{-177}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A\right)\right)}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 1.15 \cdot 10^{+72}:\\ \;\;\;\;\frac{-180 \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\ \end{array} \]
    5. Add Preprocessing

    Alternative 3: 77.6% accurate, 1.9× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;C \leq -1.5 \cdot 10^{-54}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - \mathsf{hypot}\left(B, C\right)}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 7 \cdot 10^{+59}:\\ \;\;\;\;\frac{-180 \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\ \end{array} \end{array} \]
    (FPCore (A B C)
     :precision binary64
     (if (<= C -1.5e-54)
       (* 180.0 (/ (atan (/ (- C (hypot B C)) B)) PI))
       (if (<= C 7e+59)
         (/ (* -180.0 (atan (/ (+ A (hypot A B)) B))) PI)
         (/ 180.0 (/ PI (atan (+ (* -0.5 (/ B C)) (/ (- A A) B))))))))
    double code(double A, double B, double C) {
    	double tmp;
    	if (C <= -1.5e-54) {
    		tmp = 180.0 * (atan(((C - hypot(B, C)) / B)) / ((double) M_PI));
    	} else if (C <= 7e+59) {
    		tmp = (-180.0 * atan(((A + hypot(A, B)) / B))) / ((double) M_PI);
    	} else {
    		tmp = 180.0 / (((double) M_PI) / atan(((-0.5 * (B / C)) + ((A - A) / B))));
    	}
    	return tmp;
    }
    
    public static double code(double A, double B, double C) {
    	double tmp;
    	if (C <= -1.5e-54) {
    		tmp = 180.0 * (Math.atan(((C - Math.hypot(B, C)) / B)) / Math.PI);
    	} else if (C <= 7e+59) {
    		tmp = (-180.0 * Math.atan(((A + Math.hypot(A, B)) / B))) / Math.PI;
    	} else {
    		tmp = 180.0 / (Math.PI / Math.atan(((-0.5 * (B / C)) + ((A - A) / B))));
    	}
    	return tmp;
    }
    
    def code(A, B, C):
    	tmp = 0
    	if C <= -1.5e-54:
    		tmp = 180.0 * (math.atan(((C - math.hypot(B, C)) / B)) / math.pi)
    	elif C <= 7e+59:
    		tmp = (-180.0 * math.atan(((A + math.hypot(A, B)) / B))) / math.pi
    	else:
    		tmp = 180.0 / (math.pi / math.atan(((-0.5 * (B / C)) + ((A - A) / B))))
    	return tmp
    
    function code(A, B, C)
    	tmp = 0.0
    	if (C <= -1.5e-54)
    		tmp = Float64(180.0 * Float64(atan(Float64(Float64(C - hypot(B, C)) / B)) / pi));
    	elseif (C <= 7e+59)
    		tmp = Float64(Float64(-180.0 * atan(Float64(Float64(A + hypot(A, B)) / B))) / pi);
    	else
    		tmp = Float64(180.0 / Float64(pi / atan(Float64(Float64(-0.5 * Float64(B / C)) + Float64(Float64(A - A) / B)))));
    	end
    	return tmp
    end
    
    function tmp_2 = code(A, B, C)
    	tmp = 0.0;
    	if (C <= -1.5e-54)
    		tmp = 180.0 * (atan(((C - hypot(B, C)) / B)) / pi);
    	elseif (C <= 7e+59)
    		tmp = (-180.0 * atan(((A + hypot(A, B)) / B))) / pi;
    	else
    		tmp = 180.0 / (pi / atan(((-0.5 * (B / C)) + ((A - A) / B))));
    	end
    	tmp_2 = tmp;
    end
    
    code[A_, B_, C_] := If[LessEqual[C, -1.5e-54], N[(180.0 * N[(N[ArcTan[N[(N[(C - N[Sqrt[B ^ 2 + C ^ 2], $MachinePrecision]), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 7e+59], N[(N[(-180.0 * N[ArcTan[N[(N[(A + N[Sqrt[A ^ 2 + B ^ 2], $MachinePrecision]), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], N[(180.0 / N[(Pi / N[ArcTan[N[(N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision] + N[(N[(A - A), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;C \leq -1.5 \cdot 10^{-54}:\\
    \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - \mathsf{hypot}\left(B, C\right)}{B}\right)}{\pi}\\
    
    \mathbf{elif}\;C \leq 7 \cdot 10^{+59}:\\
    \;\;\;\;\frac{-180 \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if C < -1.50000000000000005e-54

      1. Initial program 82.6%

        \[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} \]
      2. Add Preprocessing
      3. Taylor expanded in A around 0 82.6%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{C - \sqrt{{B}^{2} + {C}^{2}}}{B}\right)}}{\pi} \]
      4. Step-by-step derivation
        1. unpow282.6%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \sqrt{\color{blue}{B \cdot B} + {C}^{2}}}{B}\right)}{\pi} \]
        2. unpow282.6%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \sqrt{B \cdot B + \color{blue}{C \cdot C}}}{B}\right)}{\pi} \]
        3. hypot-define90.2%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \color{blue}{\mathsf{hypot}\left(B, C\right)}}{B}\right)}{\pi} \]
      5. Simplified90.2%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{C - \mathsf{hypot}\left(B, C\right)}{B}\right)}}{\pi} \]

      if -1.50000000000000005e-54 < C < 7e59

      1. Initial program 46.5%

        \[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} \]
      2. Add Preprocessing
      3. Taylor expanded in C around 0 45.4%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-1 \cdot \frac{A + \sqrt{{A}^{2} + {B}^{2}}}{B}\right)}}{\pi} \]
      4. Step-by-step derivation
        1. associate-*r/45.4%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-1 \cdot \left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}{B}\right)}}{\pi} \]
        2. mul-1-neg45.4%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{\color{blue}{-\left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}}{B}\right)}{\pi} \]
        3. +-commutative45.4%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{\color{blue}{{B}^{2} + {A}^{2}}}\right)}{B}\right)}{\pi} \]
        4. unpow245.4%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right)}{B}\right)}{\pi} \]
        5. unpow245.4%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right)}{B}\right)}{\pi} \]
        6. hypot-define75.1%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}{B}\right)}{\pi} \]
      5. Simplified75.1%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-\left(A + \mathsf{hypot}\left(B, A\right)\right)}{B}\right)}}{\pi} \]
      6. Step-by-step derivation
        1. associate-*r/75.1%

          \[\leadsto \color{blue}{\frac{180 \cdot \tan^{-1} \left(\frac{-\left(A + \mathsf{hypot}\left(B, A\right)\right)}{B}\right)}{\pi}} \]
        2. distribute-frac-neg75.1%

          \[\leadsto \frac{180 \cdot \tan^{-1} \color{blue}{\left(-\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)}}{\pi} \]
        3. atan-neg75.1%

          \[\leadsto \frac{180 \cdot \color{blue}{\left(-\tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)\right)}}{\pi} \]
      7. Applied egg-rr75.1%

        \[\leadsto \color{blue}{\frac{180 \cdot \left(-\tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)\right)}{\pi}} \]
      8. Step-by-step derivation
        1. distribute-rgt-neg-out75.1%

          \[\leadsto \frac{\color{blue}{-180 \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)}}{\pi} \]
        2. distribute-lft-neg-in75.1%

          \[\leadsto \frac{\color{blue}{\left(-180\right) \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)}}{\pi} \]
        3. metadata-eval75.1%

          \[\leadsto \frac{\color{blue}{-180} \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)}{\pi} \]
        4. hypot-undefine45.4%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \color{blue}{\sqrt{B \cdot B + A \cdot A}}}{B}\right)}{\pi} \]
        5. unpow245.4%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{\color{blue}{{B}^{2}} + A \cdot A}}{B}\right)}{\pi} \]
        6. unpow245.4%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{{B}^{2} + \color{blue}{{A}^{2}}}}{B}\right)}{\pi} \]
        7. +-commutative45.4%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{\color{blue}{{A}^{2} + {B}^{2}}}}{B}\right)}{\pi} \]
        8. unpow245.4%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{\color{blue}{A \cdot A} + {B}^{2}}}{B}\right)}{\pi} \]
        9. unpow245.4%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{A \cdot A + \color{blue}{B \cdot B}}}{B}\right)}{\pi} \]
        10. hypot-define75.1%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \color{blue}{\mathsf{hypot}\left(A, B\right)}}{B}\right)}{\pi} \]
      9. Simplified75.1%

        \[\leadsto \color{blue}{\frac{-180 \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}} \]

      if 7e59 < C

      1. Initial program 14.2%

        \[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} \]
      2. Add Preprocessing
      3. Applied egg-rr56.5%

        \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
      4. Taylor expanded in C around inf 76.2%

        \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-1 \cdot \frac{A + -1 \cdot A}{B} + -0.5 \cdot \frac{B}{C}\right)}}} \]
    3. Recombined 3 regimes into one program.
    4. Final simplification80.2%

      \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq -1.5 \cdot 10^{-54}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - \mathsf{hypot}\left(B, C\right)}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 7 \cdot 10^{+59}:\\ \;\;\;\;\frac{-180 \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\ \end{array} \]
    5. Add Preprocessing

    Alternative 4: 77.6% accurate, 1.9× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;C \leq -4.9 \cdot 10^{-54}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - \mathsf{hypot}\left(B, C\right)}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 4.8 \cdot 10^{+77}:\\ \;\;\;\;-180 \cdot \frac{\tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\ \end{array} \end{array} \]
    (FPCore (A B C)
     :precision binary64
     (if (<= C -4.9e-54)
       (* 180.0 (/ (atan (/ (- C (hypot B C)) B)) PI))
       (if (<= C 4.8e+77)
         (* -180.0 (/ (atan (/ (+ A (hypot A B)) B)) PI))
         (/ 180.0 (/ PI (atan (+ (* -0.5 (/ B C)) (/ (- A A) B))))))))
    double code(double A, double B, double C) {
    	double tmp;
    	if (C <= -4.9e-54) {
    		tmp = 180.0 * (atan(((C - hypot(B, C)) / B)) / ((double) M_PI));
    	} else if (C <= 4.8e+77) {
    		tmp = -180.0 * (atan(((A + hypot(A, B)) / B)) / ((double) M_PI));
    	} else {
    		tmp = 180.0 / (((double) M_PI) / atan(((-0.5 * (B / C)) + ((A - A) / B))));
    	}
    	return tmp;
    }
    
    public static double code(double A, double B, double C) {
    	double tmp;
    	if (C <= -4.9e-54) {
    		tmp = 180.0 * (Math.atan(((C - Math.hypot(B, C)) / B)) / Math.PI);
    	} else if (C <= 4.8e+77) {
    		tmp = -180.0 * (Math.atan(((A + Math.hypot(A, B)) / B)) / Math.PI);
    	} else {
    		tmp = 180.0 / (Math.PI / Math.atan(((-0.5 * (B / C)) + ((A - A) / B))));
    	}
    	return tmp;
    }
    
    def code(A, B, C):
    	tmp = 0
    	if C <= -4.9e-54:
    		tmp = 180.0 * (math.atan(((C - math.hypot(B, C)) / B)) / math.pi)
    	elif C <= 4.8e+77:
    		tmp = -180.0 * (math.atan(((A + math.hypot(A, B)) / B)) / math.pi)
    	else:
    		tmp = 180.0 / (math.pi / math.atan(((-0.5 * (B / C)) + ((A - A) / B))))
    	return tmp
    
    function code(A, B, C)
    	tmp = 0.0
    	if (C <= -4.9e-54)
    		tmp = Float64(180.0 * Float64(atan(Float64(Float64(C - hypot(B, C)) / B)) / pi));
    	elseif (C <= 4.8e+77)
    		tmp = Float64(-180.0 * Float64(atan(Float64(Float64(A + hypot(A, B)) / B)) / pi));
    	else
    		tmp = Float64(180.0 / Float64(pi / atan(Float64(Float64(-0.5 * Float64(B / C)) + Float64(Float64(A - A) / B)))));
    	end
    	return tmp
    end
    
    function tmp_2 = code(A, B, C)
    	tmp = 0.0;
    	if (C <= -4.9e-54)
    		tmp = 180.0 * (atan(((C - hypot(B, C)) / B)) / pi);
    	elseif (C <= 4.8e+77)
    		tmp = -180.0 * (atan(((A + hypot(A, B)) / B)) / pi);
    	else
    		tmp = 180.0 / (pi / atan(((-0.5 * (B / C)) + ((A - A) / B))));
    	end
    	tmp_2 = tmp;
    end
    
    code[A_, B_, C_] := If[LessEqual[C, -4.9e-54], N[(180.0 * N[(N[ArcTan[N[(N[(C - N[Sqrt[B ^ 2 + C ^ 2], $MachinePrecision]), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 4.8e+77], N[(-180.0 * N[(N[ArcTan[N[(N[(A + N[Sqrt[A ^ 2 + B ^ 2], $MachinePrecision]), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 / N[(Pi / N[ArcTan[N[(N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision] + N[(N[(A - A), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;C \leq -4.9 \cdot 10^{-54}:\\
    \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - \mathsf{hypot}\left(B, C\right)}{B}\right)}{\pi}\\
    
    \mathbf{elif}\;C \leq 4.8 \cdot 10^{+77}:\\
    \;\;\;\;-180 \cdot \frac{\tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if C < -4.90000000000000021e-54

      1. Initial program 82.6%

        \[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} \]
      2. Add Preprocessing
      3. Taylor expanded in A around 0 82.6%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{C - \sqrt{{B}^{2} + {C}^{2}}}{B}\right)}}{\pi} \]
      4. Step-by-step derivation
        1. unpow282.6%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \sqrt{\color{blue}{B \cdot B} + {C}^{2}}}{B}\right)}{\pi} \]
        2. unpow282.6%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \sqrt{B \cdot B + \color{blue}{C \cdot C}}}{B}\right)}{\pi} \]
        3. hypot-define90.2%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \color{blue}{\mathsf{hypot}\left(B, C\right)}}{B}\right)}{\pi} \]
      5. Simplified90.2%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{C - \mathsf{hypot}\left(B, C\right)}{B}\right)}}{\pi} \]

      if -4.90000000000000021e-54 < C < 4.7999999999999997e77

      1. Initial program 46.5%

        \[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} \]
      2. Add Preprocessing
      3. Taylor expanded in C around 0 45.4%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-1 \cdot \frac{A + \sqrt{{A}^{2} + {B}^{2}}}{B}\right)}}{\pi} \]
      4. Step-by-step derivation
        1. associate-*r/45.4%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-1 \cdot \left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}{B}\right)}}{\pi} \]
        2. mul-1-neg45.4%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{\color{blue}{-\left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}}{B}\right)}{\pi} \]
        3. +-commutative45.4%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{\color{blue}{{B}^{2} + {A}^{2}}}\right)}{B}\right)}{\pi} \]
        4. unpow245.4%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right)}{B}\right)}{\pi} \]
        5. unpow245.4%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right)}{B}\right)}{\pi} \]
        6. hypot-define75.1%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}{B}\right)}{\pi} \]
      5. Simplified75.1%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-\left(A + \mathsf{hypot}\left(B, A\right)\right)}{B}\right)}}{\pi} \]
      6. Step-by-step derivation
        1. associate-*r/75.1%

          \[\leadsto \color{blue}{\frac{180 \cdot \tan^{-1} \left(\frac{-\left(A + \mathsf{hypot}\left(B, A\right)\right)}{B}\right)}{\pi}} \]
        2. distribute-frac-neg75.1%

          \[\leadsto \frac{180 \cdot \tan^{-1} \color{blue}{\left(-\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)}}{\pi} \]
        3. atan-neg75.1%

          \[\leadsto \frac{180 \cdot \color{blue}{\left(-\tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)\right)}}{\pi} \]
      7. Applied egg-rr75.1%

        \[\leadsto \color{blue}{\frac{180 \cdot \left(-\tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)\right)}{\pi}} \]
      8. Step-by-step derivation
        1. distribute-rgt-neg-out75.1%

          \[\leadsto \frac{\color{blue}{-180 \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)}}{\pi} \]
        2. distribute-lft-neg-in75.1%

          \[\leadsto \frac{\color{blue}{\left(-180\right) \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)}}{\pi} \]
        3. metadata-eval75.1%

          \[\leadsto \frac{\color{blue}{-180} \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)}{\pi} \]
        4. hypot-undefine45.4%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \color{blue}{\sqrt{B \cdot B + A \cdot A}}}{B}\right)}{\pi} \]
        5. unpow245.4%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{\color{blue}{{B}^{2}} + A \cdot A}}{B}\right)}{\pi} \]
        6. unpow245.4%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{{B}^{2} + \color{blue}{{A}^{2}}}}{B}\right)}{\pi} \]
        7. +-commutative45.4%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{\color{blue}{{A}^{2} + {B}^{2}}}}{B}\right)}{\pi} \]
        8. unpow245.4%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{\color{blue}{A \cdot A} + {B}^{2}}}{B}\right)}{\pi} \]
        9. unpow245.4%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{A \cdot A + \color{blue}{B \cdot B}}}{B}\right)}{\pi} \]
        10. hypot-define75.1%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \color{blue}{\mathsf{hypot}\left(A, B\right)}}{B}\right)}{\pi} \]
      9. Simplified75.1%

        \[\leadsto \color{blue}{\frac{-180 \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}} \]
      10. Taylor expanded in A around 0 45.4%

        \[\leadsto \color{blue}{-180 \cdot \frac{\tan^{-1} \left(\frac{A + \sqrt{{A}^{2} + {B}^{2}}}{B}\right)}{\pi}} \]
      11. Step-by-step derivation
        1. unpow245.4%

          \[\leadsto -180 \cdot \frac{\tan^{-1} \left(\frac{A + \sqrt{\color{blue}{A \cdot A} + {B}^{2}}}{B}\right)}{\pi} \]
        2. unpow245.4%

          \[\leadsto -180 \cdot \frac{\tan^{-1} \left(\frac{A + \sqrt{A \cdot A + \color{blue}{B \cdot B}}}{B}\right)}{\pi} \]
        3. hypot-undefine75.1%

          \[\leadsto -180 \cdot \frac{\tan^{-1} \left(\frac{A + \color{blue}{\mathsf{hypot}\left(A, B\right)}}{B}\right)}{\pi} \]
      12. Simplified75.1%

        \[\leadsto \color{blue}{-180 \cdot \frac{\tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}} \]

      if 4.7999999999999997e77 < C

      1. Initial program 14.2%

        \[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} \]
      2. Add Preprocessing
      3. Applied egg-rr56.5%

        \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
      4. Taylor expanded in C around inf 76.2%

        \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-1 \cdot \frac{A + -1 \cdot A}{B} + -0.5 \cdot \frac{B}{C}\right)}}} \]
    3. Recombined 3 regimes into one program.
    4. Final simplification80.1%

      \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq -4.9 \cdot 10^{-54}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - \mathsf{hypot}\left(B, C\right)}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 4.8 \cdot 10^{+77}:\\ \;\;\;\;-180 \cdot \frac{\tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\ \end{array} \]
    5. Add Preprocessing

    Alternative 5: 75.3% accurate, 1.9× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;C \leq -1.1 \cdot 10^{+72}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 + \frac{C}{B}\right)}}\\ \mathbf{elif}\;C \leq 9.2 \cdot 10^{+58}:\\ \;\;\;\;-180 \cdot \frac{\tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\ \end{array} \end{array} \]
    (FPCore (A B C)
     :precision binary64
     (if (<= C -1.1e+72)
       (/ 180.0 (/ PI (atan (+ -1.0 (/ C B)))))
       (if (<= C 9.2e+58)
         (* -180.0 (/ (atan (/ (+ A (hypot A B)) B)) PI))
         (/ 180.0 (/ PI (atan (+ (* -0.5 (/ B C)) (/ (- A A) B))))))))
    double code(double A, double B, double C) {
    	double tmp;
    	if (C <= -1.1e+72) {
    		tmp = 180.0 / (((double) M_PI) / atan((-1.0 + (C / B))));
    	} else if (C <= 9.2e+58) {
    		tmp = -180.0 * (atan(((A + hypot(A, B)) / B)) / ((double) M_PI));
    	} else {
    		tmp = 180.0 / (((double) M_PI) / atan(((-0.5 * (B / C)) + ((A - A) / B))));
    	}
    	return tmp;
    }
    
    public static double code(double A, double B, double C) {
    	double tmp;
    	if (C <= -1.1e+72) {
    		tmp = 180.0 / (Math.PI / Math.atan((-1.0 + (C / B))));
    	} else if (C <= 9.2e+58) {
    		tmp = -180.0 * (Math.atan(((A + Math.hypot(A, B)) / B)) / Math.PI);
    	} else {
    		tmp = 180.0 / (Math.PI / Math.atan(((-0.5 * (B / C)) + ((A - A) / B))));
    	}
    	return tmp;
    }
    
    def code(A, B, C):
    	tmp = 0
    	if C <= -1.1e+72:
    		tmp = 180.0 / (math.pi / math.atan((-1.0 + (C / B))))
    	elif C <= 9.2e+58:
    		tmp = -180.0 * (math.atan(((A + math.hypot(A, B)) / B)) / math.pi)
    	else:
    		tmp = 180.0 / (math.pi / math.atan(((-0.5 * (B / C)) + ((A - A) / B))))
    	return tmp
    
    function code(A, B, C)
    	tmp = 0.0
    	if (C <= -1.1e+72)
    		tmp = Float64(180.0 / Float64(pi / atan(Float64(-1.0 + Float64(C / B)))));
    	elseif (C <= 9.2e+58)
    		tmp = Float64(-180.0 * Float64(atan(Float64(Float64(A + hypot(A, B)) / B)) / pi));
    	else
    		tmp = Float64(180.0 / Float64(pi / atan(Float64(Float64(-0.5 * Float64(B / C)) + Float64(Float64(A - A) / B)))));
    	end
    	return tmp
    end
    
    function tmp_2 = code(A, B, C)
    	tmp = 0.0;
    	if (C <= -1.1e+72)
    		tmp = 180.0 / (pi / atan((-1.0 + (C / B))));
    	elseif (C <= 9.2e+58)
    		tmp = -180.0 * (atan(((A + hypot(A, B)) / B)) / pi);
    	else
    		tmp = 180.0 / (pi / atan(((-0.5 * (B / C)) + ((A - A) / B))));
    	end
    	tmp_2 = tmp;
    end
    
    code[A_, B_, C_] := If[LessEqual[C, -1.1e+72], N[(180.0 / N[(Pi / N[ArcTan[N[(-1.0 + N[(C / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 9.2e+58], N[(-180.0 * N[(N[ArcTan[N[(N[(A + N[Sqrt[A ^ 2 + B ^ 2], $MachinePrecision]), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 / N[(Pi / N[ArcTan[N[(N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision] + N[(N[(A - A), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;C \leq -1.1 \cdot 10^{+72}:\\
    \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 + \frac{C}{B}\right)}}\\
    
    \mathbf{elif}\;C \leq 9.2 \cdot 10^{+58}:\\
    \;\;\;\;-180 \cdot \frac{\tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if C < -1.1e72

      1. Initial program 90.2%

        \[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} \]
      2. Add Preprocessing
      3. Applied egg-rr97.5%

        \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
      4. Taylor expanded in B around inf 88.8%

        \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
      5. Taylor expanded in A around 0 94.3%

        \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B} - 1\right)}}} \]

      if -1.1e72 < C < 9.2000000000000001e58

      1. Initial program 50.1%

        \[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} \]
      2. Add Preprocessing
      3. Taylor expanded in C around 0 46.6%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-1 \cdot \frac{A + \sqrt{{A}^{2} + {B}^{2}}}{B}\right)}}{\pi} \]
      4. Step-by-step derivation
        1. associate-*r/46.6%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-1 \cdot \left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}{B}\right)}}{\pi} \]
        2. mul-1-neg46.6%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{\color{blue}{-\left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}}{B}\right)}{\pi} \]
        3. +-commutative46.6%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{\color{blue}{{B}^{2} + {A}^{2}}}\right)}{B}\right)}{\pi} \]
        4. unpow246.6%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right)}{B}\right)}{\pi} \]
        5. unpow246.6%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right)}{B}\right)}{\pi} \]
        6. hypot-define75.0%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}{B}\right)}{\pi} \]
      5. Simplified75.0%

        \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-\left(A + \mathsf{hypot}\left(B, A\right)\right)}{B}\right)}}{\pi} \]
      6. Step-by-step derivation
        1. associate-*r/75.0%

          \[\leadsto \color{blue}{\frac{180 \cdot \tan^{-1} \left(\frac{-\left(A + \mathsf{hypot}\left(B, A\right)\right)}{B}\right)}{\pi}} \]
        2. distribute-frac-neg75.0%

          \[\leadsto \frac{180 \cdot \tan^{-1} \color{blue}{\left(-\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)}}{\pi} \]
        3. atan-neg75.0%

          \[\leadsto \frac{180 \cdot \color{blue}{\left(-\tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)\right)}}{\pi} \]
      7. Applied egg-rr75.0%

        \[\leadsto \color{blue}{\frac{180 \cdot \left(-\tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)\right)}{\pi}} \]
      8. Step-by-step derivation
        1. distribute-rgt-neg-out75.0%

          \[\leadsto \frac{\color{blue}{-180 \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)}}{\pi} \]
        2. distribute-lft-neg-in75.0%

          \[\leadsto \frac{\color{blue}{\left(-180\right) \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)}}{\pi} \]
        3. metadata-eval75.0%

          \[\leadsto \frac{\color{blue}{-180} \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(B, A\right)}{B}\right)}{\pi} \]
        4. hypot-undefine46.6%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \color{blue}{\sqrt{B \cdot B + A \cdot A}}}{B}\right)}{\pi} \]
        5. unpow246.6%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{\color{blue}{{B}^{2}} + A \cdot A}}{B}\right)}{\pi} \]
        6. unpow246.6%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{{B}^{2} + \color{blue}{{A}^{2}}}}{B}\right)}{\pi} \]
        7. +-commutative46.6%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{\color{blue}{{A}^{2} + {B}^{2}}}}{B}\right)}{\pi} \]
        8. unpow246.6%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{\color{blue}{A \cdot A} + {B}^{2}}}{B}\right)}{\pi} \]
        9. unpow246.6%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \sqrt{A \cdot A + \color{blue}{B \cdot B}}}{B}\right)}{\pi} \]
        10. hypot-define75.0%

          \[\leadsto \frac{-180 \cdot \tan^{-1} \left(\frac{A + \color{blue}{\mathsf{hypot}\left(A, B\right)}}{B}\right)}{\pi} \]
      9. Simplified75.0%

        \[\leadsto \color{blue}{\frac{-180 \cdot \tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}} \]
      10. Taylor expanded in A around 0 46.6%

        \[\leadsto \color{blue}{-180 \cdot \frac{\tan^{-1} \left(\frac{A + \sqrt{{A}^{2} + {B}^{2}}}{B}\right)}{\pi}} \]
      11. Step-by-step derivation
        1. unpow246.6%

          \[\leadsto -180 \cdot \frac{\tan^{-1} \left(\frac{A + \sqrt{\color{blue}{A \cdot A} + {B}^{2}}}{B}\right)}{\pi} \]
        2. unpow246.6%

          \[\leadsto -180 \cdot \frac{\tan^{-1} \left(\frac{A + \sqrt{A \cdot A + \color{blue}{B \cdot B}}}{B}\right)}{\pi} \]
        3. hypot-undefine75.0%

          \[\leadsto -180 \cdot \frac{\tan^{-1} \left(\frac{A + \color{blue}{\mathsf{hypot}\left(A, B\right)}}{B}\right)}{\pi} \]
      12. Simplified75.0%

        \[\leadsto \color{blue}{-180 \cdot \frac{\tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}} \]

      if 9.2000000000000001e58 < C

      1. Initial program 14.2%

        \[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} \]
      2. Add Preprocessing
      3. Applied egg-rr56.5%

        \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
      4. Taylor expanded in C around inf 76.2%

        \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-1 \cdot \frac{A + -1 \cdot A}{B} + -0.5 \cdot \frac{B}{C}\right)}}} \]
    3. Recombined 3 regimes into one program.
    4. Final simplification79.4%

      \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq -1.1 \cdot 10^{+72}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 + \frac{C}{B}\right)}}\\ \mathbf{elif}\;C \leq 9.2 \cdot 10^{+58}:\\ \;\;\;\;-180 \cdot \frac{\tan^{-1} \left(\frac{A + \mathsf{hypot}\left(A, B\right)}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\ \end{array} \]
    5. Add Preprocessing

    Alternative 6: 80.5% accurate, 1.9× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;C \leq 3.6 \cdot 10^{+65}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\ \end{array} \end{array} \]
    (FPCore (A B C)
     :precision binary64
     (if (<= C 3.6e+65)
       (* 180.0 (/ (atan (/ (- (- C A) (hypot B (- A C))) B)) PI))
       (/ 180.0 (/ PI (atan (+ (* -0.5 (/ B C)) (/ (- A A) B)))))))
    double code(double A, double B, double C) {
    	double tmp;
    	if (C <= 3.6e+65) {
    		tmp = 180.0 * (atan((((C - A) - hypot(B, (A - C))) / B)) / ((double) M_PI));
    	} else {
    		tmp = 180.0 / (((double) M_PI) / atan(((-0.5 * (B / C)) + ((A - A) / B))));
    	}
    	return tmp;
    }
    
    public static double code(double A, double B, double C) {
    	double tmp;
    	if (C <= 3.6e+65) {
    		tmp = 180.0 * (Math.atan((((C - A) - Math.hypot(B, (A - C))) / B)) / Math.PI);
    	} else {
    		tmp = 180.0 / (Math.PI / Math.atan(((-0.5 * (B / C)) + ((A - A) / B))));
    	}
    	return tmp;
    }
    
    def code(A, B, C):
    	tmp = 0
    	if C <= 3.6e+65:
    		tmp = 180.0 * (math.atan((((C - A) - math.hypot(B, (A - C))) / B)) / math.pi)
    	else:
    		tmp = 180.0 / (math.pi / math.atan(((-0.5 * (B / C)) + ((A - A) / B))))
    	return tmp
    
    function code(A, B, C)
    	tmp = 0.0
    	if (C <= 3.6e+65)
    		tmp = Float64(180.0 * Float64(atan(Float64(Float64(Float64(C - A) - hypot(B, Float64(A - C))) / B)) / pi));
    	else
    		tmp = Float64(180.0 / Float64(pi / atan(Float64(Float64(-0.5 * Float64(B / C)) + Float64(Float64(A - A) / B)))));
    	end
    	return tmp
    end
    
    function tmp_2 = code(A, B, C)
    	tmp = 0.0;
    	if (C <= 3.6e+65)
    		tmp = 180.0 * (atan((((C - A) - hypot(B, (A - C))) / B)) / pi);
    	else
    		tmp = 180.0 / (pi / atan(((-0.5 * (B / C)) + ((A - A) / B))));
    	end
    	tmp_2 = tmp;
    end
    
    code[A_, B_, C_] := If[LessEqual[C, 3.6e+65], 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], N[(180.0 / N[(Pi / N[ArcTan[N[(N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision] + N[(N[(A - A), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;C \leq 3.6 \cdot 10^{+65}:\\
    \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right)}{\pi}\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if C < 3.59999999999999978e65

      1. Initial program 60.7%

        \[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} \]
      2. Step-by-step derivation
        1. associate-*l/60.7%

          \[\leadsto 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} \]
        2. *-lft-identity60.7%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{\color{blue}{\left(C - A\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}}}{B}\right)}{\pi} \]
        3. +-commutative60.7%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \sqrt{\color{blue}{{B}^{2} + {\left(A - C\right)}^{2}}}}{B}\right)}{\pi} \]
        4. unpow260.7%

          \[\leadsto 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} \]
        5. unpow260.7%

          \[\leadsto 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} \]
        6. hypot-define83.8%

          \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \color{blue}{\mathsf{hypot}\left(B, A - C\right)}}{B}\right)}{\pi} \]
      3. Simplified83.8%

        \[\leadsto \color{blue}{180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right)}{\pi}} \]
      4. Add Preprocessing

      if 3.59999999999999978e65 < C

      1. Initial program 14.2%

        \[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} \]
      2. Add Preprocessing
      3. Applied egg-rr56.5%

        \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
      4. Taylor expanded in C around inf 76.2%

        \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-1 \cdot \frac{A + -1 \cdot A}{B} + -0.5 \cdot \frac{B}{C}\right)}}} \]
    3. Recombined 2 regimes into one program.
    4. Final simplification82.4%

      \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq 3.6 \cdot 10^{+65}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\ \end{array} \]
    5. Add Preprocessing

    Alternative 7: 79.8% accurate, 1.9× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;A \leq -3.5 \cdot 10^{-34}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{-0.5 \cdot \left(B + B \cdot \frac{C}{A}\right)}{-A}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}{B}\right)}{\pi}\\ \end{array} \end{array} \]
    (FPCore (A B C)
     :precision binary64
     (if (<= A -3.5e-34)
       (/ (* 180.0 (atan (/ (* -0.5 (+ B (* B (/ C A)))) (- A)))) PI)
       (* 180.0 (/ (atan (/ (- C (+ A (hypot B (- A C)))) B)) PI))))
    double code(double A, double B, double C) {
    	double tmp;
    	if (A <= -3.5e-34) {
    		tmp = (180.0 * atan(((-0.5 * (B + (B * (C / A)))) / -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) {
    	double tmp;
    	if (A <= -3.5e-34) {
    		tmp = (180.0 * Math.atan(((-0.5 * (B + (B * (C / A)))) / -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):
    	tmp = 0
    	if A <= -3.5e-34:
    		tmp = (180.0 * math.atan(((-0.5 * (B + (B * (C / A)))) / -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)
    	tmp = 0.0
    	if (A <= -3.5e-34)
    		tmp = Float64(Float64(180.0 * atan(Float64(Float64(-0.5 * Float64(B + Float64(B * Float64(C / A)))) / Float64(-A)))) / pi);
    	else
    		tmp = Float64(180.0 * Float64(atan(Float64(Float64(C - Float64(A + hypot(B, Float64(A - C)))) / B)) / pi));
    	end
    	return tmp
    end
    
    function tmp_2 = code(A, B, C)
    	tmp = 0.0;
    	if (A <= -3.5e-34)
    		tmp = (180.0 * atan(((-0.5 * (B + (B * (C / A)))) / -A))) / pi;
    	else
    		tmp = 180.0 * (atan(((C - (A + hypot(B, (A - C)))) / B)) / pi);
    	end
    	tmp_2 = tmp;
    end
    
    code[A_, B_, C_] := If[LessEqual[A, -3.5e-34], N[(N[(180.0 * N[ArcTan[N[(N[(-0.5 * N[(B + N[(B * N[(C / A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / (-A)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(N[(C - N[(A + N[Sqrt[B ^ 2 + N[(A - C), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;A \leq -3.5 \cdot 10^{-34}:\\
    \;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{-0.5 \cdot \left(B + B \cdot \frac{C}{A}\right)}{-A}\right)}{\pi}\\
    
    \mathbf{else}:\\
    \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}{B}\right)}{\pi}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if A < -3.5e-34

      1. Initial program 29.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} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. associate-*r/29.8%

          \[\leadsto \color{blue}{\frac{180 \cdot \tan^{-1} \left(\frac{1}{B} \cdot \left(\left(C - A\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)\right)}{\pi}} \]
        2. associate-*l/29.8%

          \[\leadsto \frac{180 \cdot \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} \]
        3. *-un-lft-identity29.8%

          \[\leadsto \frac{180 \cdot \tan^{-1} \left(\frac{\color{blue}{\left(C - A\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}}}{B}\right)}{\pi} \]
        4. unpow229.8%

          \[\leadsto \frac{180 \cdot \tan^{-1} \left(\frac{\left(C - A\right) - \sqrt{\color{blue}{\left(A - C\right) \cdot \left(A - C\right)} + {B}^{2}}}{B}\right)}{\pi} \]
        5. unpow229.8%

          \[\leadsto \frac{180 \cdot \tan^{-1} \left(\frac{\left(C - A\right) - \sqrt{\left(A - C\right) \cdot \left(A - C\right) + \color{blue}{B \cdot B}}}{B}\right)}{\pi} \]
        6. hypot-define56.1%

          \[\leadsto \frac{180 \cdot \tan^{-1} \left(\frac{\left(C - A\right) - \color{blue}{\mathsf{hypot}\left(A - C, B\right)}}{B}\right)}{\pi} \]
      4. Applied egg-rr56.1%

        \[\leadsto \color{blue}{\frac{180 \cdot \tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}{\pi}} \]
      5. Taylor expanded in A around -inf 68.8%

        \[\leadsto \frac{180 \cdot \tan^{-1} \color{blue}{\left(-1 \cdot \frac{-0.5 \cdot B + -0.5 \cdot \frac{B \cdot C}{A}}{A}\right)}}{\pi} \]
      6. Step-by-step derivation
        1. mul-1-neg68.8%

          \[\leadsto \frac{180 \cdot \tan^{-1} \color{blue}{\left(-\frac{-0.5 \cdot B + -0.5 \cdot \frac{B \cdot C}{A}}{A}\right)}}{\pi} \]
        2. distribute-neg-frac268.8%

          \[\leadsto \frac{180 \cdot \tan^{-1} \color{blue}{\left(\frac{-0.5 \cdot B + -0.5 \cdot \frac{B \cdot C}{A}}{-A}\right)}}{\pi} \]
        3. distribute-lft-out68.8%

          \[\leadsto \frac{180 \cdot \tan^{-1} \left(\frac{\color{blue}{-0.5 \cdot \left(B + \frac{B \cdot C}{A}\right)}}{-A}\right)}{\pi} \]
        4. associate-/l*68.8%

          \[\leadsto \frac{180 \cdot \tan^{-1} \left(\frac{-0.5 \cdot \left(B + \color{blue}{B \cdot \frac{C}{A}}\right)}{-A}\right)}{\pi} \]
      7. Simplified68.8%

        \[\leadsto \frac{180 \cdot \tan^{-1} \color{blue}{\left(\frac{-0.5 \cdot \left(B + B \cdot \frac{C}{A}\right)}{-A}\right)}}{\pi} \]

      if -3.5e-34 < A

      1. Initial program 60.2%

        \[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} \]
      2. Step-by-step derivation
        1. Simplified87.0%

          \[\leadsto \color{blue}{180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}{B}\right)}{\pi}} \]
        2. Add Preprocessing
      3. Recombined 2 regimes into one program.
      4. Add Preprocessing

      Alternative 8: 79.8% accurate, 1.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;C \leq 3.3 \cdot 10^{+65}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A\right)}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\ \end{array} \end{array} \]
      (FPCore (A B C)
       :precision binary64
       (if (<= C 3.3e+65)
         (/ (* 180.0 (atan (/ (- (- C A) (hypot B A)) B))) PI)
         (/ 180.0 (/ PI (atan (+ (* -0.5 (/ B C)) (/ (- A A) B)))))))
      double code(double A, double B, double C) {
      	double tmp;
      	if (C <= 3.3e+65) {
      		tmp = (180.0 * atan((((C - A) - hypot(B, A)) / B))) / ((double) M_PI);
      	} else {
      		tmp = 180.0 / (((double) M_PI) / atan(((-0.5 * (B / C)) + ((A - A) / B))));
      	}
      	return tmp;
      }
      
      public static double code(double A, double B, double C) {
      	double tmp;
      	if (C <= 3.3e+65) {
      		tmp = (180.0 * Math.atan((((C - A) - Math.hypot(B, A)) / B))) / Math.PI;
      	} else {
      		tmp = 180.0 / (Math.PI / Math.atan(((-0.5 * (B / C)) + ((A - A) / B))));
      	}
      	return tmp;
      }
      
      def code(A, B, C):
      	tmp = 0
      	if C <= 3.3e+65:
      		tmp = (180.0 * math.atan((((C - A) - math.hypot(B, A)) / B))) / math.pi
      	else:
      		tmp = 180.0 / (math.pi / math.atan(((-0.5 * (B / C)) + ((A - A) / B))))
      	return tmp
      
      function code(A, B, C)
      	tmp = 0.0
      	if (C <= 3.3e+65)
      		tmp = Float64(Float64(180.0 * atan(Float64(Float64(Float64(C - A) - hypot(B, A)) / B))) / pi);
      	else
      		tmp = Float64(180.0 / Float64(pi / atan(Float64(Float64(-0.5 * Float64(B / C)) + Float64(Float64(A - A) / B)))));
      	end
      	return tmp
      end
      
      function tmp_2 = code(A, B, C)
      	tmp = 0.0;
      	if (C <= 3.3e+65)
      		tmp = (180.0 * atan((((C - A) - hypot(B, A)) / B))) / pi;
      	else
      		tmp = 180.0 / (pi / atan(((-0.5 * (B / C)) + ((A - A) / B))));
      	end
      	tmp_2 = tmp;
      end
      
      code[A_, B_, C_] := If[LessEqual[C, 3.3e+65], N[(N[(180.0 * N[ArcTan[N[(N[(N[(C - A), $MachinePrecision] - N[Sqrt[B ^ 2 + A ^ 2], $MachinePrecision]), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], N[(180.0 / N[(Pi / N[ArcTan[N[(N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision] + N[(N[(A - A), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;C \leq 3.3 \cdot 10^{+65}:\\
      \;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A\right)}{B}\right)}{\pi}\\
      
      \mathbf{else}:\\
      \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if C < 3.30000000000000023e65

        1. Initial program 60.7%

          \[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} \]
        2. Step-by-step derivation
          1. Simplified79.7%

            \[\leadsto \color{blue}{180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}{B}\right)}{\pi}} \]
          2. Add Preprocessing
          3. Taylor expanded in C around 0 59.8%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \color{blue}{\left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}}{B}\right)}{\pi} \]
          4. Step-by-step derivation
            1. +-commutative59.8%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \sqrt{\color{blue}{{B}^{2} + {A}^{2}}}\right)}{B}\right)}{\pi} \]
            2. unpow259.8%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right)}{B}\right)}{\pi} \]
            3. unpow259.8%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right)}{B}\right)}{\pi} \]
            4. hypot-define78.9%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}{B}\right)}{\pi} \]
          5. Simplified78.9%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \color{blue}{\left(A + \mathsf{hypot}\left(B, A\right)\right)}}{B}\right)}{\pi} \]
          6. Step-by-step derivation
            1. associate-*r/78.9%

              \[\leadsto \color{blue}{\frac{180 \cdot \tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A\right)\right)}{B}\right)}{\pi}} \]
            2. associate--r+83.1%

              \[\leadsto \frac{180 \cdot \tan^{-1} \left(\frac{\color{blue}{\left(C - A\right) - \mathsf{hypot}\left(B, A\right)}}{B}\right)}{\pi} \]
          7. Applied egg-rr83.1%

            \[\leadsto \color{blue}{\frac{180 \cdot \tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A\right)}{B}\right)}{\pi}} \]

          if 3.30000000000000023e65 < C

          1. Initial program 14.2%

            \[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} \]
          2. Add Preprocessing
          3. Applied egg-rr56.5%

            \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
          4. Taylor expanded in C around inf 76.2%

            \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-1 \cdot \frac{A + -1 \cdot A}{B} + -0.5 \cdot \frac{B}{C}\right)}}} \]
        3. Recombined 2 regimes into one program.
        4. Final simplification81.8%

          \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq 3.3 \cdot 10^{+65}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A\right)}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C} + \frac{A - A}{B}\right)}}\\ \end{array} \]
        5. Add Preprocessing

        Alternative 9: 64.1% accurate, 3.3× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;B \leq -7.8 \cdot 10^{-67}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(B - \left(A - C\right)\right)\right)}{\pi}\\ \mathbf{elif}\;B \leq -1.02 \cdot 10^{-253}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{-0.5 \cdot \left(B + B \cdot \frac{C}{A}\right)}{-A}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}}\\ \end{array} \end{array} \]
        (FPCore (A B C)
         :precision binary64
         (if (<= B -7.8e-67)
           (* 180.0 (/ (atan (* (/ 1.0 B) (- B (- A C)))) PI))
           (if (<= B -1.02e-253)
             (/ (* 180.0 (atan (/ (* -0.5 (+ B (* B (/ C A)))) (- A)))) PI)
             (/ 180.0 (/ PI (atan (- -1.0 (/ (- A C) B))))))))
        double code(double A, double B, double C) {
        	double tmp;
        	if (B <= -7.8e-67) {
        		tmp = 180.0 * (atan(((1.0 / B) * (B - (A - C)))) / ((double) M_PI));
        	} else if (B <= -1.02e-253) {
        		tmp = (180.0 * atan(((-0.5 * (B + (B * (C / A)))) / -A))) / ((double) M_PI);
        	} else {
        		tmp = 180.0 / (((double) M_PI) / atan((-1.0 - ((A - C) / B))));
        	}
        	return tmp;
        }
        
        public static double code(double A, double B, double C) {
        	double tmp;
        	if (B <= -7.8e-67) {
        		tmp = 180.0 * (Math.atan(((1.0 / B) * (B - (A - C)))) / Math.PI);
        	} else if (B <= -1.02e-253) {
        		tmp = (180.0 * Math.atan(((-0.5 * (B + (B * (C / A)))) / -A))) / Math.PI;
        	} else {
        		tmp = 180.0 / (Math.PI / Math.atan((-1.0 - ((A - C) / B))));
        	}
        	return tmp;
        }
        
        def code(A, B, C):
        	tmp = 0
        	if B <= -7.8e-67:
        		tmp = 180.0 * (math.atan(((1.0 / B) * (B - (A - C)))) / math.pi)
        	elif B <= -1.02e-253:
        		tmp = (180.0 * math.atan(((-0.5 * (B + (B * (C / A)))) / -A))) / math.pi
        	else:
        		tmp = 180.0 / (math.pi / math.atan((-1.0 - ((A - C) / B))))
        	return tmp
        
        function code(A, B, C)
        	tmp = 0.0
        	if (B <= -7.8e-67)
        		tmp = Float64(180.0 * Float64(atan(Float64(Float64(1.0 / B) * Float64(B - Float64(A - C)))) / pi));
        	elseif (B <= -1.02e-253)
        		tmp = Float64(Float64(180.0 * atan(Float64(Float64(-0.5 * Float64(B + Float64(B * Float64(C / A)))) / Float64(-A)))) / pi);
        	else
        		tmp = Float64(180.0 / Float64(pi / atan(Float64(-1.0 - Float64(Float64(A - C) / B)))));
        	end
        	return tmp
        end
        
        function tmp_2 = code(A, B, C)
        	tmp = 0.0;
        	if (B <= -7.8e-67)
        		tmp = 180.0 * (atan(((1.0 / B) * (B - (A - C)))) / pi);
        	elseif (B <= -1.02e-253)
        		tmp = (180.0 * atan(((-0.5 * (B + (B * (C / A)))) / -A))) / pi;
        	else
        		tmp = 180.0 / (pi / atan((-1.0 - ((A - C) / B))));
        	end
        	tmp_2 = tmp;
        end
        
        code[A_, B_, C_] := If[LessEqual[B, -7.8e-67], N[(180.0 * N[(N[ArcTan[N[(N[(1.0 / B), $MachinePrecision] * N[(B - N[(A - C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, -1.02e-253], N[(N[(180.0 * N[ArcTan[N[(N[(-0.5 * N[(B + N[(B * N[(C / A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / (-A)), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], N[(180.0 / N[(Pi / N[ArcTan[N[(-1.0 - N[(N[(A - C), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;B \leq -7.8 \cdot 10^{-67}:\\
        \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(B - \left(A - C\right)\right)\right)}{\pi}\\
        
        \mathbf{elif}\;B \leq -1.02 \cdot 10^{-253}:\\
        \;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{-0.5 \cdot \left(B + B \cdot \frac{C}{A}\right)}{-A}\right)}{\pi}\\
        
        \mathbf{else}:\\
        \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if B < -7.7999999999999997e-67

          1. Initial program 49.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} \]
          2. Add Preprocessing
          3. Taylor expanded in B around -inf 74.9%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\left(C - A\right) - \color{blue}{-1 \cdot B}\right)\right)}{\pi} \]
          4. Step-by-step derivation
            1. neg-mul-174.9%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\left(C - A\right) - \color{blue}{\left(-B\right)}\right)\right)}{\pi} \]
          5. Simplified74.9%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\left(C - A\right) - \color{blue}{\left(-B\right)}\right)\right)}{\pi} \]

          if -7.7999999999999997e-67 < B < -1.02e-253

          1. Initial program 39.2%

            \[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} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. associate-*r/39.2%

              \[\leadsto \color{blue}{\frac{180 \cdot \tan^{-1} \left(\frac{1}{B} \cdot \left(\left(C - A\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}\right)\right)}{\pi}} \]
            2. associate-*l/39.2%

              \[\leadsto \frac{180 \cdot \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} \]
            3. *-un-lft-identity39.2%

              \[\leadsto \frac{180 \cdot \tan^{-1} \left(\frac{\color{blue}{\left(C - A\right) - \sqrt{{\left(A - C\right)}^{2} + {B}^{2}}}}{B}\right)}{\pi} \]
            4. unpow239.2%

              \[\leadsto \frac{180 \cdot \tan^{-1} \left(\frac{\left(C - A\right) - \sqrt{\color{blue}{\left(A - C\right) \cdot \left(A - C\right)} + {B}^{2}}}{B}\right)}{\pi} \]
            5. unpow239.2%

              \[\leadsto \frac{180 \cdot \tan^{-1} \left(\frac{\left(C - A\right) - \sqrt{\left(A - C\right) \cdot \left(A - C\right) + \color{blue}{B \cdot B}}}{B}\right)}{\pi} \]
            6. hypot-define63.6%

              \[\leadsto \frac{180 \cdot \tan^{-1} \left(\frac{\left(C - A\right) - \color{blue}{\mathsf{hypot}\left(A - C, B\right)}}{B}\right)}{\pi} \]
          4. Applied egg-rr63.6%

            \[\leadsto \color{blue}{\frac{180 \cdot \tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}{\pi}} \]
          5. Taylor expanded in A around -inf 52.9%

            \[\leadsto \frac{180 \cdot \tan^{-1} \color{blue}{\left(-1 \cdot \frac{-0.5 \cdot B + -0.5 \cdot \frac{B \cdot C}{A}}{A}\right)}}{\pi} \]
          6. Step-by-step derivation
            1. mul-1-neg52.9%

              \[\leadsto \frac{180 \cdot \tan^{-1} \color{blue}{\left(-\frac{-0.5 \cdot B + -0.5 \cdot \frac{B \cdot C}{A}}{A}\right)}}{\pi} \]
            2. distribute-neg-frac252.9%

              \[\leadsto \frac{180 \cdot \tan^{-1} \color{blue}{\left(\frac{-0.5 \cdot B + -0.5 \cdot \frac{B \cdot C}{A}}{-A}\right)}}{\pi} \]
            3. distribute-lft-out52.9%

              \[\leadsto \frac{180 \cdot \tan^{-1} \left(\frac{\color{blue}{-0.5 \cdot \left(B + \frac{B \cdot C}{A}\right)}}{-A}\right)}{\pi} \]
            4. associate-/l*52.9%

              \[\leadsto \frac{180 \cdot \tan^{-1} \left(\frac{-0.5 \cdot \left(B + \color{blue}{B \cdot \frac{C}{A}}\right)}{-A}\right)}{\pi} \]
          7. Simplified52.9%

            \[\leadsto \frac{180 \cdot \tan^{-1} \color{blue}{\left(\frac{-0.5 \cdot \left(B + B \cdot \frac{C}{A}\right)}{-A}\right)}}{\pi} \]

          if -1.02e-253 < B

          1. Initial program 56.0%

            \[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} \]
          2. Add Preprocessing
          3. Applied egg-rr82.8%

            \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
          4. Taylor expanded in B around inf 67.2%

            \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
          5. Step-by-step derivation
            1. div-inv67.2%

              \[\leadsto \frac{180}{\color{blue}{\pi \cdot \frac{1}{\tan^{-1} \left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
            2. associate--r+67.2%

              \[\leadsto \frac{180}{\pi \cdot \frac{1}{\tan^{-1} \color{blue}{\left(\left(\frac{C}{B} - 1\right) - \frac{A}{B}\right)}}} \]
          6. Applied egg-rr67.2%

            \[\leadsto \frac{180}{\color{blue}{\pi \cdot \frac{1}{\tan^{-1} \left(\left(\frac{C}{B} - 1\right) - \frac{A}{B}\right)}}} \]
          7. Taylor expanded in C around 0 67.2%

            \[\leadsto \frac{180}{\color{blue}{\frac{\pi}{\tan^{-1} \left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
          8. Simplified69.2%

            \[\leadsto \frac{180}{\color{blue}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}}} \]
        3. Recombined 3 regimes into one program.
        4. Final simplification68.6%

          \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq -7.8 \cdot 10^{-67}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(B - \left(A - C\right)\right)\right)}{\pi}\\ \mathbf{elif}\;B \leq -1.02 \cdot 10^{-253}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{-0.5 \cdot \left(B + B \cdot \frac{C}{A}\right)}{-A}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}}\\ \end{array} \]
        5. Add Preprocessing

        Alternative 10: 64.0% accurate, 3.3× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;B \leq -5.3 \cdot 10^{-67}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(B - \left(A - C\right)\right)\right)}{\pi}\\ \mathbf{elif}\;B \leq -5.4 \cdot 10^{-254}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{-0.5 \cdot \left(B + B \cdot \frac{C}{A}\right)}{-A}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}}\\ \end{array} \end{array} \]
        (FPCore (A B C)
         :precision binary64
         (if (<= B -5.3e-67)
           (* 180.0 (/ (atan (* (/ 1.0 B) (- B (- A C)))) PI))
           (if (<= B -5.4e-254)
             (* 180.0 (/ (atan (/ (* -0.5 (+ B (* B (/ C A)))) (- A))) PI))
             (/ 180.0 (/ PI (atan (- -1.0 (/ (- A C) B))))))))
        double code(double A, double B, double C) {
        	double tmp;
        	if (B <= -5.3e-67) {
        		tmp = 180.0 * (atan(((1.0 / B) * (B - (A - C)))) / ((double) M_PI));
        	} else if (B <= -5.4e-254) {
        		tmp = 180.0 * (atan(((-0.5 * (B + (B * (C / A)))) / -A)) / ((double) M_PI));
        	} else {
        		tmp = 180.0 / (((double) M_PI) / atan((-1.0 - ((A - C) / B))));
        	}
        	return tmp;
        }
        
        public static double code(double A, double B, double C) {
        	double tmp;
        	if (B <= -5.3e-67) {
        		tmp = 180.0 * (Math.atan(((1.0 / B) * (B - (A - C)))) / Math.PI);
        	} else if (B <= -5.4e-254) {
        		tmp = 180.0 * (Math.atan(((-0.5 * (B + (B * (C / A)))) / -A)) / Math.PI);
        	} else {
        		tmp = 180.0 / (Math.PI / Math.atan((-1.0 - ((A - C) / B))));
        	}
        	return tmp;
        }
        
        def code(A, B, C):
        	tmp = 0
        	if B <= -5.3e-67:
        		tmp = 180.0 * (math.atan(((1.0 / B) * (B - (A - C)))) / math.pi)
        	elif B <= -5.4e-254:
        		tmp = 180.0 * (math.atan(((-0.5 * (B + (B * (C / A)))) / -A)) / math.pi)
        	else:
        		tmp = 180.0 / (math.pi / math.atan((-1.0 - ((A - C) / B))))
        	return tmp
        
        function code(A, B, C)
        	tmp = 0.0
        	if (B <= -5.3e-67)
        		tmp = Float64(180.0 * Float64(atan(Float64(Float64(1.0 / B) * Float64(B - Float64(A - C)))) / pi));
        	elseif (B <= -5.4e-254)
        		tmp = Float64(180.0 * Float64(atan(Float64(Float64(-0.5 * Float64(B + Float64(B * Float64(C / A)))) / Float64(-A))) / pi));
        	else
        		tmp = Float64(180.0 / Float64(pi / atan(Float64(-1.0 - Float64(Float64(A - C) / B)))));
        	end
        	return tmp
        end
        
        function tmp_2 = code(A, B, C)
        	tmp = 0.0;
        	if (B <= -5.3e-67)
        		tmp = 180.0 * (atan(((1.0 / B) * (B - (A - C)))) / pi);
        	elseif (B <= -5.4e-254)
        		tmp = 180.0 * (atan(((-0.5 * (B + (B * (C / A)))) / -A)) / pi);
        	else
        		tmp = 180.0 / (pi / atan((-1.0 - ((A - C) / B))));
        	end
        	tmp_2 = tmp;
        end
        
        code[A_, B_, C_] := If[LessEqual[B, -5.3e-67], N[(180.0 * N[(N[ArcTan[N[(N[(1.0 / B), $MachinePrecision] * N[(B - N[(A - C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, -5.4e-254], N[(180.0 * N[(N[ArcTan[N[(N[(-0.5 * N[(B + N[(B * N[(C / A), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / (-A)), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 / N[(Pi / N[ArcTan[N[(-1.0 - N[(N[(A - C), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;B \leq -5.3 \cdot 10^{-67}:\\
        \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(B - \left(A - C\right)\right)\right)}{\pi}\\
        
        \mathbf{elif}\;B \leq -5.4 \cdot 10^{-254}:\\
        \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{-0.5 \cdot \left(B + B \cdot \frac{C}{A}\right)}{-A}\right)}{\pi}\\
        
        \mathbf{else}:\\
        \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if B < -5.29999999999999971e-67

          1. Initial program 49.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} \]
          2. Add Preprocessing
          3. Taylor expanded in B around -inf 74.9%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\left(C - A\right) - \color{blue}{-1 \cdot B}\right)\right)}{\pi} \]
          4. Step-by-step derivation
            1. neg-mul-174.9%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\left(C - A\right) - \color{blue}{\left(-B\right)}\right)\right)}{\pi} \]
          5. Simplified74.9%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\left(C - A\right) - \color{blue}{\left(-B\right)}\right)\right)}{\pi} \]

          if -5.29999999999999971e-67 < B < -5.40000000000000013e-254

          1. Initial program 39.2%

            \[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} \]
          2. Add Preprocessing
          3. Taylor expanded in A around -inf 52.7%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-1 \cdot \frac{-0.5 \cdot B + -0.5 \cdot \frac{B \cdot C}{A}}{A}\right)}}{\pi} \]
          4. Step-by-step derivation
            1. associate-*r/52.7%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-1 \cdot \left(-0.5 \cdot B + -0.5 \cdot \frac{B \cdot C}{A}\right)}{A}\right)}}{\pi} \]
            2. mul-1-neg52.7%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{\color{blue}{-\left(-0.5 \cdot B + -0.5 \cdot \frac{B \cdot C}{A}\right)}}{A}\right)}{\pi} \]
            3. distribute-lft-out52.7%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\color{blue}{-0.5 \cdot \left(B + \frac{B \cdot C}{A}\right)}}{A}\right)}{\pi} \]
            4. associate-/l*52.7%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{--0.5 \cdot \left(B + \color{blue}{B \cdot \frac{C}{A}}\right)}{A}\right)}{\pi} \]
          5. Simplified52.7%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{--0.5 \cdot \left(B + B \cdot \frac{C}{A}\right)}{A}\right)}}{\pi} \]

          if -5.40000000000000013e-254 < B

          1. Initial program 56.0%

            \[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} \]
          2. Add Preprocessing
          3. Applied egg-rr82.8%

            \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
          4. Taylor expanded in B around inf 67.2%

            \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
          5. Step-by-step derivation
            1. div-inv67.2%

              \[\leadsto \frac{180}{\color{blue}{\pi \cdot \frac{1}{\tan^{-1} \left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
            2. associate--r+67.2%

              \[\leadsto \frac{180}{\pi \cdot \frac{1}{\tan^{-1} \color{blue}{\left(\left(\frac{C}{B} - 1\right) - \frac{A}{B}\right)}}} \]
          6. Applied egg-rr67.2%

            \[\leadsto \frac{180}{\color{blue}{\pi \cdot \frac{1}{\tan^{-1} \left(\left(\frac{C}{B} - 1\right) - \frac{A}{B}\right)}}} \]
          7. Taylor expanded in C around 0 67.2%

            \[\leadsto \frac{180}{\color{blue}{\frac{\pi}{\tan^{-1} \left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
          8. Simplified69.2%

            \[\leadsto \frac{180}{\color{blue}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}}} \]
        3. Recombined 3 regimes into one program.
        4. Final simplification68.6%

          \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq -5.3 \cdot 10^{-67}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(B - \left(A - C\right)\right)\right)}{\pi}\\ \mathbf{elif}\;B \leq -5.4 \cdot 10^{-254}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{-0.5 \cdot \left(B + B \cdot \frac{C}{A}\right)}{-A}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}}\\ \end{array} \]
        5. Add Preprocessing

        Alternative 11: 60.0% accurate, 3.4× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;C \leq -28500:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 + \frac{C}{B}\right)}}\\ \mathbf{elif}\;C \leq 5.5 \cdot 10^{-245}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 + \frac{C - A}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 6 \cdot 10^{-55}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A}{B}\right)}}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \end{array} \end{array} \]
        (FPCore (A B C)
         :precision binary64
         (if (<= C -28500.0)
           (/ 180.0 (/ PI (atan (+ -1.0 (/ C B)))))
           (if (<= C 5.5e-245)
             (* 180.0 (/ (atan (+ 1.0 (/ (- C A) B))) PI))
             (if (<= C 6e-55)
               (/ 180.0 (/ PI (atan (- -1.0 (/ A B)))))
               (* 180.0 (/ (atan (* -0.5 (/ B C))) PI))))))
        double code(double A, double B, double C) {
        	double tmp;
        	if (C <= -28500.0) {
        		tmp = 180.0 / (((double) M_PI) / atan((-1.0 + (C / B))));
        	} else if (C <= 5.5e-245) {
        		tmp = 180.0 * (atan((1.0 + ((C - A) / B))) / ((double) M_PI));
        	} else if (C <= 6e-55) {
        		tmp = 180.0 / (((double) M_PI) / atan((-1.0 - (A / B))));
        	} else {
        		tmp = 180.0 * (atan((-0.5 * (B / C))) / ((double) M_PI));
        	}
        	return tmp;
        }
        
        public static double code(double A, double B, double C) {
        	double tmp;
        	if (C <= -28500.0) {
        		tmp = 180.0 / (Math.PI / Math.atan((-1.0 + (C / B))));
        	} else if (C <= 5.5e-245) {
        		tmp = 180.0 * (Math.atan((1.0 + ((C - A) / B))) / Math.PI);
        	} else if (C <= 6e-55) {
        		tmp = 180.0 / (Math.PI / Math.atan((-1.0 - (A / B))));
        	} else {
        		tmp = 180.0 * (Math.atan((-0.5 * (B / C))) / Math.PI);
        	}
        	return tmp;
        }
        
        def code(A, B, C):
        	tmp = 0
        	if C <= -28500.0:
        		tmp = 180.0 / (math.pi / math.atan((-1.0 + (C / B))))
        	elif C <= 5.5e-245:
        		tmp = 180.0 * (math.atan((1.0 + ((C - A) / B))) / math.pi)
        	elif C <= 6e-55:
        		tmp = 180.0 / (math.pi / math.atan((-1.0 - (A / B))))
        	else:
        		tmp = 180.0 * (math.atan((-0.5 * (B / C))) / math.pi)
        	return tmp
        
        function code(A, B, C)
        	tmp = 0.0
        	if (C <= -28500.0)
        		tmp = Float64(180.0 / Float64(pi / atan(Float64(-1.0 + Float64(C / B)))));
        	elseif (C <= 5.5e-245)
        		tmp = Float64(180.0 * Float64(atan(Float64(1.0 + Float64(Float64(C - A) / B))) / pi));
        	elseif (C <= 6e-55)
        		tmp = Float64(180.0 / Float64(pi / atan(Float64(-1.0 - Float64(A / B)))));
        	else
        		tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(B / C))) / pi));
        	end
        	return tmp
        end
        
        function tmp_2 = code(A, B, C)
        	tmp = 0.0;
        	if (C <= -28500.0)
        		tmp = 180.0 / (pi / atan((-1.0 + (C / B))));
        	elseif (C <= 5.5e-245)
        		tmp = 180.0 * (atan((1.0 + ((C - A) / B))) / pi);
        	elseif (C <= 6e-55)
        		tmp = 180.0 / (pi / atan((-1.0 - (A / B))));
        	else
        		tmp = 180.0 * (atan((-0.5 * (B / C))) / pi);
        	end
        	tmp_2 = tmp;
        end
        
        code[A_, B_, C_] := If[LessEqual[C, -28500.0], N[(180.0 / N[(Pi / N[ArcTan[N[(-1.0 + N[(C / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 5.5e-245], N[(180.0 * N[(N[ArcTan[N[(1.0 + N[(N[(C - A), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 6e-55], N[(180.0 / N[(Pi / N[ArcTan[N[(-1.0 - N[(A / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;C \leq -28500:\\
        \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 + \frac{C}{B}\right)}}\\
        
        \mathbf{elif}\;C \leq 5.5 \cdot 10^{-245}:\\
        \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 + \frac{C - A}{B}\right)}{\pi}\\
        
        \mathbf{elif}\;C \leq 6 \cdot 10^{-55}:\\
        \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A}{B}\right)}}\\
        
        \mathbf{else}:\\
        \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 4 regimes
        2. if C < -28500

          1. Initial program 87.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} \]
          2. Add Preprocessing
          3. Applied egg-rr98.0%

            \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
          4. Taylor expanded in B around inf 87.0%

            \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
          5. Taylor expanded in A around 0 89.9%

            \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B} - 1\right)}}} \]

          if -28500 < C < 5.49999999999999962e-245

          1. Initial program 50.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} \]
          2. Add Preprocessing
          3. Taylor expanded in B around -inf 55.3%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\left(1 + \frac{C}{B}\right) - \frac{A}{B}\right)}}{\pi} \]
          4. Step-by-step derivation
            1. associate--l+55.3%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 + \left(\frac{C}{B} - \frac{A}{B}\right)\right)}}{\pi} \]
            2. div-sub55.3%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(1 + \color{blue}{\frac{C - A}{B}}\right)}{\pi} \]
          5. Simplified55.3%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 + \frac{C - A}{B}\right)}}{\pi} \]

          if 5.49999999999999962e-245 < C < 6.00000000000000033e-55

          1. Initial program 52.5%

            \[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} \]
          2. Add Preprocessing
          3. Applied egg-rr75.9%

            \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
          4. Taylor expanded in B around inf 50.4%

            \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
          5. Taylor expanded in C around 0 49.7%

            \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-1 \cdot \left(1 + \frac{A}{B}\right)\right)}}} \]
          6. Step-by-step derivation
            1. neg-mul-149.7%

              \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-\left(1 + \frac{A}{B}\right)\right)}}} \]
            2. distribute-neg-in49.7%

              \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\left(-1\right) + \left(-\frac{A}{B}\right)\right)}}} \]
            3. metadata-eval49.7%

              \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \left(\color{blue}{-1} + \left(-\frac{A}{B}\right)\right)}} \]
            4. unsub-neg49.7%

              \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-1 - \frac{A}{B}\right)}}} \]
          7. Simplified49.7%

            \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-1 - \frac{A}{B}\right)}}} \]

          if 6.00000000000000033e-55 < C

          1. Initial program 18.2%

            \[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} \]
          2. Add Preprocessing
          3. Taylor expanded in C around inf 54.0%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(-0.5 \cdot \frac{{B}^{2}}{C} - \left(A + -1 \cdot A\right)\right)}\right)}{\pi} \]
          4. Step-by-step derivation
            1. distribute-rgt1-in54.0%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{\left(-1 + 1\right) \cdot A}\right)\right)}{\pi} \]
            2. metadata-eval54.0%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{0} \cdot A\right)\right)}{\pi} \]
            3. associate-*r/54.0%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\color{blue}{\frac{-0.5 \cdot {B}^{2}}{C}} - 0 \cdot A\right)\right)}{\pi} \]
          5. Simplified54.0%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(\frac{-0.5 \cdot {B}^{2}}{C} - 0 \cdot A\right)}\right)}{\pi} \]
          6. Taylor expanded in B around 0 66.2%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-0.5 \cdot \frac{B}{C}\right)}}{\pi} \]
        3. Recombined 4 regimes into one program.
        4. Final simplification66.9%

          \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq -28500:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 + \frac{C}{B}\right)}}\\ \mathbf{elif}\;C \leq 5.5 \cdot 10^{-245}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 + \frac{C - A}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 6 \cdot 10^{-55}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A}{B}\right)}}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \end{array} \]
        5. Add Preprocessing

        Alternative 12: 58.8% accurate, 3.4× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;C \leq -3.8 \cdot 10^{-59}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 + \frac{C}{B}\right)}}\\ \mathbf{elif}\;C \leq 5.2 \cdot 10^{-245}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 - \frac{A}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 3.3 \cdot 10^{-51}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A}{B}\right)}}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \end{array} \end{array} \]
        (FPCore (A B C)
         :precision binary64
         (if (<= C -3.8e-59)
           (/ 180.0 (/ PI (atan (+ -1.0 (/ C B)))))
           (if (<= C 5.2e-245)
             (* 180.0 (/ (atan (- 1.0 (/ A B))) PI))
             (if (<= C 3.3e-51)
               (/ 180.0 (/ PI (atan (- -1.0 (/ A B)))))
               (* 180.0 (/ (atan (* -0.5 (/ B C))) PI))))))
        double code(double A, double B, double C) {
        	double tmp;
        	if (C <= -3.8e-59) {
        		tmp = 180.0 / (((double) M_PI) / atan((-1.0 + (C / B))));
        	} else if (C <= 5.2e-245) {
        		tmp = 180.0 * (atan((1.0 - (A / B))) / ((double) M_PI));
        	} else if (C <= 3.3e-51) {
        		tmp = 180.0 / (((double) M_PI) / atan((-1.0 - (A / B))));
        	} else {
        		tmp = 180.0 * (atan((-0.5 * (B / C))) / ((double) M_PI));
        	}
        	return tmp;
        }
        
        public static double code(double A, double B, double C) {
        	double tmp;
        	if (C <= -3.8e-59) {
        		tmp = 180.0 / (Math.PI / Math.atan((-1.0 + (C / B))));
        	} else if (C <= 5.2e-245) {
        		tmp = 180.0 * (Math.atan((1.0 - (A / B))) / Math.PI);
        	} else if (C <= 3.3e-51) {
        		tmp = 180.0 / (Math.PI / Math.atan((-1.0 - (A / B))));
        	} else {
        		tmp = 180.0 * (Math.atan((-0.5 * (B / C))) / Math.PI);
        	}
        	return tmp;
        }
        
        def code(A, B, C):
        	tmp = 0
        	if C <= -3.8e-59:
        		tmp = 180.0 / (math.pi / math.atan((-1.0 + (C / B))))
        	elif C <= 5.2e-245:
        		tmp = 180.0 * (math.atan((1.0 - (A / B))) / math.pi)
        	elif C <= 3.3e-51:
        		tmp = 180.0 / (math.pi / math.atan((-1.0 - (A / B))))
        	else:
        		tmp = 180.0 * (math.atan((-0.5 * (B / C))) / math.pi)
        	return tmp
        
        function code(A, B, C)
        	tmp = 0.0
        	if (C <= -3.8e-59)
        		tmp = Float64(180.0 / Float64(pi / atan(Float64(-1.0 + Float64(C / B)))));
        	elseif (C <= 5.2e-245)
        		tmp = Float64(180.0 * Float64(atan(Float64(1.0 - Float64(A / B))) / pi));
        	elseif (C <= 3.3e-51)
        		tmp = Float64(180.0 / Float64(pi / atan(Float64(-1.0 - Float64(A / B)))));
        	else
        		tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(B / C))) / pi));
        	end
        	return tmp
        end
        
        function tmp_2 = code(A, B, C)
        	tmp = 0.0;
        	if (C <= -3.8e-59)
        		tmp = 180.0 / (pi / atan((-1.0 + (C / B))));
        	elseif (C <= 5.2e-245)
        		tmp = 180.0 * (atan((1.0 - (A / B))) / pi);
        	elseif (C <= 3.3e-51)
        		tmp = 180.0 / (pi / atan((-1.0 - (A / B))));
        	else
        		tmp = 180.0 * (atan((-0.5 * (B / C))) / pi);
        	end
        	tmp_2 = tmp;
        end
        
        code[A_, B_, C_] := If[LessEqual[C, -3.8e-59], N[(180.0 / N[(Pi / N[ArcTan[N[(-1.0 + N[(C / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 5.2e-245], N[(180.0 * N[(N[ArcTan[N[(1.0 - N[(A / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 3.3e-51], N[(180.0 / N[(Pi / N[ArcTan[N[(-1.0 - N[(A / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;C \leq -3.8 \cdot 10^{-59}:\\
        \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 + \frac{C}{B}\right)}}\\
        
        \mathbf{elif}\;C \leq 5.2 \cdot 10^{-245}:\\
        \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 - \frac{A}{B}\right)}{\pi}\\
        
        \mathbf{elif}\;C \leq 3.3 \cdot 10^{-51}:\\
        \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A}{B}\right)}}\\
        
        \mathbf{else}:\\
        \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 4 regimes
        2. if C < -3.79999999999999983e-59

          1. Initial program 81.9%

            \[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} \]
          2. Add Preprocessing
          3. Applied egg-rr93.5%

            \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
          4. Taylor expanded in B around inf 79.3%

            \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
          5. Taylor expanded in A around 0 81.8%

            \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B} - 1\right)}}} \]

          if -3.79999999999999983e-59 < C < 5.20000000000000013e-245

          1. Initial program 50.1%

            \[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} \]
          2. Add Preprocessing
          3. Taylor expanded in C around 0 47.8%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-1 \cdot \frac{A + \sqrt{{A}^{2} + {B}^{2}}}{B}\right)}}{\pi} \]
          4. Step-by-step derivation
            1. associate-*r/47.8%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-1 \cdot \left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}{B}\right)}}{\pi} \]
            2. mul-1-neg47.8%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{\color{blue}{-\left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}}{B}\right)}{\pi} \]
            3. +-commutative47.8%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{\color{blue}{{B}^{2} + {A}^{2}}}\right)}{B}\right)}{\pi} \]
            4. unpow247.8%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right)}{B}\right)}{\pi} \]
            5. unpow247.8%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right)}{B}\right)}{\pi} \]
            6. hypot-define82.0%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}{B}\right)}{\pi} \]
          5. Simplified82.0%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-\left(A + \mathsf{hypot}\left(B, A\right)\right)}{B}\right)}}{\pi} \]
          6. Taylor expanded in B around -inf 55.6%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 + -1 \cdot \frac{A}{B}\right)}}{\pi} \]
          7. Step-by-step derivation
            1. mul-1-neg55.6%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(1 + \color{blue}{\left(-\frac{A}{B}\right)}\right)}{\pi} \]
            2. sub-neg55.6%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 - \frac{A}{B}\right)}}{\pi} \]
          8. Simplified55.6%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 - \frac{A}{B}\right)}}{\pi} \]

          if 5.20000000000000013e-245 < C < 3.29999999999999973e-51

          1. Initial program 52.5%

            \[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} \]
          2. Add Preprocessing
          3. Applied egg-rr75.9%

            \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
          4. Taylor expanded in B around inf 50.4%

            \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
          5. Taylor expanded in C around 0 49.7%

            \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-1 \cdot \left(1 + \frac{A}{B}\right)\right)}}} \]
          6. Step-by-step derivation
            1. neg-mul-149.7%

              \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-\left(1 + \frac{A}{B}\right)\right)}}} \]
            2. distribute-neg-in49.7%

              \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\left(-1\right) + \left(-\frac{A}{B}\right)\right)}}} \]
            3. metadata-eval49.7%

              \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \left(\color{blue}{-1} + \left(-\frac{A}{B}\right)\right)}} \]
            4. unsub-neg49.7%

              \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-1 - \frac{A}{B}\right)}}} \]
          7. Simplified49.7%

            \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-1 - \frac{A}{B}\right)}}} \]

          if 3.29999999999999973e-51 < C

          1. Initial program 18.2%

            \[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} \]
          2. Add Preprocessing
          3. Taylor expanded in C around inf 54.0%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(-0.5 \cdot \frac{{B}^{2}}{C} - \left(A + -1 \cdot A\right)\right)}\right)}{\pi} \]
          4. Step-by-step derivation
            1. distribute-rgt1-in54.0%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{\left(-1 + 1\right) \cdot A}\right)\right)}{\pi} \]
            2. metadata-eval54.0%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{0} \cdot A\right)\right)}{\pi} \]
            3. associate-*r/54.0%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\color{blue}{\frac{-0.5 \cdot {B}^{2}}{C}} - 0 \cdot A\right)\right)}{\pi} \]
          5. Simplified54.0%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(\frac{-0.5 \cdot {B}^{2}}{C} - 0 \cdot A\right)}\right)}{\pi} \]
          6. Taylor expanded in B around 0 66.2%

            \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-0.5 \cdot \frac{B}{C}\right)}}{\pi} \]
        3. Recombined 4 regimes into one program.
        4. Final simplification66.2%

          \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq -3.8 \cdot 10^{-59}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 + \frac{C}{B}\right)}}\\ \mathbf{elif}\;C \leq 5.2 \cdot 10^{-245}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 - \frac{A}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 3.3 \cdot 10^{-51}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A}{B}\right)}}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \end{array} \]
        5. Add Preprocessing

        Alternative 13: 58.8% accurate, 3.4× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;C \leq -1 \cdot 10^{-58}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 2.5 \cdot 10^{-244}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 - \frac{A}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 2.3 \cdot 10^{-52}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A}{B}\right)}}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \end{array} \end{array} \]
        (FPCore (A B C)
         :precision binary64
         (if (<= C -1e-58)
           (* 180.0 (/ (atan (/ (- C B) B)) PI))
           (if (<= C 2.5e-244)
             (* 180.0 (/ (atan (- 1.0 (/ A B))) PI))
             (if (<= C 2.3e-52)
               (/ 180.0 (/ PI (atan (- -1.0 (/ A B)))))
               (* 180.0 (/ (atan (* -0.5 (/ B C))) PI))))))
        double code(double A, double B, double C) {
        	double tmp;
        	if (C <= -1e-58) {
        		tmp = 180.0 * (atan(((C - B) / B)) / ((double) M_PI));
        	} else if (C <= 2.5e-244) {
        		tmp = 180.0 * (atan((1.0 - (A / B))) / ((double) M_PI));
        	} else if (C <= 2.3e-52) {
        		tmp = 180.0 / (((double) M_PI) / atan((-1.0 - (A / B))));
        	} else {
        		tmp = 180.0 * (atan((-0.5 * (B / C))) / ((double) M_PI));
        	}
        	return tmp;
        }
        
        public static double code(double A, double B, double C) {
        	double tmp;
        	if (C <= -1e-58) {
        		tmp = 180.0 * (Math.atan(((C - B) / B)) / Math.PI);
        	} else if (C <= 2.5e-244) {
        		tmp = 180.0 * (Math.atan((1.0 - (A / B))) / Math.PI);
        	} else if (C <= 2.3e-52) {
        		tmp = 180.0 / (Math.PI / Math.atan((-1.0 - (A / B))));
        	} else {
        		tmp = 180.0 * (Math.atan((-0.5 * (B / C))) / Math.PI);
        	}
        	return tmp;
        }
        
        def code(A, B, C):
        	tmp = 0
        	if C <= -1e-58:
        		tmp = 180.0 * (math.atan(((C - B) / B)) / math.pi)
        	elif C <= 2.5e-244:
        		tmp = 180.0 * (math.atan((1.0 - (A / B))) / math.pi)
        	elif C <= 2.3e-52:
        		tmp = 180.0 / (math.pi / math.atan((-1.0 - (A / B))))
        	else:
        		tmp = 180.0 * (math.atan((-0.5 * (B / C))) / math.pi)
        	return tmp
        
        function code(A, B, C)
        	tmp = 0.0
        	if (C <= -1e-58)
        		tmp = Float64(180.0 * Float64(atan(Float64(Float64(C - B) / B)) / pi));
        	elseif (C <= 2.5e-244)
        		tmp = Float64(180.0 * Float64(atan(Float64(1.0 - Float64(A / B))) / pi));
        	elseif (C <= 2.3e-52)
        		tmp = Float64(180.0 / Float64(pi / atan(Float64(-1.0 - Float64(A / B)))));
        	else
        		tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(B / C))) / pi));
        	end
        	return tmp
        end
        
        function tmp_2 = code(A, B, C)
        	tmp = 0.0;
        	if (C <= -1e-58)
        		tmp = 180.0 * (atan(((C - B) / B)) / pi);
        	elseif (C <= 2.5e-244)
        		tmp = 180.0 * (atan((1.0 - (A / B))) / pi);
        	elseif (C <= 2.3e-52)
        		tmp = 180.0 / (pi / atan((-1.0 - (A / B))));
        	else
        		tmp = 180.0 * (atan((-0.5 * (B / C))) / pi);
        	end
        	tmp_2 = tmp;
        end
        
        code[A_, B_, C_] := If[LessEqual[C, -1e-58], N[(180.0 * N[(N[ArcTan[N[(N[(C - B), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 2.5e-244], N[(180.0 * N[(N[ArcTan[N[(1.0 - N[(A / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 2.3e-52], N[(180.0 / N[(Pi / N[ArcTan[N[(-1.0 - N[(A / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;C \leq -1 \cdot 10^{-58}:\\
        \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\
        
        \mathbf{elif}\;C \leq 2.5 \cdot 10^{-244}:\\
        \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 - \frac{A}{B}\right)}{\pi}\\
        
        \mathbf{elif}\;C \leq 2.3 \cdot 10^{-52}:\\
        \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A}{B}\right)}}\\
        
        \mathbf{else}:\\
        \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 4 regimes
        2. if C < -1e-58

          1. Initial program 81.9%

            \[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} \]
          2. Step-by-step derivation
            1. Simplified90.9%

              \[\leadsto \color{blue}{180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}{B}\right)}{\pi}} \]
            2. Add Preprocessing
            3. Taylor expanded in C around 0 81.3%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \color{blue}{\left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}}{B}\right)}{\pi} \]
            4. Step-by-step derivation
              1. +-commutative81.3%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \sqrt{\color{blue}{{B}^{2} + {A}^{2}}}\right)}{B}\right)}{\pi} \]
              2. unpow281.3%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right)}{B}\right)}{\pi} \]
              3. unpow281.3%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right)}{B}\right)}{\pi} \]
              4. hypot-define90.0%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}{B}\right)}{\pi} \]
            5. Simplified90.0%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \color{blue}{\left(A + \mathsf{hypot}\left(B, A\right)\right)}}{B}\right)}{\pi} \]
            6. Taylor expanded in A around 0 81.8%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{C - B}{B}\right)}}{\pi} \]

            if -1e-58 < C < 2.49999999999999999e-244

            1. Initial program 50.1%

              \[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} \]
            2. Add Preprocessing
            3. Taylor expanded in C around 0 47.8%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-1 \cdot \frac{A + \sqrt{{A}^{2} + {B}^{2}}}{B}\right)}}{\pi} \]
            4. Step-by-step derivation
              1. associate-*r/47.8%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-1 \cdot \left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}{B}\right)}}{\pi} \]
              2. mul-1-neg47.8%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{\color{blue}{-\left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}}{B}\right)}{\pi} \]
              3. +-commutative47.8%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{\color{blue}{{B}^{2} + {A}^{2}}}\right)}{B}\right)}{\pi} \]
              4. unpow247.8%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right)}{B}\right)}{\pi} \]
              5. unpow247.8%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right)}{B}\right)}{\pi} \]
              6. hypot-define82.0%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}{B}\right)}{\pi} \]
            5. Simplified82.0%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-\left(A + \mathsf{hypot}\left(B, A\right)\right)}{B}\right)}}{\pi} \]
            6. Taylor expanded in B around -inf 55.6%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 + -1 \cdot \frac{A}{B}\right)}}{\pi} \]
            7. Step-by-step derivation
              1. mul-1-neg55.6%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(1 + \color{blue}{\left(-\frac{A}{B}\right)}\right)}{\pi} \]
              2. sub-neg55.6%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 - \frac{A}{B}\right)}}{\pi} \]
            8. Simplified55.6%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 - \frac{A}{B}\right)}}{\pi} \]

            if 2.49999999999999999e-244 < C < 2.29999999999999994e-52

            1. Initial program 52.5%

              \[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} \]
            2. Add Preprocessing
            3. Applied egg-rr75.9%

              \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
            4. Taylor expanded in B around inf 50.4%

              \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
            5. Taylor expanded in C around 0 49.7%

              \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-1 \cdot \left(1 + \frac{A}{B}\right)\right)}}} \]
            6. Step-by-step derivation
              1. neg-mul-149.7%

                \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-\left(1 + \frac{A}{B}\right)\right)}}} \]
              2. distribute-neg-in49.7%

                \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\left(-1\right) + \left(-\frac{A}{B}\right)\right)}}} \]
              3. metadata-eval49.7%

                \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \left(\color{blue}{-1} + \left(-\frac{A}{B}\right)\right)}} \]
              4. unsub-neg49.7%

                \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-1 - \frac{A}{B}\right)}}} \]
            7. Simplified49.7%

              \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(-1 - \frac{A}{B}\right)}}} \]

            if 2.29999999999999994e-52 < C

            1. Initial program 18.2%

              \[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} \]
            2. Add Preprocessing
            3. Taylor expanded in C around inf 54.0%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(-0.5 \cdot \frac{{B}^{2}}{C} - \left(A + -1 \cdot A\right)\right)}\right)}{\pi} \]
            4. Step-by-step derivation
              1. distribute-rgt1-in54.0%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{\left(-1 + 1\right) \cdot A}\right)\right)}{\pi} \]
              2. metadata-eval54.0%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{0} \cdot A\right)\right)}{\pi} \]
              3. associate-*r/54.0%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\color{blue}{\frac{-0.5 \cdot {B}^{2}}{C}} - 0 \cdot A\right)\right)}{\pi} \]
            5. Simplified54.0%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(\frac{-0.5 \cdot {B}^{2}}{C} - 0 \cdot A\right)}\right)}{\pi} \]
            6. Taylor expanded in B around 0 66.2%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-0.5 \cdot \frac{B}{C}\right)}}{\pi} \]
          3. Recombined 4 regimes into one program.
          4. Add Preprocessing

          Alternative 14: 58.7% accurate, 3.5× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;C \leq -7.4 \cdot 10^{-59}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 8.2 \cdot 10^{-69}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 - \frac{A}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \end{array} \end{array} \]
          (FPCore (A B C)
           :precision binary64
           (if (<= C -7.4e-59)
             (* 180.0 (/ (atan (/ (- C B) B)) PI))
             (if (<= C 8.2e-69)
               (* 180.0 (/ (atan (- 1.0 (/ A B))) PI))
               (* 180.0 (/ (atan (* -0.5 (/ B C))) PI)))))
          double code(double A, double B, double C) {
          	double tmp;
          	if (C <= -7.4e-59) {
          		tmp = 180.0 * (atan(((C - B) / B)) / ((double) M_PI));
          	} else if (C <= 8.2e-69) {
          		tmp = 180.0 * (atan((1.0 - (A / B))) / ((double) M_PI));
          	} else {
          		tmp = 180.0 * (atan((-0.5 * (B / C))) / ((double) M_PI));
          	}
          	return tmp;
          }
          
          public static double code(double A, double B, double C) {
          	double tmp;
          	if (C <= -7.4e-59) {
          		tmp = 180.0 * (Math.atan(((C - B) / B)) / Math.PI);
          	} else if (C <= 8.2e-69) {
          		tmp = 180.0 * (Math.atan((1.0 - (A / B))) / Math.PI);
          	} else {
          		tmp = 180.0 * (Math.atan((-0.5 * (B / C))) / Math.PI);
          	}
          	return tmp;
          }
          
          def code(A, B, C):
          	tmp = 0
          	if C <= -7.4e-59:
          		tmp = 180.0 * (math.atan(((C - B) / B)) / math.pi)
          	elif C <= 8.2e-69:
          		tmp = 180.0 * (math.atan((1.0 - (A / B))) / math.pi)
          	else:
          		tmp = 180.0 * (math.atan((-0.5 * (B / C))) / math.pi)
          	return tmp
          
          function code(A, B, C)
          	tmp = 0.0
          	if (C <= -7.4e-59)
          		tmp = Float64(180.0 * Float64(atan(Float64(Float64(C - B) / B)) / pi));
          	elseif (C <= 8.2e-69)
          		tmp = Float64(180.0 * Float64(atan(Float64(1.0 - Float64(A / B))) / pi));
          	else
          		tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(B / C))) / pi));
          	end
          	return tmp
          end
          
          function tmp_2 = code(A, B, C)
          	tmp = 0.0;
          	if (C <= -7.4e-59)
          		tmp = 180.0 * (atan(((C - B) / B)) / pi);
          	elseif (C <= 8.2e-69)
          		tmp = 180.0 * (atan((1.0 - (A / B))) / pi);
          	else
          		tmp = 180.0 * (atan((-0.5 * (B / C))) / pi);
          	end
          	tmp_2 = tmp;
          end
          
          code[A_, B_, C_] := If[LessEqual[C, -7.4e-59], N[(180.0 * N[(N[ArcTan[N[(N[(C - B), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 8.2e-69], N[(180.0 * N[(N[ArcTan[N[(1.0 - N[(A / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;C \leq -7.4 \cdot 10^{-59}:\\
          \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\
          
          \mathbf{elif}\;C \leq 8.2 \cdot 10^{-69}:\\
          \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 - \frac{A}{B}\right)}{\pi}\\
          
          \mathbf{else}:\\
          \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if C < -7.3999999999999998e-59

            1. Initial program 81.9%

              \[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} \]
            2. Step-by-step derivation
              1. Simplified90.9%

                \[\leadsto \color{blue}{180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \mathsf{hypot}\left(B, A - C\right)\right)}{B}\right)}{\pi}} \]
              2. Add Preprocessing
              3. Taylor expanded in C around 0 81.3%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \color{blue}{\left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}}{B}\right)}{\pi} \]
              4. Step-by-step derivation
                1. +-commutative81.3%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \sqrt{\color{blue}{{B}^{2} + {A}^{2}}}\right)}{B}\right)}{\pi} \]
                2. unpow281.3%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right)}{B}\right)}{\pi} \]
                3. unpow281.3%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right)}{B}\right)}{\pi} \]
                4. hypot-define90.0%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}{B}\right)}{\pi} \]
              5. Simplified90.0%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{C - \color{blue}{\left(A + \mathsf{hypot}\left(B, A\right)\right)}}{B}\right)}{\pi} \]
              6. Taylor expanded in A around 0 81.8%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{C - B}{B}\right)}}{\pi} \]

              if -7.3999999999999998e-59 < C < 8.1999999999999998e-69

              1. Initial program 51.7%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in C around 0 50.3%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-1 \cdot \frac{A + \sqrt{{A}^{2} + {B}^{2}}}{B}\right)}}{\pi} \]
              4. Step-by-step derivation
                1. associate-*r/50.3%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-1 \cdot \left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}{B}\right)}}{\pi} \]
                2. mul-1-neg50.3%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{\color{blue}{-\left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}}{B}\right)}{\pi} \]
                3. +-commutative50.3%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{\color{blue}{{B}^{2} + {A}^{2}}}\right)}{B}\right)}{\pi} \]
                4. unpow250.3%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right)}{B}\right)}{\pi} \]
                5. unpow250.3%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right)}{B}\right)}{\pi} \]
                6. hypot-define79.8%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}{B}\right)}{\pi} \]
              5. Simplified79.8%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-\left(A + \mathsf{hypot}\left(B, A\right)\right)}{B}\right)}}{\pi} \]
              6. Taylor expanded in B around -inf 48.6%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 + -1 \cdot \frac{A}{B}\right)}}{\pi} \]
              7. Step-by-step derivation
                1. mul-1-neg48.6%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(1 + \color{blue}{\left(-\frac{A}{B}\right)}\right)}{\pi} \]
                2. sub-neg48.6%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 - \frac{A}{B}\right)}}{\pi} \]
              8. Simplified48.6%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 - \frac{A}{B}\right)}}{\pi} \]

              if 8.1999999999999998e-69 < C

              1. Initial program 18.0%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in C around inf 52.9%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(-0.5 \cdot \frac{{B}^{2}}{C} - \left(A + -1 \cdot A\right)\right)}\right)}{\pi} \]
              4. Step-by-step derivation
                1. distribute-rgt1-in52.9%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{\left(-1 + 1\right) \cdot A}\right)\right)}{\pi} \]
                2. metadata-eval52.9%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{0} \cdot A\right)\right)}{\pi} \]
                3. associate-*r/52.9%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\color{blue}{\frac{-0.5 \cdot {B}^{2}}{C}} - 0 \cdot A\right)\right)}{\pi} \]
              5. Simplified52.9%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(\frac{-0.5 \cdot {B}^{2}}{C} - 0 \cdot A\right)}\right)}{\pi} \]
              6. Taylor expanded in B around 0 64.7%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-0.5 \cdot \frac{B}{C}\right)}}{\pi} \]
            3. Recombined 3 regimes into one program.
            4. Add Preprocessing

            Alternative 15: 59.2% accurate, 3.5× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;C \leq -3.3 \cdot 10^{-80}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 + \frac{C}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 5.8 \cdot 10^{-70}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 - \frac{A}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \end{array} \end{array} \]
            (FPCore (A B C)
             :precision binary64
             (if (<= C -3.3e-80)
               (* 180.0 (/ (atan (+ 1.0 (/ C B))) PI))
               (if (<= C 5.8e-70)
                 (* 180.0 (/ (atan (- 1.0 (/ A B))) PI))
                 (* 180.0 (/ (atan (* -0.5 (/ B C))) PI)))))
            double code(double A, double B, double C) {
            	double tmp;
            	if (C <= -3.3e-80) {
            		tmp = 180.0 * (atan((1.0 + (C / B))) / ((double) M_PI));
            	} else if (C <= 5.8e-70) {
            		tmp = 180.0 * (atan((1.0 - (A / B))) / ((double) M_PI));
            	} else {
            		tmp = 180.0 * (atan((-0.5 * (B / C))) / ((double) M_PI));
            	}
            	return tmp;
            }
            
            public static double code(double A, double B, double C) {
            	double tmp;
            	if (C <= -3.3e-80) {
            		tmp = 180.0 * (Math.atan((1.0 + (C / B))) / Math.PI);
            	} else if (C <= 5.8e-70) {
            		tmp = 180.0 * (Math.atan((1.0 - (A / B))) / Math.PI);
            	} else {
            		tmp = 180.0 * (Math.atan((-0.5 * (B / C))) / Math.PI);
            	}
            	return tmp;
            }
            
            def code(A, B, C):
            	tmp = 0
            	if C <= -3.3e-80:
            		tmp = 180.0 * (math.atan((1.0 + (C / B))) / math.pi)
            	elif C <= 5.8e-70:
            		tmp = 180.0 * (math.atan((1.0 - (A / B))) / math.pi)
            	else:
            		tmp = 180.0 * (math.atan((-0.5 * (B / C))) / math.pi)
            	return tmp
            
            function code(A, B, C)
            	tmp = 0.0
            	if (C <= -3.3e-80)
            		tmp = Float64(180.0 * Float64(atan(Float64(1.0 + Float64(C / B))) / pi));
            	elseif (C <= 5.8e-70)
            		tmp = Float64(180.0 * Float64(atan(Float64(1.0 - Float64(A / B))) / pi));
            	else
            		tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(B / C))) / pi));
            	end
            	return tmp
            end
            
            function tmp_2 = code(A, B, C)
            	tmp = 0.0;
            	if (C <= -3.3e-80)
            		tmp = 180.0 * (atan((1.0 + (C / B))) / pi);
            	elseif (C <= 5.8e-70)
            		tmp = 180.0 * (atan((1.0 - (A / B))) / pi);
            	else
            		tmp = 180.0 * (atan((-0.5 * (B / C))) / pi);
            	end
            	tmp_2 = tmp;
            end
            
            code[A_, B_, C_] := If[LessEqual[C, -3.3e-80], N[(180.0 * N[(N[ArcTan[N[(1.0 + N[(C / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 5.8e-70], N[(180.0 * N[(N[ArcTan[N[(1.0 - N[(A / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;C \leq -3.3 \cdot 10^{-80}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 + \frac{C}{B}\right)}{\pi}\\
            
            \mathbf{elif}\;C \leq 5.8 \cdot 10^{-70}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 - \frac{A}{B}\right)}{\pi}\\
            
            \mathbf{else}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if C < -3.3e-80

              1. Initial program 80.6%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in B around -inf 73.5%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\left(1 + \frac{C}{B}\right) - \frac{A}{B}\right)}}{\pi} \]
              4. Step-by-step derivation
                1. associate--l+73.5%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 + \left(\frac{C}{B} - \frac{A}{B}\right)\right)}}{\pi} \]
                2. div-sub77.0%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(1 + \color{blue}{\frac{C - A}{B}}\right)}{\pi} \]
              5. Simplified77.0%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 + \frac{C - A}{B}\right)}}{\pi} \]
              6. Taylor expanded in C around inf 75.8%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(1 + \color{blue}{\frac{C}{B}}\right)}{\pi} \]

              if -3.3e-80 < C < 5.79999999999999943e-70

              1. Initial program 52.0%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in C around 0 50.5%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-1 \cdot \frac{A + \sqrt{{A}^{2} + {B}^{2}}}{B}\right)}}{\pi} \]
              4. Step-by-step derivation
                1. associate-*r/50.5%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-1 \cdot \left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}{B}\right)}}{\pi} \]
                2. mul-1-neg50.5%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{\color{blue}{-\left(A + \sqrt{{A}^{2} + {B}^{2}}\right)}}{B}\right)}{\pi} \]
                3. +-commutative50.5%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{\color{blue}{{B}^{2} + {A}^{2}}}\right)}{B}\right)}{\pi} \]
                4. unpow250.5%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{\color{blue}{B \cdot B} + {A}^{2}}\right)}{B}\right)}{\pi} \]
                5. unpow250.5%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \sqrt{B \cdot B + \color{blue}{A \cdot A}}\right)}{B}\right)}{\pi} \]
                6. hypot-define79.5%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + \color{blue}{\mathsf{hypot}\left(B, A\right)}\right)}{B}\right)}{\pi} \]
              5. Simplified79.5%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-\left(A + \mathsf{hypot}\left(B, A\right)\right)}{B}\right)}}{\pi} \]
              6. Taylor expanded in B around -inf 48.0%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 + -1 \cdot \frac{A}{B}\right)}}{\pi} \]
              7. Step-by-step derivation
                1. mul-1-neg48.0%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(1 + \color{blue}{\left(-\frac{A}{B}\right)}\right)}{\pi} \]
                2. sub-neg48.0%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 - \frac{A}{B}\right)}}{\pi} \]
              8. Simplified48.0%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 - \frac{A}{B}\right)}}{\pi} \]

              if 5.79999999999999943e-70 < C

              1. Initial program 18.0%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in C around inf 52.9%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(-0.5 \cdot \frac{{B}^{2}}{C} - \left(A + -1 \cdot A\right)\right)}\right)}{\pi} \]
              4. Step-by-step derivation
                1. distribute-rgt1-in52.9%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{\left(-1 + 1\right) \cdot A}\right)\right)}{\pi} \]
                2. metadata-eval52.9%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{0} \cdot A\right)\right)}{\pi} \]
                3. associate-*r/52.9%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\color{blue}{\frac{-0.5 \cdot {B}^{2}}{C}} - 0 \cdot A\right)\right)}{\pi} \]
              5. Simplified52.9%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(\frac{-0.5 \cdot {B}^{2}}{C} - 0 \cdot A\right)}\right)}{\pi} \]
              6. Taylor expanded in B around 0 64.7%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-0.5 \cdot \frac{B}{C}\right)}}{\pi} \]
            3. Recombined 3 regimes into one program.
            4. Add Preprocessing

            Alternative 16: 48.1% accurate, 3.5× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;C \leq -8.1 \cdot 10^{-32}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(2 \cdot \frac{C}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 2.85 \cdot 10^{-300}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \end{array} \end{array} \]
            (FPCore (A B C)
             :precision binary64
             (if (<= C -8.1e-32)
               (* 180.0 (/ (atan (* 2.0 (/ C B))) PI))
               (if (<= C 2.85e-300)
                 (* 180.0 (/ (atan 1.0) PI))
                 (* 180.0 (/ (atan (* -0.5 (/ B C))) PI)))))
            double code(double A, double B, double C) {
            	double tmp;
            	if (C <= -8.1e-32) {
            		tmp = 180.0 * (atan((2.0 * (C / B))) / ((double) M_PI));
            	} else if (C <= 2.85e-300) {
            		tmp = 180.0 * (atan(1.0) / ((double) M_PI));
            	} else {
            		tmp = 180.0 * (atan((-0.5 * (B / C))) / ((double) M_PI));
            	}
            	return tmp;
            }
            
            public static double code(double A, double B, double C) {
            	double tmp;
            	if (C <= -8.1e-32) {
            		tmp = 180.0 * (Math.atan((2.0 * (C / B))) / Math.PI);
            	} else if (C <= 2.85e-300) {
            		tmp = 180.0 * (Math.atan(1.0) / Math.PI);
            	} else {
            		tmp = 180.0 * (Math.atan((-0.5 * (B / C))) / Math.PI);
            	}
            	return tmp;
            }
            
            def code(A, B, C):
            	tmp = 0
            	if C <= -8.1e-32:
            		tmp = 180.0 * (math.atan((2.0 * (C / B))) / math.pi)
            	elif C <= 2.85e-300:
            		tmp = 180.0 * (math.atan(1.0) / math.pi)
            	else:
            		tmp = 180.0 * (math.atan((-0.5 * (B / C))) / math.pi)
            	return tmp
            
            function code(A, B, C)
            	tmp = 0.0
            	if (C <= -8.1e-32)
            		tmp = Float64(180.0 * Float64(atan(Float64(2.0 * Float64(C / B))) / pi));
            	elseif (C <= 2.85e-300)
            		tmp = Float64(180.0 * Float64(atan(1.0) / pi));
            	else
            		tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(B / C))) / pi));
            	end
            	return tmp
            end
            
            function tmp_2 = code(A, B, C)
            	tmp = 0.0;
            	if (C <= -8.1e-32)
            		tmp = 180.0 * (atan((2.0 * (C / B))) / pi);
            	elseif (C <= 2.85e-300)
            		tmp = 180.0 * (atan(1.0) / pi);
            	else
            		tmp = 180.0 * (atan((-0.5 * (B / C))) / pi);
            	end
            	tmp_2 = tmp;
            end
            
            code[A_, B_, C_] := If[LessEqual[C, -8.1e-32], N[(180.0 * N[(N[ArcTan[N[(2.0 * N[(C / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 2.85e-300], N[(180.0 * N[(N[ArcTan[1.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;C \leq -8.1 \cdot 10^{-32}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} \left(2 \cdot \frac{C}{B}\right)}{\pi}\\
            
            \mathbf{elif}\;C \leq 2.85 \cdot 10^{-300}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\
            
            \mathbf{else}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if C < -8.1e-32

              1. Initial program 86.1%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in C around -inf 76.8%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(2 \cdot \frac{C}{B}\right)}}{\pi} \]

              if -8.1e-32 < C < 2.8499999999999999e-300

              1. Initial program 43.3%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in B around -inf 33.4%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{1}}{\pi} \]

              if 2.8499999999999999e-300 < C

              1. Initial program 34.6%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in C around inf 42.2%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(-0.5 \cdot \frac{{B}^{2}}{C} - \left(A + -1 \cdot A\right)\right)}\right)}{\pi} \]
              4. Step-by-step derivation
                1. distribute-rgt1-in42.2%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{\left(-1 + 1\right) \cdot A}\right)\right)}{\pi} \]
                2. metadata-eval42.2%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{0} \cdot A\right)\right)}{\pi} \]
                3. associate-*r/42.2%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\color{blue}{\frac{-0.5 \cdot {B}^{2}}{C}} - 0 \cdot A\right)\right)}{\pi} \]
              5. Simplified42.2%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(\frac{-0.5 \cdot {B}^{2}}{C} - 0 \cdot A\right)}\right)}{\pi} \]
              6. Taylor expanded in B around 0 52.1%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-0.5 \cdot \frac{B}{C}\right)}}{\pi} \]
            3. Recombined 3 regimes into one program.
            4. Add Preprocessing

            Alternative 17: 48.1% accurate, 3.5× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;C \leq -1.5 \cdot 10^{-40}:\\ \;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C}{B}\right)\\ \mathbf{elif}\;C \leq 2.05 \cdot 10^{-298}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \end{array} \end{array} \]
            (FPCore (A B C)
             :precision binary64
             (if (<= C -1.5e-40)
               (* (/ 180.0 PI) (atan (/ C B)))
               (if (<= C 2.05e-298)
                 (* 180.0 (/ (atan 1.0) PI))
                 (* 180.0 (/ (atan (* -0.5 (/ B C))) PI)))))
            double code(double A, double B, double C) {
            	double tmp;
            	if (C <= -1.5e-40) {
            		tmp = (180.0 / ((double) M_PI)) * atan((C / B));
            	} else if (C <= 2.05e-298) {
            		tmp = 180.0 * (atan(1.0) / ((double) M_PI));
            	} else {
            		tmp = 180.0 * (atan((-0.5 * (B / C))) / ((double) M_PI));
            	}
            	return tmp;
            }
            
            public static double code(double A, double B, double C) {
            	double tmp;
            	if (C <= -1.5e-40) {
            		tmp = (180.0 / Math.PI) * Math.atan((C / B));
            	} else if (C <= 2.05e-298) {
            		tmp = 180.0 * (Math.atan(1.0) / Math.PI);
            	} else {
            		tmp = 180.0 * (Math.atan((-0.5 * (B / C))) / Math.PI);
            	}
            	return tmp;
            }
            
            def code(A, B, C):
            	tmp = 0
            	if C <= -1.5e-40:
            		tmp = (180.0 / math.pi) * math.atan((C / B))
            	elif C <= 2.05e-298:
            		tmp = 180.0 * (math.atan(1.0) / math.pi)
            	else:
            		tmp = 180.0 * (math.atan((-0.5 * (B / C))) / math.pi)
            	return tmp
            
            function code(A, B, C)
            	tmp = 0.0
            	if (C <= -1.5e-40)
            		tmp = Float64(Float64(180.0 / pi) * atan(Float64(C / B)));
            	elseif (C <= 2.05e-298)
            		tmp = Float64(180.0 * Float64(atan(1.0) / pi));
            	else
            		tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(B / C))) / pi));
            	end
            	return tmp
            end
            
            function tmp_2 = code(A, B, C)
            	tmp = 0.0;
            	if (C <= -1.5e-40)
            		tmp = (180.0 / pi) * atan((C / B));
            	elseif (C <= 2.05e-298)
            		tmp = 180.0 * (atan(1.0) / pi);
            	else
            		tmp = 180.0 * (atan((-0.5 * (B / C))) / pi);
            	end
            	tmp_2 = tmp;
            end
            
            code[A_, B_, C_] := If[LessEqual[C, -1.5e-40], N[(N[(180.0 / Pi), $MachinePrecision] * N[ArcTan[N[(C / B), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 2.05e-298], N[(180.0 * N[(N[ArcTan[1.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;C \leq -1.5 \cdot 10^{-40}:\\
            \;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C}{B}\right)\\
            
            \mathbf{elif}\;C \leq 2.05 \cdot 10^{-298}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\
            
            \mathbf{else}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if C < -1.5000000000000001e-40

              1. Initial program 86.1%

                \[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} \]
              2. Add Preprocessing
              3. Applied egg-rr96.7%

                \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
              4. Taylor expanded in B around inf 83.8%

                \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
              5. Taylor expanded in C around inf 76.5%

                \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B}\right)}}} \]
              6. Step-by-step derivation
                1. associate-/r/76.5%

                  \[\leadsto \color{blue}{\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C}{B}\right)} \]
              7. Applied egg-rr76.5%

                \[\leadsto \color{blue}{\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C}{B}\right)} \]

              if -1.5000000000000001e-40 < C < 2.0499999999999999e-298

              1. Initial program 43.3%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in B around -inf 33.4%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{1}}{\pi} \]

              if 2.0499999999999999e-298 < C

              1. Initial program 34.6%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in C around inf 42.2%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(-0.5 \cdot \frac{{B}^{2}}{C} - \left(A + -1 \cdot A\right)\right)}\right)}{\pi} \]
              4. Step-by-step derivation
                1. distribute-rgt1-in42.2%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{\left(-1 + 1\right) \cdot A}\right)\right)}{\pi} \]
                2. metadata-eval42.2%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{0} \cdot A\right)\right)}{\pi} \]
                3. associate-*r/42.2%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\color{blue}{\frac{-0.5 \cdot {B}^{2}}{C}} - 0 \cdot A\right)\right)}{\pi} \]
              5. Simplified42.2%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(\frac{-0.5 \cdot {B}^{2}}{C} - 0 \cdot A\right)}\right)}{\pi} \]
              6. Taylor expanded in B around 0 52.1%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-0.5 \cdot \frac{B}{C}\right)}}{\pi} \]
            3. Recombined 3 regimes into one program.
            4. Add Preprocessing

            Alternative 18: 66.1% accurate, 3.6× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;B \leq -5 \cdot 10^{-215}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(B - \left(A - C\right)\right)\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}}\\ \end{array} \end{array} \]
            (FPCore (A B C)
             :precision binary64
             (if (<= B -5e-215)
               (* 180.0 (/ (atan (* (/ 1.0 B) (- B (- A C)))) PI))
               (/ 180.0 (/ PI (atan (- -1.0 (/ (- A C) B)))))))
            double code(double A, double B, double C) {
            	double tmp;
            	if (B <= -5e-215) {
            		tmp = 180.0 * (atan(((1.0 / B) * (B - (A - C)))) / ((double) M_PI));
            	} else {
            		tmp = 180.0 / (((double) M_PI) / atan((-1.0 - ((A - C) / B))));
            	}
            	return tmp;
            }
            
            public static double code(double A, double B, double C) {
            	double tmp;
            	if (B <= -5e-215) {
            		tmp = 180.0 * (Math.atan(((1.0 / B) * (B - (A - C)))) / Math.PI);
            	} else {
            		tmp = 180.0 / (Math.PI / Math.atan((-1.0 - ((A - C) / B))));
            	}
            	return tmp;
            }
            
            def code(A, B, C):
            	tmp = 0
            	if B <= -5e-215:
            		tmp = 180.0 * (math.atan(((1.0 / B) * (B - (A - C)))) / math.pi)
            	else:
            		tmp = 180.0 / (math.pi / math.atan((-1.0 - ((A - C) / B))))
            	return tmp
            
            function code(A, B, C)
            	tmp = 0.0
            	if (B <= -5e-215)
            		tmp = Float64(180.0 * Float64(atan(Float64(Float64(1.0 / B) * Float64(B - Float64(A - C)))) / pi));
            	else
            		tmp = Float64(180.0 / Float64(pi / atan(Float64(-1.0 - Float64(Float64(A - C) / B)))));
            	end
            	return tmp
            end
            
            function tmp_2 = code(A, B, C)
            	tmp = 0.0;
            	if (B <= -5e-215)
            		tmp = 180.0 * (atan(((1.0 / B) * (B - (A - C)))) / pi);
            	else
            		tmp = 180.0 / (pi / atan((-1.0 - ((A - C) / B))));
            	end
            	tmp_2 = tmp;
            end
            
            code[A_, B_, C_] := If[LessEqual[B, -5e-215], N[(180.0 * N[(N[ArcTan[N[(N[(1.0 / B), $MachinePrecision] * N[(B - N[(A - C), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 / N[(Pi / N[ArcTan[N[(-1.0 - N[(N[(A - C), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;B \leq -5 \cdot 10^{-215}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(B - \left(A - C\right)\right)\right)}{\pi}\\
            
            \mathbf{else}:\\
            \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if B < -4.99999999999999956e-215

              1. Initial program 46.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} \]
              2. Add Preprocessing
              3. Taylor expanded in B around -inf 66.5%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\left(C - A\right) - \color{blue}{-1 \cdot B}\right)\right)}{\pi} \]
              4. Step-by-step derivation
                1. neg-mul-166.5%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\left(C - A\right) - \color{blue}{\left(-B\right)}\right)\right)}{\pi} \]
              5. Simplified66.5%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\left(C - A\right) - \color{blue}{\left(-B\right)}\right)\right)}{\pi} \]

              if -4.99999999999999956e-215 < B

              1. Initial program 55.2%

                \[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} \]
              2. Add Preprocessing
              3. Applied egg-rr82.7%

                \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
              4. Taylor expanded in B around inf 65.0%

                \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
              5. Step-by-step derivation
                1. div-inv65.0%

                  \[\leadsto \frac{180}{\color{blue}{\pi \cdot \frac{1}{\tan^{-1} \left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
                2. associate--r+65.0%

                  \[\leadsto \frac{180}{\pi \cdot \frac{1}{\tan^{-1} \color{blue}{\left(\left(\frac{C}{B} - 1\right) - \frac{A}{B}\right)}}} \]
              6. Applied egg-rr65.0%

                \[\leadsto \frac{180}{\color{blue}{\pi \cdot \frac{1}{\tan^{-1} \left(\left(\frac{C}{B} - 1\right) - \frac{A}{B}\right)}}} \]
              7. Taylor expanded in C around 0 65.0%

                \[\leadsto \frac{180}{\color{blue}{\frac{\pi}{\tan^{-1} \left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
              8. Simplified66.9%

                \[\leadsto \frac{180}{\color{blue}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}}} \]
            3. Recombined 2 regimes into one program.
            4. Final simplification66.7%

              \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq -5 \cdot 10^{-215}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(B - \left(A - C\right)\right)\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}}\\ \end{array} \]
            5. Add Preprocessing

            Alternative 19: 47.0% accurate, 3.6× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;B \leq -9 \cdot 10^{-40}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{elif}\;B \leq 280:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{C}{B}\right)}}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} -1}{\pi}\\ \end{array} \end{array} \]
            (FPCore (A B C)
             :precision binary64
             (if (<= B -9e-40)
               (* 180.0 (/ (atan 1.0) PI))
               (if (<= B 280.0)
                 (/ 180.0 (/ PI (atan (/ C B))))
                 (* 180.0 (/ (atan -1.0) PI)))))
            double code(double A, double B, double C) {
            	double tmp;
            	if (B <= -9e-40) {
            		tmp = 180.0 * (atan(1.0) / ((double) M_PI));
            	} else if (B <= 280.0) {
            		tmp = 180.0 / (((double) M_PI) / atan((C / B)));
            	} else {
            		tmp = 180.0 * (atan(-1.0) / ((double) M_PI));
            	}
            	return tmp;
            }
            
            public static double code(double A, double B, double C) {
            	double tmp;
            	if (B <= -9e-40) {
            		tmp = 180.0 * (Math.atan(1.0) / Math.PI);
            	} else if (B <= 280.0) {
            		tmp = 180.0 / (Math.PI / Math.atan((C / B)));
            	} else {
            		tmp = 180.0 * (Math.atan(-1.0) / Math.PI);
            	}
            	return tmp;
            }
            
            def code(A, B, C):
            	tmp = 0
            	if B <= -9e-40:
            		tmp = 180.0 * (math.atan(1.0) / math.pi)
            	elif B <= 280.0:
            		tmp = 180.0 / (math.pi / math.atan((C / B)))
            	else:
            		tmp = 180.0 * (math.atan(-1.0) / math.pi)
            	return tmp
            
            function code(A, B, C)
            	tmp = 0.0
            	if (B <= -9e-40)
            		tmp = Float64(180.0 * Float64(atan(1.0) / pi));
            	elseif (B <= 280.0)
            		tmp = Float64(180.0 / Float64(pi / atan(Float64(C / B))));
            	else
            		tmp = Float64(180.0 * Float64(atan(-1.0) / pi));
            	end
            	return tmp
            end
            
            function tmp_2 = code(A, B, C)
            	tmp = 0.0;
            	if (B <= -9e-40)
            		tmp = 180.0 * (atan(1.0) / pi);
            	elseif (B <= 280.0)
            		tmp = 180.0 / (pi / atan((C / B)));
            	else
            		tmp = 180.0 * (atan(-1.0) / pi);
            	end
            	tmp_2 = tmp;
            end
            
            code[A_, B_, C_] := If[LessEqual[B, -9e-40], N[(180.0 * N[(N[ArcTan[1.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, 280.0], N[(180.0 / N[(Pi / N[ArcTan[N[(C / B), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[-1.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;B \leq -9 \cdot 10^{-40}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\
            
            \mathbf{elif}\;B \leq 280:\\
            \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{C}{B}\right)}}\\
            
            \mathbf{else}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} -1}{\pi}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if B < -9.0000000000000002e-40

              1. Initial program 47.2%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in B around -inf 58.6%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{1}}{\pi} \]

              if -9.0000000000000002e-40 < B < 280

              1. Initial program 55.6%

                \[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} \]
              2. Add Preprocessing
              3. Applied egg-rr74.7%

                \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
              4. Taylor expanded in B around inf 48.5%

                \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
              5. Taylor expanded in C around inf 35.9%

                \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B}\right)}}} \]

              if 280 < B

              1. Initial program 49.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} \]
              2. Add Preprocessing
              3. Taylor expanded in B around inf 71.4%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{-1}}{\pi} \]
            3. Recombined 3 regimes into one program.
            4. Add Preprocessing

            Alternative 20: 47.0% accurate, 3.6× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;B \leq -2 \cdot 10^{-40}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{elif}\;B \leq 1.76:\\ \;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C}{B}\right)\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} -1}{\pi}\\ \end{array} \end{array} \]
            (FPCore (A B C)
             :precision binary64
             (if (<= B -2e-40)
               (* 180.0 (/ (atan 1.0) PI))
               (if (<= B 1.76)
                 (* (/ 180.0 PI) (atan (/ C B)))
                 (* 180.0 (/ (atan -1.0) PI)))))
            double code(double A, double B, double C) {
            	double tmp;
            	if (B <= -2e-40) {
            		tmp = 180.0 * (atan(1.0) / ((double) M_PI));
            	} else if (B <= 1.76) {
            		tmp = (180.0 / ((double) M_PI)) * atan((C / B));
            	} else {
            		tmp = 180.0 * (atan(-1.0) / ((double) M_PI));
            	}
            	return tmp;
            }
            
            public static double code(double A, double B, double C) {
            	double tmp;
            	if (B <= -2e-40) {
            		tmp = 180.0 * (Math.atan(1.0) / Math.PI);
            	} else if (B <= 1.76) {
            		tmp = (180.0 / Math.PI) * Math.atan((C / B));
            	} else {
            		tmp = 180.0 * (Math.atan(-1.0) / Math.PI);
            	}
            	return tmp;
            }
            
            def code(A, B, C):
            	tmp = 0
            	if B <= -2e-40:
            		tmp = 180.0 * (math.atan(1.0) / math.pi)
            	elif B <= 1.76:
            		tmp = (180.0 / math.pi) * math.atan((C / B))
            	else:
            		tmp = 180.0 * (math.atan(-1.0) / math.pi)
            	return tmp
            
            function code(A, B, C)
            	tmp = 0.0
            	if (B <= -2e-40)
            		tmp = Float64(180.0 * Float64(atan(1.0) / pi));
            	elseif (B <= 1.76)
            		tmp = Float64(Float64(180.0 / pi) * atan(Float64(C / B)));
            	else
            		tmp = Float64(180.0 * Float64(atan(-1.0) / pi));
            	end
            	return tmp
            end
            
            function tmp_2 = code(A, B, C)
            	tmp = 0.0;
            	if (B <= -2e-40)
            		tmp = 180.0 * (atan(1.0) / pi);
            	elseif (B <= 1.76)
            		tmp = (180.0 / pi) * atan((C / B));
            	else
            		tmp = 180.0 * (atan(-1.0) / pi);
            	end
            	tmp_2 = tmp;
            end
            
            code[A_, B_, C_] := If[LessEqual[B, -2e-40], N[(180.0 * N[(N[ArcTan[1.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, 1.76], N[(N[(180.0 / Pi), $MachinePrecision] * N[ArcTan[N[(C / B), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[-1.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;B \leq -2 \cdot 10^{-40}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\
            
            \mathbf{elif}\;B \leq 1.76:\\
            \;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C}{B}\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} -1}{\pi}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if B < -1.9999999999999999e-40

              1. Initial program 47.2%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in B around -inf 58.6%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{1}}{\pi} \]

              if -1.9999999999999999e-40 < B < 1.76000000000000001

              1. Initial program 55.6%

                \[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} \]
              2. Add Preprocessing
              3. Applied egg-rr74.7%

                \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
              4. Taylor expanded in B around inf 48.5%

                \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
              5. Taylor expanded in C around inf 35.9%

                \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B}\right)}}} \]
              6. Step-by-step derivation
                1. associate-/r/35.9%

                  \[\leadsto \color{blue}{\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C}{B}\right)} \]
              7. Applied egg-rr35.9%

                \[\leadsto \color{blue}{\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C}{B}\right)} \]

              if 1.76000000000000001 < B

              1. Initial program 49.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} \]
              2. Add Preprocessing
              3. Taylor expanded in B around inf 71.4%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{-1}}{\pi} \]
            3. Recombined 3 regimes into one program.
            4. Add Preprocessing

            Alternative 21: 44.3% accurate, 3.6× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;B \leq -5.2 \cdot 10^{-183}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{elif}\;B \leq 1.35 \cdot 10^{-61}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{0}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} -1}{\pi}\\ \end{array} \end{array} \]
            (FPCore (A B C)
             :precision binary64
             (if (<= B -5.2e-183)
               (* 180.0 (/ (atan 1.0) PI))
               (if (<= B 1.35e-61)
                 (* 180.0 (/ (atan (/ 0.0 B)) PI))
                 (* 180.0 (/ (atan -1.0) PI)))))
            double code(double A, double B, double C) {
            	double tmp;
            	if (B <= -5.2e-183) {
            		tmp = 180.0 * (atan(1.0) / ((double) M_PI));
            	} else if (B <= 1.35e-61) {
            		tmp = 180.0 * (atan((0.0 / B)) / ((double) M_PI));
            	} else {
            		tmp = 180.0 * (atan(-1.0) / ((double) M_PI));
            	}
            	return tmp;
            }
            
            public static double code(double A, double B, double C) {
            	double tmp;
            	if (B <= -5.2e-183) {
            		tmp = 180.0 * (Math.atan(1.0) / Math.PI);
            	} else if (B <= 1.35e-61) {
            		tmp = 180.0 * (Math.atan((0.0 / B)) / Math.PI);
            	} else {
            		tmp = 180.0 * (Math.atan(-1.0) / Math.PI);
            	}
            	return tmp;
            }
            
            def code(A, B, C):
            	tmp = 0
            	if B <= -5.2e-183:
            		tmp = 180.0 * (math.atan(1.0) / math.pi)
            	elif B <= 1.35e-61:
            		tmp = 180.0 * (math.atan((0.0 / B)) / math.pi)
            	else:
            		tmp = 180.0 * (math.atan(-1.0) / math.pi)
            	return tmp
            
            function code(A, B, C)
            	tmp = 0.0
            	if (B <= -5.2e-183)
            		tmp = Float64(180.0 * Float64(atan(1.0) / pi));
            	elseif (B <= 1.35e-61)
            		tmp = Float64(180.0 * Float64(atan(Float64(0.0 / B)) / pi));
            	else
            		tmp = Float64(180.0 * Float64(atan(-1.0) / pi));
            	end
            	return tmp
            end
            
            function tmp_2 = code(A, B, C)
            	tmp = 0.0;
            	if (B <= -5.2e-183)
            		tmp = 180.0 * (atan(1.0) / pi);
            	elseif (B <= 1.35e-61)
            		tmp = 180.0 * (atan((0.0 / B)) / pi);
            	else
            		tmp = 180.0 * (atan(-1.0) / pi);
            	end
            	tmp_2 = tmp;
            end
            
            code[A_, B_, C_] := If[LessEqual[B, -5.2e-183], N[(180.0 * N[(N[ArcTan[1.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, 1.35e-61], N[(180.0 * N[(N[ArcTan[N[(0.0 / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[-1.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;B \leq -5.2 \cdot 10^{-183}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\
            
            \mathbf{elif}\;B \leq 1.35 \cdot 10^{-61}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{0}{B}\right)}{\pi}\\
            
            \mathbf{else}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} -1}{\pi}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if B < -5.1999999999999998e-183

              1. Initial program 47.7%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in B around -inf 47.0%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{1}}{\pi} \]

              if -5.1999999999999998e-183 < B < 1.34999999999999997e-61

              1. Initial program 53.7%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in C around inf 29.0%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-1 \cdot \frac{A + -1 \cdot A}{B}\right)}}{\pi} \]
              4. Step-by-step derivation
                1. associate-*r/29.0%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{-1 \cdot \left(A + -1 \cdot A\right)}{B}\right)}}{\pi} \]
                2. mul-1-neg29.0%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{\color{blue}{-\left(A + -1 \cdot A\right)}}{B}\right)}{\pi} \]
                3. distribute-rgt1-in29.0%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\color{blue}{\left(-1 + 1\right) \cdot A}}{B}\right)}{\pi} \]
                4. metadata-eval29.0%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\color{blue}{0} \cdot A}{B}\right)}{\pi} \]
                5. mul0-lft29.0%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{-\color{blue}{0}}{B}\right)}{\pi} \]
                6. metadata-eval29.0%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{\color{blue}{0}}{B}\right)}{\pi} \]
              5. Simplified29.0%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\frac{0}{B}\right)}}{\pi} \]

              if 1.34999999999999997e-61 < B

              1. Initial program 55.6%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in B around inf 59.7%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{-1}}{\pi} \]
            3. Recombined 3 regimes into one program.
            4. Add Preprocessing

            Alternative 22: 66.1% accurate, 3.6× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;B \leq -5 \cdot 10^{-216}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 + \frac{C - A}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}}\\ \end{array} \end{array} \]
            (FPCore (A B C)
             :precision binary64
             (if (<= B -5e-216)
               (* 180.0 (/ (atan (+ 1.0 (/ (- C A) B))) PI))
               (/ 180.0 (/ PI (atan (- -1.0 (/ (- A C) B)))))))
            double code(double A, double B, double C) {
            	double tmp;
            	if (B <= -5e-216) {
            		tmp = 180.0 * (atan((1.0 + ((C - A) / B))) / ((double) M_PI));
            	} else {
            		tmp = 180.0 / (((double) M_PI) / atan((-1.0 - ((A - C) / B))));
            	}
            	return tmp;
            }
            
            public static double code(double A, double B, double C) {
            	double tmp;
            	if (B <= -5e-216) {
            		tmp = 180.0 * (Math.atan((1.0 + ((C - A) / B))) / Math.PI);
            	} else {
            		tmp = 180.0 / (Math.PI / Math.atan((-1.0 - ((A - C) / B))));
            	}
            	return tmp;
            }
            
            def code(A, B, C):
            	tmp = 0
            	if B <= -5e-216:
            		tmp = 180.0 * (math.atan((1.0 + ((C - A) / B))) / math.pi)
            	else:
            		tmp = 180.0 / (math.pi / math.atan((-1.0 - ((A - C) / B))))
            	return tmp
            
            function code(A, B, C)
            	tmp = 0.0
            	if (B <= -5e-216)
            		tmp = Float64(180.0 * Float64(atan(Float64(1.0 + Float64(Float64(C - A) / B))) / pi));
            	else
            		tmp = Float64(180.0 / Float64(pi / atan(Float64(-1.0 - Float64(Float64(A - C) / B)))));
            	end
            	return tmp
            end
            
            function tmp_2 = code(A, B, C)
            	tmp = 0.0;
            	if (B <= -5e-216)
            		tmp = 180.0 * (atan((1.0 + ((C - A) / B))) / pi);
            	else
            		tmp = 180.0 / (pi / atan((-1.0 - ((A - C) / B))));
            	end
            	tmp_2 = tmp;
            end
            
            code[A_, B_, C_] := If[LessEqual[B, -5e-216], N[(180.0 * N[(N[ArcTan[N[(1.0 + N[(N[(C - A), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 / N[(Pi / N[ArcTan[N[(-1.0 - N[(N[(A - C), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;B \leq -5 \cdot 10^{-216}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 + \frac{C - A}{B}\right)}{\pi}\\
            
            \mathbf{else}:\\
            \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if B < -5.00000000000000021e-216

              1. Initial program 46.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} \]
              2. Add Preprocessing
              3. Taylor expanded in B around -inf 66.5%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\left(1 + \frac{C}{B}\right) - \frac{A}{B}\right)}}{\pi} \]
              4. Step-by-step derivation
                1. associate--l+66.5%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 + \left(\frac{C}{B} - \frac{A}{B}\right)\right)}}{\pi} \]
                2. div-sub66.5%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(1 + \color{blue}{\frac{C - A}{B}}\right)}{\pi} \]
              5. Simplified66.5%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 + \frac{C - A}{B}\right)}}{\pi} \]

              if -5.00000000000000021e-216 < B

              1. Initial program 55.2%

                \[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} \]
              2. Add Preprocessing
              3. Applied egg-rr82.7%

                \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
              4. Taylor expanded in B around inf 65.0%

                \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
              5. Step-by-step derivation
                1. div-inv65.0%

                  \[\leadsto \frac{180}{\color{blue}{\pi \cdot \frac{1}{\tan^{-1} \left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
                2. associate--r+65.0%

                  \[\leadsto \frac{180}{\pi \cdot \frac{1}{\tan^{-1} \color{blue}{\left(\left(\frac{C}{B} - 1\right) - \frac{A}{B}\right)}}} \]
              6. Applied egg-rr65.0%

                \[\leadsto \frac{180}{\color{blue}{\pi \cdot \frac{1}{\tan^{-1} \left(\left(\frac{C}{B} - 1\right) - \frac{A}{B}\right)}}} \]
              7. Taylor expanded in C around 0 65.0%

                \[\leadsto \frac{180}{\color{blue}{\frac{\pi}{\tan^{-1} \left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
              8. Simplified66.9%

                \[\leadsto \frac{180}{\color{blue}{\frac{\pi}{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}}} \]
            3. Recombined 2 regimes into one program.
            4. Add Preprocessing

            Alternative 23: 65.9% accurate, 3.6× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;B \leq -5 \cdot 10^{-166}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 + \frac{C - A}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}{\pi}\\ \end{array} \end{array} \]
            (FPCore (A B C)
             :precision binary64
             (if (<= B -5e-166)
               (* 180.0 (/ (atan (+ 1.0 (/ (- C A) B))) PI))
               (* 180.0 (/ (atan (- -1.0 (/ (- A C) B))) PI))))
            double code(double A, double B, double C) {
            	double tmp;
            	if (B <= -5e-166) {
            		tmp = 180.0 * (atan((1.0 + ((C - A) / B))) / ((double) M_PI));
            	} else {
            		tmp = 180.0 * (atan((-1.0 - ((A - C) / B))) / ((double) M_PI));
            	}
            	return tmp;
            }
            
            public static double code(double A, double B, double C) {
            	double tmp;
            	if (B <= -5e-166) {
            		tmp = 180.0 * (Math.atan((1.0 + ((C - A) / B))) / Math.PI);
            	} else {
            		tmp = 180.0 * (Math.atan((-1.0 - ((A - C) / B))) / Math.PI);
            	}
            	return tmp;
            }
            
            def code(A, B, C):
            	tmp = 0
            	if B <= -5e-166:
            		tmp = 180.0 * (math.atan((1.0 + ((C - A) / B))) / math.pi)
            	else:
            		tmp = 180.0 * (math.atan((-1.0 - ((A - C) / B))) / math.pi)
            	return tmp
            
            function code(A, B, C)
            	tmp = 0.0
            	if (B <= -5e-166)
            		tmp = Float64(180.0 * Float64(atan(Float64(1.0 + Float64(Float64(C - A) / B))) / pi));
            	else
            		tmp = Float64(180.0 * Float64(atan(Float64(-1.0 - Float64(Float64(A - C) / B))) / pi));
            	end
            	return tmp
            end
            
            function tmp_2 = code(A, B, C)
            	tmp = 0.0;
            	if (B <= -5e-166)
            		tmp = 180.0 * (atan((1.0 + ((C - A) / B))) / pi);
            	else
            		tmp = 180.0 * (atan((-1.0 - ((A - C) / B))) / pi);
            	end
            	tmp_2 = tmp;
            end
            
            code[A_, B_, C_] := If[LessEqual[B, -5e-166], N[(180.0 * N[(N[ArcTan[N[(1.0 + N[(N[(C - A), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-1.0 - N[(N[(A - C), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;B \leq -5 \cdot 10^{-166}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 + \frac{C - A}{B}\right)}{\pi}\\
            
            \mathbf{else}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}{\pi}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if B < -5e-166

              1. Initial program 46.5%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in B around -inf 67.1%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\left(1 + \frac{C}{B}\right) - \frac{A}{B}\right)}}{\pi} \]
              4. Step-by-step derivation
                1. associate--l+67.1%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 + \left(\frac{C}{B} - \frac{A}{B}\right)\right)}}{\pi} \]
                2. div-sub67.1%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(1 + \color{blue}{\frac{C - A}{B}}\right)}{\pi} \]
              5. Simplified67.1%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 + \frac{C - A}{B}\right)}}{\pi} \]

              if -5e-166 < B

              1. Initial program 55.1%

                \[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} \]
              2. Add Preprocessing
              3. Applied egg-rr82.0%

                \[\leadsto \color{blue}{\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(A - C, B\right)}{B}\right)}}} \]
              4. Taylor expanded in B around inf 64.7%

                \[\leadsto \frac{180}{\frac{\pi}{\tan^{-1} \color{blue}{\left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}}} \]
              5. Taylor expanded in C around 0 64.7%

                \[\leadsto \color{blue}{180 \cdot \frac{\tan^{-1} \left(\frac{C}{B} - \left(1 + \frac{A}{B}\right)\right)}{\pi}} \]
              6. Simplified66.5%

                \[\leadsto \color{blue}{180 \cdot \frac{\tan^{-1} \left(-1 - \frac{A - C}{B}\right)}{\pi}} \]
            3. Recombined 2 regimes into one program.
            4. Add Preprocessing

            Alternative 24: 53.3% accurate, 3.7× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;C \leq 8.4 \cdot 10^{-293}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 + \frac{C}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \end{array} \end{array} \]
            (FPCore (A B C)
             :precision binary64
             (if (<= C 8.4e-293)
               (* 180.0 (/ (atan (+ 1.0 (/ C B))) PI))
               (* 180.0 (/ (atan (* -0.5 (/ B C))) PI))))
            double code(double A, double B, double C) {
            	double tmp;
            	if (C <= 8.4e-293) {
            		tmp = 180.0 * (atan((1.0 + (C / B))) / ((double) M_PI));
            	} else {
            		tmp = 180.0 * (atan((-0.5 * (B / C))) / ((double) M_PI));
            	}
            	return tmp;
            }
            
            public static double code(double A, double B, double C) {
            	double tmp;
            	if (C <= 8.4e-293) {
            		tmp = 180.0 * (Math.atan((1.0 + (C / B))) / Math.PI);
            	} else {
            		tmp = 180.0 * (Math.atan((-0.5 * (B / C))) / Math.PI);
            	}
            	return tmp;
            }
            
            def code(A, B, C):
            	tmp = 0
            	if C <= 8.4e-293:
            		tmp = 180.0 * (math.atan((1.0 + (C / B))) / math.pi)
            	else:
            		tmp = 180.0 * (math.atan((-0.5 * (B / C))) / math.pi)
            	return tmp
            
            function code(A, B, C)
            	tmp = 0.0
            	if (C <= 8.4e-293)
            		tmp = Float64(180.0 * Float64(atan(Float64(1.0 + Float64(C / B))) / pi));
            	else
            		tmp = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(B / C))) / pi));
            	end
            	return tmp
            end
            
            function tmp_2 = code(A, B, C)
            	tmp = 0.0;
            	if (C <= 8.4e-293)
            		tmp = 180.0 * (atan((1.0 + (C / B))) / pi);
            	else
            		tmp = 180.0 * (atan((-0.5 * (B / C))) / pi);
            	end
            	tmp_2 = tmp;
            end
            
            code[A_, B_, C_] := If[LessEqual[C, 8.4e-293], N[(180.0 * N[(N[ArcTan[N[(1.0 + N[(C / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;C \leq 8.4 \cdot 10^{-293}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} \left(1 + \frac{C}{B}\right)}{\pi}\\
            
            \mathbf{else}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if C < 8.40000000000000021e-293

              1. Initial program 67.2%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in B around -inf 65.9%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(\left(1 + \frac{C}{B}\right) - \frac{A}{B}\right)}}{\pi} \]
              4. Step-by-step derivation
                1. associate--l+65.9%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 + \left(\frac{C}{B} - \frac{A}{B}\right)\right)}}{\pi} \]
                2. div-sub68.1%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(1 + \color{blue}{\frac{C - A}{B}}\right)}{\pi} \]
              5. Simplified68.1%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(1 + \frac{C - A}{B}\right)}}{\pi} \]
              6. Taylor expanded in C around inf 62.1%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(1 + \color{blue}{\frac{C}{B}}\right)}{\pi} \]

              if 8.40000000000000021e-293 < C

              1. Initial program 34.6%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in C around inf 42.2%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(-0.5 \cdot \frac{{B}^{2}}{C} - \left(A + -1 \cdot A\right)\right)}\right)}{\pi} \]
              4. Step-by-step derivation
                1. distribute-rgt1-in42.2%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{\left(-1 + 1\right) \cdot A}\right)\right)}{\pi} \]
                2. metadata-eval42.2%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(-0.5 \cdot \frac{{B}^{2}}{C} - \color{blue}{0} \cdot A\right)\right)}{\pi} \]
                3. associate-*r/42.2%

                  \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \left(\color{blue}{\frac{-0.5 \cdot {B}^{2}}{C}} - 0 \cdot A\right)\right)}{\pi} \]
              5. Simplified42.2%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \left(\frac{1}{B} \cdot \color{blue}{\left(\frac{-0.5 \cdot {B}^{2}}{C} - 0 \cdot A\right)}\right)}{\pi} \]
              6. Taylor expanded in B around 0 52.1%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{\left(-0.5 \cdot \frac{B}{C}\right)}}{\pi} \]
            3. Recombined 2 regimes into one program.
            4. Add Preprocessing

            Alternative 25: 39.8% accurate, 3.8× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;B \leq -5 \cdot 10^{-310}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} -1}{\pi}\\ \end{array} \end{array} \]
            (FPCore (A B C)
             :precision binary64
             (if (<= B -5e-310) (* 180.0 (/ (atan 1.0) PI)) (* 180.0 (/ (atan -1.0) PI))))
            double code(double A, double B, double C) {
            	double tmp;
            	if (B <= -5e-310) {
            		tmp = 180.0 * (atan(1.0) / ((double) M_PI));
            	} else {
            		tmp = 180.0 * (atan(-1.0) / ((double) M_PI));
            	}
            	return tmp;
            }
            
            public static double code(double A, double B, double C) {
            	double tmp;
            	if (B <= -5e-310) {
            		tmp = 180.0 * (Math.atan(1.0) / Math.PI);
            	} else {
            		tmp = 180.0 * (Math.atan(-1.0) / Math.PI);
            	}
            	return tmp;
            }
            
            def code(A, B, C):
            	tmp = 0
            	if B <= -5e-310:
            		tmp = 180.0 * (math.atan(1.0) / math.pi)
            	else:
            		tmp = 180.0 * (math.atan(-1.0) / math.pi)
            	return tmp
            
            function code(A, B, C)
            	tmp = 0.0
            	if (B <= -5e-310)
            		tmp = Float64(180.0 * Float64(atan(1.0) / pi));
            	else
            		tmp = Float64(180.0 * Float64(atan(-1.0) / pi));
            	end
            	return tmp
            end
            
            function tmp_2 = code(A, B, C)
            	tmp = 0.0;
            	if (B <= -5e-310)
            		tmp = 180.0 * (atan(1.0) / pi);
            	else
            		tmp = 180.0 * (atan(-1.0) / pi);
            	end
            	tmp_2 = tmp;
            end
            
            code[A_, B_, C_] := If[LessEqual[B, -5e-310], N[(180.0 * N[(N[ArcTan[1.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], N[(180.0 * N[(N[ArcTan[-1.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;B \leq -5 \cdot 10^{-310}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\
            
            \mathbf{else}:\\
            \;\;\;\;180 \cdot \frac{\tan^{-1} -1}{\pi}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if B < -4.999999999999985e-310

              1. Initial program 47.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} \]
              2. Add Preprocessing
              3. Taylor expanded in B around -inf 39.9%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{1}}{\pi} \]

              if -4.999999999999985e-310 < B

              1. Initial program 55.9%

                \[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} \]
              2. Add Preprocessing
              3. Taylor expanded in B around inf 38.6%

                \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{-1}}{\pi} \]
            3. Recombined 2 regimes into one program.
            4. Add Preprocessing

            Alternative 26: 20.9% accurate, 4.0× speedup?

            \[\begin{array}{l} \\ 180 \cdot \frac{\tan^{-1} -1}{\pi} \end{array} \]
            (FPCore (A B C) :precision binary64 (* 180.0 (/ (atan -1.0) PI)))
            double code(double A, double B, double C) {
            	return 180.0 * (atan(-1.0) / ((double) M_PI));
            }
            
            public static double code(double A, double B, double C) {
            	return 180.0 * (Math.atan(-1.0) / Math.PI);
            }
            
            def code(A, B, C):
            	return 180.0 * (math.atan(-1.0) / math.pi)
            
            function code(A, B, C)
            	return Float64(180.0 * Float64(atan(-1.0) / pi))
            end
            
            function tmp = code(A, B, C)
            	tmp = 180.0 * (atan(-1.0) / pi);
            end
            
            code[A_, B_, C_] := N[(180.0 * N[(N[ArcTan[-1.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]
            
            \begin{array}{l}
            
            \\
            180 \cdot \frac{\tan^{-1} -1}{\pi}
            \end{array}
            
            Derivation
            1. Initial program 52.1%

              \[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} \]
            2. Add Preprocessing
            3. Taylor expanded in B around inf 22.5%

              \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{-1}}{\pi} \]
            4. Add Preprocessing

            Reproduce

            ?
            herbie shell --seed 2024113 
            (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)))