ABCF->ab-angle angle

Percentage Accurate: 53.9% → 81.5%
Time: 26.4s
Alternatives: 21
Speedup: 3.2×

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 21 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.9% 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: 81.5% accurate, 1.9× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if C < 7.80000000000000064e135

    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. Step-by-step derivation
      1. Simplified82.5%

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

      if 7.80000000000000064e135 < C

      1. Initial program 8.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 A around 0 8.7%

        \[\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. unpow28.7%

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{180 \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}} \]
      9. Step-by-step derivation
        1. *-commutative91.0%

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

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

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

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

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

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

    Alternative 2: 76.7% accurate, 1.9× speedup?

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

      1. Initial program 20.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. Step-by-step derivation
        1. associate-*r/20.9%

          \[\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/20.9%

          \[\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-identity20.9%

          \[\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. unpow220.9%

          \[\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. unpow220.9%

          \[\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-define53.4%

          \[\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-rr53.4%

        \[\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 89.8%

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

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

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

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

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

      if -6.50000000000000036e78 < A < 6.0999999999999998e29

      1. Initial program 46.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 A around 0 42.4%

        \[\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. unpow242.4%

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

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

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

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

      if 6.0999999999999998e29 < A

      1. Initial program 85.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/85.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/85.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-identity85.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. unpow285.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. unpow285.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-define96.9%

          \[\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-rr96.9%

        \[\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 B around -inf 88.2%

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

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

    Alternative 3: 76.7% accurate, 1.9× speedup?

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

      1. Initial program 20.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. Step-by-step derivation
        1. associate-*r/20.9%

          \[\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/20.9%

          \[\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-identity20.9%

          \[\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. unpow220.9%

          \[\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. unpow220.9%

          \[\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-define53.4%

          \[\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-rr53.4%

        \[\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 89.8%

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

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

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

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

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

      if -1.35e79 < A < 1.76e31

      1. Initial program 46.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. Step-by-step derivation
        1. associate-*r/46.0%

          \[\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/46.0%

          \[\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-identity46.0%

          \[\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. unpow246.0%

          \[\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. unpow246.0%

          \[\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-define76.0%

          \[\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-rr76.0%

        \[\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 0 42.4%

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

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

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

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

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

      if 1.76e31 < A

      1. Initial program 85.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/85.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/85.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-identity85.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. unpow285.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. unpow285.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-define96.9%

          \[\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-rr96.9%

        \[\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 B around -inf 88.2%

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

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

    Alternative 4: 81.9% accurate, 1.9× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;A \leq -1.35 \cdot 10^{+80}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(B \cdot \frac{0.5}{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 -1.35e+80)
       (/ (* 180.0 (atan (* B (/ 0.5 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 <= -1.35e+80) {
    		tmp = (180.0 * atan((B * (0.5 / 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 <= -1.35e+80) {
    		tmp = (180.0 * Math.atan((B * (0.5 / 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 <= -1.35e+80:
    		tmp = (180.0 * math.atan((B * (0.5 / 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 <= -1.35e+80)
    		tmp = Float64(Float64(180.0 * atan(Float64(B * Float64(0.5 / 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 <= -1.35e+80)
    		tmp = (180.0 * atan((B * (0.5 / 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, -1.35e+80], N[(N[(180.0 * N[ArcTan[N[(B * N[(0.5 / A), $MachinePrecision]), $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 -1.35 \cdot 10^{+80}:\\
    \;\;\;\;\frac{180 \cdot \tan^{-1} \left(B \cdot \frac{0.5}{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 < -1.34999999999999991e80

      1. Initial program 20.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. Step-by-step derivation
        1. associate-*r/20.9%

          \[\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/20.9%

          \[\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-identity20.9%

          \[\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. unpow220.9%

          \[\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. unpow220.9%

          \[\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-define53.4%

          \[\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-rr53.4%

        \[\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 89.8%

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

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

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

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

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

      if -1.34999999999999991e80 < A

      1. Initial program 57.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. Step-by-step derivation
        1. Simplified81.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. Recombined 2 regimes into one program.
      4. Final simplification83.2%

        \[\leadsto \begin{array}{l} \mathbf{if}\;A \leq -1.35 \cdot 10^{+80}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(B \cdot \frac{0.5}{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} \]
      5. Add Preprocessing

      Alternative 5: 51.3% accurate, 2.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_0 := 180 \cdot \frac{\tan^{-1} \left(\frac{C + B}{B}\right)}{\pi}\\ t_1 := 180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ t_2 := 180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{if}\;A \leq -7.2 \cdot 10^{+24}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;A \leq -7 \cdot 10^{-7}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;A \leq -6.1 \cdot 10^{-97}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;A \leq -5.8 \cdot 10^{-210}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;A \leq 1.25 \cdot 10^{-242}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;A \leq 1.15 \cdot 10^{-159}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;A \leq 3.25 \cdot 10^{+24}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \end{array} \end{array} \]
      (FPCore (A B C)
       :precision binary64
       (let* ((t_0 (* 180.0 (/ (atan (/ (+ C B) B)) PI)))
              (t_1 (* 180.0 (/ (atan (* -0.5 (/ B C))) PI)))
              (t_2 (* 180.0 (/ (atan (/ (* B 0.5) A)) PI))))
         (if (<= A -7.2e+24)
           t_2
           (if (<= A -7e-7)
             t_1
             (if (<= A -6.1e-97)
               t_2
               (if (<= A -5.8e-210)
                 t_0
                 (if (<= A 1.25e-242)
                   t_1
                   (if (<= A 1.15e-159)
                     t_0
                     (if (<= A 3.25e+24)
                       t_1
                       (* 180.0 (/ (atan (* -2.0 (/ A B))) PI)))))))))))
      double code(double A, double B, double C) {
      	double t_0 = 180.0 * (atan(((C + B) / B)) / ((double) M_PI));
      	double t_1 = 180.0 * (atan((-0.5 * (B / C))) / ((double) M_PI));
      	double t_2 = 180.0 * (atan(((B * 0.5) / A)) / ((double) M_PI));
      	double tmp;
      	if (A <= -7.2e+24) {
      		tmp = t_2;
      	} else if (A <= -7e-7) {
      		tmp = t_1;
      	} else if (A <= -6.1e-97) {
      		tmp = t_2;
      	} else if (A <= -5.8e-210) {
      		tmp = t_0;
      	} else if (A <= 1.25e-242) {
      		tmp = t_1;
      	} else if (A <= 1.15e-159) {
      		tmp = t_0;
      	} else if (A <= 3.25e+24) {
      		tmp = t_1;
      	} else {
      		tmp = 180.0 * (atan((-2.0 * (A / B))) / ((double) M_PI));
      	}
      	return tmp;
      }
      
      public static double code(double A, double B, double C) {
      	double t_0 = 180.0 * (Math.atan(((C + B) / B)) / Math.PI);
      	double t_1 = 180.0 * (Math.atan((-0.5 * (B / C))) / Math.PI);
      	double t_2 = 180.0 * (Math.atan(((B * 0.5) / A)) / Math.PI);
      	double tmp;
      	if (A <= -7.2e+24) {
      		tmp = t_2;
      	} else if (A <= -7e-7) {
      		tmp = t_1;
      	} else if (A <= -6.1e-97) {
      		tmp = t_2;
      	} else if (A <= -5.8e-210) {
      		tmp = t_0;
      	} else if (A <= 1.25e-242) {
      		tmp = t_1;
      	} else if (A <= 1.15e-159) {
      		tmp = t_0;
      	} else if (A <= 3.25e+24) {
      		tmp = t_1;
      	} else {
      		tmp = 180.0 * (Math.atan((-2.0 * (A / B))) / Math.PI);
      	}
      	return tmp;
      }
      
      def code(A, B, C):
      	t_0 = 180.0 * (math.atan(((C + B) / B)) / math.pi)
      	t_1 = 180.0 * (math.atan((-0.5 * (B / C))) / math.pi)
      	t_2 = 180.0 * (math.atan(((B * 0.5) / A)) / math.pi)
      	tmp = 0
      	if A <= -7.2e+24:
      		tmp = t_2
      	elif A <= -7e-7:
      		tmp = t_1
      	elif A <= -6.1e-97:
      		tmp = t_2
      	elif A <= -5.8e-210:
      		tmp = t_0
      	elif A <= 1.25e-242:
      		tmp = t_1
      	elif A <= 1.15e-159:
      		tmp = t_0
      	elif A <= 3.25e+24:
      		tmp = t_1
      	else:
      		tmp = 180.0 * (math.atan((-2.0 * (A / B))) / math.pi)
      	return tmp
      
      function code(A, B, C)
      	t_0 = Float64(180.0 * Float64(atan(Float64(Float64(C + B) / B)) / pi))
      	t_1 = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(B / C))) / pi))
      	t_2 = Float64(180.0 * Float64(atan(Float64(Float64(B * 0.5) / A)) / pi))
      	tmp = 0.0
      	if (A <= -7.2e+24)
      		tmp = t_2;
      	elseif (A <= -7e-7)
      		tmp = t_1;
      	elseif (A <= -6.1e-97)
      		tmp = t_2;
      	elseif (A <= -5.8e-210)
      		tmp = t_0;
      	elseif (A <= 1.25e-242)
      		tmp = t_1;
      	elseif (A <= 1.15e-159)
      		tmp = t_0;
      	elseif (A <= 3.25e+24)
      		tmp = t_1;
      	else
      		tmp = Float64(180.0 * Float64(atan(Float64(-2.0 * Float64(A / B))) / pi));
      	end
      	return tmp
      end
      
      function tmp_2 = code(A, B, C)
      	t_0 = 180.0 * (atan(((C + B) / B)) / pi);
      	t_1 = 180.0 * (atan((-0.5 * (B / C))) / pi);
      	t_2 = 180.0 * (atan(((B * 0.5) / A)) / pi);
      	tmp = 0.0;
      	if (A <= -7.2e+24)
      		tmp = t_2;
      	elseif (A <= -7e-7)
      		tmp = t_1;
      	elseif (A <= -6.1e-97)
      		tmp = t_2;
      	elseif (A <= -5.8e-210)
      		tmp = t_0;
      	elseif (A <= 1.25e-242)
      		tmp = t_1;
      	elseif (A <= 1.15e-159)
      		tmp = t_0;
      	elseif (A <= 3.25e+24)
      		tmp = t_1;
      	else
      		tmp = 180.0 * (atan((-2.0 * (A / B))) / pi);
      	end
      	tmp_2 = tmp;
      end
      
      code[A_, B_, C_] := Block[{t$95$0 = N[(180.0 * N[(N[ArcTan[N[(N[(C + B), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(180.0 * N[(N[ArcTan[N[(N[(B * 0.5), $MachinePrecision] / A), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[A, -7.2e+24], t$95$2, If[LessEqual[A, -7e-7], t$95$1, If[LessEqual[A, -6.1e-97], t$95$2, If[LessEqual[A, -5.8e-210], t$95$0, If[LessEqual[A, 1.25e-242], t$95$1, If[LessEqual[A, 1.15e-159], t$95$0, If[LessEqual[A, 3.25e+24], t$95$1, N[(180.0 * N[(N[ArcTan[N[(-2.0 * N[(A / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_0 := 180 \cdot \frac{\tan^{-1} \left(\frac{C + B}{B}\right)}{\pi}\\
      t_1 := 180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\
      t_2 := 180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\
      \mathbf{if}\;A \leq -7.2 \cdot 10^{+24}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{elif}\;A \leq -7 \cdot 10^{-7}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;A \leq -6.1 \cdot 10^{-97}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{elif}\;A \leq -5.8 \cdot 10^{-210}:\\
      \;\;\;\;t\_0\\
      
      \mathbf{elif}\;A \leq 1.25 \cdot 10^{-242}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;A \leq 1.15 \cdot 10^{-159}:\\
      \;\;\;\;t\_0\\
      
      \mathbf{elif}\;A \leq 3.25 \cdot 10^{+24}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{else}:\\
      \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 4 regimes
      2. if A < -7.19999999999999966e24 or -6.99999999999999968e-7 < A < -6.10000000000000026e-97

        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. Taylor expanded in A around -inf 74.8%

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

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

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

        if -7.19999999999999966e24 < A < -6.99999999999999968e-7 or -5.80000000000000012e-210 < A < 1.25e-242 or 1.14999999999999989e-159 < A < 3.2499999999999998e24

        1. Initial program 44.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 A around 0 37.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. unpow237.6%

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

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

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

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

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

        if -6.10000000000000026e-97 < A < -5.80000000000000012e-210 or 1.25e-242 < A < 1.14999999999999989e-159

        1. Initial program 49.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 0 49.0%

          \[\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. unpow249.0%

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

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

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

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

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

        if 3.2499999999999998e24 < A

        1. Initial program 85.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 81.0%

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;A \leq -7.2 \cdot 10^{+24}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq -7 \cdot 10^{-7}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \mathbf{elif}\;A \leq -6.1 \cdot 10^{-97}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq -5.8 \cdot 10^{-210}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C + B}{B}\right)}{\pi}\\ \mathbf{elif}\;A \leq 1.25 \cdot 10^{-242}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \mathbf{elif}\;A \leq 1.15 \cdot 10^{-159}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C + B}{B}\right)}{\pi}\\ \mathbf{elif}\;A \leq 3.25 \cdot 10^{+24}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 6: 52.6% accurate, 2.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_0 := 180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\ t_1 := 180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ t_2 := 180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \mathbf{if}\;A \leq -8 \cdot 10^{+76}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;A \leq -7.5 \cdot 10^{+31}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;A \leq -7.2 \cdot 10^{+24}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;A \leq -7 \cdot 10^{-7}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;A \leq -6 \cdot 10^{-102}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;A \leq 2.3 \cdot 10^{-215}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;A \leq 5.1 \cdot 10^{+24}:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \end{array} \end{array} \]
      (FPCore (A B C)
       :precision binary64
       (let* ((t_0 (* 180.0 (/ (atan (/ (- C B) B)) PI)))
              (t_1 (* 180.0 (/ (atan (/ (* B 0.5) A)) PI)))
              (t_2 (* 180.0 (/ (atan (* -0.5 (/ B C))) PI))))
         (if (<= A -8e+76)
           t_1
           (if (<= A -7.5e+31)
             t_0
             (if (<= A -7.2e+24)
               t_1
               (if (<= A -7e-7)
                 t_2
                 (if (<= A -6e-102)
                   t_1
                   (if (<= A 2.3e-215)
                     t_0
                     (if (<= A 5.1e+24)
                       t_2
                       (* 180.0 (/ (atan (* -2.0 (/ A B))) PI)))))))))))
      double code(double A, double B, double C) {
      	double t_0 = 180.0 * (atan(((C - B) / B)) / ((double) M_PI));
      	double t_1 = 180.0 * (atan(((B * 0.5) / A)) / ((double) M_PI));
      	double t_2 = 180.0 * (atan((-0.5 * (B / C))) / ((double) M_PI));
      	double tmp;
      	if (A <= -8e+76) {
      		tmp = t_1;
      	} else if (A <= -7.5e+31) {
      		tmp = t_0;
      	} else if (A <= -7.2e+24) {
      		tmp = t_1;
      	} else if (A <= -7e-7) {
      		tmp = t_2;
      	} else if (A <= -6e-102) {
      		tmp = t_1;
      	} else if (A <= 2.3e-215) {
      		tmp = t_0;
      	} else if (A <= 5.1e+24) {
      		tmp = t_2;
      	} else {
      		tmp = 180.0 * (atan((-2.0 * (A / B))) / ((double) M_PI));
      	}
      	return tmp;
      }
      
      public static double code(double A, double B, double C) {
      	double t_0 = 180.0 * (Math.atan(((C - B) / B)) / Math.PI);
      	double t_1 = 180.0 * (Math.atan(((B * 0.5) / A)) / Math.PI);
      	double t_2 = 180.0 * (Math.atan((-0.5 * (B / C))) / Math.PI);
      	double tmp;
      	if (A <= -8e+76) {
      		tmp = t_1;
      	} else if (A <= -7.5e+31) {
      		tmp = t_0;
      	} else if (A <= -7.2e+24) {
      		tmp = t_1;
      	} else if (A <= -7e-7) {
      		tmp = t_2;
      	} else if (A <= -6e-102) {
      		tmp = t_1;
      	} else if (A <= 2.3e-215) {
      		tmp = t_0;
      	} else if (A <= 5.1e+24) {
      		tmp = t_2;
      	} else {
      		tmp = 180.0 * (Math.atan((-2.0 * (A / B))) / Math.PI);
      	}
      	return tmp;
      }
      
      def code(A, B, C):
      	t_0 = 180.0 * (math.atan(((C - B) / B)) / math.pi)
      	t_1 = 180.0 * (math.atan(((B * 0.5) / A)) / math.pi)
      	t_2 = 180.0 * (math.atan((-0.5 * (B / C))) / math.pi)
      	tmp = 0
      	if A <= -8e+76:
      		tmp = t_1
      	elif A <= -7.5e+31:
      		tmp = t_0
      	elif A <= -7.2e+24:
      		tmp = t_1
      	elif A <= -7e-7:
      		tmp = t_2
      	elif A <= -6e-102:
      		tmp = t_1
      	elif A <= 2.3e-215:
      		tmp = t_0
      	elif A <= 5.1e+24:
      		tmp = t_2
      	else:
      		tmp = 180.0 * (math.atan((-2.0 * (A / B))) / math.pi)
      	return tmp
      
      function code(A, B, C)
      	t_0 = Float64(180.0 * Float64(atan(Float64(Float64(C - B) / B)) / pi))
      	t_1 = Float64(180.0 * Float64(atan(Float64(Float64(B * 0.5) / A)) / pi))
      	t_2 = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(B / C))) / pi))
      	tmp = 0.0
      	if (A <= -8e+76)
      		tmp = t_1;
      	elseif (A <= -7.5e+31)
      		tmp = t_0;
      	elseif (A <= -7.2e+24)
      		tmp = t_1;
      	elseif (A <= -7e-7)
      		tmp = t_2;
      	elseif (A <= -6e-102)
      		tmp = t_1;
      	elseif (A <= 2.3e-215)
      		tmp = t_0;
      	elseif (A <= 5.1e+24)
      		tmp = t_2;
      	else
      		tmp = Float64(180.0 * Float64(atan(Float64(-2.0 * Float64(A / B))) / pi));
      	end
      	return tmp
      end
      
      function tmp_2 = code(A, B, C)
      	t_0 = 180.0 * (atan(((C - B) / B)) / pi);
      	t_1 = 180.0 * (atan(((B * 0.5) / A)) / pi);
      	t_2 = 180.0 * (atan((-0.5 * (B / C))) / pi);
      	tmp = 0.0;
      	if (A <= -8e+76)
      		tmp = t_1;
      	elseif (A <= -7.5e+31)
      		tmp = t_0;
      	elseif (A <= -7.2e+24)
      		tmp = t_1;
      	elseif (A <= -7e-7)
      		tmp = t_2;
      	elseif (A <= -6e-102)
      		tmp = t_1;
      	elseif (A <= 2.3e-215)
      		tmp = t_0;
      	elseif (A <= 5.1e+24)
      		tmp = t_2;
      	else
      		tmp = 180.0 * (atan((-2.0 * (A / B))) / pi);
      	end
      	tmp_2 = tmp;
      end
      
      code[A_, B_, C_] := Block[{t$95$0 = N[(180.0 * N[(N[ArcTan[N[(N[(C - B), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(180.0 * N[(N[ArcTan[N[(N[(B * 0.5), $MachinePrecision] / A), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[A, -8e+76], t$95$1, If[LessEqual[A, -7.5e+31], t$95$0, If[LessEqual[A, -7.2e+24], t$95$1, If[LessEqual[A, -7e-7], t$95$2, If[LessEqual[A, -6e-102], t$95$1, If[LessEqual[A, 2.3e-215], t$95$0, If[LessEqual[A, 5.1e+24], t$95$2, N[(180.0 * N[(N[ArcTan[N[(-2.0 * N[(A / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_0 := 180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\
      t_1 := 180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\
      t_2 := 180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\
      \mathbf{if}\;A \leq -8 \cdot 10^{+76}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;A \leq -7.5 \cdot 10^{+31}:\\
      \;\;\;\;t\_0\\
      
      \mathbf{elif}\;A \leq -7.2 \cdot 10^{+24}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;A \leq -7 \cdot 10^{-7}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{elif}\;A \leq -6 \cdot 10^{-102}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;A \leq 2.3 \cdot 10^{-215}:\\
      \;\;\;\;t\_0\\
      
      \mathbf{elif}\;A \leq 5.1 \cdot 10^{+24}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{else}:\\
      \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 4 regimes
      2. if A < -8.0000000000000004e76 or -7.5e31 < A < -7.19999999999999966e24 or -6.99999999999999968e-7 < A < -6e-102

        1. Initial program 27.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 A around -inf 81.0%

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

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

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

        if -8.0000000000000004e76 < A < -7.5e31 or -6e-102 < A < 2.2999999999999999e-215

        1. Initial program 52.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 0 52.0%

          \[\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. unpow252.0%

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

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

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

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

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

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

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

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

        if -7.19999999999999966e24 < A < -6.99999999999999968e-7 or 2.2999999999999999e-215 < A < 5.0999999999999995e24

        1. Initial program 40.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 A around 0 31.2%

          \[\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. unpow231.2%

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

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

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

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

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

        if 5.0999999999999995e24 < A

        1. Initial program 85.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 81.0%

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;A \leq -8 \cdot 10^{+76}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq -7.5 \cdot 10^{+31}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\ \mathbf{elif}\;A \leq -7.2 \cdot 10^{+24}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq -7 \cdot 10^{-7}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \mathbf{elif}\;A \leq -6 \cdot 10^{-102}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq 2.3 \cdot 10^{-215}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\ \mathbf{elif}\;A \leq 5.1 \cdot 10^{+24}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 7: 52.7% accurate, 2.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_0 := 180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\ t_1 := 180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ t_2 := \tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \mathbf{if}\;A \leq -9 \cdot 10^{+74}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;A \leq -7.5 \cdot 10^{+31}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;A \leq -8.2 \cdot 10^{+24}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;A \leq -7 \cdot 10^{-7}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;A \leq -5.2 \cdot 10^{-103}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;A \leq 7.5 \cdot 10^{-215}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;A \leq 1.18 \cdot 10^{+24}:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \end{array} \end{array} \]
      (FPCore (A B C)
       :precision binary64
       (let* ((t_0 (* 180.0 (/ (atan (/ (- C B) B)) PI)))
              (t_1 (* 180.0 (/ (atan (/ (* B 0.5) A)) PI)))
              (t_2 (* (atan (/ (* B -0.5) C)) (/ 180.0 PI))))
         (if (<= A -9e+74)
           t_1
           (if (<= A -7.5e+31)
             t_0
             (if (<= A -8.2e+24)
               t_1
               (if (<= A -7e-7)
                 t_2
                 (if (<= A -5.2e-103)
                   t_1
                   (if (<= A 7.5e-215)
                     t_0
                     (if (<= A 1.18e+24)
                       t_2
                       (* 180.0 (/ (atan (* -2.0 (/ A B))) PI)))))))))))
      double code(double A, double B, double C) {
      	double t_0 = 180.0 * (atan(((C - B) / B)) / ((double) M_PI));
      	double t_1 = 180.0 * (atan(((B * 0.5) / A)) / ((double) M_PI));
      	double t_2 = atan(((B * -0.5) / C)) * (180.0 / ((double) M_PI));
      	double tmp;
      	if (A <= -9e+74) {
      		tmp = t_1;
      	} else if (A <= -7.5e+31) {
      		tmp = t_0;
      	} else if (A <= -8.2e+24) {
      		tmp = t_1;
      	} else if (A <= -7e-7) {
      		tmp = t_2;
      	} else if (A <= -5.2e-103) {
      		tmp = t_1;
      	} else if (A <= 7.5e-215) {
      		tmp = t_0;
      	} else if (A <= 1.18e+24) {
      		tmp = t_2;
      	} else {
      		tmp = 180.0 * (atan((-2.0 * (A / B))) / ((double) M_PI));
      	}
      	return tmp;
      }
      
      public static double code(double A, double B, double C) {
      	double t_0 = 180.0 * (Math.atan(((C - B) / B)) / Math.PI);
      	double t_1 = 180.0 * (Math.atan(((B * 0.5) / A)) / Math.PI);
      	double t_2 = Math.atan(((B * -0.5) / C)) * (180.0 / Math.PI);
      	double tmp;
      	if (A <= -9e+74) {
      		tmp = t_1;
      	} else if (A <= -7.5e+31) {
      		tmp = t_0;
      	} else if (A <= -8.2e+24) {
      		tmp = t_1;
      	} else if (A <= -7e-7) {
      		tmp = t_2;
      	} else if (A <= -5.2e-103) {
      		tmp = t_1;
      	} else if (A <= 7.5e-215) {
      		tmp = t_0;
      	} else if (A <= 1.18e+24) {
      		tmp = t_2;
      	} else {
      		tmp = 180.0 * (Math.atan((-2.0 * (A / B))) / Math.PI);
      	}
      	return tmp;
      }
      
      def code(A, B, C):
      	t_0 = 180.0 * (math.atan(((C - B) / B)) / math.pi)
      	t_1 = 180.0 * (math.atan(((B * 0.5) / A)) / math.pi)
      	t_2 = math.atan(((B * -0.5) / C)) * (180.0 / math.pi)
      	tmp = 0
      	if A <= -9e+74:
      		tmp = t_1
      	elif A <= -7.5e+31:
      		tmp = t_0
      	elif A <= -8.2e+24:
      		tmp = t_1
      	elif A <= -7e-7:
      		tmp = t_2
      	elif A <= -5.2e-103:
      		tmp = t_1
      	elif A <= 7.5e-215:
      		tmp = t_0
      	elif A <= 1.18e+24:
      		tmp = t_2
      	else:
      		tmp = 180.0 * (math.atan((-2.0 * (A / B))) / math.pi)
      	return tmp
      
      function code(A, B, C)
      	t_0 = Float64(180.0 * Float64(atan(Float64(Float64(C - B) / B)) / pi))
      	t_1 = Float64(180.0 * Float64(atan(Float64(Float64(B * 0.5) / A)) / pi))
      	t_2 = Float64(atan(Float64(Float64(B * -0.5) / C)) * Float64(180.0 / pi))
      	tmp = 0.0
      	if (A <= -9e+74)
      		tmp = t_1;
      	elseif (A <= -7.5e+31)
      		tmp = t_0;
      	elseif (A <= -8.2e+24)
      		tmp = t_1;
      	elseif (A <= -7e-7)
      		tmp = t_2;
      	elseif (A <= -5.2e-103)
      		tmp = t_1;
      	elseif (A <= 7.5e-215)
      		tmp = t_0;
      	elseif (A <= 1.18e+24)
      		tmp = t_2;
      	else
      		tmp = Float64(180.0 * Float64(atan(Float64(-2.0 * Float64(A / B))) / pi));
      	end
      	return tmp
      end
      
      function tmp_2 = code(A, B, C)
      	t_0 = 180.0 * (atan(((C - B) / B)) / pi);
      	t_1 = 180.0 * (atan(((B * 0.5) / A)) / pi);
      	t_2 = atan(((B * -0.5) / C)) * (180.0 / pi);
      	tmp = 0.0;
      	if (A <= -9e+74)
      		tmp = t_1;
      	elseif (A <= -7.5e+31)
      		tmp = t_0;
      	elseif (A <= -8.2e+24)
      		tmp = t_1;
      	elseif (A <= -7e-7)
      		tmp = t_2;
      	elseif (A <= -5.2e-103)
      		tmp = t_1;
      	elseif (A <= 7.5e-215)
      		tmp = t_0;
      	elseif (A <= 1.18e+24)
      		tmp = t_2;
      	else
      		tmp = 180.0 * (atan((-2.0 * (A / B))) / pi);
      	end
      	tmp_2 = tmp;
      end
      
      code[A_, B_, C_] := Block[{t$95$0 = N[(180.0 * N[(N[ArcTan[N[(N[(C - B), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(180.0 * N[(N[ArcTan[N[(N[(B * 0.5), $MachinePrecision] / A), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[ArcTan[N[(N[(B * -0.5), $MachinePrecision] / C), $MachinePrecision]], $MachinePrecision] * N[(180.0 / Pi), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[A, -9e+74], t$95$1, If[LessEqual[A, -7.5e+31], t$95$0, If[LessEqual[A, -8.2e+24], t$95$1, If[LessEqual[A, -7e-7], t$95$2, If[LessEqual[A, -5.2e-103], t$95$1, If[LessEqual[A, 7.5e-215], t$95$0, If[LessEqual[A, 1.18e+24], t$95$2, N[(180.0 * N[(N[ArcTan[N[(-2.0 * N[(A / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_0 := 180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\
      t_1 := 180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\
      t_2 := \tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\
      \mathbf{if}\;A \leq -9 \cdot 10^{+74}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;A \leq -7.5 \cdot 10^{+31}:\\
      \;\;\;\;t\_0\\
      
      \mathbf{elif}\;A \leq -8.2 \cdot 10^{+24}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;A \leq -7 \cdot 10^{-7}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{elif}\;A \leq -5.2 \cdot 10^{-103}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;A \leq 7.5 \cdot 10^{-215}:\\
      \;\;\;\;t\_0\\
      
      \mathbf{elif}\;A \leq 1.18 \cdot 10^{+24}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{else}:\\
      \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 4 regimes
      2. if A < -8.9999999999999999e74 or -7.5e31 < A < -8.2000000000000002e24 or -6.99999999999999968e-7 < A < -5.19999999999999993e-103

        1. Initial program 27.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 A around -inf 81.0%

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

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

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

        if -8.9999999999999999e74 < A < -7.5e31 or -5.19999999999999993e-103 < A < 7.49999999999999986e-215

        1. Initial program 52.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 0 52.0%

          \[\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. unpow252.0%

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

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

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

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

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

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

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

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

        if -8.2000000000000002e24 < A < -6.99999999999999968e-7 or 7.49999999999999986e-215 < A < 1.17999999999999997e24

        1. Initial program 40.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 A around 0 31.2%

          \[\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. unpow231.2%

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

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

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

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

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

            \[\leadsto \color{blue}{\frac{180 \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}} \]
        8. Applied egg-rr55.4%

          \[\leadsto \color{blue}{\frac{180 \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}} \]
        9. Step-by-step derivation
          1. *-commutative55.4%

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

            \[\leadsto \color{blue}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right) \cdot \frac{180}{\pi}} \]
          3. *-commutative55.4%

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

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

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

        if 1.17999999999999997e24 < A

        1. Initial program 85.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 81.0%

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;A \leq -9 \cdot 10^{+74}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq -7.5 \cdot 10^{+31}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\ \mathbf{elif}\;A \leq -8.2 \cdot 10^{+24}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq -7 \cdot 10^{-7}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \mathbf{elif}\;A \leq -5.2 \cdot 10^{-103}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq 7.5 \cdot 10^{-215}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\ \mathbf{elif}\;A \leq 1.18 \cdot 10^{+24}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 8: 52.7% accurate, 2.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_0 := 180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\ t_1 := 180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{if}\;A \leq -9 \cdot 10^{+74}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;A \leq -7.5 \cdot 10^{+31}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;A \leq -7.2 \cdot 10^{+24}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;A \leq -4.5 \cdot 10^{-7}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \mathbf{elif}\;A \leq -1.22 \cdot 10^{-102}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;A \leq 1.4 \cdot 10^{-214}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;A \leq 2.9 \cdot 10^{+24}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \end{array} \end{array} \]
      (FPCore (A B C)
       :precision binary64
       (let* ((t_0 (* 180.0 (/ (atan (/ (- C B) B)) PI)))
              (t_1 (* 180.0 (/ (atan (/ (* B 0.5) A)) PI))))
         (if (<= A -9e+74)
           t_1
           (if (<= A -7.5e+31)
             t_0
             (if (<= A -7.2e+24)
               t_1
               (if (<= A -4.5e-7)
                 (* (atan (/ (* B -0.5) C)) (/ 180.0 PI))
                 (if (<= A -1.22e-102)
                   t_1
                   (if (<= A 1.4e-214)
                     t_0
                     (if (<= A 2.9e+24)
                       (/ (* 180.0 (atan (* -0.5 (/ B C)))) PI)
                       (* 180.0 (/ (atan (* -2.0 (/ A B))) PI)))))))))))
      double code(double A, double B, double C) {
      	double t_0 = 180.0 * (atan(((C - B) / B)) / ((double) M_PI));
      	double t_1 = 180.0 * (atan(((B * 0.5) / A)) / ((double) M_PI));
      	double tmp;
      	if (A <= -9e+74) {
      		tmp = t_1;
      	} else if (A <= -7.5e+31) {
      		tmp = t_0;
      	} else if (A <= -7.2e+24) {
      		tmp = t_1;
      	} else if (A <= -4.5e-7) {
      		tmp = atan(((B * -0.5) / C)) * (180.0 / ((double) M_PI));
      	} else if (A <= -1.22e-102) {
      		tmp = t_1;
      	} else if (A <= 1.4e-214) {
      		tmp = t_0;
      	} else if (A <= 2.9e+24) {
      		tmp = (180.0 * atan((-0.5 * (B / C)))) / ((double) M_PI);
      	} else {
      		tmp = 180.0 * (atan((-2.0 * (A / B))) / ((double) M_PI));
      	}
      	return tmp;
      }
      
      public static double code(double A, double B, double C) {
      	double t_0 = 180.0 * (Math.atan(((C - B) / B)) / Math.PI);
      	double t_1 = 180.0 * (Math.atan(((B * 0.5) / A)) / Math.PI);
      	double tmp;
      	if (A <= -9e+74) {
      		tmp = t_1;
      	} else if (A <= -7.5e+31) {
      		tmp = t_0;
      	} else if (A <= -7.2e+24) {
      		tmp = t_1;
      	} else if (A <= -4.5e-7) {
      		tmp = Math.atan(((B * -0.5) / C)) * (180.0 / Math.PI);
      	} else if (A <= -1.22e-102) {
      		tmp = t_1;
      	} else if (A <= 1.4e-214) {
      		tmp = t_0;
      	} else if (A <= 2.9e+24) {
      		tmp = (180.0 * Math.atan((-0.5 * (B / C)))) / Math.PI;
      	} else {
      		tmp = 180.0 * (Math.atan((-2.0 * (A / B))) / Math.PI);
      	}
      	return tmp;
      }
      
      def code(A, B, C):
      	t_0 = 180.0 * (math.atan(((C - B) / B)) / math.pi)
      	t_1 = 180.0 * (math.atan(((B * 0.5) / A)) / math.pi)
      	tmp = 0
      	if A <= -9e+74:
      		tmp = t_1
      	elif A <= -7.5e+31:
      		tmp = t_0
      	elif A <= -7.2e+24:
      		tmp = t_1
      	elif A <= -4.5e-7:
      		tmp = math.atan(((B * -0.5) / C)) * (180.0 / math.pi)
      	elif A <= -1.22e-102:
      		tmp = t_1
      	elif A <= 1.4e-214:
      		tmp = t_0
      	elif A <= 2.9e+24:
      		tmp = (180.0 * math.atan((-0.5 * (B / C)))) / math.pi
      	else:
      		tmp = 180.0 * (math.atan((-2.0 * (A / B))) / math.pi)
      	return tmp
      
      function code(A, B, C)
      	t_0 = Float64(180.0 * Float64(atan(Float64(Float64(C - B) / B)) / pi))
      	t_1 = Float64(180.0 * Float64(atan(Float64(Float64(B * 0.5) / A)) / pi))
      	tmp = 0.0
      	if (A <= -9e+74)
      		tmp = t_1;
      	elseif (A <= -7.5e+31)
      		tmp = t_0;
      	elseif (A <= -7.2e+24)
      		tmp = t_1;
      	elseif (A <= -4.5e-7)
      		tmp = Float64(atan(Float64(Float64(B * -0.5) / C)) * Float64(180.0 / pi));
      	elseif (A <= -1.22e-102)
      		tmp = t_1;
      	elseif (A <= 1.4e-214)
      		tmp = t_0;
      	elseif (A <= 2.9e+24)
      		tmp = Float64(Float64(180.0 * atan(Float64(-0.5 * Float64(B / C)))) / pi);
      	else
      		tmp = Float64(180.0 * Float64(atan(Float64(-2.0 * Float64(A / B))) / pi));
      	end
      	return tmp
      end
      
      function tmp_2 = code(A, B, C)
      	t_0 = 180.0 * (atan(((C - B) / B)) / pi);
      	t_1 = 180.0 * (atan(((B * 0.5) / A)) / pi);
      	tmp = 0.0;
      	if (A <= -9e+74)
      		tmp = t_1;
      	elseif (A <= -7.5e+31)
      		tmp = t_0;
      	elseif (A <= -7.2e+24)
      		tmp = t_1;
      	elseif (A <= -4.5e-7)
      		tmp = atan(((B * -0.5) / C)) * (180.0 / pi);
      	elseif (A <= -1.22e-102)
      		tmp = t_1;
      	elseif (A <= 1.4e-214)
      		tmp = t_0;
      	elseif (A <= 2.9e+24)
      		tmp = (180.0 * atan((-0.5 * (B / C)))) / pi;
      	else
      		tmp = 180.0 * (atan((-2.0 * (A / B))) / pi);
      	end
      	tmp_2 = tmp;
      end
      
      code[A_, B_, C_] := Block[{t$95$0 = N[(180.0 * N[(N[ArcTan[N[(N[(C - B), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(180.0 * N[(N[ArcTan[N[(N[(B * 0.5), $MachinePrecision] / A), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[A, -9e+74], t$95$1, If[LessEqual[A, -7.5e+31], t$95$0, If[LessEqual[A, -7.2e+24], t$95$1, If[LessEqual[A, -4.5e-7], N[(N[ArcTan[N[(N[(B * -0.5), $MachinePrecision] / C), $MachinePrecision]], $MachinePrecision] * N[(180.0 / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[A, -1.22e-102], t$95$1, If[LessEqual[A, 1.4e-214], t$95$0, If[LessEqual[A, 2.9e+24], N[(N[(180.0 * N[ArcTan[N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-2.0 * N[(A / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_0 := 180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\
      t_1 := 180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\
      \mathbf{if}\;A \leq -9 \cdot 10^{+74}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;A \leq -7.5 \cdot 10^{+31}:\\
      \;\;\;\;t\_0\\
      
      \mathbf{elif}\;A \leq -7.2 \cdot 10^{+24}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;A \leq -4.5 \cdot 10^{-7}:\\
      \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\
      
      \mathbf{elif}\;A \leq -1.22 \cdot 10^{-102}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;A \leq 1.4 \cdot 10^{-214}:\\
      \;\;\;\;t\_0\\
      
      \mathbf{elif}\;A \leq 2.9 \cdot 10^{+24}:\\
      \;\;\;\;\frac{180 \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\
      
      \mathbf{else}:\\
      \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 5 regimes
      2. if A < -8.9999999999999999e74 or -7.5e31 < A < -7.19999999999999966e24 or -4.4999999999999998e-7 < A < -1.22e-102

        1. Initial program 27.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 A around -inf 81.0%

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

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

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

        if -8.9999999999999999e74 < A < -7.5e31 or -1.22e-102 < A < 1.4000000000000001e-214

        1. Initial program 52.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 0 52.0%

          \[\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. unpow252.0%

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

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

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

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

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

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

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

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

        if -7.19999999999999966e24 < A < -4.4999999999999998e-7

        1. Initial program 30.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 A around 0 26.7%

          \[\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. unpow226.7%

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

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

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

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

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

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

          \[\leadsto \color{blue}{\frac{180 \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}} \]
        9. Step-by-step derivation
          1. *-commutative67.4%

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

            \[\leadsto \color{blue}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right) \cdot \frac{180}{\pi}} \]
          3. *-commutative67.4%

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

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

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

        if 1.4000000000000001e-214 < A < 2.89999999999999979e24

        1. Initial program 41.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. Step-by-step derivation
          1. associate-*r/41.3%

            \[\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/41.3%

            \[\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-identity41.3%

            \[\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. unpow241.3%

            \[\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. unpow241.3%

            \[\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-define79.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-rr79.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 0 31.8%

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

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

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

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

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

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

        if 2.89999999999999979e24 < A

        1. Initial program 85.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 81.0%

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;A \leq -9 \cdot 10^{+74}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq -7.5 \cdot 10^{+31}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\ \mathbf{elif}\;A \leq -7.2 \cdot 10^{+24}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq -4.5 \cdot 10^{-7}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \mathbf{elif}\;A \leq -1.22 \cdot 10^{-102}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq 1.4 \cdot 10^{-214}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\ \mathbf{elif}\;A \leq 2.9 \cdot 10^{+24}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 9: 52.7% accurate, 2.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_0 := 180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\ t_1 := 180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{if}\;A \leq -9 \cdot 10^{+74}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(B \cdot \frac{0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq -7.5 \cdot 10^{+31}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;A \leq -7.2 \cdot 10^{+24}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;A \leq -7 \cdot 10^{-7}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \mathbf{elif}\;A \leq -2.2 \cdot 10^{-103}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;A \leq 3.55 \cdot 10^{-214}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;A \leq 6.4 \cdot 10^{+25}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \end{array} \end{array} \]
      (FPCore (A B C)
       :precision binary64
       (let* ((t_0 (* 180.0 (/ (atan (/ (- C B) B)) PI)))
              (t_1 (* 180.0 (/ (atan (/ (* B 0.5) A)) PI))))
         (if (<= A -9e+74)
           (/ (* 180.0 (atan (* B (/ 0.5 A)))) PI)
           (if (<= A -7.5e+31)
             t_0
             (if (<= A -7.2e+24)
               t_1
               (if (<= A -7e-7)
                 (* (atan (/ (* B -0.5) C)) (/ 180.0 PI))
                 (if (<= A -2.2e-103)
                   t_1
                   (if (<= A 3.55e-214)
                     t_0
                     (if (<= A 6.4e+25)
                       (/ (* 180.0 (atan (* -0.5 (/ B C)))) PI)
                       (* 180.0 (/ (atan (* -2.0 (/ A B))) PI)))))))))))
      double code(double A, double B, double C) {
      	double t_0 = 180.0 * (atan(((C - B) / B)) / ((double) M_PI));
      	double t_1 = 180.0 * (atan(((B * 0.5) / A)) / ((double) M_PI));
      	double tmp;
      	if (A <= -9e+74) {
      		tmp = (180.0 * atan((B * (0.5 / A)))) / ((double) M_PI);
      	} else if (A <= -7.5e+31) {
      		tmp = t_0;
      	} else if (A <= -7.2e+24) {
      		tmp = t_1;
      	} else if (A <= -7e-7) {
      		tmp = atan(((B * -0.5) / C)) * (180.0 / ((double) M_PI));
      	} else if (A <= -2.2e-103) {
      		tmp = t_1;
      	} else if (A <= 3.55e-214) {
      		tmp = t_0;
      	} else if (A <= 6.4e+25) {
      		tmp = (180.0 * atan((-0.5 * (B / C)))) / ((double) M_PI);
      	} else {
      		tmp = 180.0 * (atan((-2.0 * (A / B))) / ((double) M_PI));
      	}
      	return tmp;
      }
      
      public static double code(double A, double B, double C) {
      	double t_0 = 180.0 * (Math.atan(((C - B) / B)) / Math.PI);
      	double t_1 = 180.0 * (Math.atan(((B * 0.5) / A)) / Math.PI);
      	double tmp;
      	if (A <= -9e+74) {
      		tmp = (180.0 * Math.atan((B * (0.5 / A)))) / Math.PI;
      	} else if (A <= -7.5e+31) {
      		tmp = t_0;
      	} else if (A <= -7.2e+24) {
      		tmp = t_1;
      	} else if (A <= -7e-7) {
      		tmp = Math.atan(((B * -0.5) / C)) * (180.0 / Math.PI);
      	} else if (A <= -2.2e-103) {
      		tmp = t_1;
      	} else if (A <= 3.55e-214) {
      		tmp = t_0;
      	} else if (A <= 6.4e+25) {
      		tmp = (180.0 * Math.atan((-0.5 * (B / C)))) / Math.PI;
      	} else {
      		tmp = 180.0 * (Math.atan((-2.0 * (A / B))) / Math.PI);
      	}
      	return tmp;
      }
      
      def code(A, B, C):
      	t_0 = 180.0 * (math.atan(((C - B) / B)) / math.pi)
      	t_1 = 180.0 * (math.atan(((B * 0.5) / A)) / math.pi)
      	tmp = 0
      	if A <= -9e+74:
      		tmp = (180.0 * math.atan((B * (0.5 / A)))) / math.pi
      	elif A <= -7.5e+31:
      		tmp = t_0
      	elif A <= -7.2e+24:
      		tmp = t_1
      	elif A <= -7e-7:
      		tmp = math.atan(((B * -0.5) / C)) * (180.0 / math.pi)
      	elif A <= -2.2e-103:
      		tmp = t_1
      	elif A <= 3.55e-214:
      		tmp = t_0
      	elif A <= 6.4e+25:
      		tmp = (180.0 * math.atan((-0.5 * (B / C)))) / math.pi
      	else:
      		tmp = 180.0 * (math.atan((-2.0 * (A / B))) / math.pi)
      	return tmp
      
      function code(A, B, C)
      	t_0 = Float64(180.0 * Float64(atan(Float64(Float64(C - B) / B)) / pi))
      	t_1 = Float64(180.0 * Float64(atan(Float64(Float64(B * 0.5) / A)) / pi))
      	tmp = 0.0
      	if (A <= -9e+74)
      		tmp = Float64(Float64(180.0 * atan(Float64(B * Float64(0.5 / A)))) / pi);
      	elseif (A <= -7.5e+31)
      		tmp = t_0;
      	elseif (A <= -7.2e+24)
      		tmp = t_1;
      	elseif (A <= -7e-7)
      		tmp = Float64(atan(Float64(Float64(B * -0.5) / C)) * Float64(180.0 / pi));
      	elseif (A <= -2.2e-103)
      		tmp = t_1;
      	elseif (A <= 3.55e-214)
      		tmp = t_0;
      	elseif (A <= 6.4e+25)
      		tmp = Float64(Float64(180.0 * atan(Float64(-0.5 * Float64(B / C)))) / pi);
      	else
      		tmp = Float64(180.0 * Float64(atan(Float64(-2.0 * Float64(A / B))) / pi));
      	end
      	return tmp
      end
      
      function tmp_2 = code(A, B, C)
      	t_0 = 180.0 * (atan(((C - B) / B)) / pi);
      	t_1 = 180.0 * (atan(((B * 0.5) / A)) / pi);
      	tmp = 0.0;
      	if (A <= -9e+74)
      		tmp = (180.0 * atan((B * (0.5 / A)))) / pi;
      	elseif (A <= -7.5e+31)
      		tmp = t_0;
      	elseif (A <= -7.2e+24)
      		tmp = t_1;
      	elseif (A <= -7e-7)
      		tmp = atan(((B * -0.5) / C)) * (180.0 / pi);
      	elseif (A <= -2.2e-103)
      		tmp = t_1;
      	elseif (A <= 3.55e-214)
      		tmp = t_0;
      	elseif (A <= 6.4e+25)
      		tmp = (180.0 * atan((-0.5 * (B / C)))) / pi;
      	else
      		tmp = 180.0 * (atan((-2.0 * (A / B))) / pi);
      	end
      	tmp_2 = tmp;
      end
      
      code[A_, B_, C_] := Block[{t$95$0 = N[(180.0 * N[(N[ArcTan[N[(N[(C - B), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(180.0 * N[(N[ArcTan[N[(N[(B * 0.5), $MachinePrecision] / A), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[A, -9e+74], N[(N[(180.0 * N[ArcTan[N[(B * N[(0.5 / A), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], If[LessEqual[A, -7.5e+31], t$95$0, If[LessEqual[A, -7.2e+24], t$95$1, If[LessEqual[A, -7e-7], N[(N[ArcTan[N[(N[(B * -0.5), $MachinePrecision] / C), $MachinePrecision]], $MachinePrecision] * N[(180.0 / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[A, -2.2e-103], t$95$1, If[LessEqual[A, 3.55e-214], t$95$0, If[LessEqual[A, 6.4e+25], N[(N[(180.0 * N[ArcTan[N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], N[(180.0 * N[(N[ArcTan[N[(-2.0 * N[(A / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_0 := 180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\
      t_1 := 180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\
      \mathbf{if}\;A \leq -9 \cdot 10^{+74}:\\
      \;\;\;\;\frac{180 \cdot \tan^{-1} \left(B \cdot \frac{0.5}{A}\right)}{\pi}\\
      
      \mathbf{elif}\;A \leq -7.5 \cdot 10^{+31}:\\
      \;\;\;\;t\_0\\
      
      \mathbf{elif}\;A \leq -7.2 \cdot 10^{+24}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;A \leq -7 \cdot 10^{-7}:\\
      \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\
      
      \mathbf{elif}\;A \leq -2.2 \cdot 10^{-103}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;A \leq 3.55 \cdot 10^{-214}:\\
      \;\;\;\;t\_0\\
      
      \mathbf{elif}\;A \leq 6.4 \cdot 10^{+25}:\\
      \;\;\;\;\frac{180 \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\
      
      \mathbf{else}:\\
      \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 6 regimes
      2. if A < -8.9999999999999999e74

        1. Initial program 20.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. Step-by-step derivation
          1. associate-*r/20.5%

            \[\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/20.5%

            \[\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-identity20.5%

            \[\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. unpow220.5%

            \[\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. unpow220.5%

            \[\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-define54.4%

            \[\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-rr54.4%

          \[\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 87.8%

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

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

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

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

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

        if -8.9999999999999999e74 < A < -7.5e31 or -2.1999999999999999e-103 < A < 3.55000000000000005e-214

        1. Initial program 52.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 0 52.0%

          \[\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. unpow252.0%

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

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

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

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

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

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

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

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

        if -7.5e31 < A < -7.19999999999999966e24 or -6.99999999999999968e-7 < A < -2.1999999999999999e-103

        1. Initial program 44.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 A around -inf 63.7%

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

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

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

        if -7.19999999999999966e24 < A < -6.99999999999999968e-7

        1. Initial program 30.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 A around 0 26.7%

          \[\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. unpow226.7%

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

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

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

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

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

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

          \[\leadsto \color{blue}{\frac{180 \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}} \]
        9. Step-by-step derivation
          1. *-commutative67.4%

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

            \[\leadsto \color{blue}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right) \cdot \frac{180}{\pi}} \]
          3. *-commutative67.4%

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

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

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

        if 3.55000000000000005e-214 < A < 6.3999999999999999e25

        1. Initial program 41.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. Step-by-step derivation
          1. associate-*r/41.3%

            \[\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/41.3%

            \[\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-identity41.3%

            \[\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. unpow241.3%

            \[\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. unpow241.3%

            \[\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-define79.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-rr79.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 0 31.8%

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

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

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

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

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

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

        if 6.3999999999999999e25 < A

        1. Initial program 85.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 81.0%

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;A \leq -9 \cdot 10^{+74}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(B \cdot \frac{0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq -7.5 \cdot 10^{+31}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\ \mathbf{elif}\;A \leq -7.2 \cdot 10^{+24}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq -7 \cdot 10^{-7}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \mathbf{elif}\;A \leq -2.2 \cdot 10^{-103}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq 3.55 \cdot 10^{-214}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - B}{B}\right)}{\pi}\\ \mathbf{elif}\;A \leq 6.4 \cdot 10^{+25}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 10: 57.0% accurate, 3.0× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_0 := 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + B\right)}{B}\right)}{\pi}\\ \mathbf{if}\;C \leq -1.1 \cdot 10^{-111}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C + B}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq -5.2 \cdot 10^{-245}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;C \leq -9.2 \cdot 10^{-287}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(B \cdot \frac{0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;C \leq 5.9 \cdot 10^{-214}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;C \leq 2 \cdot 10^{-132}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{elif}\;C \leq 4.5 \cdot 10^{-54}:\\ \;\;\;\;t\_0\\ \mathbf{else}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \end{array} \end{array} \]
      (FPCore (A B C)
       :precision binary64
       (let* ((t_0 (* 180.0 (/ (atan (/ (- (+ A B)) B)) PI))))
         (if (<= C -1.1e-111)
           (* 180.0 (/ (atan (/ (+ C B) B)) PI))
           (if (<= C -5.2e-245)
             t_0
             (if (<= C -9.2e-287)
               (/ (* 180.0 (atan (* B (/ 0.5 A)))) PI)
               (if (<= C 5.9e-214)
                 t_0
                 (if (<= C 2e-132)
                   (* 180.0 (/ (atan 1.0) PI))
                   (if (<= C 4.5e-54)
                     t_0
                     (* (atan (/ (* B -0.5) C)) (/ 180.0 PI))))))))))
      double code(double A, double B, double C) {
      	double t_0 = 180.0 * (atan((-(A + B) / B)) / ((double) M_PI));
      	double tmp;
      	if (C <= -1.1e-111) {
      		tmp = 180.0 * (atan(((C + B) / B)) / ((double) M_PI));
      	} else if (C <= -5.2e-245) {
      		tmp = t_0;
      	} else if (C <= -9.2e-287) {
      		tmp = (180.0 * atan((B * (0.5 / A)))) / ((double) M_PI);
      	} else if (C <= 5.9e-214) {
      		tmp = t_0;
      	} else if (C <= 2e-132) {
      		tmp = 180.0 * (atan(1.0) / ((double) M_PI));
      	} else if (C <= 4.5e-54) {
      		tmp = t_0;
      	} else {
      		tmp = atan(((B * -0.5) / C)) * (180.0 / ((double) M_PI));
      	}
      	return tmp;
      }
      
      public static double code(double A, double B, double C) {
      	double t_0 = 180.0 * (Math.atan((-(A + B) / B)) / Math.PI);
      	double tmp;
      	if (C <= -1.1e-111) {
      		tmp = 180.0 * (Math.atan(((C + B) / B)) / Math.PI);
      	} else if (C <= -5.2e-245) {
      		tmp = t_0;
      	} else if (C <= -9.2e-287) {
      		tmp = (180.0 * Math.atan((B * (0.5 / A)))) / Math.PI;
      	} else if (C <= 5.9e-214) {
      		tmp = t_0;
      	} else if (C <= 2e-132) {
      		tmp = 180.0 * (Math.atan(1.0) / Math.PI);
      	} else if (C <= 4.5e-54) {
      		tmp = t_0;
      	} else {
      		tmp = Math.atan(((B * -0.5) / C)) * (180.0 / Math.PI);
      	}
      	return tmp;
      }
      
      def code(A, B, C):
      	t_0 = 180.0 * (math.atan((-(A + B) / B)) / math.pi)
      	tmp = 0
      	if C <= -1.1e-111:
      		tmp = 180.0 * (math.atan(((C + B) / B)) / math.pi)
      	elif C <= -5.2e-245:
      		tmp = t_0
      	elif C <= -9.2e-287:
      		tmp = (180.0 * math.atan((B * (0.5 / A)))) / math.pi
      	elif C <= 5.9e-214:
      		tmp = t_0
      	elif C <= 2e-132:
      		tmp = 180.0 * (math.atan(1.0) / math.pi)
      	elif C <= 4.5e-54:
      		tmp = t_0
      	else:
      		tmp = math.atan(((B * -0.5) / C)) * (180.0 / math.pi)
      	return tmp
      
      function code(A, B, C)
      	t_0 = Float64(180.0 * Float64(atan(Float64(Float64(-Float64(A + B)) / B)) / pi))
      	tmp = 0.0
      	if (C <= -1.1e-111)
      		tmp = Float64(180.0 * Float64(atan(Float64(Float64(C + B) / B)) / pi));
      	elseif (C <= -5.2e-245)
      		tmp = t_0;
      	elseif (C <= -9.2e-287)
      		tmp = Float64(Float64(180.0 * atan(Float64(B * Float64(0.5 / A)))) / pi);
      	elseif (C <= 5.9e-214)
      		tmp = t_0;
      	elseif (C <= 2e-132)
      		tmp = Float64(180.0 * Float64(atan(1.0) / pi));
      	elseif (C <= 4.5e-54)
      		tmp = t_0;
      	else
      		tmp = Float64(atan(Float64(Float64(B * -0.5) / C)) * Float64(180.0 / pi));
      	end
      	return tmp
      end
      
      function tmp_2 = code(A, B, C)
      	t_0 = 180.0 * (atan((-(A + B) / B)) / pi);
      	tmp = 0.0;
      	if (C <= -1.1e-111)
      		tmp = 180.0 * (atan(((C + B) / B)) / pi);
      	elseif (C <= -5.2e-245)
      		tmp = t_0;
      	elseif (C <= -9.2e-287)
      		tmp = (180.0 * atan((B * (0.5 / A)))) / pi;
      	elseif (C <= 5.9e-214)
      		tmp = t_0;
      	elseif (C <= 2e-132)
      		tmp = 180.0 * (atan(1.0) / pi);
      	elseif (C <= 4.5e-54)
      		tmp = t_0;
      	else
      		tmp = atan(((B * -0.5) / C)) * (180.0 / pi);
      	end
      	tmp_2 = tmp;
      end
      
      code[A_, B_, C_] := Block[{t$95$0 = N[(180.0 * N[(N[ArcTan[N[((-N[(A + B), $MachinePrecision]) / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[C, -1.1e-111], N[(180.0 * N[(N[ArcTan[N[(N[(C + B), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, -5.2e-245], t$95$0, If[LessEqual[C, -9.2e-287], N[(N[(180.0 * N[ArcTan[N[(B * N[(0.5 / A), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], If[LessEqual[C, 5.9e-214], t$95$0, If[LessEqual[C, 2e-132], N[(180.0 * N[(N[ArcTan[1.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 4.5e-54], t$95$0, N[(N[ArcTan[N[(N[(B * -0.5), $MachinePrecision] / C), $MachinePrecision]], $MachinePrecision] * N[(180.0 / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_0 := 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + B\right)}{B}\right)}{\pi}\\
      \mathbf{if}\;C \leq -1.1 \cdot 10^{-111}:\\
      \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C + B}{B}\right)}{\pi}\\
      
      \mathbf{elif}\;C \leq -5.2 \cdot 10^{-245}:\\
      \;\;\;\;t\_0\\
      
      \mathbf{elif}\;C \leq -9.2 \cdot 10^{-287}:\\
      \;\;\;\;\frac{180 \cdot \tan^{-1} \left(B \cdot \frac{0.5}{A}\right)}{\pi}\\
      
      \mathbf{elif}\;C \leq 5.9 \cdot 10^{-214}:\\
      \;\;\;\;t\_0\\
      
      \mathbf{elif}\;C \leq 2 \cdot 10^{-132}:\\
      \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\
      
      \mathbf{elif}\;C \leq 4.5 \cdot 10^{-54}:\\
      \;\;\;\;t\_0\\
      
      \mathbf{else}:\\
      \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 5 regimes
      2. if C < -1.1e-111

        1. Initial program 71.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 A around 0 70.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. unpow270.6%

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

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

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

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

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

        if -1.1e-111 < C < -5.20000000000000013e-245 or -9.19999999999999944e-287 < C < 5.8999999999999998e-214 or 2e-132 < C < 4.4999999999999998e-54

        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. Simplified80.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 B around inf 68.1%

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

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

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

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

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

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

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

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

          if -5.20000000000000013e-245 < C < -9.19999999999999944e-287

          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. Step-by-step derivation
            1. associate-*r/43.3%

              \[\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/43.3%

              \[\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-identity43.3%

              \[\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. unpow243.3%

              \[\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. unpow243.3%

              \[\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-define52.9%

              \[\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-rr52.9%

            \[\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 72.3%

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

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

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

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

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

          if 5.8999999999999998e-214 < C < 2e-132

          1. Initial program 63.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 49.6%

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

          if 4.4999999999999998e-54 < C

          1. Initial program 23.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 A around 0 18.3%

            \[\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. unpow218.3%

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

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

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

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

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

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

            \[\leadsto \color{blue}{\frac{180 \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}} \]
          9. Step-by-step derivation
            1. *-commutative71.2%

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

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

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

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

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

          \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq -1.1 \cdot 10^{-111}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C + B}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq -5.2 \cdot 10^{-245}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + B\right)}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq -9.2 \cdot 10^{-287}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(B \cdot \frac{0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;C \leq 5.9 \cdot 10^{-214}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + B\right)}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 2 \cdot 10^{-132}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{elif}\;C \leq 4.5 \cdot 10^{-54}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + B\right)}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \end{array} \]
        5. Add Preprocessing

        Alternative 11: 58.0% accurate, 3.1× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_0 := 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + B\right)}{B}\right)}{\pi}\\ \mathbf{if}\;C \leq -3.7 \cdot 10^{-243}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + B\right)}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq -1.55 \cdot 10^{-285}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(B \cdot \frac{0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;C \leq 2.65 \cdot 10^{-212}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;C \leq 2.05 \cdot 10^{-132}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{elif}\;C \leq 4.5 \cdot 10^{-54}:\\ \;\;\;\;t\_0\\ \mathbf{else}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \end{array} \end{array} \]
        (FPCore (A B C)
         :precision binary64
         (let* ((t_0 (* 180.0 (/ (atan (/ (- (+ A B)) B)) PI))))
           (if (<= C -3.7e-243)
             (* 180.0 (/ (atan (/ (- C (+ A B)) B)) PI))
             (if (<= C -1.55e-285)
               (/ (* 180.0 (atan (* B (/ 0.5 A)))) PI)
               (if (<= C 2.65e-212)
                 t_0
                 (if (<= C 2.05e-132)
                   (* 180.0 (/ (atan 1.0) PI))
                   (if (<= C 4.5e-54)
                     t_0
                     (* (atan (/ (* B -0.5) C)) (/ 180.0 PI)))))))))
        double code(double A, double B, double C) {
        	double t_0 = 180.0 * (atan((-(A + B) / B)) / ((double) M_PI));
        	double tmp;
        	if (C <= -3.7e-243) {
        		tmp = 180.0 * (atan(((C - (A + B)) / B)) / ((double) M_PI));
        	} else if (C <= -1.55e-285) {
        		tmp = (180.0 * atan((B * (0.5 / A)))) / ((double) M_PI);
        	} else if (C <= 2.65e-212) {
        		tmp = t_0;
        	} else if (C <= 2.05e-132) {
        		tmp = 180.0 * (atan(1.0) / ((double) M_PI));
        	} else if (C <= 4.5e-54) {
        		tmp = t_0;
        	} else {
        		tmp = atan(((B * -0.5) / C)) * (180.0 / ((double) M_PI));
        	}
        	return tmp;
        }
        
        public static double code(double A, double B, double C) {
        	double t_0 = 180.0 * (Math.atan((-(A + B) / B)) / Math.PI);
        	double tmp;
        	if (C <= -3.7e-243) {
        		tmp = 180.0 * (Math.atan(((C - (A + B)) / B)) / Math.PI);
        	} else if (C <= -1.55e-285) {
        		tmp = (180.0 * Math.atan((B * (0.5 / A)))) / Math.PI;
        	} else if (C <= 2.65e-212) {
        		tmp = t_0;
        	} else if (C <= 2.05e-132) {
        		tmp = 180.0 * (Math.atan(1.0) / Math.PI);
        	} else if (C <= 4.5e-54) {
        		tmp = t_0;
        	} else {
        		tmp = Math.atan(((B * -0.5) / C)) * (180.0 / Math.PI);
        	}
        	return tmp;
        }
        
        def code(A, B, C):
        	t_0 = 180.0 * (math.atan((-(A + B) / B)) / math.pi)
        	tmp = 0
        	if C <= -3.7e-243:
        		tmp = 180.0 * (math.atan(((C - (A + B)) / B)) / math.pi)
        	elif C <= -1.55e-285:
        		tmp = (180.0 * math.atan((B * (0.5 / A)))) / math.pi
        	elif C <= 2.65e-212:
        		tmp = t_0
        	elif C <= 2.05e-132:
        		tmp = 180.0 * (math.atan(1.0) / math.pi)
        	elif C <= 4.5e-54:
        		tmp = t_0
        	else:
        		tmp = math.atan(((B * -0.5) / C)) * (180.0 / math.pi)
        	return tmp
        
        function code(A, B, C)
        	t_0 = Float64(180.0 * Float64(atan(Float64(Float64(-Float64(A + B)) / B)) / pi))
        	tmp = 0.0
        	if (C <= -3.7e-243)
        		tmp = Float64(180.0 * Float64(atan(Float64(Float64(C - Float64(A + B)) / B)) / pi));
        	elseif (C <= -1.55e-285)
        		tmp = Float64(Float64(180.0 * atan(Float64(B * Float64(0.5 / A)))) / pi);
        	elseif (C <= 2.65e-212)
        		tmp = t_0;
        	elseif (C <= 2.05e-132)
        		tmp = Float64(180.0 * Float64(atan(1.0) / pi));
        	elseif (C <= 4.5e-54)
        		tmp = t_0;
        	else
        		tmp = Float64(atan(Float64(Float64(B * -0.5) / C)) * Float64(180.0 / pi));
        	end
        	return tmp
        end
        
        function tmp_2 = code(A, B, C)
        	t_0 = 180.0 * (atan((-(A + B) / B)) / pi);
        	tmp = 0.0;
        	if (C <= -3.7e-243)
        		tmp = 180.0 * (atan(((C - (A + B)) / B)) / pi);
        	elseif (C <= -1.55e-285)
        		tmp = (180.0 * atan((B * (0.5 / A)))) / pi;
        	elseif (C <= 2.65e-212)
        		tmp = t_0;
        	elseif (C <= 2.05e-132)
        		tmp = 180.0 * (atan(1.0) / pi);
        	elseif (C <= 4.5e-54)
        		tmp = t_0;
        	else
        		tmp = atan(((B * -0.5) / C)) * (180.0 / pi);
        	end
        	tmp_2 = tmp;
        end
        
        code[A_, B_, C_] := Block[{t$95$0 = N[(180.0 * N[(N[ArcTan[N[((-N[(A + B), $MachinePrecision]) / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[C, -3.7e-243], N[(180.0 * N[(N[ArcTan[N[(N[(C - N[(A + B), $MachinePrecision]), $MachinePrecision] / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, -1.55e-285], N[(N[(180.0 * N[ArcTan[N[(B * N[(0.5 / A), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / Pi), $MachinePrecision], If[LessEqual[C, 2.65e-212], t$95$0, If[LessEqual[C, 2.05e-132], N[(180.0 * N[(N[ArcTan[1.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 4.5e-54], t$95$0, N[(N[ArcTan[N[(N[(B * -0.5), $MachinePrecision] / C), $MachinePrecision]], $MachinePrecision] * N[(180.0 / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_0 := 180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + B\right)}{B}\right)}{\pi}\\
        \mathbf{if}\;C \leq -3.7 \cdot 10^{-243}:\\
        \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + B\right)}{B}\right)}{\pi}\\
        
        \mathbf{elif}\;C \leq -1.55 \cdot 10^{-285}:\\
        \;\;\;\;\frac{180 \cdot \tan^{-1} \left(B \cdot \frac{0.5}{A}\right)}{\pi}\\
        
        \mathbf{elif}\;C \leq 2.65 \cdot 10^{-212}:\\
        \;\;\;\;t\_0\\
        
        \mathbf{elif}\;C \leq 2.05 \cdot 10^{-132}:\\
        \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\
        
        \mathbf{elif}\;C \leq 4.5 \cdot 10^{-54}:\\
        \;\;\;\;t\_0\\
        
        \mathbf{else}:\\
        \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 5 regimes
        2. if C < -3.7e-243

          1. Initial program 70.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. Simplified83.4%

              \[\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 B around inf 70.9%

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

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

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

            if -3.7e-243 < C < -1.55e-285

            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. Step-by-step derivation
              1. associate-*r/43.3%

                \[\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/43.3%

                \[\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-identity43.3%

                \[\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. unpow243.3%

                \[\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. unpow243.3%

                \[\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-define52.9%

                \[\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-rr52.9%

              \[\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 72.3%

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

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

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

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

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

            if -1.55e-285 < C < 2.6500000000000002e-212 or 2.05000000000000003e-132 < C < 4.4999999999999998e-54

            1. Initial program 57.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. Step-by-step derivation
              1. Simplified79.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. Taylor expanded in B around inf 67.8%

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

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

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

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

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

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

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

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

              if 2.6500000000000002e-212 < C < 2.05000000000000003e-132

              1. Initial program 63.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 49.6%

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

              if 4.4999999999999998e-54 < C

              1. Initial program 23.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 A around 0 18.3%

                \[\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. unpow218.3%

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

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

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

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

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

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

                \[\leadsto \color{blue}{\frac{180 \cdot \tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}} \]
              9. Step-by-step derivation
                1. *-commutative71.2%

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

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

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

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

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

              \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq -3.7 \cdot 10^{-243}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + B\right)}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq -1.55 \cdot 10^{-285}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(B \cdot \frac{0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;C \leq 2.65 \cdot 10^{-212}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + B\right)}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 2.05 \cdot 10^{-132}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{elif}\;C \leq 4.5 \cdot 10^{-54}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + B\right)}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \end{array} \]
            5. Add Preprocessing

            Alternative 12: 59.6% accurate, 3.2× speedup?

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

              1. Initial program 70.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. Simplified83.4%

                  \[\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 B around inf 70.9%

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

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

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

                if -9.199999999999999e-246 < C < -4.19999999999999968e-285

                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. Step-by-step derivation
                  1. associate-*r/43.3%

                    \[\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/43.3%

                    \[\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-identity43.3%

                    \[\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. unpow243.3%

                    \[\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. unpow243.3%

                    \[\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-define52.9%

                    \[\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-rr52.9%

                  \[\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 72.3%

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

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

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

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

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

                if -4.19999999999999968e-285 < C < 7.50000000000000031e-217

                1. Initial program 55.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. Step-by-step derivation
                  1. Simplified89.3%

                    \[\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 B around inf 77.7%

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

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

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

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

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

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

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

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

                  if 7.50000000000000031e-217 < C < 4.89999999999999974e26

                  1. Initial program 58.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. Simplified67.2%

                      \[\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 B around -inf 57.9%

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

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

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

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

                    if 4.89999999999999974e26 < C

                    1. Initial program 18.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 A around 0 17.3%

                      \[\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. unpow217.3%

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

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

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

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

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

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

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

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

                        \[\leadsto \color{blue}{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right) \cdot \frac{180}{\pi}} \]
                      3. *-commutative76.9%

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

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

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

                    \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq -9.2 \cdot 10^{-246}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C - \left(A + B\right)}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq -4.2 \cdot 10^{-285}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(B \cdot \frac{0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;C \leq 7.5 \cdot 10^{-217}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{-\left(A + B\right)}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 4.9 \cdot 10^{+26}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C + \left(B - A\right)}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \end{array} \]
                  5. Add Preprocessing

                  Alternative 13: 45.6% accurate, 3.2× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_0 := 180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \mathbf{if}\;B \leq -8.6 \cdot 10^{-60}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{elif}\;B \leq -2.8 \cdot 10^{-113}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;B \leq 2.4 \cdot 10^{-190}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{0}{B}\right)}{\pi}\\ \mathbf{elif}\;B \leq 1.7 \cdot 10^{+53}:\\ \;\;\;\;t\_0\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} -1}{\pi}\\ \end{array} \end{array} \]
                  (FPCore (A B C)
                   :precision binary64
                   (let* ((t_0 (* 180.0 (/ (atan (* -2.0 (/ A B))) PI))))
                     (if (<= B -8.6e-60)
                       (* 180.0 (/ (atan 1.0) PI))
                       (if (<= B -2.8e-113)
                         t_0
                         (if (<= B 2.4e-190)
                           (* 180.0 (/ (atan (/ 0.0 B)) PI))
                           (if (<= B 1.7e+53) t_0 (* 180.0 (/ (atan -1.0) PI))))))))
                  double code(double A, double B, double C) {
                  	double t_0 = 180.0 * (atan((-2.0 * (A / B))) / ((double) M_PI));
                  	double tmp;
                  	if (B <= -8.6e-60) {
                  		tmp = 180.0 * (atan(1.0) / ((double) M_PI));
                  	} else if (B <= -2.8e-113) {
                  		tmp = t_0;
                  	} else if (B <= 2.4e-190) {
                  		tmp = 180.0 * (atan((0.0 / B)) / ((double) M_PI));
                  	} else if (B <= 1.7e+53) {
                  		tmp = t_0;
                  	} else {
                  		tmp = 180.0 * (atan(-1.0) / ((double) M_PI));
                  	}
                  	return tmp;
                  }
                  
                  public static double code(double A, double B, double C) {
                  	double t_0 = 180.0 * (Math.atan((-2.0 * (A / B))) / Math.PI);
                  	double tmp;
                  	if (B <= -8.6e-60) {
                  		tmp = 180.0 * (Math.atan(1.0) / Math.PI);
                  	} else if (B <= -2.8e-113) {
                  		tmp = t_0;
                  	} else if (B <= 2.4e-190) {
                  		tmp = 180.0 * (Math.atan((0.0 / B)) / Math.PI);
                  	} else if (B <= 1.7e+53) {
                  		tmp = t_0;
                  	} else {
                  		tmp = 180.0 * (Math.atan(-1.0) / Math.PI);
                  	}
                  	return tmp;
                  }
                  
                  def code(A, B, C):
                  	t_0 = 180.0 * (math.atan((-2.0 * (A / B))) / math.pi)
                  	tmp = 0
                  	if B <= -8.6e-60:
                  		tmp = 180.0 * (math.atan(1.0) / math.pi)
                  	elif B <= -2.8e-113:
                  		tmp = t_0
                  	elif B <= 2.4e-190:
                  		tmp = 180.0 * (math.atan((0.0 / B)) / math.pi)
                  	elif B <= 1.7e+53:
                  		tmp = t_0
                  	else:
                  		tmp = 180.0 * (math.atan(-1.0) / math.pi)
                  	return tmp
                  
                  function code(A, B, C)
                  	t_0 = Float64(180.0 * Float64(atan(Float64(-2.0 * Float64(A / B))) / pi))
                  	tmp = 0.0
                  	if (B <= -8.6e-60)
                  		tmp = Float64(180.0 * Float64(atan(1.0) / pi));
                  	elseif (B <= -2.8e-113)
                  		tmp = t_0;
                  	elseif (B <= 2.4e-190)
                  		tmp = Float64(180.0 * Float64(atan(Float64(0.0 / B)) / pi));
                  	elseif (B <= 1.7e+53)
                  		tmp = t_0;
                  	else
                  		tmp = Float64(180.0 * Float64(atan(-1.0) / pi));
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(A, B, C)
                  	t_0 = 180.0 * (atan((-2.0 * (A / B))) / pi);
                  	tmp = 0.0;
                  	if (B <= -8.6e-60)
                  		tmp = 180.0 * (atan(1.0) / pi);
                  	elseif (B <= -2.8e-113)
                  		tmp = t_0;
                  	elseif (B <= 2.4e-190)
                  		tmp = 180.0 * (atan((0.0 / B)) / pi);
                  	elseif (B <= 1.7e+53)
                  		tmp = t_0;
                  	else
                  		tmp = 180.0 * (atan(-1.0) / pi);
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[A_, B_, C_] := Block[{t$95$0 = N[(180.0 * N[(N[ArcTan[N[(-2.0 * N[(A / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, -8.6e-60], N[(180.0 * N[(N[ArcTan[1.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, -2.8e-113], t$95$0, If[LessEqual[B, 2.4e-190], N[(180.0 * N[(N[ArcTan[N[(0.0 / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, 1.7e+53], t$95$0, N[(180.0 * N[(N[ArcTan[-1.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_0 := 180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\
                  \mathbf{if}\;B \leq -8.6 \cdot 10^{-60}:\\
                  \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\
                  
                  \mathbf{elif}\;B \leq -2.8 \cdot 10^{-113}:\\
                  \;\;\;\;t\_0\\
                  
                  \mathbf{elif}\;B \leq 2.4 \cdot 10^{-190}:\\
                  \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{0}{B}\right)}{\pi}\\
                  
                  \mathbf{elif}\;B \leq 1.7 \cdot 10^{+53}:\\
                  \;\;\;\;t\_0\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;180 \cdot \frac{\tan^{-1} -1}{\pi}\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 4 regimes
                  2. if B < -8.6000000000000001e-60

                    1. Initial program 49.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 50.7%

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

                    if -8.6000000000000001e-60 < B < -2.8e-113 or 2.4e-190 < B < 1.69999999999999999e53

                    1. Initial program 58.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 A around inf 40.6%

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

                    if -2.8e-113 < B < 2.4e-190

                    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 C around inf 44.1%

                      \[\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/44.1%

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

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

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

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

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

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

                    if 1.69999999999999999e53 < B

                    1. Initial program 42.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 72.3%

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

                    \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq -8.6 \cdot 10^{-60}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{elif}\;B \leq -2.8 \cdot 10^{-113}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \mathbf{elif}\;B \leq 2.4 \cdot 10^{-190}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{0}{B}\right)}{\pi}\\ \mathbf{elif}\;B \leq 1.7 \cdot 10^{+53}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} -1}{\pi}\\ \end{array} \]
                  5. Add Preprocessing

                  Alternative 14: 48.0% accurate, 3.2× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_0 := 180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ t_1 := 180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{if}\;A \leq -7.2 \cdot 10^{+24}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;A \leq -7 \cdot 10^{-7}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;A \leq -1.22 \cdot 10^{-203}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;A \leq 7.2 \cdot 10^{+26}:\\ \;\;\;\;t\_0\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \end{array} \end{array} \]
                  (FPCore (A B C)
                   :precision binary64
                   (let* ((t_0 (* 180.0 (/ (atan (* -0.5 (/ B C))) PI)))
                          (t_1 (* 180.0 (/ (atan (/ (* B 0.5) A)) PI))))
                     (if (<= A -7.2e+24)
                       t_1
                       (if (<= A -7e-7)
                         t_0
                         (if (<= A -1.22e-203)
                           t_1
                           (if (<= A 7.2e+26) t_0 (* 180.0 (/ (atan (* -2.0 (/ A B))) PI))))))))
                  double code(double A, double B, double C) {
                  	double t_0 = 180.0 * (atan((-0.5 * (B / C))) / ((double) M_PI));
                  	double t_1 = 180.0 * (atan(((B * 0.5) / A)) / ((double) M_PI));
                  	double tmp;
                  	if (A <= -7.2e+24) {
                  		tmp = t_1;
                  	} else if (A <= -7e-7) {
                  		tmp = t_0;
                  	} else if (A <= -1.22e-203) {
                  		tmp = t_1;
                  	} else if (A <= 7.2e+26) {
                  		tmp = t_0;
                  	} else {
                  		tmp = 180.0 * (atan((-2.0 * (A / B))) / ((double) M_PI));
                  	}
                  	return tmp;
                  }
                  
                  public static double code(double A, double B, double C) {
                  	double t_0 = 180.0 * (Math.atan((-0.5 * (B / C))) / Math.PI);
                  	double t_1 = 180.0 * (Math.atan(((B * 0.5) / A)) / Math.PI);
                  	double tmp;
                  	if (A <= -7.2e+24) {
                  		tmp = t_1;
                  	} else if (A <= -7e-7) {
                  		tmp = t_0;
                  	} else if (A <= -1.22e-203) {
                  		tmp = t_1;
                  	} else if (A <= 7.2e+26) {
                  		tmp = t_0;
                  	} else {
                  		tmp = 180.0 * (Math.atan((-2.0 * (A / B))) / Math.PI);
                  	}
                  	return tmp;
                  }
                  
                  def code(A, B, C):
                  	t_0 = 180.0 * (math.atan((-0.5 * (B / C))) / math.pi)
                  	t_1 = 180.0 * (math.atan(((B * 0.5) / A)) / math.pi)
                  	tmp = 0
                  	if A <= -7.2e+24:
                  		tmp = t_1
                  	elif A <= -7e-7:
                  		tmp = t_0
                  	elif A <= -1.22e-203:
                  		tmp = t_1
                  	elif A <= 7.2e+26:
                  		tmp = t_0
                  	else:
                  		tmp = 180.0 * (math.atan((-2.0 * (A / B))) / math.pi)
                  	return tmp
                  
                  function code(A, B, C)
                  	t_0 = Float64(180.0 * Float64(atan(Float64(-0.5 * Float64(B / C))) / pi))
                  	t_1 = Float64(180.0 * Float64(atan(Float64(Float64(B * 0.5) / A)) / pi))
                  	tmp = 0.0
                  	if (A <= -7.2e+24)
                  		tmp = t_1;
                  	elseif (A <= -7e-7)
                  		tmp = t_0;
                  	elseif (A <= -1.22e-203)
                  		tmp = t_1;
                  	elseif (A <= 7.2e+26)
                  		tmp = t_0;
                  	else
                  		tmp = Float64(180.0 * Float64(atan(Float64(-2.0 * Float64(A / B))) / pi));
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(A, B, C)
                  	t_0 = 180.0 * (atan((-0.5 * (B / C))) / pi);
                  	t_1 = 180.0 * (atan(((B * 0.5) / A)) / pi);
                  	tmp = 0.0;
                  	if (A <= -7.2e+24)
                  		tmp = t_1;
                  	elseif (A <= -7e-7)
                  		tmp = t_0;
                  	elseif (A <= -1.22e-203)
                  		tmp = t_1;
                  	elseif (A <= 7.2e+26)
                  		tmp = t_0;
                  	else
                  		tmp = 180.0 * (atan((-2.0 * (A / B))) / pi);
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[A_, B_, C_] := Block[{t$95$0 = N[(180.0 * N[(N[ArcTan[N[(-0.5 * N[(B / C), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(180.0 * N[(N[ArcTan[N[(N[(B * 0.5), $MachinePrecision] / A), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[A, -7.2e+24], t$95$1, If[LessEqual[A, -7e-7], t$95$0, If[LessEqual[A, -1.22e-203], t$95$1, If[LessEqual[A, 7.2e+26], t$95$0, N[(180.0 * N[(N[ArcTan[N[(-2.0 * N[(A / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]]]]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_0 := 180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\
                  t_1 := 180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\
                  \mathbf{if}\;A \leq -7.2 \cdot 10^{+24}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;A \leq -7 \cdot 10^{-7}:\\
                  \;\;\;\;t\_0\\
                  
                  \mathbf{elif}\;A \leq -1.22 \cdot 10^{-203}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;A \leq 7.2 \cdot 10^{+26}:\\
                  \;\;\;\;t\_0\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if A < -7.19999999999999966e24 or -6.99999999999999968e-7 < A < -1.21999999999999995e-203

                    1. Initial program 37.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 A around -inf 62.2%

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

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

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

                    if -7.19999999999999966e24 < A < -6.99999999999999968e-7 or -1.21999999999999995e-203 < A < 7.20000000000000048e26

                    1. Initial program 43.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 A around 0 38.1%

                      \[\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. unpow238.1%

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

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

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

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

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

                    if 7.20000000000000048e26 < A

                    1. Initial program 85.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 81.0%

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

                    \[\leadsto \begin{array}{l} \mathbf{if}\;A \leq -7.2 \cdot 10^{+24}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq -7 \cdot 10^{-7}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \mathbf{elif}\;A \leq -1.22 \cdot 10^{-203}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{B \cdot 0.5}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq 7.2 \cdot 10^{+26}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-0.5 \cdot \frac{B}{C}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \end{array} \]
                  5. Add Preprocessing

                  Alternative 15: 45.2% accurate, 3.3× speedup?

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

                    1. Initial program 49.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 50.7%

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

                    if -3.09999999999999999e-59 < B < -4.80000000000000024e-113 or 3.4999999999999999e-190 < B < 2.00000000000000015e70

                    1. Initial program 58.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. Simplified67.2%

                        \[\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 B around inf 57.9%

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

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

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

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

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

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

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

                      if -4.80000000000000024e-113 < B < 3.4999999999999999e-190

                      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 C around inf 44.1%

                        \[\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/44.1%

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

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

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

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

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

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

                      if 2.00000000000000015e70 < B

                      1. Initial program 42.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 72.3%

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq -3.1 \cdot 10^{-59}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{elif}\;B \leq -4.8 \cdot 10^{-113}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{A}{-B}\right)}{\pi}\\ \mathbf{elif}\;B \leq 3.5 \cdot 10^{-190}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{0}{B}\right)}{\pi}\\ \mathbf{elif}\;B \leq 2 \cdot 10^{+70}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{A}{-B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} -1}{\pi}\\ \end{array} \]
                    5. Add Preprocessing

                    Alternative 16: 45.5% accurate, 3.3× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_0 := 180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{if}\;B \leq -2 \cdot 10^{-58}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;B \leq -3.2 \cdot 10^{-115}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C}{B}\right)}{\pi}\\ \mathbf{elif}\;B \leq -7.5 \cdot 10^{-118}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;B \leq 2.45 \cdot 10^{-119}:\\ \;\;\;\;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
                     (let* ((t_0 (* 180.0 (/ (atan 1.0) PI))))
                       (if (<= B -2e-58)
                         t_0
                         (if (<= B -3.2e-115)
                           (* 180.0 (/ (atan (/ C B)) PI))
                           (if (<= B -7.5e-118)
                             t_0
                             (if (<= B 2.45e-119)
                               (* 180.0 (/ (atan (/ 0.0 B)) PI))
                               (* 180.0 (/ (atan -1.0) PI))))))))
                    double code(double A, double B, double C) {
                    	double t_0 = 180.0 * (atan(1.0) / ((double) M_PI));
                    	double tmp;
                    	if (B <= -2e-58) {
                    		tmp = t_0;
                    	} else if (B <= -3.2e-115) {
                    		tmp = 180.0 * (atan((C / B)) / ((double) M_PI));
                    	} else if (B <= -7.5e-118) {
                    		tmp = t_0;
                    	} else if (B <= 2.45e-119) {
                    		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 t_0 = 180.0 * (Math.atan(1.0) / Math.PI);
                    	double tmp;
                    	if (B <= -2e-58) {
                    		tmp = t_0;
                    	} else if (B <= -3.2e-115) {
                    		tmp = 180.0 * (Math.atan((C / B)) / Math.PI);
                    	} else if (B <= -7.5e-118) {
                    		tmp = t_0;
                    	} else if (B <= 2.45e-119) {
                    		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):
                    	t_0 = 180.0 * (math.atan(1.0) / math.pi)
                    	tmp = 0
                    	if B <= -2e-58:
                    		tmp = t_0
                    	elif B <= -3.2e-115:
                    		tmp = 180.0 * (math.atan((C / B)) / math.pi)
                    	elif B <= -7.5e-118:
                    		tmp = t_0
                    	elif B <= 2.45e-119:
                    		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)
                    	t_0 = Float64(180.0 * Float64(atan(1.0) / pi))
                    	tmp = 0.0
                    	if (B <= -2e-58)
                    		tmp = t_0;
                    	elseif (B <= -3.2e-115)
                    		tmp = Float64(180.0 * Float64(atan(Float64(C / B)) / pi));
                    	elseif (B <= -7.5e-118)
                    		tmp = t_0;
                    	elseif (B <= 2.45e-119)
                    		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)
                    	t_0 = 180.0 * (atan(1.0) / pi);
                    	tmp = 0.0;
                    	if (B <= -2e-58)
                    		tmp = t_0;
                    	elseif (B <= -3.2e-115)
                    		tmp = 180.0 * (atan((C / B)) / pi);
                    	elseif (B <= -7.5e-118)
                    		tmp = t_0;
                    	elseif (B <= 2.45e-119)
                    		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_] := Block[{t$95$0 = N[(180.0 * N[(N[ArcTan[1.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[B, -2e-58], t$95$0, If[LessEqual[B, -3.2e-115], N[(180.0 * N[(N[ArcTan[N[(C / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, -7.5e-118], t$95$0, If[LessEqual[B, 2.45e-119], 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}
                    t_0 := 180 \cdot \frac{\tan^{-1} 1}{\pi}\\
                    \mathbf{if}\;B \leq -2 \cdot 10^{-58}:\\
                    \;\;\;\;t\_0\\
                    
                    \mathbf{elif}\;B \leq -3.2 \cdot 10^{-115}:\\
                    \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C}{B}\right)}{\pi}\\
                    
                    \mathbf{elif}\;B \leq -7.5 \cdot 10^{-118}:\\
                    \;\;\;\;t\_0\\
                    
                    \mathbf{elif}\;B \leq 2.45 \cdot 10^{-119}:\\
                    \;\;\;\;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 4 regimes
                    2. if B < -2.0000000000000001e-58 or -3.2e-115 < B < -7.49999999999999978e-118

                      1. Initial program 49.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 51.2%

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

                      if -2.0000000000000001e-58 < B < -3.2e-115

                      1. Initial program 76.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. Step-by-step derivation
                        1. Simplified81.8%

                          \[\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. Step-by-step derivation
                          1. add-sqr-sqrt81.8%

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

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

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

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

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

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

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

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

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

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

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

                        if -7.49999999999999978e-118 < B < 2.45e-119

                        1. Initial program 48.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 42.4%

                          \[\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/42.4%

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

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

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

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

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

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

                        if 2.45e-119 < B

                        1. Initial program 50.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 44.7%

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

                        \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq -2 \cdot 10^{-58}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{elif}\;B \leq -3.2 \cdot 10^{-115}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C}{B}\right)}{\pi}\\ \mathbf{elif}\;B \leq -7.5 \cdot 10^{-118}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{elif}\;B \leq 2.45 \cdot 10^{-119}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{0}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} -1}{\pi}\\ \end{array} \]
                      5. Add Preprocessing

                      Alternative 17: 47.7% accurate, 3.4× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;C \leq -3.1 \cdot 10^{-135}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 1.44 \cdot 10^{-213}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 8 \cdot 10^{-163}:\\ \;\;\;\;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 -3.1e-135)
                         (* 180.0 (/ (atan (/ C B)) PI))
                         (if (<= C 1.44e-213)
                           (* 180.0 (/ (atan (* -2.0 (/ A B))) PI))
                           (if (<= C 8e-163)
                             (* 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 <= -3.1e-135) {
                      		tmp = 180.0 * (atan((C / B)) / ((double) M_PI));
                      	} else if (C <= 1.44e-213) {
                      		tmp = 180.0 * (atan((-2.0 * (A / B))) / ((double) M_PI));
                      	} else if (C <= 8e-163) {
                      		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 <= -3.1e-135) {
                      		tmp = 180.0 * (Math.atan((C / B)) / Math.PI);
                      	} else if (C <= 1.44e-213) {
                      		tmp = 180.0 * (Math.atan((-2.0 * (A / B))) / Math.PI);
                      	} else if (C <= 8e-163) {
                      		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 <= -3.1e-135:
                      		tmp = 180.0 * (math.atan((C / B)) / math.pi)
                      	elif C <= 1.44e-213:
                      		tmp = 180.0 * (math.atan((-2.0 * (A / B))) / math.pi)
                      	elif C <= 8e-163:
                      		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 <= -3.1e-135)
                      		tmp = Float64(180.0 * Float64(atan(Float64(C / B)) / pi));
                      	elseif (C <= 1.44e-213)
                      		tmp = Float64(180.0 * Float64(atan(Float64(-2.0 * Float64(A / B))) / pi));
                      	elseif (C <= 8e-163)
                      		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 <= -3.1e-135)
                      		tmp = 180.0 * (atan((C / B)) / pi);
                      	elseif (C <= 1.44e-213)
                      		tmp = 180.0 * (atan((-2.0 * (A / B))) / pi);
                      	elseif (C <= 8e-163)
                      		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, -3.1e-135], N[(180.0 * N[(N[ArcTan[N[(C / B), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 1.44e-213], N[(180.0 * N[(N[ArcTan[N[(-2.0 * N[(A / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 8e-163], 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 -3.1 \cdot 10^{-135}:\\
                      \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C}{B}\right)}{\pi}\\
                      
                      \mathbf{elif}\;C \leq 1.44 \cdot 10^{-213}:\\
                      \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\
                      
                      \mathbf{elif}\;C \leq 8 \cdot 10^{-163}:\\
                      \;\;\;\;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 4 regimes
                      2. if C < -3.1000000000000001e-135

                        1. Initial program 71.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. Step-by-step derivation
                          1. Simplified82.1%

                            \[\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. Step-by-step derivation
                            1. add-sqr-sqrt82.1%

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

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

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

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

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

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

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

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

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

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

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

                          if -3.1000000000000001e-135 < C < 1.44e-213

                          1. Initial program 58.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 A around inf 40.1%

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

                          if 1.44e-213 < C < 7.99999999999999939e-163

                          1. Initial program 62.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 52.9%

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

                          if 7.99999999999999939e-163 < C

                          1. Initial program 32.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 A around 0 21.0%

                            \[\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. unpow221.0%

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

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

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

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

                            \[\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 simplification56.7%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq -3.1 \cdot 10^{-135}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{C}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 1.44 \cdot 10^{-213}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 8 \cdot 10^{-163}:\\ \;\;\;\;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} \]
                        5. Add Preprocessing

                        Alternative 18: 47.8% accurate, 3.4× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;C \leq -1.85 \cdot 10^{-136}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(2 \cdot \frac{C}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 4.7 \cdot 10^{-212}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 7.5 \cdot 10^{-161}:\\ \;\;\;\;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.85e-136)
                           (* 180.0 (/ (atan (* 2.0 (/ C B))) PI))
                           (if (<= C 4.7e-212)
                             (* 180.0 (/ (atan (* -2.0 (/ A B))) PI))
                             (if (<= C 7.5e-161)
                               (* 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.85e-136) {
                        		tmp = 180.0 * (atan((2.0 * (C / B))) / ((double) M_PI));
                        	} else if (C <= 4.7e-212) {
                        		tmp = 180.0 * (atan((-2.0 * (A / B))) / ((double) M_PI));
                        	} else if (C <= 7.5e-161) {
                        		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.85e-136) {
                        		tmp = 180.0 * (Math.atan((2.0 * (C / B))) / Math.PI);
                        	} else if (C <= 4.7e-212) {
                        		tmp = 180.0 * (Math.atan((-2.0 * (A / B))) / Math.PI);
                        	} else if (C <= 7.5e-161) {
                        		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.85e-136:
                        		tmp = 180.0 * (math.atan((2.0 * (C / B))) / math.pi)
                        	elif C <= 4.7e-212:
                        		tmp = 180.0 * (math.atan((-2.0 * (A / B))) / math.pi)
                        	elif C <= 7.5e-161:
                        		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.85e-136)
                        		tmp = Float64(180.0 * Float64(atan(Float64(2.0 * Float64(C / B))) / pi));
                        	elseif (C <= 4.7e-212)
                        		tmp = Float64(180.0 * Float64(atan(Float64(-2.0 * Float64(A / B))) / pi));
                        	elseif (C <= 7.5e-161)
                        		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.85e-136)
                        		tmp = 180.0 * (atan((2.0 * (C / B))) / pi);
                        	elseif (C <= 4.7e-212)
                        		tmp = 180.0 * (atan((-2.0 * (A / B))) / pi);
                        	elseif (C <= 7.5e-161)
                        		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.85e-136], N[(180.0 * N[(N[ArcTan[N[(2.0 * N[(C / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 4.7e-212], N[(180.0 * N[(N[ArcTan[N[(-2.0 * N[(A / B), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[C, 7.5e-161], 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.85 \cdot 10^{-136}:\\
                        \;\;\;\;180 \cdot \frac{\tan^{-1} \left(2 \cdot \frac{C}{B}\right)}{\pi}\\
                        
                        \mathbf{elif}\;C \leq 4.7 \cdot 10^{-212}:\\
                        \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\
                        
                        \mathbf{elif}\;C \leq 7.5 \cdot 10^{-161}:\\
                        \;\;\;\;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 4 regimes
                        2. if C < -1.85e-136

                          1. Initial program 71.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 60.7%

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

                          if -1.85e-136 < C < 4.69999999999999998e-212

                          1. Initial program 58.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 A around inf 40.1%

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

                          if 4.69999999999999998e-212 < C < 7.49999999999999991e-161

                          1. Initial program 62.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 52.9%

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

                          if 7.49999999999999991e-161 < C

                          1. Initial program 32.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 A around 0 21.0%

                            \[\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. unpow221.0%

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

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

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

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

                            \[\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 simplification56.8%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq -1.85 \cdot 10^{-136}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(2 \cdot \frac{C}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 4.7 \cdot 10^{-212}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-2 \cdot \frac{A}{B}\right)}{\pi}\\ \mathbf{elif}\;C \leq 7.5 \cdot 10^{-161}:\\ \;\;\;\;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} \]
                        5. Add Preprocessing

                        Alternative 19: 45.2% accurate, 3.6× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;B \leq -1.4 \cdot 10^{-118}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{elif}\;B \leq 2.8 \cdot 10^{-119}:\\ \;\;\;\;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 -1.4e-118)
                           (* 180.0 (/ (atan 1.0) PI))
                           (if (<= B 2.8e-119)
                             (* 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 <= -1.4e-118) {
                        		tmp = 180.0 * (atan(1.0) / ((double) M_PI));
                        	} else if (B <= 2.8e-119) {
                        		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 <= -1.4e-118) {
                        		tmp = 180.0 * (Math.atan(1.0) / Math.PI);
                        	} else if (B <= 2.8e-119) {
                        		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 <= -1.4e-118:
                        		tmp = 180.0 * (math.atan(1.0) / math.pi)
                        	elif B <= 2.8e-119:
                        		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 <= -1.4e-118)
                        		tmp = Float64(180.0 * Float64(atan(1.0) / pi));
                        	elseif (B <= 2.8e-119)
                        		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 <= -1.4e-118)
                        		tmp = 180.0 * (atan(1.0) / pi);
                        	elseif (B <= 2.8e-119)
                        		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, -1.4e-118], N[(180.0 * N[(N[ArcTan[1.0], $MachinePrecision] / Pi), $MachinePrecision]), $MachinePrecision], If[LessEqual[B, 2.8e-119], 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 -1.4 \cdot 10^{-118}:\\
                        \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\
                        
                        \mathbf{elif}\;B \leq 2.8 \cdot 10^{-119}:\\
                        \;\;\;\;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 < -1.4e-118

                          1. Initial program 54.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 44.7%

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

                          if -1.4e-118 < B < 2.8e-119

                          1. Initial program 48.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 42.4%

                            \[\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/42.4%

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

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

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

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

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

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

                          if 2.8e-119 < B

                          1. Initial program 50.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 44.7%

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

                          \[\leadsto \begin{array}{l} \mathbf{if}\;B \leq -1.4 \cdot 10^{-118}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} 1}{\pi}\\ \mathbf{elif}\;B \leq 2.8 \cdot 10^{-119}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{0}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} -1}{\pi}\\ \end{array} \]
                        5. Add Preprocessing

                        Alternative 20: 40.2% 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 50.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 33.3%

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

                          if -4.999999999999985e-310 < B

                          1. Initial program 51.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 35.3%

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

                          \[\leadsto \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} \]
                        5. Add Preprocessing

                        Alternative 21: 20.8% 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 51.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 B around inf 18.1%

                          \[\leadsto 180 \cdot \frac{\tan^{-1} \color{blue}{-1}}{\pi} \]
                        4. Final simplification18.1%

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

                        Reproduce

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