ab-angle->ABCF B

?

Percentage Accurate: 54.9% → 68.8%
Time: 35.6s
Precision: binary64
Cost: 65668

?

\[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
\[\begin{array}{l} t_0 := \frac{angle}{\frac{180}{\pi}}\\ \mathbf{if}\;\frac{angle}{180} \leq -2 \cdot 10^{+59}:\\ \;\;\;\;\left(\left(2 \cdot \sin \left({\left(\sqrt{\sqrt[3]{\pi} \cdot {\left(\sqrt[3]{\pi}\right)}^{2}}\right)}^{2} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right) \cdot \left(b \cdot b + a \cdot a\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(\left(b - a\right) \cdot \left(\cos t_0 \cdot \left(\sin t_0 \cdot \left(b + a\right)\right)\right)\right)\\ \end{array} \]
(FPCore (a b angle)
 :precision binary64
 (*
  (* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin (* PI (/ angle 180.0))))
  (cos (* PI (/ angle 180.0)))))
(FPCore (a b angle)
 :precision binary64
 (let* ((t_0 (/ angle (/ 180.0 PI))))
   (if (<= (/ angle 180.0) -2e+59)
     (*
      (*
       (*
        2.0
        (sin
         (*
          (pow (sqrt (* (cbrt PI) (pow (cbrt PI) 2.0))) 2.0)
          (* angle 0.005555555555555556))))
       (+ (* b b) (* a a)))
      (cos (* (/ angle 180.0) PI)))
     (* 2.0 (* (- b a) (* (cos t_0) (* (sin t_0) (+ b a))))))))
double code(double a, double b, double angle) {
	return ((2.0 * (pow(b, 2.0) - pow(a, 2.0))) * sin((((double) M_PI) * (angle / 180.0)))) * cos((((double) M_PI) * (angle / 180.0)));
}
double code(double a, double b, double angle) {
	double t_0 = angle / (180.0 / ((double) M_PI));
	double tmp;
	if ((angle / 180.0) <= -2e+59) {
		tmp = ((2.0 * sin((pow(sqrt((cbrt(((double) M_PI)) * pow(cbrt(((double) M_PI)), 2.0))), 2.0) * (angle * 0.005555555555555556)))) * ((b * b) + (a * a))) * cos(((angle / 180.0) * ((double) M_PI)));
	} else {
		tmp = 2.0 * ((b - a) * (cos(t_0) * (sin(t_0) * (b + a))));
	}
	return tmp;
}
public static double code(double a, double b, double angle) {
	return ((2.0 * (Math.pow(b, 2.0) - Math.pow(a, 2.0))) * Math.sin((Math.PI * (angle / 180.0)))) * Math.cos((Math.PI * (angle / 180.0)));
}
public static double code(double a, double b, double angle) {
	double t_0 = angle / (180.0 / Math.PI);
	double tmp;
	if ((angle / 180.0) <= -2e+59) {
		tmp = ((2.0 * Math.sin((Math.pow(Math.sqrt((Math.cbrt(Math.PI) * Math.pow(Math.cbrt(Math.PI), 2.0))), 2.0) * (angle * 0.005555555555555556)))) * ((b * b) + (a * a))) * Math.cos(((angle / 180.0) * Math.PI));
	} else {
		tmp = 2.0 * ((b - a) * (Math.cos(t_0) * (Math.sin(t_0) * (b + a))));
	}
	return tmp;
}
function code(a, b, angle)
	return Float64(Float64(Float64(2.0 * Float64((b ^ 2.0) - (a ^ 2.0))) * sin(Float64(pi * Float64(angle / 180.0)))) * cos(Float64(pi * Float64(angle / 180.0))))
end
function code(a, b, angle)
	t_0 = Float64(angle / Float64(180.0 / pi))
	tmp = 0.0
	if (Float64(angle / 180.0) <= -2e+59)
		tmp = Float64(Float64(Float64(2.0 * sin(Float64((sqrt(Float64(cbrt(pi) * (cbrt(pi) ^ 2.0))) ^ 2.0) * Float64(angle * 0.005555555555555556)))) * Float64(Float64(b * b) + Float64(a * a))) * cos(Float64(Float64(angle / 180.0) * pi)));
	else
		tmp = Float64(2.0 * Float64(Float64(b - a) * Float64(cos(t_0) * Float64(sin(t_0) * Float64(b + a)))));
	end
	return tmp
end
code[a_, b_, angle_] := N[(N[(N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(Pi * N[(angle / 180.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[Cos[N[(Pi * N[(angle / 180.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
code[a_, b_, angle_] := Block[{t$95$0 = N[(angle / N[(180.0 / Pi), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(angle / 180.0), $MachinePrecision], -2e+59], N[(N[(N[(2.0 * N[Sin[N[(N[Power[N[Sqrt[N[(N[Power[Pi, 1/3], $MachinePrecision] * N[Power[N[Power[Pi, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], 2.0], $MachinePrecision] * N[(angle * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[(b * b), $MachinePrecision] + N[(a * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Cos[N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(b - a), $MachinePrecision] * N[(N[Cos[t$95$0], $MachinePrecision] * N[(N[Sin[t$95$0], $MachinePrecision] * N[(b + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)
\begin{array}{l}
t_0 := \frac{angle}{\frac{180}{\pi}}\\
\mathbf{if}\;\frac{angle}{180} \leq -2 \cdot 10^{+59}:\\
\;\;\;\;\left(\left(2 \cdot \sin \left({\left(\sqrt{\sqrt[3]{\pi} \cdot {\left(\sqrt[3]{\pi}\right)}^{2}}\right)}^{2} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right) \cdot \left(b \cdot b + a \cdot a\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\\

\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left(b - a\right) \cdot \left(\cos t_0 \cdot \left(\sin t_0 \cdot \left(b + a\right)\right)\right)\right)\\


\end{array}

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.

Herbie found 25 alternatives:

AlternativeAccuracySpeedup

Accuracy vs Speed

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.

Bogosity?

Bogosity

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Split input into 2 regimes
  2. if (/.f64 angle 180) < -1.99999999999999994e59

    1. Initial program 28.7%

      \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
    2. Simplified35.1%

      \[\leadsto \color{blue}{\left(\mathsf{fma}\left(b, b, a \cdot \left(-a\right)\right) \cdot \left(2 \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)} \]
      Step-by-step derivation

      [Start]28.7%

      \[ \left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      *-commutative [=>]28.7%

      \[ \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      associate-*l* [=>]28.7%

      \[ \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      unpow2 [=>]28.7%

      \[ \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      fma-neg [=>]35.1%

      \[ \left(\color{blue}{\mathsf{fma}\left(b, b, -{a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      unpow2 [=>]35.1%

      \[ \left(\mathsf{fma}\left(b, b, -\color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      distribute-rgt-neg-in [=>]35.1%

      \[ \left(\mathsf{fma}\left(b, b, \color{blue}{a \cdot \left(-a\right)}\right) \cdot \left(2 \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
    3. Applied egg-rr33.5%

      \[\leadsto \color{blue}{\left(\left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right) \cdot \left(b \cdot b\right) + \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right) \cdot \left(a \cdot a\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
      Step-by-step derivation

      [Start]35.1%

      \[ \left(\mathsf{fma}\left(b, b, a \cdot \left(-a\right)\right) \cdot \left(2 \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      *-commutative [=>]35.1%

      \[ \color{blue}{\left(\left(2 \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \mathsf{fma}\left(b, b, a \cdot \left(-a\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      fma-udef [=>]28.7%

      \[ \left(\left(2 \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \color{blue}{\left(b \cdot b + a \cdot \left(-a\right)\right)}\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      distribute-rgt-neg-in [<=]28.7%

      \[ \left(\left(2 \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \left(b \cdot b + \color{blue}{\left(-a \cdot a\right)}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      distribute-lft-in [=>]28.7%

      \[ \color{blue}{\left(\left(2 \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \left(b \cdot b\right) + \left(2 \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \left(-a \cdot a\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      *-commutative [=>]28.7%

      \[ \left(\color{blue}{\left(\sin \left(\pi \cdot \frac{angle}{180}\right) \cdot 2\right)} \cdot \left(b \cdot b\right) + \left(2 \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \left(-a \cdot a\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      div-inv [=>]26.4%

      \[ \left(\left(\sin \left(\pi \cdot \color{blue}{\left(angle \cdot \frac{1}{180}\right)}\right) \cdot 2\right) \cdot \left(b \cdot b\right) + \left(2 \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \left(-a \cdot a\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      metadata-eval [=>]26.4%

      \[ \left(\left(\sin \left(\pi \cdot \left(angle \cdot \color{blue}{0.005555555555555556}\right)\right) \cdot 2\right) \cdot \left(b \cdot b\right) + \left(2 \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \left(-a \cdot a\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      *-commutative [=>]26.4%

      \[ \left(\left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right) \cdot \left(b \cdot b\right) + \color{blue}{\left(\sin \left(\pi \cdot \frac{angle}{180}\right) \cdot 2\right)} \cdot \left(-a \cdot a\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      div-inv [=>]29.3%

      \[ \left(\left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right) \cdot \left(b \cdot b\right) + \left(\sin \left(\pi \cdot \color{blue}{\left(angle \cdot \frac{1}{180}\right)}\right) \cdot 2\right) \cdot \left(-a \cdot a\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      metadata-eval [=>]29.3%

      \[ \left(\left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right) \cdot \left(b \cdot b\right) + \left(\sin \left(\pi \cdot \left(angle \cdot \color{blue}{0.005555555555555556}\right)\right) \cdot 2\right) \cdot \left(-a \cdot a\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      add-sqr-sqrt [=>]7.9%

      \[ \left(\left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right) \cdot \left(b \cdot b\right) + \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right) \cdot \color{blue}{\left(\sqrt{-a \cdot a} \cdot \sqrt{-a \cdot a}\right)}\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      sqrt-unprod [=>]32.8%

      \[ \left(\left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right) \cdot \left(b \cdot b\right) + \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right) \cdot \color{blue}{\sqrt{\left(-a \cdot a\right) \cdot \left(-a \cdot a\right)}}\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
    4. Simplified33.5%

      \[\leadsto \color{blue}{\left(\left(2 \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right) \cdot \left(b \cdot b + a \cdot a\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
      Step-by-step derivation

      [Start]33.5%

      \[ \left(\left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right) \cdot \left(b \cdot b\right) + \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right) \cdot \left(a \cdot a\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      unpow2 [<=]33.5%

      \[ \left(\left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right) \cdot \color{blue}{{b}^{2}} + \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right) \cdot \left(a \cdot a\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      unpow2 [<=]33.5%

      \[ \left(\left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right) \cdot {b}^{2} + \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right) \cdot \color{blue}{{a}^{2}}\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      distribute-lft-out [=>]33.5%

      \[ \color{blue}{\left(\left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right) \cdot \left({b}^{2} + {a}^{2}\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      *-commutative [=>]33.5%

      \[ \left(\color{blue}{\left(2 \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)} \cdot \left({b}^{2} + {a}^{2}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      unpow2 [=>]33.5%

      \[ \left(\left(2 \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right) \cdot \left(\color{blue}{b \cdot b} + {a}^{2}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      unpow2 [=>]33.5%

      \[ \left(\left(2 \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right) \cdot \left(b \cdot b + \color{blue}{a \cdot a}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
    5. Applied egg-rr40.2%

      \[\leadsto \left(\left(2 \cdot \sin \left(\color{blue}{{\left(\sqrt{\pi}\right)}^{2}} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right) \cdot \left(b \cdot b + a \cdot a\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
      Step-by-step derivation

      [Start]33.5%

      \[ \left(\left(2 \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right) \cdot \left(b \cdot b + a \cdot a\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      add-sqr-sqrt [=>]40.2%

      \[ \left(\left(2 \cdot \sin \left(\color{blue}{\left(\sqrt{\pi} \cdot \sqrt{\pi}\right)} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right) \cdot \left(b \cdot b + a \cdot a\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      pow2 [=>]40.2%

      \[ \left(\left(2 \cdot \sin \left(\color{blue}{{\left(\sqrt{\pi}\right)}^{2}} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right) \cdot \left(b \cdot b + a \cdot a\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
    6. Applied egg-rr52.5%

      \[\leadsto \left(\left(2 \cdot \sin \left({\left(\sqrt{\color{blue}{{\left(\sqrt[3]{\pi}\right)}^{2} \cdot \sqrt[3]{\pi}}}\right)}^{2} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right) \cdot \left(b \cdot b + a \cdot a\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
      Step-by-step derivation

      [Start]40.2%

      \[ \left(\left(2 \cdot \sin \left({\left(\sqrt{\pi}\right)}^{2} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right) \cdot \left(b \cdot b + a \cdot a\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      add-cube-cbrt [=>]52.5%

      \[ \left(\left(2 \cdot \sin \left({\left(\sqrt{\color{blue}{\left(\sqrt[3]{\pi} \cdot \sqrt[3]{\pi}\right) \cdot \sqrt[3]{\pi}}}\right)}^{2} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right) \cdot \left(b \cdot b + a \cdot a\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      pow2 [=>]52.5%

      \[ \left(\left(2 \cdot \sin \left({\left(\sqrt{\color{blue}{{\left(\sqrt[3]{\pi}\right)}^{2}} \cdot \sqrt[3]{\pi}}\right)}^{2} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right) \cdot \left(b \cdot b + a \cdot a\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

    if -1.99999999999999994e59 < (/.f64 angle 180)

    1. Initial program 58.5%

      \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
    2. Simplified63.9%

      \[\leadsto \color{blue}{\left(2 \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)\right) \cdot \left(\sin \left(\pi \cdot \frac{angle}{180}\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)} \]
      Step-by-step derivation

      [Start]58.5%

      \[ \left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]

      associate-*l* [=>]58.5%

      \[ \color{blue}{\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \left(\sin \left(\pi \cdot \frac{angle}{180}\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)} \]

      unpow2 [=>]58.5%

      \[ \left(2 \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right) \cdot \left(\sin \left(\pi \cdot \frac{angle}{180}\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right) \]

      unpow2 [=>]58.5%

      \[ \left(2 \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right) \cdot \left(\sin \left(\pi \cdot \frac{angle}{180}\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right) \]

      difference-of-squares [=>]63.9%

      \[ \left(2 \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right) \cdot \left(\sin \left(\pi \cdot \frac{angle}{180}\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right) \]
    3. Taylor expanded in angle around inf 77.8%

      \[\leadsto \color{blue}{2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(a + b\right)\right)\right)\right)} \]
    4. Applied egg-rr75.7%

      \[\leadsto 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \color{blue}{\left(\frac{angle \cdot \pi}{180}\right)} \cdot \left(a + b\right)\right)\right)\right) \]
      Step-by-step derivation

      [Start]77.8%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(a + b\right)\right)\right)\right) \]

      associate-*r* [=>]77.6%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \color{blue}{\left(\left(0.005555555555555556 \cdot angle\right) \cdot \pi\right)} \cdot \left(a + b\right)\right)\right)\right) \]

      *-commutative [<=]77.6%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot 0.005555555555555556\right)} \cdot \pi\right) \cdot \left(a + b\right)\right)\right)\right) \]

      metadata-eval [<=]77.6%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \left(\left(angle \cdot \color{blue}{\frac{1}{180}}\right) \cdot \pi\right) \cdot \left(a + b\right)\right)\right)\right) \]

      div-inv [<=]75.0%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \left(\color{blue}{\frac{angle}{180}} \cdot \pi\right) \cdot \left(a + b\right)\right)\right)\right) \]

      *-commutative [<=]75.0%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \color{blue}{\left(\pi \cdot \frac{angle}{180}\right)} \cdot \left(a + b\right)\right)\right)\right) \]

      associate-*r/ [=>]75.7%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \color{blue}{\left(\frac{\pi \cdot angle}{180}\right)} \cdot \left(a + b\right)\right)\right)\right) \]

      *-commutative [<=]75.7%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \left(\frac{\color{blue}{angle \cdot \pi}}{180}\right) \cdot \left(a + b\right)\right)\right)\right) \]
    5. Simplified76.9%

      \[\leadsto 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \color{blue}{\left(\frac{angle}{\frac{180}{\pi}}\right)} \cdot \left(a + b\right)\right)\right)\right) \]
      Step-by-step derivation

      [Start]75.7%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \left(\frac{angle \cdot \pi}{180}\right) \cdot \left(a + b\right)\right)\right)\right) \]

      associate-/l* [=>]76.9%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \color{blue}{\left(\frac{angle}{\frac{180}{\pi}}\right)} \cdot \left(a + b\right)\right)\right)\right) \]
    6. Applied egg-rr76.9%

      \[\leadsto 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \color{blue}{\left(\frac{angle \cdot \pi}{180}\right)} \cdot \left(\sin \left(\frac{angle}{\frac{180}{\pi}}\right) \cdot \left(a + b\right)\right)\right)\right) \]
      Step-by-step derivation

      [Start]77.8%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(a + b\right)\right)\right)\right) \]

      associate-*r* [=>]77.6%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \color{blue}{\left(\left(0.005555555555555556 \cdot angle\right) \cdot \pi\right)} \cdot \left(a + b\right)\right)\right)\right) \]

      *-commutative [<=]77.6%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot 0.005555555555555556\right)} \cdot \pi\right) \cdot \left(a + b\right)\right)\right)\right) \]

      metadata-eval [<=]77.6%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \left(\left(angle \cdot \color{blue}{\frac{1}{180}}\right) \cdot \pi\right) \cdot \left(a + b\right)\right)\right)\right) \]

      div-inv [<=]75.0%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \left(\color{blue}{\frac{angle}{180}} \cdot \pi\right) \cdot \left(a + b\right)\right)\right)\right) \]

      *-commutative [<=]75.0%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \color{blue}{\left(\pi \cdot \frac{angle}{180}\right)} \cdot \left(a + b\right)\right)\right)\right) \]

      associate-*r/ [=>]75.7%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \color{blue}{\left(\frac{\pi \cdot angle}{180}\right)} \cdot \left(a + b\right)\right)\right)\right) \]

      *-commutative [<=]75.7%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \left(\frac{\color{blue}{angle \cdot \pi}}{180}\right) \cdot \left(a + b\right)\right)\right)\right) \]
    7. Simplified78.7%

      \[\leadsto 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \color{blue}{\left(\frac{angle}{\frac{180}{\pi}}\right)} \cdot \left(\sin \left(\frac{angle}{\frac{180}{\pi}}\right) \cdot \left(a + b\right)\right)\right)\right) \]
      Step-by-step derivation

      [Start]75.7%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \left(\frac{angle \cdot \pi}{180}\right) \cdot \left(a + b\right)\right)\right)\right) \]

      associate-/l* [=>]76.9%

      \[ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\sin \color{blue}{\left(\frac{angle}{\frac{180}{\pi}}\right)} \cdot \left(a + b\right)\right)\right)\right) \]
  3. Recombined 2 regimes into one program.
  4. Final simplification73.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq -2 \cdot 10^{+59}:\\ \;\;\;\;\left(\left(2 \cdot \sin \left({\left(\sqrt{\sqrt[3]{\pi} \cdot {\left(\sqrt[3]{\pi}\right)}^{2}}\right)}^{2} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right) \cdot \left(b \cdot b + a \cdot a\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(\frac{angle}{\frac{180}{\pi}}\right) \cdot \left(\sin \left(\frac{angle}{\frac{180}{\pi}}\right) \cdot \left(b + a\right)\right)\right)\right)\\ \end{array} \]

Alternatives

Alternative 1
Accuracy68.8%
Cost65668
\[\begin{array}{l} t_0 := \frac{angle}{\frac{180}{\pi}}\\ \mathbf{if}\;\frac{angle}{180} \leq -2 \cdot 10^{+59}:\\ \;\;\;\;\left(\left(2 \cdot \sin \left({\left(\sqrt{\sqrt[3]{\pi} \cdot {\left(\sqrt[3]{\pi}\right)}^{2}}\right)}^{2} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right) \cdot \left(b \cdot b + a \cdot a\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(\left(b - a\right) \cdot \left(\cos t_0 \cdot \left(\sin t_0 \cdot \left(b + a\right)\right)\right)\right)\\ \end{array} \]
Alternative 2
Accuracy69.2%
Cost52868
\[\begin{array}{l} t_0 := \frac{angle}{\frac{180}{\pi}}\\ t_1 := \frac{angle}{180} \cdot \pi\\ \mathbf{if}\;{b}^{2} - {a}^{2} \leq -\infty:\\ \;\;\;\;2 \cdot \left(\left(b - a\right) \cdot \left(\cos t_0 \cdot \left(\left(b + a\right) \cdot \sin \left({\left(\sqrt[3]{t_1}\right)}^{3}\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(\left(b - a\right) \cdot \left(\left(\sin t_0 \cdot \left(b + a\right)\right) \cdot \log \left(e^{\cos t_1}\right)\right)\right)\\ \end{array} \]
Alternative 3
Accuracy68.7%
Cost39812
\[\begin{array}{l} \mathbf{if}\;b \leq -2.1 \cdot 10^{+20}:\\ \;\;\;\;2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\left(b + a\right) \cdot \sin \left(\frac{angle}{\frac{180}{\sqrt[3]{{\pi}^{3}}}}\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(\frac{angle}{\frac{180}{\pi}}\right) \cdot \left(\left(b + a\right) \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\right)\right)\\ \end{array} \]
Alternative 4
Accuracy69.2%
Cost39616
\[2 \cdot \left(\left(b - a\right) \cdot \left(\left(\sin \left(\frac{angle}{\frac{180}{\pi}}\right) \cdot \left(b + a\right)\right) \cdot \log \left(e^{\cos \left(\frac{angle}{180} \cdot \pi\right)}\right)\right)\right) \]
Alternative 5
Accuracy66.7%
Cost27080
\[\begin{array}{l} t_0 := \pi \cdot \left(angle \cdot 0.005555555555555556\right)\\ t_1 := \sin t_0\\ \mathbf{if}\;\frac{angle}{180} \leq -1 \cdot 10^{+72}:\\ \;\;\;\;\left(b \cdot b + a \cdot a\right) \cdot \left(2 \cdot t_1\right)\\ \mathbf{elif}\;\frac{angle}{180} \leq -4000:\\ \;\;\;\;-2 \cdot \left(t_1 \cdot \left(\left(a \cdot a\right) \cdot \cos t_0\right)\right)\\ \mathbf{elif}\;\frac{angle}{180} \leq 5 \cdot 10^{+35}:\\ \;\;\;\;2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(\frac{angle}{\frac{180}{\pi}}\right) \cdot \left(\left(b + a\right) \cdot \left(angle \cdot \left(\pi \cdot 0.005555555555555556\right)\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;{\left(b + a\right)}^{2} \cdot \left(2 \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right) \cdot 0.5\right)\right)\\ \end{array} \]
Alternative 6
Accuracy66.6%
Cost27080
\[\begin{array}{l} t_0 := angle \cdot \left(\pi \cdot 0.005555555555555556\right)\\ \mathbf{if}\;\frac{angle}{180} \leq -1 \cdot 10^{+72}:\\ \;\;\;\;\left(b \cdot b + a \cdot a\right) \cdot \left(2 \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\\ \mathbf{elif}\;\frac{angle}{180} \leq -4000:\\ \;\;\;\;\cos \left(\frac{angle}{180} \cdot \pi\right) \cdot \left(\sin t_0 \cdot \left(a \cdot \left(a \cdot -2\right)\right)\right)\\ \mathbf{elif}\;\frac{angle}{180} \leq 5 \cdot 10^{+35}:\\ \;\;\;\;2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(\frac{angle}{\frac{180}{\pi}}\right) \cdot \left(\left(b + a\right) \cdot t_0\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;{\left(b + a\right)}^{2} \cdot \left(2 \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right) \cdot 0.5\right)\right)\\ \end{array} \]
Alternative 7
Accuracy69.0%
Cost27076
\[\begin{array}{l} t_0 := 0.005555555555555556 \cdot \left(angle \cdot \pi\right)\\ \mathbf{if}\;\frac{angle}{180} \leq -2 \cdot 10^{+64}:\\ \;\;\;\;\left(b \cdot b + a \cdot a\right) \cdot \left(2 \cdot \sin \left(\left(angle \cdot 0.005555555555555556\right) \cdot {\left(\sqrt{\pi}\right)}^{2}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(\left(b - a\right) \cdot \left(\cos t_0 \cdot \left(\left(b + a\right) \cdot \sin t_0\right)\right)\right)\\ \end{array} \]
Alternative 8
Accuracy67.0%
Cost26820
\[\begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq -500000:\\ \;\;\;\;\left(b \cdot b + a \cdot a\right) \cdot \left(2 \cdot \sin \left(\left(angle \cdot 0.005555555555555556\right) \cdot {\left(\sqrt{\pi}\right)}^{2}\right)\right)\\ \mathbf{elif}\;\frac{angle}{180} \leq 5 \cdot 10^{+35}:\\ \;\;\;\;2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(\frac{angle}{\frac{180}{\pi}}\right) \cdot \left(\left(b + a\right) \cdot \left(angle \cdot \left(\pi \cdot 0.005555555555555556\right)\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;{\left(b + a\right)}^{2} \cdot \left(2 \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right) \cdot 0.5\right)\right)\\ \end{array} \]
Alternative 9
Accuracy68.8%
Cost26816
\[2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(\frac{angle}{\frac{180}{\pi}}\right) \cdot \left(\left(b + a\right) \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\right)\right) \]
Alternative 10
Accuracy69.2%
Cost26816
\[\begin{array}{l} t_0 := \frac{angle}{\frac{180}{\pi}}\\ 2 \cdot \left(\left(b - a\right) \cdot \left(\cos t_0 \cdot \left(\sin t_0 \cdot \left(b + a\right)\right)\right)\right) \end{array} \]
Alternative 11
Accuracy66.9%
Cost20936
\[\begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq -500000:\\ \;\;\;\;\left(b \cdot b + a \cdot a\right) \cdot \left(2 \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\\ \mathbf{elif}\;\frac{angle}{180} \leq 5 \cdot 10^{+35}:\\ \;\;\;\;2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\left(b + a\right) \cdot \left(angle \cdot \left(\pi \cdot 0.005555555555555556\right)\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;{\left(b + a\right)}^{2} \cdot \left(2 \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right) \cdot 0.5\right)\right)\\ \end{array} \]
Alternative 12
Accuracy66.9%
Cost20936
\[\begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq -500000:\\ \;\;\;\;\left(b \cdot b + a \cdot a\right) \cdot \left(2 \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\\ \mathbf{elif}\;\frac{angle}{180} \leq 5 \cdot 10^{+35}:\\ \;\;\;\;2 \cdot \left(\left(b - a\right) \cdot \left(\cos \left(\frac{angle}{\frac{180}{\pi}}\right) \cdot \left(\left(b + a\right) \cdot \left(angle \cdot \left(\pi \cdot 0.005555555555555556\right)\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;{\left(b + a\right)}^{2} \cdot \left(2 \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right) \cdot 0.5\right)\right)\\ \end{array} \]
Alternative 13
Accuracy67.0%
Cost20552
\[\begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq -2 \cdot 10^{+64}:\\ \;\;\;\;\left(b \cdot b + a \cdot a\right) \cdot \left(2 \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\\ \mathbf{elif}\;\frac{angle}{180} \leq 0.02:\\ \;\;\;\;2 \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{angle}{\frac{180}{\pi}}\right) \cdot \left(b + a\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;{\left(b + a\right)}^{2} \cdot \left(2 \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right) \cdot 0.5\right)\right)\\ \end{array} \]
Alternative 14
Accuracy67.0%
Cost13956
\[\begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq -2 \cdot 10^{+64}:\\ \;\;\;\;\left(b \cdot b + a \cdot a\right) \cdot \left(2 \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{angle}{\frac{180}{\pi}}\right) \cdot \left(b + a\right)\right)\right)\\ \end{array} \]
Alternative 15
Accuracy67.3%
Cost13696
\[2 \cdot \left(\left(b - a\right) \cdot \left(\left(b + a\right) \cdot \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)\right) \]
Alternative 16
Accuracy67.1%
Cost13696
\[2 \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{angle}{\frac{180}{\pi}}\right) \cdot \left(b + a\right)\right)\right) \]
Alternative 17
Accuracy64.1%
Cost7300
\[\begin{array}{l} \mathbf{if}\;angle \leq 9.5 \cdot 10^{+39}:\\ \;\;\;\;\left(\left(b - a\right) \cdot \left(angle \cdot 0.011111111111111112\right)\right) \cdot \left(\pi \cdot \left(b + a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;0.011111111111111112 \cdot \left(angle \cdot \left(\left(b - a\right) \cdot \left(\pi \cdot a\right)\right)\right)\\ \end{array} \]
Alternative 18
Accuracy47.4%
Cost7177
\[\begin{array}{l} \mathbf{if}\;b \leq -1.3 \cdot 10^{-50} \lor \neg \left(b \leq 3 \cdot 10^{+47}\right):\\ \;\;\;\;angle \cdot \left(\pi \cdot \left(\left(b \cdot b\right) \cdot 0.011111111111111112\right)\right)\\ \mathbf{else}:\\ \;\;\;\;-0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(a \cdot a\right)\right)\right)\\ \end{array} \]
Alternative 19
Accuracy47.4%
Cost7177
\[\begin{array}{l} \mathbf{if}\;b \leq -1.5 \cdot 10^{-50} \lor \neg \left(b \leq 5.6 \cdot 10^{+47}\right):\\ \;\;\;\;angle \cdot \left(\pi \cdot \left(\left(b \cdot b\right) \cdot 0.011111111111111112\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\pi \cdot \left(a \cdot a\right)\right) \cdot \left(angle \cdot -0.011111111111111112\right)\\ \end{array} \]
Alternative 20
Accuracy47.4%
Cost7176
\[\begin{array}{l} \mathbf{if}\;b \leq -5.5 \cdot 10^{-52}:\\ \;\;\;\;angle \cdot \left(\pi \cdot \left(\left(b \cdot b\right) \cdot 0.011111111111111112\right)\right)\\ \mathbf{elif}\;b \leq 2.2 \cdot 10^{+48}:\\ \;\;\;\;\left(\pi \cdot \left(a \cdot a\right)\right) \cdot \left(angle \cdot -0.011111111111111112\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle \cdot 0.011111111111111112\right) \cdot \left(\pi \cdot \left(b \cdot b\right)\right)\\ \end{array} \]
Alternative 21
Accuracy48.5%
Cost7176
\[\begin{array}{l} \mathbf{if}\;b \leq -1.1 \cdot 10^{-51}:\\ \;\;\;\;0.011111111111111112 \cdot \left(angle \cdot \left(\left(b - a\right) \cdot \left(\pi \cdot b\right)\right)\right)\\ \mathbf{elif}\;b \leq 1.9 \cdot 10^{+54}:\\ \;\;\;\;\left(\pi \cdot \left(a \cdot a\right)\right) \cdot \left(angle \cdot -0.011111111111111112\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle \cdot 0.011111111111111112\right) \cdot \left(\pi \cdot \left(b \cdot b\right)\right)\\ \end{array} \]
Alternative 22
Accuracy55.6%
Cost7168
\[0.011111111111111112 \cdot \left(angle \cdot \left(\left(b - a\right) \cdot \left(\pi \cdot \left(b + a\right)\right)\right)\right) \]
Alternative 23
Accuracy55.6%
Cost7168
\[angle \cdot \left(0.011111111111111112 \cdot \left(\pi \cdot \left(\left(b - a\right) \cdot \left(b + a\right)\right)\right)\right) \]
Alternative 24
Accuracy35.2%
Cost6912
\[0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(b \cdot b\right)\right)\right) \]
Alternative 25
Accuracy35.3%
Cost6912
\[angle \cdot \left(\pi \cdot \left(\left(b \cdot b\right) \cdot 0.011111111111111112\right)\right) \]

Reproduce?

herbie shell --seed 2023272 
(FPCore (a b angle)
  :name "ab-angle->ABCF B"
  :precision binary64
  (* (* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin (* PI (/ angle 180.0)))) (cos (* PI (/ angle 180.0)))))