?

Average Accuracy: 54.0% → 80.4%
Time: 23.1s
Precision: binary64
Cost: 26628

?

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

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


\end{array}

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Split input into 2 regimes
  2. if C < 1.49999999999999987e-8

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

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

      [Start]63.4

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

      associate-*r/ [=>]63.4

      \[ \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}} \]

      associate-*l/ [<=]63.4

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

      associate-*l/ [=>]63.4

      \[ \frac{180}{\pi} \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)} \]

      *-lft-identity [=>]63.4

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

      sub-neg [=>]63.4

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

      associate-+l- [=>]62.4

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

      sub-neg [=>]62.4

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

      remove-double-neg [=>]62.4

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

      +-commutative [=>]62.4

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

      unpow2 [=>]62.4

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

      unpow2 [=>]62.4

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

      hypot-def [=>]80.3

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

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

      [Start]80.3

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

      associate-*l/ [=>]80.3

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

      associate-/l* [=>]80.3

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

      associate--r+ [=>]85.4

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

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

      [Start]85.4

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

      clear-num [=>]85.4

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

      inv-pow [=>]85.4

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

      div-inv [=>]85.4

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

      metadata-eval [=>]85.4

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

    if 1.49999999999999987e-8 < C

    1. Initial program 25.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. Simplified54.6%

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

      [Start]25.4

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

      associate-*r/ [=>]25.4

      \[ \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}} \]

      associate-*l/ [<=]25.4

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

      associate-*l/ [=>]25.4

      \[ \frac{180}{\pi} \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)} \]

      *-lft-identity [=>]25.4

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

      sub-neg [=>]25.4

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

      associate-+l- [=>]24.9

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

      sub-neg [=>]24.9

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

      remove-double-neg [=>]24.9

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

      +-commutative [=>]24.9

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

      unpow2 [=>]24.9

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

      unpow2 [=>]24.9

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

      hypot-def [=>]54.6

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

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

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

      [Start]34.5

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

      fma-def [=>]34.5

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

      *-commutative [=>]34.5

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

      associate--l+ [=>]40.9

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

      unpow2 [=>]40.9

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

      fma-def [=>]40.9

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

      unpow2 [=>]40.9

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

      mul-1-neg [=>]40.9

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

      unpow2 [=>]40.9

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

      difference-of-squares [=>]49.2

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

      mul-1-neg [<=]49.2

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

      distribute-rgt1-in [=>]49.2

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

      metadata-eval [=>]49.2

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

      mul0-lft [=>]49.2

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

      associate-*r/ [=>]49.2

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

      \[\leadsto \color{blue}{180 \cdot \frac{\tan^{-1} \left(\mathsf{fma}\left(-0.5, \frac{\mathsf{fma}\left(B, B, 0\right)}{C \cdot B}, 0\right)\right)}{\pi}} \]
    6. Simplified64.9%

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

      [Start]49.2

      \[ 180 \cdot \frac{\tan^{-1} \left(\mathsf{fma}\left(-0.5, \frac{\mathsf{fma}\left(B, B, 0\right)}{C \cdot B}, 0\right)\right)}{\pi} \]

      *-commutative [=>]49.2

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

      fma-udef [=>]49.2

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

      +-rgt-identity [=>]49.2

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

      associate-/r* [=>]54.4

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

      associate-*r/ [=>]54.3

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

      fma-udef [=>]54.3

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

      +-rgt-identity [=>]54.3

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

      associate-*r/ [<=]59.0

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

      *-commutative [=>]59.0

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

      associate-*l/ [<=]59.1

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

      associate-*r/ [=>]54.4

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

      associate-/r* [<=]49.2

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

      times-frac [=>]64.8

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

      metadata-eval [<=]64.8

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;C \leq 1.5 \cdot 10^{-8}:\\ \;\;\;\;{\left(\frac{\pi}{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right)} \cdot 0.005555555555555556\right)}^{-1}\\ \mathbf{else}:\\ \;\;\;\;\frac{\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right)}{\pi \cdot 0.005555555555555556}\\ \end{array} \]

Alternatives

Alternative 1
Accuracy80.4%
Cost20164
\[\begin{array}{l} \mathbf{if}\;C \leq 1.5 \cdot 10^{-8}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - A\right) - \mathsf{hypot}\left(B, A - C\right)}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right)}{\pi \cdot 0.005555555555555556}\\ \end{array} \]
Alternative 2
Accuracy80.2%
Cost20164
\[\begin{array}{l} \mathbf{if}\;C \leq 1.06 \cdot 10^{-19}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(\frac{\left(C - \mathsf{hypot}\left(B, A - C\right)\right) - A}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right)}{\pi \cdot 0.005555555555555556}\\ \end{array} \]
Alternative 3
Accuracy76.6%
Cost20104
\[\begin{array}{l} \mathbf{if}\;C \leq -7.6 \cdot 10^{-140}:\\ \;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C - \mathsf{hypot}\left(B, C\right)}{B}\right)\\ \mathbf{elif}\;C \leq 5.1 \cdot 10^{-12}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{\left(-A\right) - \mathsf{hypot}\left(B, A\right)}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right)}{\pi \cdot 0.005555555555555556}\\ \end{array} \]
Alternative 4
Accuracy75.7%
Cost20040
\[\begin{array}{l} \mathbf{if}\;A \leq -6.2 \cdot 10^{+132}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{0.5}{\frac{A}{B}}\right)}{\pi}\\ \mathbf{elif}\;A \leq 1.3 \cdot 10^{+53}:\\ \;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C - \mathsf{hypot}\left(B, C\right)}{B}\right)\\ \mathbf{else}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(-1 + \frac{C - A}{B}\right)}{\pi}\\ \end{array} \]
Alternative 5
Accuracy54.8%
Cost14368
\[\begin{array}{l} t_0 := \frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C - B}{B}\right)\\ t_1 := \frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{C + B}{B}\right)}}\\ \mathbf{if}\;A \leq -3 \cdot 10^{+101}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{0.5}{\frac{A}{B}}\right)}{\pi}\\ \mathbf{elif}\;A \leq -1.02 \cdot 10^{-57}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;A \leq -3.9 \cdot 10^{-95}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(0.5 \cdot \frac{B}{A}\right)}{\pi}\\ \mathbf{elif}\;A \leq -1.4 \cdot 10^{-133}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \mathbf{elif}\;A \leq -1.7 \cdot 10^{-206}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;A \leq -1.6 \cdot 10^{-248}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;A \leq 6.7 \cdot 10^{-227}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;A \leq 2.85 \cdot 10^{-8}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{A \cdot -2}{B}\right)}}\\ \end{array} \]
Alternative 6
Accuracy54.8%
Cost14368
\[\begin{array}{l} t_0 := \frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{C + B}{B}\right)}}\\ t_1 := \frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C - B}{B}\right)\\ \mathbf{if}\;A \leq -3 \cdot 10^{+101}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{0.5}{\frac{A}{B}}\right)}{\pi}\\ \mathbf{elif}\;A \leq -1.08 \cdot 10^{-57}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;A \leq -5.2 \cdot 10^{-95}:\\ \;\;\;\;\frac{\frac{\tan^{-1} \left(0.5 \cdot \frac{B}{A}\right)}{\pi}}{0.005555555555555556}\\ \mathbf{elif}\;A \leq -1.5 \cdot 10^{-133}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \mathbf{elif}\;A \leq -2 \cdot 10^{-208}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;A \leq -1.22 \cdot 10^{-248}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;A \leq 1.5 \cdot 10^{-223}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;A \leq 8.2 \cdot 10^{-9}:\\ \;\;\;\;t_0\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{A \cdot -2}{B}\right)}}\\ \end{array} \]
Alternative 7
Accuracy54.8%
Cost14368
\[\begin{array}{l} t_0 := \tan^{-1} \left(\frac{C + B}{B}\right)\\ t_1 := \frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C - B}{B}\right)\\ \mathbf{if}\;A \leq -3 \cdot 10^{+101}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{0.5}{\frac{A}{B}}\right)}{\pi}\\ \mathbf{elif}\;A \leq -1 \cdot 10^{-57}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;A \leq -8.2 \cdot 10^{-95}:\\ \;\;\;\;\frac{\frac{\tan^{-1} \left(0.5 \cdot \frac{B}{A}\right)}{\pi}}{0.005555555555555556}\\ \mathbf{elif}\;A \leq -2 \cdot 10^{-134}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \mathbf{elif}\;A \leq -6.2 \cdot 10^{-201}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;A \leq -1.55 \cdot 10^{-248}:\\ \;\;\;\;\frac{180}{\frac{\pi}{t_0}}\\ \mathbf{elif}\;A \leq 1.8 \cdot 10^{-227}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;A \leq 3.4 \cdot 10^{-8}:\\ \;\;\;\;\frac{180}{\pi} \cdot t_0\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{A \cdot -2}{B}\right)}}\\ \end{array} \]
Alternative 8
Accuracy46.9%
Cost14236
\[\begin{array}{l} t_0 := \frac{180}{\pi} \cdot \tan^{-1} \left(\frac{-0.5}{\frac{C}{B}}\right)\\ t_1 := \frac{180 \cdot \tan^{-1} 1}{\pi}\\ t_2 := 180 \cdot \frac{\tan^{-1} \left(0.5 \cdot \frac{B}{A}\right)}{\pi}\\ \mathbf{if}\;B \leq -9 \cdot 10^{+18}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;B \leq -1.95 \cdot 10^{-7}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;B \leq -4.5 \cdot 10^{-63}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;B \leq -3.55 \cdot 10^{-230}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;B \leq 2.5 \cdot 10^{-293}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;B \leq 9.5 \cdot 10^{-193}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;B \leq 3.8 \cdot 10^{-62}:\\ \;\;\;\;t_0\\ \mathbf{else}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} -1}{\pi}\\ \end{array} \]
Alternative 9
Accuracy46.9%
Cost14236
\[\begin{array}{l} t_0 := \frac{180}{\pi} \cdot \tan^{-1} \left(\frac{-0.5}{\frac{C}{B}}\right)\\ t_1 := \frac{180 \cdot \tan^{-1} 1}{\pi}\\ t_2 := 180 \cdot \frac{\tan^{-1} \left(0.5 \cdot \frac{B}{A}\right)}{\pi}\\ \mathbf{if}\;B \leq -1.5 \cdot 10^{+16}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;B \leq -1.35 \cdot 10^{-8}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;B \leq -6.8 \cdot 10^{-63}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;B \leq -9.6 \cdot 10^{-231}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;B \leq 2.4 \cdot 10^{-293}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;B \leq 1.2 \cdot 10^{-196}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;B \leq 4.2 \cdot 10^{-64}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} -1}{\pi}\\ \end{array} \]
Alternative 10
Accuracy52.6%
Cost14104
\[\begin{array}{l} t_0 := \frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C - B}{B}\right)\\ t_1 := \frac{180 \cdot \tan^{-1} 1}{\pi}\\ \mathbf{if}\;C \leq -6.4 \cdot 10^{-140}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;C \leq -2.95 \cdot 10^{-266}:\\ \;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{A \cdot -2}{B}\right)\\ \mathbf{elif}\;C \leq 2.3 \cdot 10^{-304}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;C \leq 4.8 \cdot 10^{-229}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;C \leq 8 \cdot 10^{-181}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} -1}{\pi}\\ \mathbf{elif}\;C \leq 4.2 \cdot 10^{-51}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \end{array} \]
Alternative 11
Accuracy52.7%
Cost14104
\[\begin{array}{l} t_0 := \frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C - B}{B}\right)\\ t_1 := \frac{180 \cdot \tan^{-1} 1}{\pi}\\ \mathbf{if}\;C \leq -1.45 \cdot 10^{-142}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;C \leq -2.45 \cdot 10^{-267}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{A \cdot -2}{B}\right)}}\\ \mathbf{elif}\;C \leq 4.8 \cdot 10^{-305}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;C \leq 8 \cdot 10^{-227}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;C \leq 3.9 \cdot 10^{-185}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} -1}{\pi}\\ \mathbf{elif}\;C \leq 9.4 \cdot 10^{-49}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \end{array} \]
Alternative 12
Accuracy53.5%
Cost14104
\[\begin{array}{l} t_0 := \frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{C + B}{B}\right)}}\\ \mathbf{if}\;C \leq -5.4 \cdot 10^{-98}:\\ \;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{C - B}{B}\right)\\ \mathbf{elif}\;C \leq -3.3 \cdot 10^{-226}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;C \leq -5.9 \cdot 10^{-266}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{A \cdot -2}{B}\right)}}\\ \mathbf{elif}\;C \leq 3.8 \cdot 10^{-234}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;C \leq 2.3 \cdot 10^{-180}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} -1}{\pi}\\ \mathbf{elif}\;C \leq 3.5 \cdot 10^{-45}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} 1}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \end{array} \]
Alternative 13
Accuracy53.4%
Cost14104
\[\begin{array}{l} t_0 := \frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{C + B}{B}\right)}}\\ \mathbf{if}\;C \leq -3.6 \cdot 10^{-111}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{C - B}{B}\right)}}\\ \mathbf{elif}\;C \leq -1.02 \cdot 10^{-224}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;C \leq -2.4 \cdot 10^{-268}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{A \cdot -2}{B}\right)}}\\ \mathbf{elif}\;C \leq 4.8 \cdot 10^{-230}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;C \leq 7.6 \cdot 10^{-188}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} -1}{\pi}\\ \mathbf{elif}\;C \leq 1.55 \cdot 10^{-51}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} 1}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \end{array} \]
Alternative 14
Accuracy53.6%
Cost14104
\[\begin{array}{l} t_0 := \frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{C + B}{B}\right)}}\\ \mathbf{if}\;C \leq -2.1 \cdot 10^{-98}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{C - B}{B}\right)}}\\ \mathbf{elif}\;C \leq -2.6 \cdot 10^{-225}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;C \leq -1 \cdot 10^{-265}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{A \cdot -2}{B}\right)}}\\ \mathbf{elif}\;C \leq 4.4 \cdot 10^{-234}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;C \leq 2 \cdot 10^{-181}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} -1}{\pi}\\ \mathbf{elif}\;C \leq 7.5 \cdot 10^{-52}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} 1}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right)}{\pi \cdot 0.005555555555555556}\\ \end{array} \]
Alternative 15
Accuracy60.3%
Cost14100
\[\begin{array}{l} t_0 := 180 \cdot \frac{\tan^{-1} \left(-1 + \frac{C - A}{B}\right)}{\pi}\\ \mathbf{if}\;C \leq -2.7 \cdot 10^{-111}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;C \leq -1.8 \cdot 10^{-175}:\\ \;\;\;\;\frac{180}{\frac{\pi}{\tan^{-1} \left(\frac{C + B}{B}\right)}}\\ \mathbf{elif}\;C \leq 4.4 \cdot 10^{-185}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;C \leq 1.5 \cdot 10^{-145}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} 1}{\pi}\\ \mathbf{elif}\;C \leq 2.4 \cdot 10^{-29}:\\ \;\;\;\;t_0\\ \mathbf{else}:\\ \;\;\;\;\frac{\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right)}{\pi \cdot 0.005555555555555556}\\ \end{array} \]
Alternative 16
Accuracy47.6%
Cost13972
\[\begin{array}{l} t_0 := 180 \cdot \frac{\tan^{-1} \left(0.5 \cdot \frac{B}{A}\right)}{\pi}\\ \mathbf{if}\;A \leq -1.4 \cdot 10^{-101}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;A \leq -1.6 \cdot 10^{-143}:\\ \;\;\;\;\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right) \cdot \frac{180}{\pi}\\ \mathbf{elif}\;A \leq -4.4 \cdot 10^{-308}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;A \leq 8.2 \cdot 10^{-228}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} -1}{\pi}\\ \mathbf{elif}\;A \leq 5.5 \cdot 10^{-10}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} 1}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180}{\pi} \cdot \tan^{-1} \left(\frac{A \cdot -2}{B}\right)\\ \end{array} \]
Alternative 17
Accuracy61.4%
Cost13968
\[\begin{array}{l} t_0 := \frac{180}{\pi} \cdot \tan^{-1} \left(\frac{\left(C + B\right) - A}{B}\right)\\ t_1 := 180 \cdot \frac{\tan^{-1} \left(-1 + \frac{C - A}{B}\right)}{\pi}\\ \mathbf{if}\;C \leq -6 \cdot 10^{-108}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;C \leq 5 \cdot 10^{-234}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;C \leq 6.9 \cdot 10^{-186}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;C \leq 2.5 \cdot 10^{-41}:\\ \;\;\;\;t_0\\ \mathbf{else}:\\ \;\;\;\;\frac{\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right)}{\pi \cdot 0.005555555555555556}\\ \end{array} \]
Alternative 18
Accuracy61.4%
Cost13968
\[\begin{array}{l} t_0 := \frac{180}{\pi} \cdot \tan^{-1} \left(\frac{\left(C + B\right) - A}{B}\right)\\ t_1 := \tan^{-1} \left(-1 + \frac{C - A}{B}\right)\\ \mathbf{if}\;C \leq -1.6 \cdot 10^{-103}:\\ \;\;\;\;\frac{180}{\frac{\pi}{t_1}}\\ \mathbf{elif}\;C \leq 2.5 \cdot 10^{-231}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;C \leq 9 \cdot 10^{-185}:\\ \;\;\;\;180 \cdot \frac{t_1}{\pi}\\ \mathbf{elif}\;C \leq 3.9 \cdot 10^{-44}:\\ \;\;\;\;t_0\\ \mathbf{else}:\\ \;\;\;\;\frac{\tan^{-1} \left(\frac{B \cdot -0.5}{C}\right)}{\pi \cdot 0.005555555555555556}\\ \end{array} \]
Alternative 19
Accuracy45.6%
Cost13576
\[\begin{array}{l} \mathbf{if}\;B \leq -7 \cdot 10^{-63}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} 1}{\pi}\\ \mathbf{elif}\;B \leq 1.55 \cdot 10^{-209}:\\ \;\;\;\;180 \cdot \frac{\tan^{-1} \left(0.5 \cdot \frac{B}{A}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} -1}{\pi}\\ \end{array} \]
Alternative 20
Accuracy44.8%
Cost13448
\[\begin{array}{l} \mathbf{if}\;B \leq -4.5 \cdot 10^{-230}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} 1}{\pi}\\ \mathbf{elif}\;B \leq 1.15 \cdot 10^{-59}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} \left(\frac{0}{B}\right)}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} -1}{\pi}\\ \end{array} \]
Alternative 21
Accuracy41.1%
Cost13188
\[\begin{array}{l} \mathbf{if}\;B \leq -6 \cdot 10^{-299}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} 1}{\pi}\\ \mathbf{else}:\\ \;\;\;\;\frac{180 \cdot \tan^{-1} -1}{\pi}\\ \end{array} \]
Alternative 22
Accuracy21.5%
Cost13056
\[\frac{180 \cdot \tan^{-1} -1}{\pi} \]

Error

Reproduce?

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