ab-angle->ABCF B

Percentage Accurate: 54.0% → 66.8%
Time: 16.0s
Alternatives: 27
Speedup: 10.3×

Specification

?
\[\begin{array}{l} \\ \begin{array}{l} t_0 := \pi \cdot \frac{angle}{180}\\ \left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin t\_0\right) \cdot \cos t\_0 \end{array} \end{array} \]
(FPCore (a b angle)
 :precision binary64
 (let* ((t_0 (* PI (/ angle 180.0))))
   (* (* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin t_0)) (cos t_0))))
double code(double a, double b, double angle) {
	double t_0 = ((double) M_PI) * (angle / 180.0);
	return ((2.0 * (pow(b, 2.0) - pow(a, 2.0))) * sin(t_0)) * cos(t_0);
}
public static double code(double a, double b, double angle) {
	double t_0 = Math.PI * (angle / 180.0);
	return ((2.0 * (Math.pow(b, 2.0) - Math.pow(a, 2.0))) * Math.sin(t_0)) * Math.cos(t_0);
}
def code(a, b, angle):
	t_0 = math.pi * (angle / 180.0)
	return ((2.0 * (math.pow(b, 2.0) - math.pow(a, 2.0))) * math.sin(t_0)) * math.cos(t_0)
function code(a, b, angle)
	t_0 = Float64(pi * Float64(angle / 180.0))
	return Float64(Float64(Float64(2.0 * Float64((b ^ 2.0) - (a ^ 2.0))) * sin(t_0)) * cos(t_0))
end
function tmp = code(a, b, angle)
	t_0 = pi * (angle / 180.0);
	tmp = ((2.0 * ((b ^ 2.0) - (a ^ 2.0))) * sin(t_0)) * cos(t_0);
end
code[a_, b_, angle_] := Block[{t$95$0 = N[(Pi * N[(angle / 180.0), $MachinePrecision]), $MachinePrecision]}, N[(N[(N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision] * N[Cos[t$95$0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := \pi \cdot \frac{angle}{180}\\
\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin t\_0\right) \cdot \cos t\_0
\end{array}
\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 27 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: 54.0% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := \pi \cdot \frac{angle}{180}\\ \left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin t\_0\right) \cdot \cos t\_0 \end{array} \end{array} \]
(FPCore (a b angle)
 :precision binary64
 (let* ((t_0 (* PI (/ angle 180.0))))
   (* (* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin t_0)) (cos t_0))))
double code(double a, double b, double angle) {
	double t_0 = ((double) M_PI) * (angle / 180.0);
	return ((2.0 * (pow(b, 2.0) - pow(a, 2.0))) * sin(t_0)) * cos(t_0);
}
public static double code(double a, double b, double angle) {
	double t_0 = Math.PI * (angle / 180.0);
	return ((2.0 * (Math.pow(b, 2.0) - Math.pow(a, 2.0))) * Math.sin(t_0)) * Math.cos(t_0);
}
def code(a, b, angle):
	t_0 = math.pi * (angle / 180.0)
	return ((2.0 * (math.pow(b, 2.0) - math.pow(a, 2.0))) * math.sin(t_0)) * math.cos(t_0)
function code(a, b, angle)
	t_0 = Float64(pi * Float64(angle / 180.0))
	return Float64(Float64(Float64(2.0 * Float64((b ^ 2.0) - (a ^ 2.0))) * sin(t_0)) * cos(t_0))
end
function tmp = code(a, b, angle)
	t_0 = pi * (angle / 180.0);
	tmp = ((2.0 * ((b ^ 2.0) - (a ^ 2.0))) * sin(t_0)) * cos(t_0);
end
code[a_, b_, angle_] := Block[{t$95$0 = N[(Pi * N[(angle / 180.0), $MachinePrecision]), $MachinePrecision]}, N[(N[(N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision] * N[Cos[t$95$0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := \pi \cdot \frac{angle}{180}\\
\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin t\_0\right) \cdot \cos t\_0
\end{array}
\end{array}

Alternative 1: 66.8% accurate, 0.8× speedup?

\[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ \begin{array}{l} t_0 := \left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\frac{1}{angle\_m}}\right)\right)\right)\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 4 \cdot 10^{+87}:\\ \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(angle\_m \cdot \left(\pi \cdot 0.005555555555555556\right)\right)\\ \mathbf{elif}\;\frac{angle\_m}{180} \leq 5 \cdot 10^{+144}:\\ \;\;\;\;t\_0 \cdot \cos \left(\frac{1}{\frac{180}{angle\_m \cdot \left(\sqrt[3]{\sqrt{\pi}} \cdot {\left(\sqrt{\pi} \cdot \left(\pi \cdot \pi\right)\right)}^{0.3333333333333333}\right)}}\right)\\ \mathbf{else}:\\ \;\;\;\;t\_0 \cdot \cos \left(\frac{1}{\frac{180}{angle\_m \cdot \pi}}\right)\\ \end{array} \end{array} \end{array} \]
a_m = (fabs.f64 a)
angle\_m = (fabs.f64 angle)
angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
(FPCore (angle_s a_m b angle_m)
 :precision binary64
 (let* ((t_0
         (*
          (+ b a_m)
          (*
           (- b a_m)
           (*
            2.0
            (sin (* (/ (sqrt PI) 180.0) (/ (sqrt PI) (/ 1.0 angle_m)))))))))
   (*
    angle_s
    (if (<= (/ angle_m 180.0) 4e+87)
      (*
       (*
        (+ b a_m)
        (* (- b a_m) (* (sin (* PI (* angle_m 0.005555555555555556))) 2.0)))
       (cos (* angle_m (* PI 0.005555555555555556))))
      (if (<= (/ angle_m 180.0) 5e+144)
        (*
         t_0
         (cos
          (/
           1.0
           (/
            180.0
            (*
             angle_m
             (*
              (cbrt (sqrt PI))
              (pow (* (sqrt PI) (* PI PI)) 0.3333333333333333)))))))
        (* t_0 (cos (/ 1.0 (/ 180.0 (* angle_m PI))))))))))
a_m = fabs(a);
angle\_m = fabs(angle);
angle\_s = copysign(1.0, angle);
double code(double angle_s, double a_m, double b, double angle_m) {
	double t_0 = (b + a_m) * ((b - a_m) * (2.0 * sin(((sqrt(((double) M_PI)) / 180.0) * (sqrt(((double) M_PI)) / (1.0 / angle_m))))));
	double tmp;
	if ((angle_m / 180.0) <= 4e+87) {
		tmp = ((b + a_m) * ((b - a_m) * (sin((((double) M_PI) * (angle_m * 0.005555555555555556))) * 2.0))) * cos((angle_m * (((double) M_PI) * 0.005555555555555556)));
	} else if ((angle_m / 180.0) <= 5e+144) {
		tmp = t_0 * cos((1.0 / (180.0 / (angle_m * (cbrt(sqrt(((double) M_PI))) * pow((sqrt(((double) M_PI)) * (((double) M_PI) * ((double) M_PI))), 0.3333333333333333))))));
	} else {
		tmp = t_0 * cos((1.0 / (180.0 / (angle_m * ((double) M_PI)))));
	}
	return angle_s * tmp;
}
a_m = Math.abs(a);
angle\_m = Math.abs(angle);
angle\_s = Math.copySign(1.0, angle);
public static double code(double angle_s, double a_m, double b, double angle_m) {
	double t_0 = (b + a_m) * ((b - a_m) * (2.0 * Math.sin(((Math.sqrt(Math.PI) / 180.0) * (Math.sqrt(Math.PI) / (1.0 / angle_m))))));
	double tmp;
	if ((angle_m / 180.0) <= 4e+87) {
		tmp = ((b + a_m) * ((b - a_m) * (Math.sin((Math.PI * (angle_m * 0.005555555555555556))) * 2.0))) * Math.cos((angle_m * (Math.PI * 0.005555555555555556)));
	} else if ((angle_m / 180.0) <= 5e+144) {
		tmp = t_0 * Math.cos((1.0 / (180.0 / (angle_m * (Math.cbrt(Math.sqrt(Math.PI)) * Math.pow((Math.sqrt(Math.PI) * (Math.PI * Math.PI)), 0.3333333333333333))))));
	} else {
		tmp = t_0 * Math.cos((1.0 / (180.0 / (angle_m * Math.PI))));
	}
	return angle_s * tmp;
}
a_m = abs(a)
angle\_m = abs(angle)
angle\_s = copysign(1.0, angle)
function code(angle_s, a_m, b, angle_m)
	t_0 = Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(2.0 * sin(Float64(Float64(sqrt(pi) / 180.0) * Float64(sqrt(pi) / Float64(1.0 / angle_m)))))))
	tmp = 0.0
	if (Float64(angle_m / 180.0) <= 4e+87)
		tmp = Float64(Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(sin(Float64(pi * Float64(angle_m * 0.005555555555555556))) * 2.0))) * cos(Float64(angle_m * Float64(pi * 0.005555555555555556))));
	elseif (Float64(angle_m / 180.0) <= 5e+144)
		tmp = Float64(t_0 * cos(Float64(1.0 / Float64(180.0 / Float64(angle_m * Float64(cbrt(sqrt(pi)) * (Float64(sqrt(pi) * Float64(pi * pi)) ^ 0.3333333333333333)))))));
	else
		tmp = Float64(t_0 * cos(Float64(1.0 / Float64(180.0 / Float64(angle_m * pi)))));
	end
	return Float64(angle_s * tmp)
end
a_m = N[Abs[a], $MachinePrecision]
angle\_m = N[Abs[angle], $MachinePrecision]
angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[angle$95$s_, a$95$m_, b_, angle$95$m_] := Block[{t$95$0 = N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(2.0 * N[Sin[N[(N[(N[Sqrt[Pi], $MachinePrecision] / 180.0), $MachinePrecision] * N[(N[Sqrt[Pi], $MachinePrecision] / N[(1.0 / angle$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 4e+87], N[(N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(N[Sin[N[(Pi * N[(angle$95$m * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Cos[N[(angle$95$m * N[(Pi * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 5e+144], N[(t$95$0 * N[Cos[N[(1.0 / N[(180.0 / N[(angle$95$m * N[(N[Power[N[Sqrt[Pi], $MachinePrecision], 1/3], $MachinePrecision] * N[Power[N[(N[Sqrt[Pi], $MachinePrecision] * N[(Pi * Pi), $MachinePrecision]), $MachinePrecision], 0.3333333333333333], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[Cos[N[(1.0 / N[(180.0 / N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
a_m = \left|a\right|
\\
angle\_m = \left|angle\right|
\\
angle\_s = \mathsf{copysign}\left(1, angle\right)

\\
\begin{array}{l}
t_0 := \left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\frac{1}{angle\_m}}\right)\right)\right)\\
angle\_s \cdot \begin{array}{l}
\mathbf{if}\;\frac{angle\_m}{180} \leq 4 \cdot 10^{+87}:\\
\;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(angle\_m \cdot \left(\pi \cdot 0.005555555555555556\right)\right)\\

\mathbf{elif}\;\frac{angle\_m}{180} \leq 5 \cdot 10^{+144}:\\
\;\;\;\;t\_0 \cdot \cos \left(\frac{1}{\frac{180}{angle\_m \cdot \left(\sqrt[3]{\sqrt{\pi}} \cdot {\left(\sqrt{\pi} \cdot \left(\pi \cdot \pi\right)\right)}^{0.3333333333333333}\right)}}\right)\\

\mathbf{else}:\\
\;\;\;\;t\_0 \cdot \cos \left(\frac{1}{\frac{180}{angle\_m \cdot \pi}}\right)\\


\end{array}
\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (/.f64 angle #s(literal 180 binary64)) < 3.9999999999999998e87

    1. Initial program 62.1%

      \[\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. Add Preprocessing
    3. Step-by-step derivation
      1. lift-pow.f64N/A

        \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      2. lift-pow.f64N/A

        \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      3. lift--.f64N/A

        \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      4. *-commutativeN/A

        \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      5. lift-PI.f64N/A

        \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      6. lift-/.f64N/A

        \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      7. lift-*.f64N/A

        \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      8. lift-sin.f64N/A

        \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      9. associate-*l*N/A

        \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      10. lift--.f64N/A

        \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      11. lift-pow.f64N/A

        \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      12. unpow2N/A

        \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      13. lift-pow.f64N/A

        \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      14. unpow2N/A

        \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      15. difference-of-squaresN/A

        \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      16. associate-*l*N/A

        \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      17. lower-*.f64N/A

        \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      18. lower-+.f64N/A

        \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      19. *-commutativeN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
    4. Applied egg-rr80.1%

      \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
    5. Step-by-step derivation
      1. lift-PI.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right) \]
      2. div-invN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(angle \cdot \frac{1}{180}\right)}\right) \]
      3. metadata-evalN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \color{blue}{\frac{1}{180}}\right)\right) \]
      4. *-commutativeN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(\frac{1}{180} \cdot angle\right)}\right) \]
      5. associate-*r*N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right)} \]
      6. lower-*.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right)} \]
      7. lower-*.f6479.6

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

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

    if 3.9999999999999998e87 < (/.f64 angle #s(literal 180 binary64)) < 4.9999999999999999e144

    1. Initial program 22.8%

      \[\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. Add Preprocessing
    3. Step-by-step derivation
      1. lift-pow.f64N/A

        \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      2. lift-pow.f64N/A

        \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      3. lift--.f64N/A

        \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      4. *-commutativeN/A

        \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      5. lift-PI.f64N/A

        \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      6. lift-/.f64N/A

        \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      7. lift-*.f64N/A

        \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      8. lift-sin.f64N/A

        \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      9. associate-*l*N/A

        \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      10. lift--.f64N/A

        \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      11. lift-pow.f64N/A

        \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      12. unpow2N/A

        \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      13. lift-pow.f64N/A

        \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      14. unpow2N/A

        \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      15. difference-of-squaresN/A

        \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      16. associate-*l*N/A

        \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      17. lower-*.f64N/A

        \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      18. lower-+.f64N/A

        \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      19. *-commutativeN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
    4. Applied egg-rr23.8%

      \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
    5. Step-by-step derivation
      1. lift-PI.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right) \]
      2. associate-*r/N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{\mathsf{PI}\left(\right) \cdot angle}{180}\right)} \]
      3. *-commutativeN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
      4. lift-*.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
      5. clear-numN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
      6. lower-/.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
      7. lower-/.f6440.5

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\color{blue}{\frac{180}{angle \cdot \pi}}}\right) \]
      8. lift-*.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}}\right) \]
      9. *-commutativeN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\mathsf{PI}\left(\right) \cdot angle}}}\right) \]
      10. lower-*.f6440.5

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

      \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{\pi \cdot angle}}\right)} \]
    7. Step-by-step derivation
      1. lift-PI.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      2. metadata-evalN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \color{blue}{\frac{1}{180}}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      3. div-invN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      4. clear-numN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{1}{\frac{180}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      5. un-div-invN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\mathsf{PI}\left(\right)}{\frac{180}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      6. lift-PI.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\mathsf{PI}\left(\right)}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      7. add-sqr-sqrtN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      8. div-invN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}{\color{blue}{180 \cdot \frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      9. times-fracN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      10. lower-*.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      11. lower-/.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\frac{\sqrt{\mathsf{PI}\left(\right)}}{180}} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      12. lift-PI.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      13. lower-sqrt.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      14. lower-/.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \color{blue}{\frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      15. lift-PI.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      16. lower-sqrt.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      17. lower-/.f6436.2

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\color{blue}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\pi \cdot angle}}\right) \]
    8. Applied egg-rr36.2%

      \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\pi \cdot angle}}\right) \]
    9. Step-by-step derivation
      1. add-cbrt-cubeN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\sqrt[3]{\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \mathsf{PI}\left(\right)}} \cdot angle}}\right) \]
      2. pow1/3N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{{\left(\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \mathsf{PI}\left(\right)\right)}^{\frac{1}{3}}} \cdot angle}}\right) \]
      3. lift-PI.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{{\left(\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}\right)}^{\frac{1}{3}} \cdot angle}}\right) \]
      4. rem-square-sqrtN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{{\left(\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}\right)}\right)}^{\frac{1}{3}} \cdot angle}}\right) \]
      5. lift-sqrt.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{{\left(\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\color{blue}{\sqrt{\mathsf{PI}\left(\right)}} \cdot \sqrt{\mathsf{PI}\left(\right)}\right)\right)}^{\frac{1}{3}} \cdot angle}}\right) \]
      6. lift-sqrt.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{{\left(\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\sqrt{\mathsf{PI}\left(\right)} \cdot \color{blue}{\sqrt{\mathsf{PI}\left(\right)}}\right)\right)}^{\frac{1}{3}} \cdot angle}}\right) \]
      7. associate-*r*N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{{\color{blue}{\left(\left(\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \sqrt{\mathsf{PI}\left(\right)}\right) \cdot \sqrt{\mathsf{PI}\left(\right)}\right)}}^{\frac{1}{3}} \cdot angle}}\right) \]
      8. unpow-prod-downN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\left({\left(\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \sqrt{\mathsf{PI}\left(\right)}\right)}^{\frac{1}{3}} \cdot {\left(\sqrt{\mathsf{PI}\left(\right)}\right)}^{\frac{1}{3}}\right)} \cdot angle}}\right) \]
      9. pow1/3N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\left({\left(\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \sqrt{\mathsf{PI}\left(\right)}\right)}^{\frac{1}{3}} \cdot \color{blue}{\sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}}\right) \cdot angle}}\right) \]
      10. lower-*.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\left({\left(\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \sqrt{\mathsf{PI}\left(\right)}\right)}^{\frac{1}{3}} \cdot \sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right)} \cdot angle}}\right) \]
      11. lower-pow.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\left(\color{blue}{{\left(\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \sqrt{\mathsf{PI}\left(\right)}\right)}^{\frac{1}{3}}} \cdot \sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right) \cdot angle}}\right) \]
      12. lower-*.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\left({\color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \sqrt{\mathsf{PI}\left(\right)}\right)}}^{\frac{1}{3}} \cdot \sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right) \cdot angle}}\right) \]
      13. lift-PI.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\left({\left(\left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \mathsf{PI}\left(\right)\right) \cdot \sqrt{\mathsf{PI}\left(\right)}\right)}^{\frac{1}{3}} \cdot \sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right) \cdot angle}}\right) \]
      14. lift-PI.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\left({\left(\left(\mathsf{PI}\left(\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \sqrt{\mathsf{PI}\left(\right)}\right)}^{\frac{1}{3}} \cdot \sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right) \cdot angle}}\right) \]
      15. lower-*.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\left({\left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}\right)}^{\frac{1}{3}} \cdot \sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right) \cdot angle}}\right) \]
      16. lower-cbrt.f6450.7

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\left({\left(\left(\pi \cdot \pi\right) \cdot \sqrt{\pi}\right)}^{0.3333333333333333} \cdot \color{blue}{\sqrt[3]{\sqrt{\pi}}}\right) \cdot angle}}\right) \]
    10. Applied egg-rr50.7%

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

    if 4.9999999999999999e144 < (/.f64 angle #s(literal 180 binary64))

    1. Initial program 29.6%

      \[\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. Add Preprocessing
    3. Step-by-step derivation
      1. lift-pow.f64N/A

        \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      2. lift-pow.f64N/A

        \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      3. lift--.f64N/A

        \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      4. *-commutativeN/A

        \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      5. lift-PI.f64N/A

        \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      6. lift-/.f64N/A

        \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      7. lift-*.f64N/A

        \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      8. lift-sin.f64N/A

        \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      9. associate-*l*N/A

        \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      10. lift--.f64N/A

        \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      11. lift-pow.f64N/A

        \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      12. unpow2N/A

        \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      13. lift-pow.f64N/A

        \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      14. unpow2N/A

        \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      15. difference-of-squaresN/A

        \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      16. associate-*l*N/A

        \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      17. lower-*.f64N/A

        \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      18. lower-+.f64N/A

        \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      19. *-commutativeN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
    4. Applied egg-rr29.1%

      \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
    5. Step-by-step derivation
      1. lift-PI.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right) \]
      2. associate-*r/N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{\mathsf{PI}\left(\right) \cdot angle}{180}\right)} \]
      3. *-commutativeN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
      4. lift-*.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
      5. clear-numN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
      6. lower-/.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
      7. lower-/.f6431.8

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\color{blue}{\frac{180}{angle \cdot \pi}}}\right) \]
      8. lift-*.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}}\right) \]
      9. *-commutativeN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\mathsf{PI}\left(\right) \cdot angle}}}\right) \]
      10. lower-*.f6431.8

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

      \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{\pi \cdot angle}}\right)} \]
    7. Step-by-step derivation
      1. lift-PI.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      2. metadata-evalN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \color{blue}{\frac{1}{180}}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      3. div-invN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      4. clear-numN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{1}{\frac{180}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      5. un-div-invN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\mathsf{PI}\left(\right)}{\frac{180}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      6. lift-PI.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\mathsf{PI}\left(\right)}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      7. add-sqr-sqrtN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      8. div-invN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}{\color{blue}{180 \cdot \frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      9. times-fracN/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      10. lower-*.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      11. lower-/.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\frac{\sqrt{\mathsf{PI}\left(\right)}}{180}} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      12. lift-PI.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      13. lower-sqrt.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      14. lower-/.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \color{blue}{\frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      15. lift-PI.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      16. lower-sqrt.f64N/A

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
      17. lower-/.f6442.3

        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\color{blue}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\pi \cdot angle}}\right) \]
    8. Applied egg-rr42.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq 4 \cdot 10^{+87}:\\ \;\;\;\;\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(angle \cdot \left(\pi \cdot 0.005555555555555556\right)\right)\\ \mathbf{elif}\;\frac{angle}{180} \leq 5 \cdot 10^{+144}:\\ \;\;\;\;\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\frac{1}{angle}}\right)\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{angle \cdot \left(\sqrt[3]{\sqrt{\pi}} \cdot {\left(\sqrt{\pi} \cdot \left(\pi \cdot \pi\right)\right)}^{0.3333333333333333}\right)}}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\frac{1}{angle}}\right)\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{angle \cdot \pi}}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 63.7% accurate, 0.5× speedup?

\[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ \begin{array}{l} t_0 := \left(\left(b + a\_m\right) \cdot 0.011111111111111112\right) \cdot \left(\left(b - a\_m\right) \cdot \left(angle\_m \cdot \pi\right)\right)\\ t_1 := \frac{angle\_m}{180} \cdot \pi\\ t_2 := \cos t\_1 \cdot \left(\left(2 \cdot \left({b}^{2} - {a\_m}^{2}\right)\right) \cdot \sin t\_1\right)\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;t\_2 \leq -1 \cdot 10^{-304}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+109}:\\ \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_0\\ \end{array} \end{array} \end{array} \]
a_m = (fabs.f64 a)
angle\_m = (fabs.f64 angle)
angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
(FPCore (angle_s a_m b angle_m)
 :precision binary64
 (let* ((t_0
         (* (* (+ b a_m) 0.011111111111111112) (* (- b a_m) (* angle_m PI))))
        (t_1 (* (/ angle_m 180.0) PI))
        (t_2
         (* (cos t_1) (* (* 2.0 (- (pow b 2.0) (pow a_m 2.0))) (sin t_1)))))
   (*
    angle_s
    (if (<= t_2 -1e-304)
      t_0
      (if (<= t_2 5e+109)
        (* (* angle_m PI) (* 0.011111111111111112 (* b b)))
        t_0)))))
a_m = fabs(a);
angle\_m = fabs(angle);
angle\_s = copysign(1.0, angle);
double code(double angle_s, double a_m, double b, double angle_m) {
	double t_0 = ((b + a_m) * 0.011111111111111112) * ((b - a_m) * (angle_m * ((double) M_PI)));
	double t_1 = (angle_m / 180.0) * ((double) M_PI);
	double t_2 = cos(t_1) * ((2.0 * (pow(b, 2.0) - pow(a_m, 2.0))) * sin(t_1));
	double tmp;
	if (t_2 <= -1e-304) {
		tmp = t_0;
	} else if (t_2 <= 5e+109) {
		tmp = (angle_m * ((double) M_PI)) * (0.011111111111111112 * (b * b));
	} else {
		tmp = t_0;
	}
	return angle_s * tmp;
}
a_m = Math.abs(a);
angle\_m = Math.abs(angle);
angle\_s = Math.copySign(1.0, angle);
public static double code(double angle_s, double a_m, double b, double angle_m) {
	double t_0 = ((b + a_m) * 0.011111111111111112) * ((b - a_m) * (angle_m * Math.PI));
	double t_1 = (angle_m / 180.0) * Math.PI;
	double t_2 = Math.cos(t_1) * ((2.0 * (Math.pow(b, 2.0) - Math.pow(a_m, 2.0))) * Math.sin(t_1));
	double tmp;
	if (t_2 <= -1e-304) {
		tmp = t_0;
	} else if (t_2 <= 5e+109) {
		tmp = (angle_m * Math.PI) * (0.011111111111111112 * (b * b));
	} else {
		tmp = t_0;
	}
	return angle_s * tmp;
}
a_m = math.fabs(a)
angle\_m = math.fabs(angle)
angle\_s = math.copysign(1.0, angle)
def code(angle_s, a_m, b, angle_m):
	t_0 = ((b + a_m) * 0.011111111111111112) * ((b - a_m) * (angle_m * math.pi))
	t_1 = (angle_m / 180.0) * math.pi
	t_2 = math.cos(t_1) * ((2.0 * (math.pow(b, 2.0) - math.pow(a_m, 2.0))) * math.sin(t_1))
	tmp = 0
	if t_2 <= -1e-304:
		tmp = t_0
	elif t_2 <= 5e+109:
		tmp = (angle_m * math.pi) * (0.011111111111111112 * (b * b))
	else:
		tmp = t_0
	return angle_s * tmp
a_m = abs(a)
angle\_m = abs(angle)
angle\_s = copysign(1.0, angle)
function code(angle_s, a_m, b, angle_m)
	t_0 = Float64(Float64(Float64(b + a_m) * 0.011111111111111112) * Float64(Float64(b - a_m) * Float64(angle_m * pi)))
	t_1 = Float64(Float64(angle_m / 180.0) * pi)
	t_2 = Float64(cos(t_1) * Float64(Float64(2.0 * Float64((b ^ 2.0) - (a_m ^ 2.0))) * sin(t_1)))
	tmp = 0.0
	if (t_2 <= -1e-304)
		tmp = t_0;
	elseif (t_2 <= 5e+109)
		tmp = Float64(Float64(angle_m * pi) * Float64(0.011111111111111112 * Float64(b * b)));
	else
		tmp = t_0;
	end
	return Float64(angle_s * tmp)
end
a_m = abs(a);
angle\_m = abs(angle);
angle\_s = sign(angle) * abs(1.0);
function tmp_2 = code(angle_s, a_m, b, angle_m)
	t_0 = ((b + a_m) * 0.011111111111111112) * ((b - a_m) * (angle_m * pi));
	t_1 = (angle_m / 180.0) * pi;
	t_2 = cos(t_1) * ((2.0 * ((b ^ 2.0) - (a_m ^ 2.0))) * sin(t_1));
	tmp = 0.0;
	if (t_2 <= -1e-304)
		tmp = t_0;
	elseif (t_2 <= 5e+109)
		tmp = (angle_m * pi) * (0.011111111111111112 * (b * b));
	else
		tmp = t_0;
	end
	tmp_2 = angle_s * tmp;
end
a_m = N[Abs[a], $MachinePrecision]
angle\_m = N[Abs[angle], $MachinePrecision]
angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[angle$95$s_, a$95$m_, b_, angle$95$m_] := Block[{t$95$0 = N[(N[(N[(b + a$95$m), $MachinePrecision] * 0.011111111111111112), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(angle$95$m / 180.0), $MachinePrecision] * Pi), $MachinePrecision]}, Block[{t$95$2 = N[(N[Cos[t$95$1], $MachinePrecision] * N[(N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(angle$95$s * If[LessEqual[t$95$2, -1e-304], t$95$0, If[LessEqual[t$95$2, 5e+109], N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(0.011111111111111112 * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]), $MachinePrecision]]]]
\begin{array}{l}
a_m = \left|a\right|
\\
angle\_m = \left|angle\right|
\\
angle\_s = \mathsf{copysign}\left(1, angle\right)

\\
\begin{array}{l}
t_0 := \left(\left(b + a\_m\right) \cdot 0.011111111111111112\right) \cdot \left(\left(b - a\_m\right) \cdot \left(angle\_m \cdot \pi\right)\right)\\
t_1 := \frac{angle\_m}{180} \cdot \pi\\
t_2 := \cos t\_1 \cdot \left(\left(2 \cdot \left({b}^{2} - {a\_m}^{2}\right)\right) \cdot \sin t\_1\right)\\
angle\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{-304}:\\
\;\;\;\;t\_0\\

\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+109}:\\
\;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\

\mathbf{else}:\\
\;\;\;\;t\_0\\


\end{array}
\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))) (sin.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64))))) (cos.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64))))) < -9.99999999999999971e-305 or 5.0000000000000001e109 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))) (sin.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64))))) (cos.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64)))))

    1. Initial program 46.8%

      \[\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. Add Preprocessing
    3. Taylor expanded in angle around 0

      \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
    4. Step-by-step derivation
      1. *-commutativeN/A

        \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      2. associate-*r*N/A

        \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      3. associate-*l*N/A

        \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      4. lower-*.f64N/A

        \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      5. lower-*.f64N/A

        \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      6. lower-PI.f64N/A

        \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      7. *-commutativeN/A

        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      8. lower-*.f64N/A

        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      9. unpow2N/A

        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      10. unpow2N/A

        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      11. difference-of-squaresN/A

        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      12. lower-*.f64N/A

        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      13. +-commutativeN/A

        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      14. lower-+.f64N/A

        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      15. lower--.f6446.4

        \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
    5. Simplified46.4%

      \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
    6. Taylor expanded in angle around 0

      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
    7. Step-by-step derivation
      1. Simplified41.4%

        \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
      2. Step-by-step derivation
        1. lift-PI.f64N/A

          \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
        2. *-commutativeN/A

          \[\leadsto \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
        3. lift-+.f64N/A

          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
        4. lift--.f64N/A

          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot 1 \]
        5. *-commutativeN/A

          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
        6. lift-*.f64N/A

          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
        7. remove-double-divN/A

          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\frac{1}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
        8. lift-/.f64N/A

          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \frac{1}{\color{blue}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
        9. div-invN/A

          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \color{blue}{\frac{\frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right) \cdot 1 \]
        10. lift-*.f64N/A

          \[\leadsto \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \frac{\frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}\right) \cdot 1 \]
        11. lift-/.f64N/A

          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{\frac{1}{90}}{\color{blue}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right) \cdot 1 \]
        12. associate-/r/N/A

          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \color{blue}{\left(\frac{\frac{1}{90}}{1} \cdot \left(\left(b - a\right) \cdot \left(a + b\right)\right)\right)}\right) \cdot 1 \]
        13. metadata-evalN/A

          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\color{blue}{\frac{1}{90}} \cdot \left(\left(b - a\right) \cdot \left(a + b\right)\right)\right)\right) \cdot 1 \]
        14. lift-*.f64N/A

          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
        15. *-commutativeN/A

          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(a + b\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot 1 \]
        16. lift-*.f64N/A

          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(a + b\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot 1 \]
        17. lift-*.f64N/A

          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)}\right) \cdot 1 \]
        18. *-commutativeN/A

          \[\leadsto \color{blue}{\left(\left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right) \cdot \left(\mathsf{PI}\left(\right) \cdot angle\right)\right)} \cdot 1 \]
      3. Applied egg-rr57.9%

        \[\leadsto \color{blue}{\left(\left(0.011111111111111112 \cdot \left(a + b\right)\right) \cdot \left(\left(b - a\right) \cdot \left(\pi \cdot angle\right)\right)\right)} \cdot 1 \]

      if -9.99999999999999971e-305 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))) (sin.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64))))) (cos.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64))))) < 5.0000000000000001e109

      1. Initial program 78.8%

        \[\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. Add Preprocessing
      3. Taylor expanded in angle around 0

        \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
      4. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
        2. associate-*r*N/A

          \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
        3. associate-*l*N/A

          \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
        4. lower-*.f64N/A

          \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
        5. lower-*.f64N/A

          \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
        6. lower-PI.f64N/A

          \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
        7. *-commutativeN/A

          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
        8. lower-*.f64N/A

          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
        9. unpow2N/A

          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
        10. unpow2N/A

          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
        11. difference-of-squaresN/A

          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
        12. lower-*.f64N/A

          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
        13. +-commutativeN/A

          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
        14. lower-+.f64N/A

          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
        15. lower--.f6474.7

          \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
      5. Simplified74.7%

        \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
      6. Taylor expanded in angle around 0

        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
      7. Step-by-step derivation
        1. Simplified74.6%

          \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
        2. Taylor expanded in a around 0

          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot {b}^{2}\right)}\right) \cdot 1 \]
        3. Step-by-step derivation
          1. lower-*.f64N/A

            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot {b}^{2}\right)}\right) \cdot 1 \]
          2. unpow2N/A

            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \cdot 1 \]
          3. lower-*.f6449.2

            \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \cdot 1 \]
        4. Simplified49.2%

          \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \color{blue}{\left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)}\right) \cdot 1 \]
      8. Recombined 2 regimes into one program.
      9. Final simplification55.8%

        \[\leadsto \begin{array}{l} \mathbf{if}\;\cos \left(\frac{angle}{180} \cdot \pi\right) \cdot \left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \leq -1 \cdot 10^{-304}:\\ \;\;\;\;\left(\left(b + a\right) \cdot 0.011111111111111112\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \pi\right)\right)\\ \mathbf{elif}\;\cos \left(\frac{angle}{180} \cdot \pi\right) \cdot \left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \leq 5 \cdot 10^{+109}:\\ \;\;\;\;\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b + a\right) \cdot 0.011111111111111112\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \pi\right)\right)\\ \end{array} \]
      10. Add Preprocessing

      Alternative 3: 66.9% accurate, 0.6× speedup?

      \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ \begin{array}{l} t_0 := \frac{angle\_m}{180} \cdot \pi\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\cos t\_0 \cdot \left(\left(2 \cdot \left({b}^{2} - {a\_m}^{2}\right)\right) \cdot \sin t\_0\right) \leq -1 \cdot 10^{+284}:\\ \;\;\;\;\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{angle\_m \cdot \pi}{180}\right)\\ \end{array} \end{array} \end{array} \]
      a_m = (fabs.f64 a)
      angle\_m = (fabs.f64 angle)
      angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
      (FPCore (angle_s a_m b angle_m)
       :precision binary64
       (let* ((t_0 (* (/ angle_m 180.0) PI)))
         (*
          angle_s
          (if (<=
               (* (cos t_0) (* (* 2.0 (- (pow b 2.0) (pow a_m 2.0))) (sin t_0)))
               -1e+284)
            (*
             (+ b a_m)
             (* (- b a_m) (* 2.0 (sin (* 0.005555555555555556 (* angle_m PI))))))
            (*
             (*
              (+ b a_m)
              (* (- b a_m) (* (sin (* PI (* angle_m 0.005555555555555556))) 2.0)))
             (cos (/ (* angle_m PI) 180.0)))))))
      a_m = fabs(a);
      angle\_m = fabs(angle);
      angle\_s = copysign(1.0, angle);
      double code(double angle_s, double a_m, double b, double angle_m) {
      	double t_0 = (angle_m / 180.0) * ((double) M_PI);
      	double tmp;
      	if ((cos(t_0) * ((2.0 * (pow(b, 2.0) - pow(a_m, 2.0))) * sin(t_0))) <= -1e+284) {
      		tmp = (b + a_m) * ((b - a_m) * (2.0 * sin((0.005555555555555556 * (angle_m * ((double) M_PI))))));
      	} else {
      		tmp = ((b + a_m) * ((b - a_m) * (sin((((double) M_PI) * (angle_m * 0.005555555555555556))) * 2.0))) * cos(((angle_m * ((double) M_PI)) / 180.0));
      	}
      	return angle_s * tmp;
      }
      
      a_m = Math.abs(a);
      angle\_m = Math.abs(angle);
      angle\_s = Math.copySign(1.0, angle);
      public static double code(double angle_s, double a_m, double b, double angle_m) {
      	double t_0 = (angle_m / 180.0) * Math.PI;
      	double tmp;
      	if ((Math.cos(t_0) * ((2.0 * (Math.pow(b, 2.0) - Math.pow(a_m, 2.0))) * Math.sin(t_0))) <= -1e+284) {
      		tmp = (b + a_m) * ((b - a_m) * (2.0 * Math.sin((0.005555555555555556 * (angle_m * Math.PI)))));
      	} else {
      		tmp = ((b + a_m) * ((b - a_m) * (Math.sin((Math.PI * (angle_m * 0.005555555555555556))) * 2.0))) * Math.cos(((angle_m * Math.PI) / 180.0));
      	}
      	return angle_s * tmp;
      }
      
      a_m = math.fabs(a)
      angle\_m = math.fabs(angle)
      angle\_s = math.copysign(1.0, angle)
      def code(angle_s, a_m, b, angle_m):
      	t_0 = (angle_m / 180.0) * math.pi
      	tmp = 0
      	if (math.cos(t_0) * ((2.0 * (math.pow(b, 2.0) - math.pow(a_m, 2.0))) * math.sin(t_0))) <= -1e+284:
      		tmp = (b + a_m) * ((b - a_m) * (2.0 * math.sin((0.005555555555555556 * (angle_m * math.pi)))))
      	else:
      		tmp = ((b + a_m) * ((b - a_m) * (math.sin((math.pi * (angle_m * 0.005555555555555556))) * 2.0))) * math.cos(((angle_m * math.pi) / 180.0))
      	return angle_s * tmp
      
      a_m = abs(a)
      angle\_m = abs(angle)
      angle\_s = copysign(1.0, angle)
      function code(angle_s, a_m, b, angle_m)
      	t_0 = Float64(Float64(angle_m / 180.0) * pi)
      	tmp = 0.0
      	if (Float64(cos(t_0) * Float64(Float64(2.0 * Float64((b ^ 2.0) - (a_m ^ 2.0))) * sin(t_0))) <= -1e+284)
      		tmp = Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(2.0 * sin(Float64(0.005555555555555556 * Float64(angle_m * pi))))));
      	else
      		tmp = Float64(Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(sin(Float64(pi * Float64(angle_m * 0.005555555555555556))) * 2.0))) * cos(Float64(Float64(angle_m * pi) / 180.0)));
      	end
      	return Float64(angle_s * tmp)
      end
      
      a_m = abs(a);
      angle\_m = abs(angle);
      angle\_s = sign(angle) * abs(1.0);
      function tmp_2 = code(angle_s, a_m, b, angle_m)
      	t_0 = (angle_m / 180.0) * pi;
      	tmp = 0.0;
      	if ((cos(t_0) * ((2.0 * ((b ^ 2.0) - (a_m ^ 2.0))) * sin(t_0))) <= -1e+284)
      		tmp = (b + a_m) * ((b - a_m) * (2.0 * sin((0.005555555555555556 * (angle_m * pi)))));
      	else
      		tmp = ((b + a_m) * ((b - a_m) * (sin((pi * (angle_m * 0.005555555555555556))) * 2.0))) * cos(((angle_m * pi) / 180.0));
      	end
      	tmp_2 = angle_s * tmp;
      end
      
      a_m = N[Abs[a], $MachinePrecision]
      angle\_m = N[Abs[angle], $MachinePrecision]
      angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
      code[angle$95$s_, a$95$m_, b_, angle$95$m_] := Block[{t$95$0 = N[(N[(angle$95$m / 180.0), $MachinePrecision] * Pi), $MachinePrecision]}, N[(angle$95$s * If[LessEqual[N[(N[Cos[t$95$0], $MachinePrecision] * N[(N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -1e+284], N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(2.0 * N[Sin[N[(0.005555555555555556 * N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(N[Sin[N[(Pi * N[(angle$95$m * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Cos[N[(N[(angle$95$m * Pi), $MachinePrecision] / 180.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]
      
      \begin{array}{l}
      a_m = \left|a\right|
      \\
      angle\_m = \left|angle\right|
      \\
      angle\_s = \mathsf{copysign}\left(1, angle\right)
      
      \\
      \begin{array}{l}
      t_0 := \frac{angle\_m}{180} \cdot \pi\\
      angle\_s \cdot \begin{array}{l}
      \mathbf{if}\;\cos t\_0 \cdot \left(\left(2 \cdot \left({b}^{2} - {a\_m}^{2}\right)\right) \cdot \sin t\_0\right) \leq -1 \cdot 10^{+284}:\\
      \;\;\;\;\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{angle\_m \cdot \pi}{180}\right)\\
      
      
      \end{array}
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))) (sin.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64))))) (cos.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64))))) < -1.00000000000000008e284

        1. Initial program 61.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. Add Preprocessing
        3. Step-by-step derivation
          1. lift-pow.f64N/A

            \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          2. lift-pow.f64N/A

            \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          3. lift--.f64N/A

            \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          4. *-commutativeN/A

            \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          5. lift-PI.f64N/A

            \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          6. lift-/.f64N/A

            \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          7. lift-*.f64N/A

            \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          8. lift-sin.f64N/A

            \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          9. associate-*l*N/A

            \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          10. lift--.f64N/A

            \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          11. lift-pow.f64N/A

            \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          12. unpow2N/A

            \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          13. lift-pow.f64N/A

            \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          14. unpow2N/A

            \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          15. difference-of-squaresN/A

            \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          16. associate-*l*N/A

            \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          17. lower-*.f64N/A

            \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          18. lower-+.f64N/A

            \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          19. *-commutativeN/A

            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
        4. Applied egg-rr82.7%

          \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
        5. Step-by-step derivation
          1. lift-PI.f64N/A

            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          2. associate-*r*N/A

            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          3. *-commutativeN/A

            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          4. lift-*.f64N/A

            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          5. lower-*.f6482.8

            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(angle \cdot \pi\right) \cdot 0.005555555555555556\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
          6. lift-*.f64N/A

            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          7. *-commutativeN/A

            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          8. lower-*.f6482.8

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

          \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(\pi \cdot angle\right) \cdot 0.005555555555555556\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
        7. Taylor expanded in angle around 0

          \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \color{blue}{1} \]
        8. Step-by-step derivation
          1. Simplified78.6%

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

          if -1.00000000000000008e284 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))) (sin.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64))))) (cos.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64)))))

          1. Initial program 52.8%

            \[\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. Add Preprocessing
          3. Step-by-step derivation
            1. lift-pow.f64N/A

              \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            2. lift-pow.f64N/A

              \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            3. lift--.f64N/A

              \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            4. *-commutativeN/A

              \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            5. lift-PI.f64N/A

              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            6. lift-/.f64N/A

              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            7. lift-*.f64N/A

              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            8. lift-sin.f64N/A

              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            9. associate-*l*N/A

              \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            10. lift--.f64N/A

              \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            11. lift-pow.f64N/A

              \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            12. unpow2N/A

              \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            13. lift-pow.f64N/A

              \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            14. unpow2N/A

              \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            15. difference-of-squaresN/A

              \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            16. associate-*l*N/A

              \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            17. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            18. lower-+.f64N/A

              \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            19. *-commutativeN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          4. Applied egg-rr65.2%

            \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
          5. Step-by-step derivation
            1. lift-PI.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right) \]
            2. associate-*r/N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{\mathsf{PI}\left(\right) \cdot angle}{180}\right)} \]
            3. *-commutativeN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
            4. lift-*.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
            5. lower-/.f6466.1

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{angle \cdot \pi}{180}\right)} \]
            6. lift-*.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
            7. *-commutativeN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{\mathsf{PI}\left(\right) \cdot angle}}{180}\right) \]
            8. lower-*.f6466.1

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

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

          \[\leadsto \begin{array}{l} \mathbf{if}\;\cos \left(\frac{angle}{180} \cdot \pi\right) \cdot \left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \leq -1 \cdot 10^{+284}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{angle \cdot \pi}{180}\right)\\ \end{array} \]
        11. Add Preprocessing

        Alternative 4: 66.8% accurate, 0.6× speedup?

        \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ \begin{array}{l} t_0 := {\left(\sqrt[3]{\sqrt{\pi}}\right)}^{3}\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 6 \cdot 10^{+149}:\\ \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{angle\_m \cdot \left(t\_0 \cdot t\_0\right)}}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\frac{1}{angle\_m}}\right)\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{angle\_m \cdot \pi}}\right)\\ \end{array} \end{array} \end{array} \]
        a_m = (fabs.f64 a)
        angle\_m = (fabs.f64 angle)
        angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
        (FPCore (angle_s a_m b angle_m)
         :precision binary64
         (let* ((t_0 (pow (cbrt (sqrt PI)) 3.0)))
           (*
            angle_s
            (if (<= (/ angle_m 180.0) 6e+149)
              (*
               (*
                (+ b a_m)
                (* (- b a_m) (* (sin (* PI (* angle_m 0.005555555555555556))) 2.0)))
               (cos (/ 1.0 (/ 180.0 (* angle_m (* t_0 t_0))))))
              (*
               (*
                (+ b a_m)
                (*
                 (- b a_m)
                 (* 2.0 (sin (* (/ (sqrt PI) 180.0) (/ (sqrt PI) (/ 1.0 angle_m)))))))
               (cos (/ 1.0 (/ 180.0 (* angle_m PI)))))))))
        a_m = fabs(a);
        angle\_m = fabs(angle);
        angle\_s = copysign(1.0, angle);
        double code(double angle_s, double a_m, double b, double angle_m) {
        	double t_0 = pow(cbrt(sqrt(((double) M_PI))), 3.0);
        	double tmp;
        	if ((angle_m / 180.0) <= 6e+149) {
        		tmp = ((b + a_m) * ((b - a_m) * (sin((((double) M_PI) * (angle_m * 0.005555555555555556))) * 2.0))) * cos((1.0 / (180.0 / (angle_m * (t_0 * t_0)))));
        	} else {
        		tmp = ((b + a_m) * ((b - a_m) * (2.0 * sin(((sqrt(((double) M_PI)) / 180.0) * (sqrt(((double) M_PI)) / (1.0 / angle_m))))))) * cos((1.0 / (180.0 / (angle_m * ((double) M_PI)))));
        	}
        	return angle_s * tmp;
        }
        
        a_m = Math.abs(a);
        angle\_m = Math.abs(angle);
        angle\_s = Math.copySign(1.0, angle);
        public static double code(double angle_s, double a_m, double b, double angle_m) {
        	double t_0 = Math.pow(Math.cbrt(Math.sqrt(Math.PI)), 3.0);
        	double tmp;
        	if ((angle_m / 180.0) <= 6e+149) {
        		tmp = ((b + a_m) * ((b - a_m) * (Math.sin((Math.PI * (angle_m * 0.005555555555555556))) * 2.0))) * Math.cos((1.0 / (180.0 / (angle_m * (t_0 * t_0)))));
        	} else {
        		tmp = ((b + a_m) * ((b - a_m) * (2.0 * Math.sin(((Math.sqrt(Math.PI) / 180.0) * (Math.sqrt(Math.PI) / (1.0 / angle_m))))))) * Math.cos((1.0 / (180.0 / (angle_m * Math.PI))));
        	}
        	return angle_s * tmp;
        }
        
        a_m = abs(a)
        angle\_m = abs(angle)
        angle\_s = copysign(1.0, angle)
        function code(angle_s, a_m, b, angle_m)
        	t_0 = cbrt(sqrt(pi)) ^ 3.0
        	tmp = 0.0
        	if (Float64(angle_m / 180.0) <= 6e+149)
        		tmp = Float64(Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(sin(Float64(pi * Float64(angle_m * 0.005555555555555556))) * 2.0))) * cos(Float64(1.0 / Float64(180.0 / Float64(angle_m * Float64(t_0 * t_0))))));
        	else
        		tmp = Float64(Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(2.0 * sin(Float64(Float64(sqrt(pi) / 180.0) * Float64(sqrt(pi) / Float64(1.0 / angle_m))))))) * cos(Float64(1.0 / Float64(180.0 / Float64(angle_m * pi)))));
        	end
        	return Float64(angle_s * tmp)
        end
        
        a_m = N[Abs[a], $MachinePrecision]
        angle\_m = N[Abs[angle], $MachinePrecision]
        angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
        code[angle$95$s_, a$95$m_, b_, angle$95$m_] := Block[{t$95$0 = N[Power[N[Power[N[Sqrt[Pi], $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]}, N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 6e+149], N[(N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(N[Sin[N[(Pi * N[(angle$95$m * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Cos[N[(1.0 / N[(180.0 / N[(angle$95$m * N[(t$95$0 * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(2.0 * N[Sin[N[(N[(N[Sqrt[Pi], $MachinePrecision] / 180.0), $MachinePrecision] * N[(N[Sqrt[Pi], $MachinePrecision] / N[(1.0 / angle$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Cos[N[(1.0 / N[(180.0 / N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]
        
        \begin{array}{l}
        a_m = \left|a\right|
        \\
        angle\_m = \left|angle\right|
        \\
        angle\_s = \mathsf{copysign}\left(1, angle\right)
        
        \\
        \begin{array}{l}
        t_0 := {\left(\sqrt[3]{\sqrt{\pi}}\right)}^{3}\\
        angle\_s \cdot \begin{array}{l}
        \mathbf{if}\;\frac{angle\_m}{180} \leq 6 \cdot 10^{+149}:\\
        \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{angle\_m \cdot \left(t\_0 \cdot t\_0\right)}}\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\frac{1}{angle\_m}}\right)\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{angle\_m \cdot \pi}}\right)\\
        
        
        \end{array}
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if (/.f64 angle #s(literal 180 binary64)) < 6.00000000000000007e149

          1. Initial program 58.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. Add Preprocessing
          3. Step-by-step derivation
            1. lift-pow.f64N/A

              \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            2. lift-pow.f64N/A

              \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            3. lift--.f64N/A

              \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            4. *-commutativeN/A

              \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            5. lift-PI.f64N/A

              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            6. lift-/.f64N/A

              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            7. lift-*.f64N/A

              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            8. lift-sin.f64N/A

              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            9. associate-*l*N/A

              \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            10. lift--.f64N/A

              \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            11. lift-pow.f64N/A

              \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            12. unpow2N/A

              \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            13. lift-pow.f64N/A

              \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            14. unpow2N/A

              \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            15. difference-of-squaresN/A

              \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            16. associate-*l*N/A

              \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            17. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            18. lower-+.f64N/A

              \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            19. *-commutativeN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          4. Applied egg-rr75.2%

            \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
          5. Step-by-step derivation
            1. lift-PI.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right) \]
            2. associate-*r/N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{\mathsf{PI}\left(\right) \cdot angle}{180}\right)} \]
            3. *-commutativeN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
            4. lift-*.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
            5. clear-numN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
            6. lower-/.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
            7. lower-/.f6475.7

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\color{blue}{\frac{180}{angle \cdot \pi}}}\right) \]
            8. lift-*.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}}\right) \]
            9. *-commutativeN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\mathsf{PI}\left(\right) \cdot angle}}}\right) \]
            10. lower-*.f6475.7

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

            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{\pi \cdot angle}}\right)} \]
          7. Step-by-step derivation
            1. add-cube-cbrtN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\left(\left(\sqrt[3]{\mathsf{PI}\left(\right)} \cdot \sqrt[3]{\mathsf{PI}\left(\right)}\right) \cdot \sqrt[3]{\mathsf{PI}\left(\right)}\right)} \cdot angle}}\right) \]
            2. pow3N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}^{3}} \cdot angle}}\right) \]
            3. add-sqr-sqrtN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{{\left(\sqrt[3]{\color{blue}{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}}\right)}^{3} \cdot angle}}\right) \]
            4. cbrt-prodN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{{\color{blue}{\left(\sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}} \cdot \sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right)}}^{3} \cdot angle}}\right) \]
            5. unpow-prod-downN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\left({\left(\sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right)}^{3} \cdot {\left(\sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right)}^{3}\right)} \cdot angle}}\right) \]
            6. lower-*.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\left({\left(\sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right)}^{3} \cdot {\left(\sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right)}^{3}\right)} \cdot angle}}\right) \]
            7. lower-pow.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\left(\color{blue}{{\left(\sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right)}^{3}} \cdot {\left(\sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right)}^{3}\right) \cdot angle}}\right) \]
            8. lower-cbrt.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\left({\color{blue}{\left(\sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right)}}^{3} \cdot {\left(\sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right)}^{3}\right) \cdot angle}}\right) \]
            9. lift-PI.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\left({\left(\sqrt[3]{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}\right)}^{3} \cdot {\left(\sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right)}^{3}\right) \cdot angle}}\right) \]
            10. lower-sqrt.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\left({\left(\sqrt[3]{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}\right)}^{3} \cdot {\left(\sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right)}^{3}\right) \cdot angle}}\right) \]
            11. lower-pow.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\left({\left(\sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right)}^{3} \cdot \color{blue}{{\left(\sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right)}^{3}}\right) \cdot angle}}\right) \]
            12. lower-cbrt.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\left({\left(\sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right)}^{3} \cdot {\color{blue}{\left(\sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right)}}^{3}\right) \cdot angle}}\right) \]
            13. lift-PI.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\left({\left(\sqrt[3]{\sqrt{\mathsf{PI}\left(\right)}}\right)}^{3} \cdot {\left(\sqrt[3]{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}\right)}^{3}\right) \cdot angle}}\right) \]
            14. lower-sqrt.f6474.4

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\left({\left(\sqrt[3]{\sqrt{\pi}}\right)}^{3} \cdot {\left(\sqrt[3]{\color{blue}{\sqrt{\pi}}}\right)}^{3}\right) \cdot angle}}\right) \]
          8. Applied egg-rr74.4%

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

          if 6.00000000000000007e149 < (/.f64 angle #s(literal 180 binary64))

          1. Initial program 29.9%

            \[\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. Add Preprocessing
          3. Step-by-step derivation
            1. lift-pow.f64N/A

              \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            2. lift-pow.f64N/A

              \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            3. lift--.f64N/A

              \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            4. *-commutativeN/A

              \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            5. lift-PI.f64N/A

              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            6. lift-/.f64N/A

              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            7. lift-*.f64N/A

              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            8. lift-sin.f64N/A

              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            9. associate-*l*N/A

              \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            10. lift--.f64N/A

              \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            11. lift-pow.f64N/A

              \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            12. unpow2N/A

              \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            13. lift-pow.f64N/A

              \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            14. unpow2N/A

              \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            15. difference-of-squaresN/A

              \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            16. associate-*l*N/A

              \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            17. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            18. lower-+.f64N/A

              \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            19. *-commutativeN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          4. Applied egg-rr29.4%

            \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
          5. Step-by-step derivation
            1. lift-PI.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right) \]
            2. associate-*r/N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{\mathsf{PI}\left(\right) \cdot angle}{180}\right)} \]
            3. *-commutativeN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
            4. lift-*.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
            5. clear-numN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
            6. lower-/.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
            7. lower-/.f6432.7

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\color{blue}{\frac{180}{angle \cdot \pi}}}\right) \]
            8. lift-*.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}}\right) \]
            9. *-commutativeN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\mathsf{PI}\left(\right) \cdot angle}}}\right) \]
            10. lower-*.f6432.7

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

            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{\pi \cdot angle}}\right)} \]
          7. Step-by-step derivation
            1. lift-PI.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
            2. metadata-evalN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \color{blue}{\frac{1}{180}}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
            3. div-invN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
            4. clear-numN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{1}{\frac{180}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
            5. un-div-invN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\mathsf{PI}\left(\right)}{\frac{180}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
            6. lift-PI.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\mathsf{PI}\left(\right)}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
            7. add-sqr-sqrtN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
            8. div-invN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}{\color{blue}{180 \cdot \frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
            9. times-fracN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
            10. lower-*.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
            11. lower-/.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\frac{\sqrt{\mathsf{PI}\left(\right)}}{180}} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
            12. lift-PI.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
            13. lower-sqrt.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
            14. lower-/.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \color{blue}{\frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
            15. lift-PI.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
            16. lower-sqrt.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
            17. lower-/.f6443.4

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\color{blue}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\pi \cdot angle}}\right) \]
          8. Applied egg-rr43.4%

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

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

        Alternative 5: 66.9% accurate, 0.6× speedup?

        \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ \begin{array}{l} t_0 := \frac{angle\_m}{180} \cdot \pi\\ t_1 := 0.005555555555555556 \cdot \left(angle\_m \cdot \pi\right)\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\cos t\_0 \cdot \left(\left(2 \cdot \left({b}^{2} - {a\_m}^{2}\right)\right) \cdot \sin t\_0\right) \leq -1 \cdot 10^{+284}:\\ \;\;\;\;\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin t\_1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos t\_1\\ \end{array} \end{array} \end{array} \]
        a_m = (fabs.f64 a)
        angle\_m = (fabs.f64 angle)
        angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
        (FPCore (angle_s a_m b angle_m)
         :precision binary64
         (let* ((t_0 (* (/ angle_m 180.0) PI))
                (t_1 (* 0.005555555555555556 (* angle_m PI))))
           (*
            angle_s
            (if (<=
                 (* (cos t_0) (* (* 2.0 (- (pow b 2.0) (pow a_m 2.0))) (sin t_0)))
                 -1e+284)
              (* (+ b a_m) (* (- b a_m) (* 2.0 (sin t_1))))
              (*
               (*
                (+ b a_m)
                (* (- b a_m) (* (sin (* PI (* angle_m 0.005555555555555556))) 2.0)))
               (cos t_1))))))
        a_m = fabs(a);
        angle\_m = fabs(angle);
        angle\_s = copysign(1.0, angle);
        double code(double angle_s, double a_m, double b, double angle_m) {
        	double t_0 = (angle_m / 180.0) * ((double) M_PI);
        	double t_1 = 0.005555555555555556 * (angle_m * ((double) M_PI));
        	double tmp;
        	if ((cos(t_0) * ((2.0 * (pow(b, 2.0) - pow(a_m, 2.0))) * sin(t_0))) <= -1e+284) {
        		tmp = (b + a_m) * ((b - a_m) * (2.0 * sin(t_1)));
        	} else {
        		tmp = ((b + a_m) * ((b - a_m) * (sin((((double) M_PI) * (angle_m * 0.005555555555555556))) * 2.0))) * cos(t_1);
        	}
        	return angle_s * tmp;
        }
        
        a_m = Math.abs(a);
        angle\_m = Math.abs(angle);
        angle\_s = Math.copySign(1.0, angle);
        public static double code(double angle_s, double a_m, double b, double angle_m) {
        	double t_0 = (angle_m / 180.0) * Math.PI;
        	double t_1 = 0.005555555555555556 * (angle_m * Math.PI);
        	double tmp;
        	if ((Math.cos(t_0) * ((2.0 * (Math.pow(b, 2.0) - Math.pow(a_m, 2.0))) * Math.sin(t_0))) <= -1e+284) {
        		tmp = (b + a_m) * ((b - a_m) * (2.0 * Math.sin(t_1)));
        	} else {
        		tmp = ((b + a_m) * ((b - a_m) * (Math.sin((Math.PI * (angle_m * 0.005555555555555556))) * 2.0))) * Math.cos(t_1);
        	}
        	return angle_s * tmp;
        }
        
        a_m = math.fabs(a)
        angle\_m = math.fabs(angle)
        angle\_s = math.copysign(1.0, angle)
        def code(angle_s, a_m, b, angle_m):
        	t_0 = (angle_m / 180.0) * math.pi
        	t_1 = 0.005555555555555556 * (angle_m * math.pi)
        	tmp = 0
        	if (math.cos(t_0) * ((2.0 * (math.pow(b, 2.0) - math.pow(a_m, 2.0))) * math.sin(t_0))) <= -1e+284:
        		tmp = (b + a_m) * ((b - a_m) * (2.0 * math.sin(t_1)))
        	else:
        		tmp = ((b + a_m) * ((b - a_m) * (math.sin((math.pi * (angle_m * 0.005555555555555556))) * 2.0))) * math.cos(t_1)
        	return angle_s * tmp
        
        a_m = abs(a)
        angle\_m = abs(angle)
        angle\_s = copysign(1.0, angle)
        function code(angle_s, a_m, b, angle_m)
        	t_0 = Float64(Float64(angle_m / 180.0) * pi)
        	t_1 = Float64(0.005555555555555556 * Float64(angle_m * pi))
        	tmp = 0.0
        	if (Float64(cos(t_0) * Float64(Float64(2.0 * Float64((b ^ 2.0) - (a_m ^ 2.0))) * sin(t_0))) <= -1e+284)
        		tmp = Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(2.0 * sin(t_1))));
        	else
        		tmp = Float64(Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(sin(Float64(pi * Float64(angle_m * 0.005555555555555556))) * 2.0))) * cos(t_1));
        	end
        	return Float64(angle_s * tmp)
        end
        
        a_m = abs(a);
        angle\_m = abs(angle);
        angle\_s = sign(angle) * abs(1.0);
        function tmp_2 = code(angle_s, a_m, b, angle_m)
        	t_0 = (angle_m / 180.0) * pi;
        	t_1 = 0.005555555555555556 * (angle_m * pi);
        	tmp = 0.0;
        	if ((cos(t_0) * ((2.0 * ((b ^ 2.0) - (a_m ^ 2.0))) * sin(t_0))) <= -1e+284)
        		tmp = (b + a_m) * ((b - a_m) * (2.0 * sin(t_1)));
        	else
        		tmp = ((b + a_m) * ((b - a_m) * (sin((pi * (angle_m * 0.005555555555555556))) * 2.0))) * cos(t_1);
        	end
        	tmp_2 = angle_s * tmp;
        end
        
        a_m = N[Abs[a], $MachinePrecision]
        angle\_m = N[Abs[angle], $MachinePrecision]
        angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
        code[angle$95$s_, a$95$m_, b_, angle$95$m_] := Block[{t$95$0 = N[(N[(angle$95$m / 180.0), $MachinePrecision] * Pi), $MachinePrecision]}, Block[{t$95$1 = N[(0.005555555555555556 * N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]}, N[(angle$95$s * If[LessEqual[N[(N[Cos[t$95$0], $MachinePrecision] * N[(N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -1e+284], N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(2.0 * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(N[Sin[N[(Pi * N[(angle$95$m * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Cos[t$95$1], $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]]
        
        \begin{array}{l}
        a_m = \left|a\right|
        \\
        angle\_m = \left|angle\right|
        \\
        angle\_s = \mathsf{copysign}\left(1, angle\right)
        
        \\
        \begin{array}{l}
        t_0 := \frac{angle\_m}{180} \cdot \pi\\
        t_1 := 0.005555555555555556 \cdot \left(angle\_m \cdot \pi\right)\\
        angle\_s \cdot \begin{array}{l}
        \mathbf{if}\;\cos t\_0 \cdot \left(\left(2 \cdot \left({b}^{2} - {a\_m}^{2}\right)\right) \cdot \sin t\_0\right) \leq -1 \cdot 10^{+284}:\\
        \;\;\;\;\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin t\_1\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos t\_1\\
        
        
        \end{array}
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))) (sin.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64))))) (cos.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64))))) < -1.00000000000000008e284

          1. Initial program 61.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. Add Preprocessing
          3. Step-by-step derivation
            1. lift-pow.f64N/A

              \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            2. lift-pow.f64N/A

              \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            3. lift--.f64N/A

              \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            4. *-commutativeN/A

              \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            5. lift-PI.f64N/A

              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            6. lift-/.f64N/A

              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            7. lift-*.f64N/A

              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            8. lift-sin.f64N/A

              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            9. associate-*l*N/A

              \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            10. lift--.f64N/A

              \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            11. lift-pow.f64N/A

              \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            12. unpow2N/A

              \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            13. lift-pow.f64N/A

              \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            14. unpow2N/A

              \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            15. difference-of-squaresN/A

              \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            16. associate-*l*N/A

              \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            17. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            18. lower-+.f64N/A

              \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            19. *-commutativeN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
          4. Applied egg-rr82.7%

            \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
          5. Step-by-step derivation
            1. lift-PI.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            2. associate-*r*N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            3. *-commutativeN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            4. lift-*.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            5. lower-*.f6482.8

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(angle \cdot \pi\right) \cdot 0.005555555555555556\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
            6. lift-*.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            7. *-commutativeN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            8. lower-*.f6482.8

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

            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(\pi \cdot angle\right) \cdot 0.005555555555555556\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
          7. Taylor expanded in angle around 0

            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \color{blue}{1} \]
          8. Step-by-step derivation
            1. Simplified78.6%

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

            if -1.00000000000000008e284 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))) (sin.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64))))) (cos.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64)))))

            1. Initial program 52.8%

              \[\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. Add Preprocessing
            3. Step-by-step derivation
              1. lift-pow.f64N/A

                \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              2. lift-pow.f64N/A

                \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              3. lift--.f64N/A

                \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              4. *-commutativeN/A

                \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              5. lift-PI.f64N/A

                \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              6. lift-/.f64N/A

                \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              7. lift-*.f64N/A

                \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              8. lift-sin.f64N/A

                \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              9. associate-*l*N/A

                \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              10. lift--.f64N/A

                \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              11. lift-pow.f64N/A

                \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              12. unpow2N/A

                \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              13. lift-pow.f64N/A

                \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              14. unpow2N/A

                \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              15. difference-of-squaresN/A

                \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              16. associate-*l*N/A

                \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              17. lower-*.f64N/A

                \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              18. lower-+.f64N/A

                \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              19. *-commutativeN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            4. Applied egg-rr65.2%

              \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
            5. Step-by-step derivation
              1. lift-PI.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right) \]
              2. div-invN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(angle \cdot \frac{1}{180}\right)}\right) \]
              3. metadata-evalN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \color{blue}{\frac{1}{180}}\right)\right) \]
              4. associate-*r*N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right)} \]
              5. *-commutativeN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \]
              6. lift-*.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \]
              7. lower-*.f6465.6

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\left(angle \cdot \pi\right) \cdot 0.005555555555555556\right)} \]
              8. lift-*.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \]
              9. *-commutativeN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \frac{1}{180}\right) \]
              10. lower-*.f6465.6

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

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\left(\pi \cdot angle\right) \cdot 0.005555555555555556\right)} \]
          9. Recombined 2 regimes into one program.
          10. Final simplification68.0%

            \[\leadsto \begin{array}{l} \mathbf{if}\;\cos \left(\frac{angle}{180} \cdot \pi\right) \cdot \left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \leq -1 \cdot 10^{+284}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\\ \end{array} \]
          11. Add Preprocessing

          Alternative 6: 66.9% accurate, 0.6× speedup?

          \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ \begin{array}{l} t_0 := \cos \left(\frac{1}{\frac{180}{angle\_m \cdot \pi}}\right)\\ t_1 := {\left({\left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right)}^{-0.5}\right)}^{-1}\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 10^{+222}:\\ \;\;\;\;t\_0 \cdot \left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(t\_1 \cdot t\_1\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\frac{1}{angle\_m}}\right)\right)\right)\right) \cdot t\_0\\ \end{array} \end{array} \end{array} \]
          a_m = (fabs.f64 a)
          angle\_m = (fabs.f64 angle)
          angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
          (FPCore (angle_s a_m b angle_m)
           :precision binary64
           (let* ((t_0 (cos (/ 1.0 (/ 180.0 (* angle_m PI)))))
                  (t_1 (pow (pow (* PI (* angle_m 0.005555555555555556)) -0.5) -1.0)))
             (*
              angle_s
              (if (<= (/ angle_m 180.0) 1e+222)
                (* t_0 (* (+ b a_m) (* (- b a_m) (* 2.0 (sin (* t_1 t_1))))))
                (*
                 (*
                  (+ b a_m)
                  (*
                   (- b a_m)
                   (* 2.0 (sin (* (/ (sqrt PI) 180.0) (/ (sqrt PI) (/ 1.0 angle_m)))))))
                 t_0)))))
          a_m = fabs(a);
          angle\_m = fabs(angle);
          angle\_s = copysign(1.0, angle);
          double code(double angle_s, double a_m, double b, double angle_m) {
          	double t_0 = cos((1.0 / (180.0 / (angle_m * ((double) M_PI)))));
          	double t_1 = pow(pow((((double) M_PI) * (angle_m * 0.005555555555555556)), -0.5), -1.0);
          	double tmp;
          	if ((angle_m / 180.0) <= 1e+222) {
          		tmp = t_0 * ((b + a_m) * ((b - a_m) * (2.0 * sin((t_1 * t_1)))));
          	} else {
          		tmp = ((b + a_m) * ((b - a_m) * (2.0 * sin(((sqrt(((double) M_PI)) / 180.0) * (sqrt(((double) M_PI)) / (1.0 / angle_m))))))) * t_0;
          	}
          	return angle_s * tmp;
          }
          
          a_m = Math.abs(a);
          angle\_m = Math.abs(angle);
          angle\_s = Math.copySign(1.0, angle);
          public static double code(double angle_s, double a_m, double b, double angle_m) {
          	double t_0 = Math.cos((1.0 / (180.0 / (angle_m * Math.PI))));
          	double t_1 = Math.pow(Math.pow((Math.PI * (angle_m * 0.005555555555555556)), -0.5), -1.0);
          	double tmp;
          	if ((angle_m / 180.0) <= 1e+222) {
          		tmp = t_0 * ((b + a_m) * ((b - a_m) * (2.0 * Math.sin((t_1 * t_1)))));
          	} else {
          		tmp = ((b + a_m) * ((b - a_m) * (2.0 * Math.sin(((Math.sqrt(Math.PI) / 180.0) * (Math.sqrt(Math.PI) / (1.0 / angle_m))))))) * t_0;
          	}
          	return angle_s * tmp;
          }
          
          a_m = math.fabs(a)
          angle\_m = math.fabs(angle)
          angle\_s = math.copysign(1.0, angle)
          def code(angle_s, a_m, b, angle_m):
          	t_0 = math.cos((1.0 / (180.0 / (angle_m * math.pi))))
          	t_1 = math.pow(math.pow((math.pi * (angle_m * 0.005555555555555556)), -0.5), -1.0)
          	tmp = 0
          	if (angle_m / 180.0) <= 1e+222:
          		tmp = t_0 * ((b + a_m) * ((b - a_m) * (2.0 * math.sin((t_1 * t_1)))))
          	else:
          		tmp = ((b + a_m) * ((b - a_m) * (2.0 * math.sin(((math.sqrt(math.pi) / 180.0) * (math.sqrt(math.pi) / (1.0 / angle_m))))))) * t_0
          	return angle_s * tmp
          
          a_m = abs(a)
          angle\_m = abs(angle)
          angle\_s = copysign(1.0, angle)
          function code(angle_s, a_m, b, angle_m)
          	t_0 = cos(Float64(1.0 / Float64(180.0 / Float64(angle_m * pi))))
          	t_1 = (Float64(pi * Float64(angle_m * 0.005555555555555556)) ^ -0.5) ^ -1.0
          	tmp = 0.0
          	if (Float64(angle_m / 180.0) <= 1e+222)
          		tmp = Float64(t_0 * Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(2.0 * sin(Float64(t_1 * t_1))))));
          	else
          		tmp = Float64(Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(2.0 * sin(Float64(Float64(sqrt(pi) / 180.0) * Float64(sqrt(pi) / Float64(1.0 / angle_m))))))) * t_0);
          	end
          	return Float64(angle_s * tmp)
          end
          
          a_m = abs(a);
          angle\_m = abs(angle);
          angle\_s = sign(angle) * abs(1.0);
          function tmp_2 = code(angle_s, a_m, b, angle_m)
          	t_0 = cos((1.0 / (180.0 / (angle_m * pi))));
          	t_1 = ((pi * (angle_m * 0.005555555555555556)) ^ -0.5) ^ -1.0;
          	tmp = 0.0;
          	if ((angle_m / 180.0) <= 1e+222)
          		tmp = t_0 * ((b + a_m) * ((b - a_m) * (2.0 * sin((t_1 * t_1)))));
          	else
          		tmp = ((b + a_m) * ((b - a_m) * (2.0 * sin(((sqrt(pi) / 180.0) * (sqrt(pi) / (1.0 / angle_m))))))) * t_0;
          	end
          	tmp_2 = angle_s * tmp;
          end
          
          a_m = N[Abs[a], $MachinePrecision]
          angle\_m = N[Abs[angle], $MachinePrecision]
          angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
          code[angle$95$s_, a$95$m_, b_, angle$95$m_] := Block[{t$95$0 = N[Cos[N[(1.0 / N[(180.0 / N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[Power[N[Power[N[(Pi * N[(angle$95$m * 0.005555555555555556), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision], -1.0], $MachinePrecision]}, N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 1e+222], N[(t$95$0 * N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(2.0 * N[Sin[N[(t$95$1 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(2.0 * N[Sin[N[(N[(N[Sqrt[Pi], $MachinePrecision] / 180.0), $MachinePrecision] * N[(N[Sqrt[Pi], $MachinePrecision] / N[(1.0 / angle$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision]]), $MachinePrecision]]]
          
          \begin{array}{l}
          a_m = \left|a\right|
          \\
          angle\_m = \left|angle\right|
          \\
          angle\_s = \mathsf{copysign}\left(1, angle\right)
          
          \\
          \begin{array}{l}
          t_0 := \cos \left(\frac{1}{\frac{180}{angle\_m \cdot \pi}}\right)\\
          t_1 := {\left({\left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right)}^{-0.5}\right)}^{-1}\\
          angle\_s \cdot \begin{array}{l}
          \mathbf{if}\;\frac{angle\_m}{180} \leq 10^{+222}:\\
          \;\;\;\;t\_0 \cdot \left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(t\_1 \cdot t\_1\right)\right)\right)\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\frac{1}{angle\_m}}\right)\right)\right)\right) \cdot t\_0\\
          
          
          \end{array}
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if (/.f64 angle #s(literal 180 binary64)) < 1e222

            1. Initial program 55.8%

              \[\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. Add Preprocessing
            3. Step-by-step derivation
              1. lift-pow.f64N/A

                \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              2. lift-pow.f64N/A

                \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              3. lift--.f64N/A

                \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              4. *-commutativeN/A

                \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              5. lift-PI.f64N/A

                \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              6. lift-/.f64N/A

                \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              7. lift-*.f64N/A

                \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              8. lift-sin.f64N/A

                \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              9. associate-*l*N/A

                \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              10. lift--.f64N/A

                \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              11. lift-pow.f64N/A

                \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              12. unpow2N/A

                \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              13. lift-pow.f64N/A

                \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              14. unpow2N/A

                \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              15. difference-of-squaresN/A

                \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              16. associate-*l*N/A

                \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              17. lower-*.f64N/A

                \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              18. lower-+.f64N/A

                \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              19. *-commutativeN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            4. Applied egg-rr71.5%

              \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
            5. Step-by-step derivation
              1. lift-PI.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right) \]
              2. associate-*r/N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{\mathsf{PI}\left(\right) \cdot angle}{180}\right)} \]
              3. *-commutativeN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
              4. lift-*.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
              5. clear-numN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
              6. lower-/.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
              7. lower-/.f6472.0

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\color{blue}{\frac{180}{angle \cdot \pi}}}\right) \]
              8. lift-*.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}}\right) \]
              9. *-commutativeN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\mathsf{PI}\left(\right) \cdot angle}}}\right) \]
              10. lower-*.f6472.0

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

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{\pi \cdot angle}}\right)} \]
            7. Step-by-step derivation
              1. lift-PI.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              2. metadata-evalN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \color{blue}{\frac{1}{180}}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              3. div-invN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              4. clear-numN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{1}{\frac{180}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              5. un-div-invN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\mathsf{PI}\left(\right)}{\frac{180}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              6. lift-PI.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\mathsf{PI}\left(\right)}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              7. add-sqr-sqrtN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              8. div-invN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}{\color{blue}{180 \cdot \frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              9. times-fracN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              10. lower-*.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              11. lower-/.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\frac{\sqrt{\mathsf{PI}\left(\right)}}{180}} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              12. lift-PI.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              13. lower-sqrt.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              14. lower-/.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \color{blue}{\frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              15. lift-PI.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              16. lower-sqrt.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              17. lower-/.f6472.8

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\color{blue}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\pi \cdot angle}}\right) \]
            8. Applied egg-rr72.8%

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\pi \cdot angle}}\right) \]
            9. Step-by-step derivation
              1. lift-PI.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              2. lift-sqrt.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              3. frac-2negN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\frac{\mathsf{neg}\left(\sqrt{\mathsf{PI}\left(\right)}\right)}{\mathsf{neg}\left(180\right)}} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              4. lift-PI.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\mathsf{neg}\left(\sqrt{\mathsf{PI}\left(\right)}\right)}{\mathsf{neg}\left(180\right)} \cdot \frac{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              5. lift-sqrt.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\mathsf{neg}\left(\sqrt{\mathsf{PI}\left(\right)}\right)}{\mathsf{neg}\left(180\right)} \cdot \frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              6. lift-/.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\mathsf{neg}\left(\sqrt{\mathsf{PI}\left(\right)}\right)}{\mathsf{neg}\left(180\right)} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\color{blue}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              7. frac-2negN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\mathsf{neg}\left(\sqrt{\mathsf{PI}\left(\right)}\right)}{\mathsf{neg}\left(180\right)} \cdot \color{blue}{\frac{\mathsf{neg}\left(\sqrt{\mathsf{PI}\left(\right)}\right)}{\mathsf{neg}\left(\frac{1}{angle}\right)}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              8. frac-2negN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\frac{\sqrt{\mathsf{PI}\left(\right)}}{180}} \cdot \frac{\mathsf{neg}\left(\sqrt{\mathsf{PI}\left(\right)}\right)}{\mathsf{neg}\left(\frac{1}{angle}\right)}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              9. frac-2negN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \color{blue}{\frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              10. frac-timesN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}{180 \cdot \frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              11. lift-/.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}{180 \cdot \color{blue}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              12. div-invN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}{\color{blue}{\frac{180}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              13. lift-sqrt.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}} \cdot \sqrt{\mathsf{PI}\left(\right)}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              14. lift-sqrt.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)} \cdot \color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              15. rem-square-sqrtN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\mathsf{PI}\left(\right)}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              16. div-invN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{\frac{180}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              17. clear-numN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              18. div-invN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(angle \cdot \frac{1}{180}\right)}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              19. metadata-evalN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \color{blue}{\frac{1}{180}}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
            10. Applied egg-rr42.0%

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

            if 1e222 < (/.f64 angle #s(literal 180 binary64))

            1. Initial program 39.3%

              \[\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. Add Preprocessing
            3. Step-by-step derivation
              1. lift-pow.f64N/A

                \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              2. lift-pow.f64N/A

                \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              3. lift--.f64N/A

                \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              4. *-commutativeN/A

                \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              5. lift-PI.f64N/A

                \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              6. lift-/.f64N/A

                \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              7. lift-*.f64N/A

                \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              8. lift-sin.f64N/A

                \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              9. associate-*l*N/A

                \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              10. lift--.f64N/A

                \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              11. lift-pow.f64N/A

                \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              12. unpow2N/A

                \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              13. lift-pow.f64N/A

                \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              14. unpow2N/A

                \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              15. difference-of-squaresN/A

                \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              16. associate-*l*N/A

                \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              17. lower-*.f64N/A

                \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              18. lower-+.f64N/A

                \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              19. *-commutativeN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            4. Applied egg-rr33.6%

              \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
            5. Step-by-step derivation
              1. lift-PI.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right) \]
              2. associate-*r/N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{\mathsf{PI}\left(\right) \cdot angle}{180}\right)} \]
              3. *-commutativeN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
              4. lift-*.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
              5. clear-numN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
              6. lower-/.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
              7. lower-/.f6439.0

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\color{blue}{\frac{180}{angle \cdot \pi}}}\right) \]
              8. lift-*.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}}\right) \]
              9. *-commutativeN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\mathsf{PI}\left(\right) \cdot angle}}}\right) \]
              10. lower-*.f6439.0

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

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{\pi \cdot angle}}\right)} \]
            7. Step-by-step derivation
              1. lift-PI.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              2. metadata-evalN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \color{blue}{\frac{1}{180}}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              3. div-invN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              4. clear-numN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{1}{\frac{180}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              5. un-div-invN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\mathsf{PI}\left(\right)}{\frac{180}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              6. lift-PI.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\mathsf{PI}\left(\right)}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              7. add-sqr-sqrtN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              8. div-invN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}{\color{blue}{180 \cdot \frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              9. times-fracN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              10. lower-*.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              11. lower-/.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\frac{\sqrt{\mathsf{PI}\left(\right)}}{180}} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              12. lift-PI.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              13. lower-sqrt.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              14. lower-/.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \color{blue}{\frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              15. lift-PI.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              16. lower-sqrt.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
              17. lower-/.f6451.1

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\color{blue}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\pi \cdot angle}}\right) \]
            8. Applied egg-rr51.1%

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

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

          Alternative 7: 65.5% accurate, 0.7× speedup?

          \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ \begin{array}{l} t_0 := \left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\right)\\ t_1 := \frac{angle\_m}{180} \cdot \pi\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\cos t\_1 \cdot \left(\left(2 \cdot \left({b}^{2} - {a\_m}^{2}\right)\right) \cdot \sin t\_1\right) \leq 2 \cdot 10^{+250}:\\ \;\;\;\;t\_0\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(angle\_m \cdot angle\_m, \left(\pi \cdot \pi\right) \cdot -1.54320987654321 \cdot 10^{-5}, 1\right) \cdot t\_0\\ \end{array} \end{array} \end{array} \]
          a_m = (fabs.f64 a)
          angle\_m = (fabs.f64 angle)
          angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
          (FPCore (angle_s a_m b angle_m)
           :precision binary64
           (let* ((t_0
                   (*
                    (+ b a_m)
                    (* (- b a_m) (* 2.0 (sin (* 0.005555555555555556 (* angle_m PI)))))))
                  (t_1 (* (/ angle_m 180.0) PI)))
             (*
              angle_s
              (if (<=
                   (* (cos t_1) (* (* 2.0 (- (pow b 2.0) (pow a_m 2.0))) (sin t_1)))
                   2e+250)
                t_0
                (*
                 (fma (* angle_m angle_m) (* (* PI PI) -1.54320987654321e-5) 1.0)
                 t_0)))))
          a_m = fabs(a);
          angle\_m = fabs(angle);
          angle\_s = copysign(1.0, angle);
          double code(double angle_s, double a_m, double b, double angle_m) {
          	double t_0 = (b + a_m) * ((b - a_m) * (2.0 * sin((0.005555555555555556 * (angle_m * ((double) M_PI))))));
          	double t_1 = (angle_m / 180.0) * ((double) M_PI);
          	double tmp;
          	if ((cos(t_1) * ((2.0 * (pow(b, 2.0) - pow(a_m, 2.0))) * sin(t_1))) <= 2e+250) {
          		tmp = t_0;
          	} else {
          		tmp = fma((angle_m * angle_m), ((((double) M_PI) * ((double) M_PI)) * -1.54320987654321e-5), 1.0) * t_0;
          	}
          	return angle_s * tmp;
          }
          
          a_m = abs(a)
          angle\_m = abs(angle)
          angle\_s = copysign(1.0, angle)
          function code(angle_s, a_m, b, angle_m)
          	t_0 = Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(2.0 * sin(Float64(0.005555555555555556 * Float64(angle_m * pi))))))
          	t_1 = Float64(Float64(angle_m / 180.0) * pi)
          	tmp = 0.0
          	if (Float64(cos(t_1) * Float64(Float64(2.0 * Float64((b ^ 2.0) - (a_m ^ 2.0))) * sin(t_1))) <= 2e+250)
          		tmp = t_0;
          	else
          		tmp = Float64(fma(Float64(angle_m * angle_m), Float64(Float64(pi * pi) * -1.54320987654321e-5), 1.0) * t_0);
          	end
          	return Float64(angle_s * tmp)
          end
          
          a_m = N[Abs[a], $MachinePrecision]
          angle\_m = N[Abs[angle], $MachinePrecision]
          angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
          code[angle$95$s_, a$95$m_, b_, angle$95$m_] := Block[{t$95$0 = N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(2.0 * N[Sin[N[(0.005555555555555556 * N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(angle$95$m / 180.0), $MachinePrecision] * Pi), $MachinePrecision]}, N[(angle$95$s * If[LessEqual[N[(N[Cos[t$95$1], $MachinePrecision] * N[(N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2e+250], t$95$0, N[(N[(N[(angle$95$m * angle$95$m), $MachinePrecision] * N[(N[(Pi * Pi), $MachinePrecision] * -1.54320987654321e-5), $MachinePrecision] + 1.0), $MachinePrecision] * t$95$0), $MachinePrecision]]), $MachinePrecision]]]
          
          \begin{array}{l}
          a_m = \left|a\right|
          \\
          angle\_m = \left|angle\right|
          \\
          angle\_s = \mathsf{copysign}\left(1, angle\right)
          
          \\
          \begin{array}{l}
          t_0 := \left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\right)\\
          t_1 := \frac{angle\_m}{180} \cdot \pi\\
          angle\_s \cdot \begin{array}{l}
          \mathbf{if}\;\cos t\_1 \cdot \left(\left(2 \cdot \left({b}^{2} - {a\_m}^{2}\right)\right) \cdot \sin t\_1\right) \leq 2 \cdot 10^{+250}:\\
          \;\;\;\;t\_0\\
          
          \mathbf{else}:\\
          \;\;\;\;\mathsf{fma}\left(angle\_m \cdot angle\_m, \left(\pi \cdot \pi\right) \cdot -1.54320987654321 \cdot 10^{-5}, 1\right) \cdot t\_0\\
          
          
          \end{array}
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))) (sin.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64))))) (cos.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64))))) < 1.9999999999999998e250

            1. Initial program 60.0%

              \[\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. Add Preprocessing
            3. Step-by-step derivation
              1. lift-pow.f64N/A

                \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              2. lift-pow.f64N/A

                \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              3. lift--.f64N/A

                \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              4. *-commutativeN/A

                \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              5. lift-PI.f64N/A

                \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              6. lift-/.f64N/A

                \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              7. lift-*.f64N/A

                \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              8. lift-sin.f64N/A

                \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              9. associate-*l*N/A

                \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              10. lift--.f64N/A

                \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              11. lift-pow.f64N/A

                \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              12. unpow2N/A

                \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              13. lift-pow.f64N/A

                \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              14. unpow2N/A

                \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              15. difference-of-squaresN/A

                \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              16. associate-*l*N/A

                \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              17. lower-*.f64N/A

                \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              18. lower-+.f64N/A

                \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              19. *-commutativeN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
            4. Applied egg-rr65.4%

              \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
            5. Step-by-step derivation
              1. lift-PI.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              2. associate-*r*N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              3. *-commutativeN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              4. lift-*.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              5. lower-*.f6465.9

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(angle \cdot \pi\right) \cdot 0.005555555555555556\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
              6. lift-*.f64N/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              7. *-commutativeN/A

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              8. lower-*.f6465.9

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

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(\pi \cdot angle\right) \cdot 0.005555555555555556\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
            7. Taylor expanded in angle around 0

              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \color{blue}{1} \]
            8. Step-by-step derivation
              1. Simplified63.4%

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

              if 1.9999999999999998e250 < (*.f64 (*.f64 (*.f64 #s(literal 2 binary64) (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))) (sin.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64))))) (cos.f64 (*.f64 (PI.f64) (/.f64 angle #s(literal 180 binary64)))))

              1. Initial program 42.8%

                \[\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. Add Preprocessing
              3. Step-by-step derivation
                1. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                2. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                3. lift--.f64N/A

                  \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                4. *-commutativeN/A

                  \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                5. lift-PI.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                6. lift-/.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                7. lift-*.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                8. lift-sin.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                9. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                10. lift--.f64N/A

                  \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                11. lift-pow.f64N/A

                  \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                12. unpow2N/A

                  \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                13. lift-pow.f64N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                14. unpow2N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                15. difference-of-squaresN/A

                  \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                16. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                17. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                18. lower-+.f64N/A

                  \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                19. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              4. Applied egg-rr74.6%

                \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
              5. Step-by-step derivation
                1. lift-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                2. associate-*r*N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                3. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                4. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                5. lower-*.f6475.8

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(angle \cdot \pi\right) \cdot 0.005555555555555556\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                6. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                7. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                8. lower-*.f6475.8

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

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(\pi \cdot angle\right) \cdot 0.005555555555555556\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
              7. Taylor expanded in angle around 0

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \color{blue}{\left(1 + \frac{-1}{64800} \cdot \left({angle}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)\right)} \]
              8. Step-by-step derivation
                1. +-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \color{blue}{\left(\frac{-1}{64800} \cdot \left({angle}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + 1\right)} \]
                2. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \left(\color{blue}{\left({angle}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) \cdot \frac{-1}{64800}} + 1\right) \]
                3. associate-*r*N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \left(\color{blue}{{angle}^{2} \cdot \left({\mathsf{PI}\left(\right)}^{2} \cdot \frac{-1}{64800}\right)} + 1\right) \]
                4. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \left({angle}^{2} \cdot \color{blue}{\left(\frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} + 1\right) \]
                5. lower-fma.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \color{blue}{\mathsf{fma}\left({angle}^{2}, \frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}, 1\right)} \]
                6. unpow2N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \mathsf{fma}\left(\color{blue}{angle \cdot angle}, \frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}, 1\right) \]
                7. lower-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \mathsf{fma}\left(\color{blue}{angle \cdot angle}, \frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}, 1\right) \]
                8. lower-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \color{blue}{\frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}}, 1\right) \]
                9. unpow2N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \frac{-1}{64800} \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)}, 1\right) \]
                10. lower-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \frac{-1}{64800} \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)}, 1\right) \]
                11. lower-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \frac{-1}{64800} \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \mathsf{PI}\left(\right)\right), 1\right) \]
                12. lower-PI.f6473.3

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\pi \cdot angle\right) \cdot 0.005555555555555556\right) \cdot 2\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, -1.54320987654321 \cdot 10^{-5} \cdot \left(\pi \cdot \color{blue}{\pi}\right), 1\right) \]
              9. Simplified73.3%

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\pi \cdot angle\right) \cdot 0.005555555555555556\right) \cdot 2\right)\right)\right) \cdot \color{blue}{\mathsf{fma}\left(angle \cdot angle, -1.54320987654321 \cdot 10^{-5} \cdot \left(\pi \cdot \pi\right), 1\right)} \]
            9. Recombined 2 regimes into one program.
            10. Final simplification66.6%

              \[\leadsto \begin{array}{l} \mathbf{if}\;\cos \left(\frac{angle}{180} \cdot \pi\right) \cdot \left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \leq 2 \cdot 10^{+250}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(angle \cdot angle, \left(\pi \cdot \pi\right) \cdot -1.54320987654321 \cdot 10^{-5}, 1\right) \cdot \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)\right)\right)\\ \end{array} \]
            11. Add Preprocessing

            Alternative 8: 66.9% accurate, 1.1× speedup?

            \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;{a\_m}^{2} \leq 5 \cdot 10^{-318}:\\ \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{angle\_m}{180} \cdot \pi\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\frac{1}{angle\_m}}\right)\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{angle\_m \cdot \pi}}\right)\\ \end{array} \end{array} \]
            a_m = (fabs.f64 a)
            angle\_m = (fabs.f64 angle)
            angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
            (FPCore (angle_s a_m b angle_m)
             :precision binary64
             (*
              angle_s
              (if (<= (pow a_m 2.0) 5e-318)
                (*
                 (*
                  (+ b a_m)
                  (* (- b a_m) (* (sin (* PI (* angle_m 0.005555555555555556))) 2.0)))
                 (cos (* (/ angle_m 180.0) PI)))
                (*
                 (*
                  (+ b a_m)
                  (*
                   (- b a_m)
                   (* 2.0 (sin (* (/ (sqrt PI) 180.0) (/ (sqrt PI) (/ 1.0 angle_m)))))))
                 (cos (/ 1.0 (/ 180.0 (* angle_m PI))))))))
            a_m = fabs(a);
            angle\_m = fabs(angle);
            angle\_s = copysign(1.0, angle);
            double code(double angle_s, double a_m, double b, double angle_m) {
            	double tmp;
            	if (pow(a_m, 2.0) <= 5e-318) {
            		tmp = ((b + a_m) * ((b - a_m) * (sin((((double) M_PI) * (angle_m * 0.005555555555555556))) * 2.0))) * cos(((angle_m / 180.0) * ((double) M_PI)));
            	} else {
            		tmp = ((b + a_m) * ((b - a_m) * (2.0 * sin(((sqrt(((double) M_PI)) / 180.0) * (sqrt(((double) M_PI)) / (1.0 / angle_m))))))) * cos((1.0 / (180.0 / (angle_m * ((double) M_PI)))));
            	}
            	return angle_s * tmp;
            }
            
            a_m = Math.abs(a);
            angle\_m = Math.abs(angle);
            angle\_s = Math.copySign(1.0, angle);
            public static double code(double angle_s, double a_m, double b, double angle_m) {
            	double tmp;
            	if (Math.pow(a_m, 2.0) <= 5e-318) {
            		tmp = ((b + a_m) * ((b - a_m) * (Math.sin((Math.PI * (angle_m * 0.005555555555555556))) * 2.0))) * Math.cos(((angle_m / 180.0) * Math.PI));
            	} else {
            		tmp = ((b + a_m) * ((b - a_m) * (2.0 * Math.sin(((Math.sqrt(Math.PI) / 180.0) * (Math.sqrt(Math.PI) / (1.0 / angle_m))))))) * Math.cos((1.0 / (180.0 / (angle_m * Math.PI))));
            	}
            	return angle_s * tmp;
            }
            
            a_m = math.fabs(a)
            angle\_m = math.fabs(angle)
            angle\_s = math.copysign(1.0, angle)
            def code(angle_s, a_m, b, angle_m):
            	tmp = 0
            	if math.pow(a_m, 2.0) <= 5e-318:
            		tmp = ((b + a_m) * ((b - a_m) * (math.sin((math.pi * (angle_m * 0.005555555555555556))) * 2.0))) * math.cos(((angle_m / 180.0) * math.pi))
            	else:
            		tmp = ((b + a_m) * ((b - a_m) * (2.0 * math.sin(((math.sqrt(math.pi) / 180.0) * (math.sqrt(math.pi) / (1.0 / angle_m))))))) * math.cos((1.0 / (180.0 / (angle_m * math.pi))))
            	return angle_s * tmp
            
            a_m = abs(a)
            angle\_m = abs(angle)
            angle\_s = copysign(1.0, angle)
            function code(angle_s, a_m, b, angle_m)
            	tmp = 0.0
            	if ((a_m ^ 2.0) <= 5e-318)
            		tmp = Float64(Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(sin(Float64(pi * Float64(angle_m * 0.005555555555555556))) * 2.0))) * cos(Float64(Float64(angle_m / 180.0) * pi)));
            	else
            		tmp = Float64(Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(2.0 * sin(Float64(Float64(sqrt(pi) / 180.0) * Float64(sqrt(pi) / Float64(1.0 / angle_m))))))) * cos(Float64(1.0 / Float64(180.0 / Float64(angle_m * pi)))));
            	end
            	return Float64(angle_s * tmp)
            end
            
            a_m = abs(a);
            angle\_m = abs(angle);
            angle\_s = sign(angle) * abs(1.0);
            function tmp_2 = code(angle_s, a_m, b, angle_m)
            	tmp = 0.0;
            	if ((a_m ^ 2.0) <= 5e-318)
            		tmp = ((b + a_m) * ((b - a_m) * (sin((pi * (angle_m * 0.005555555555555556))) * 2.0))) * cos(((angle_m / 180.0) * pi));
            	else
            		tmp = ((b + a_m) * ((b - a_m) * (2.0 * sin(((sqrt(pi) / 180.0) * (sqrt(pi) / (1.0 / angle_m))))))) * cos((1.0 / (180.0 / (angle_m * pi))));
            	end
            	tmp_2 = angle_s * tmp;
            end
            
            a_m = N[Abs[a], $MachinePrecision]
            angle\_m = N[Abs[angle], $MachinePrecision]
            angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
            code[angle$95$s_, a$95$m_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[Power[a$95$m, 2.0], $MachinePrecision], 5e-318], N[(N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(N[Sin[N[(Pi * N[(angle$95$m * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Cos[N[(N[(angle$95$m / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(2.0 * N[Sin[N[(N[(N[Sqrt[Pi], $MachinePrecision] / 180.0), $MachinePrecision] * N[(N[Sqrt[Pi], $MachinePrecision] / N[(1.0 / angle$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Cos[N[(1.0 / N[(180.0 / N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
            
            \begin{array}{l}
            a_m = \left|a\right|
            \\
            angle\_m = \left|angle\right|
            \\
            angle\_s = \mathsf{copysign}\left(1, angle\right)
            
            \\
            angle\_s \cdot \begin{array}{l}
            \mathbf{if}\;{a\_m}^{2} \leq 5 \cdot 10^{-318}:\\
            \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{angle\_m}{180} \cdot \pi\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\frac{1}{angle\_m}}\right)\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{angle\_m \cdot \pi}}\right)\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if (pow.f64 a #s(literal 2 binary64)) < 4.9999987e-318

              1. Initial program 62.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. Add Preprocessing
              3. Step-by-step derivation
                1. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                2. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                3. lift--.f64N/A

                  \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                4. *-commutativeN/A

                  \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                5. lift-PI.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                6. lift-/.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                7. lift-*.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                8. lift-sin.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                9. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                10. lift--.f64N/A

                  \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                11. lift-pow.f64N/A

                  \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                12. unpow2N/A

                  \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                13. lift-pow.f64N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                14. unpow2N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                15. difference-of-squaresN/A

                  \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                16. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                17. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                18. lower-+.f64N/A

                  \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                19. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              4. Applied egg-rr75.8%

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

              if 4.9999987e-318 < (pow.f64 a #s(literal 2 binary64))

              1. Initial program 51.6%

                \[\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. Add Preprocessing
              3. Step-by-step derivation
                1. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                2. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                3. lift--.f64N/A

                  \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                4. *-commutativeN/A

                  \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                5. lift-PI.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                6. lift-/.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                7. lift-*.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                8. lift-sin.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                9. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                10. lift--.f64N/A

                  \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                11. lift-pow.f64N/A

                  \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                12. unpow2N/A

                  \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                13. lift-pow.f64N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                14. unpow2N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                15. difference-of-squaresN/A

                  \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                16. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                17. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                18. lower-+.f64N/A

                  \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                19. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              4. Applied egg-rr65.9%

                \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
              5. Step-by-step derivation
                1. lift-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right) \]
                2. associate-*r/N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{\mathsf{PI}\left(\right) \cdot angle}{180}\right)} \]
                3. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
                4. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
                5. clear-numN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
                6. lower-/.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
                7. lower-/.f6467.5

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\color{blue}{\frac{180}{angle \cdot \pi}}}\right) \]
                8. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}}\right) \]
                9. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\mathsf{PI}\left(\right) \cdot angle}}}\right) \]
                10. lower-*.f6467.5

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

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{\pi \cdot angle}}\right)} \]
              7. Step-by-step derivation
                1. lift-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                2. metadata-evalN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \color{blue}{\frac{1}{180}}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                3. div-invN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                4. clear-numN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{1}{\frac{180}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                5. un-div-invN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\mathsf{PI}\left(\right)}{\frac{180}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                6. lift-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\mathsf{PI}\left(\right)}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                7. add-sqr-sqrtN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                8. div-invN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}{\color{blue}{180 \cdot \frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                9. times-fracN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                10. lower-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                11. lower-/.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\frac{\sqrt{\mathsf{PI}\left(\right)}}{180}} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                12. lift-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                13. lower-sqrt.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                14. lower-/.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \color{blue}{\frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                15. lift-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                16. lower-sqrt.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                17. lower-/.f6472.1

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\color{blue}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\pi \cdot angle}}\right) \]
              8. Applied egg-rr72.1%

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

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

            Alternative 9: 67.0% accurate, 1.5× speedup?

            \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ \begin{array}{l} t_0 := \cos \left(\frac{angle\_m}{180} \cdot \pi\right)\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 1.2 \cdot 10^{+122}:\\ \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot t\_0\\ \mathbf{elif}\;\frac{angle\_m}{180} \leq 6 \cdot 10^{+149}:\\ \;\;\;\;\left(\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\_m\right) \cdot \left(b - a\_m\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle\_m \cdot angle\_m, \left(\pi \cdot \pi\right) \cdot -1.54320987654321 \cdot 10^{-5}, 1\right)\\ \mathbf{else}:\\ \;\;\;\;t\_0 \cdot \left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \frac{\pi}{\frac{1}{angle\_m}}\right)\right)\right)\right)\\ \end{array} \end{array} \end{array} \]
            a_m = (fabs.f64 a)
            angle\_m = (fabs.f64 angle)
            angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
            (FPCore (angle_s a_m b angle_m)
             :precision binary64
             (let* ((t_0 (cos (* (/ angle_m 180.0) PI))))
               (*
                angle_s
                (if (<= (/ angle_m 180.0) 1.2e+122)
                  (*
                   (*
                    (+ b a_m)
                    (* (- b a_m) (* (sin (* PI (* angle_m 0.005555555555555556))) 2.0)))
                   t_0)
                  (if (<= (/ angle_m 180.0) 6e+149)
                    (*
                     (* (* angle_m PI) (* 0.011111111111111112 (* (+ b a_m) (- b a_m))))
                     (fma (* angle_m angle_m) (* (* PI PI) -1.54320987654321e-5) 1.0))
                    (*
                     t_0
                     (*
                      (+ b a_m)
                      (*
                       (- b a_m)
                       (*
                        2.0
                        (sin (* 0.005555555555555556 (/ PI (/ 1.0 angle_m)))))))))))))
            a_m = fabs(a);
            angle\_m = fabs(angle);
            angle\_s = copysign(1.0, angle);
            double code(double angle_s, double a_m, double b, double angle_m) {
            	double t_0 = cos(((angle_m / 180.0) * ((double) M_PI)));
            	double tmp;
            	if ((angle_m / 180.0) <= 1.2e+122) {
            		tmp = ((b + a_m) * ((b - a_m) * (sin((((double) M_PI) * (angle_m * 0.005555555555555556))) * 2.0))) * t_0;
            	} else if ((angle_m / 180.0) <= 6e+149) {
            		tmp = ((angle_m * ((double) M_PI)) * (0.011111111111111112 * ((b + a_m) * (b - a_m)))) * fma((angle_m * angle_m), ((((double) M_PI) * ((double) M_PI)) * -1.54320987654321e-5), 1.0);
            	} else {
            		tmp = t_0 * ((b + a_m) * ((b - a_m) * (2.0 * sin((0.005555555555555556 * (((double) M_PI) / (1.0 / angle_m)))))));
            	}
            	return angle_s * tmp;
            }
            
            a_m = abs(a)
            angle\_m = abs(angle)
            angle\_s = copysign(1.0, angle)
            function code(angle_s, a_m, b, angle_m)
            	t_0 = cos(Float64(Float64(angle_m / 180.0) * pi))
            	tmp = 0.0
            	if (Float64(angle_m / 180.0) <= 1.2e+122)
            		tmp = Float64(Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(sin(Float64(pi * Float64(angle_m * 0.005555555555555556))) * 2.0))) * t_0);
            	elseif (Float64(angle_m / 180.0) <= 6e+149)
            		tmp = Float64(Float64(Float64(angle_m * pi) * Float64(0.011111111111111112 * Float64(Float64(b + a_m) * Float64(b - a_m)))) * fma(Float64(angle_m * angle_m), Float64(Float64(pi * pi) * -1.54320987654321e-5), 1.0));
            	else
            		tmp = Float64(t_0 * Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(2.0 * sin(Float64(0.005555555555555556 * Float64(pi / Float64(1.0 / angle_m))))))));
            	end
            	return Float64(angle_s * tmp)
            end
            
            a_m = N[Abs[a], $MachinePrecision]
            angle\_m = N[Abs[angle], $MachinePrecision]
            angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
            code[angle$95$s_, a$95$m_, b_, angle$95$m_] := Block[{t$95$0 = N[Cos[N[(N[(angle$95$m / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]}, N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 1.2e+122], N[(N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(N[Sin[N[(Pi * N[(angle$95$m * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision], If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 6e+149], N[(N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(0.011111111111111112 * N[(N[(b + a$95$m), $MachinePrecision] * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(angle$95$m * angle$95$m), $MachinePrecision] * N[(N[(Pi * Pi), $MachinePrecision] * -1.54320987654321e-5), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(2.0 * N[Sin[N[(0.005555555555555556 * N[(Pi / N[(1.0 / angle$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
            
            \begin{array}{l}
            a_m = \left|a\right|
            \\
            angle\_m = \left|angle\right|
            \\
            angle\_s = \mathsf{copysign}\left(1, angle\right)
            
            \\
            \begin{array}{l}
            t_0 := \cos \left(\frac{angle\_m}{180} \cdot \pi\right)\\
            angle\_s \cdot \begin{array}{l}
            \mathbf{if}\;\frac{angle\_m}{180} \leq 1.2 \cdot 10^{+122}:\\
            \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot t\_0\\
            
            \mathbf{elif}\;\frac{angle\_m}{180} \leq 6 \cdot 10^{+149}:\\
            \;\;\;\;\left(\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\_m\right) \cdot \left(b - a\_m\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle\_m \cdot angle\_m, \left(\pi \cdot \pi\right) \cdot -1.54320987654321 \cdot 10^{-5}, 1\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_0 \cdot \left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \frac{\pi}{\frac{1}{angle\_m}}\right)\right)\right)\right)\\
            
            
            \end{array}
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if (/.f64 angle #s(literal 180 binary64)) < 1.2000000000000001e122

              1. Initial program 61.2%

                \[\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. Add Preprocessing
              3. Step-by-step derivation
                1. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                2. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                3. lift--.f64N/A

                  \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                4. *-commutativeN/A

                  \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                5. lift-PI.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                6. lift-/.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                7. lift-*.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                8. lift-sin.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                9. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                10. lift--.f64N/A

                  \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                11. lift-pow.f64N/A

                  \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                12. unpow2N/A

                  \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                13. lift-pow.f64N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                14. unpow2N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                15. difference-of-squaresN/A

                  \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                16. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                17. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                18. lower-+.f64N/A

                  \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                19. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              4. Applied egg-rr78.7%

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

              if 1.2000000000000001e122 < (/.f64 angle #s(literal 180 binary64)) < 6.00000000000000007e149

              1. Initial program 15.3%

                \[\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. Add Preprocessing
              3. Taylor expanded in angle around 0

                \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              4. Step-by-step derivation
                1. *-commutativeN/A

                  \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                2. associate-*r*N/A

                  \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                3. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                4. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                5. lower-*.f64N/A

                  \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                6. lower-PI.f64N/A

                  \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                7. *-commutativeN/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                8. lower-*.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                9. unpow2N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                10. unpow2N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                11. difference-of-squaresN/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                12. lower-*.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                13. +-commutativeN/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                14. lower-+.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                15. lower--.f6434.0

                  \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
              5. Simplified34.0%

                \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
              6. Taylor expanded in angle around 0

                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{\left(1 + \frac{-1}{64800} \cdot \left({angle}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)\right)} \]
              7. Step-by-step derivation
                1. +-commutativeN/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{\left(\frac{-1}{64800} \cdot \left({angle}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + 1\right)} \]
                2. *-commutativeN/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \left(\color{blue}{\left({angle}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) \cdot \frac{-1}{64800}} + 1\right) \]
                3. associate-*r*N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \left(\color{blue}{{angle}^{2} \cdot \left({\mathsf{PI}\left(\right)}^{2} \cdot \frac{-1}{64800}\right)} + 1\right) \]
                4. *-commutativeN/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \left({angle}^{2} \cdot \color{blue}{\left(\frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} + 1\right) \]
                5. lower-fma.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{\mathsf{fma}\left({angle}^{2}, \frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}, 1\right)} \]
                6. unpow2N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(\color{blue}{angle \cdot angle}, \frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}, 1\right) \]
                7. lower-*.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(\color{blue}{angle \cdot angle}, \frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}, 1\right) \]
                8. lower-*.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \color{blue}{\frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}}, 1\right) \]
                9. unpow2N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \frac{-1}{64800} \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)}, 1\right) \]
                10. lower-*.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \frac{-1}{64800} \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)}, 1\right) \]
                11. lower-PI.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \frac{-1}{64800} \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \mathsf{PI}\left(\right)\right), 1\right) \]
                12. lower-PI.f6459.1

                  \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, -1.54320987654321 \cdot 10^{-5} \cdot \left(\pi \cdot \color{blue}{\pi}\right), 1\right) \]
              8. Simplified59.1%

                \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{\mathsf{fma}\left(angle \cdot angle, -1.54320987654321 \cdot 10^{-5} \cdot \left(\pi \cdot \pi\right), 1\right)} \]

              if 6.00000000000000007e149 < (/.f64 angle #s(literal 180 binary64))

              1. Initial program 29.9%

                \[\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. Add Preprocessing
              3. Step-by-step derivation
                1. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                2. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                3. lift--.f64N/A

                  \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                4. *-commutativeN/A

                  \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                5. lift-PI.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                6. lift-/.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                7. lift-*.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                8. lift-sin.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                9. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                10. lift--.f64N/A

                  \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                11. lift-pow.f64N/A

                  \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                12. unpow2N/A

                  \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                13. lift-pow.f64N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                14. unpow2N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                15. difference-of-squaresN/A

                  \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                16. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                17. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                18. lower-+.f64N/A

                  \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                19. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              4. Applied egg-rr29.4%

                \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
              5. Step-by-step derivation
                1. lift-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                2. associate-*r*N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                3. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                4. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                5. lower-*.f6434.6

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(angle \cdot \pi\right) \cdot 0.005555555555555556\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                6. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                7. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                8. lower-*.f6434.6

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

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(\pi \cdot angle\right) \cdot 0.005555555555555556\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
              7. Step-by-step derivation
                1. lift-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\color{blue}{\mathsf{PI}\left(\right)} \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                2. associate-*r*N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                3. metadata-evalN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \color{blue}{\frac{1}{180}}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                4. div-invN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                5. clear-numN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{1}{\frac{180}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                6. associate-*r/N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\mathsf{PI}\left(\right) \cdot 1}{\frac{180}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                7. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{1 \cdot \mathsf{PI}\left(\right)}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                8. div-invN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{1 \cdot \mathsf{PI}\left(\right)}{\color{blue}{180 \cdot \frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                9. times-fracN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{1}{180} \cdot \frac{\mathsf{PI}\left(\right)}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                10. metadata-evalN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\frac{1}{180}} \cdot \frac{\mathsf{PI}\left(\right)}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                11. lower-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{1}{180} \cdot \frac{\mathsf{PI}\left(\right)}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                12. lower-/.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{1}{180} \cdot \color{blue}{\frac{\mathsf{PI}\left(\right)}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                13. lower-/.f6440.3

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

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

              \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq 1.2 \cdot 10^{+122}:\\ \;\;\;\;\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\\ \mathbf{elif}\;\frac{angle}{180} \leq 6 \cdot 10^{+149}:\\ \;\;\;\;\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \left(\pi \cdot \pi\right) \cdot -1.54320987654321 \cdot 10^{-5}, 1\right)\\ \mathbf{else}:\\ \;\;\;\;\cos \left(\frac{angle}{180} \cdot \pi\right) \cdot \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \frac{\pi}{\frac{1}{angle}}\right)\right)\right)\right)\\ \end{array} \]
            5. Add Preprocessing

            Alternative 10: 67.4% accurate, 1.5× speedup?

            \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ \begin{array}{l} t_0 := \pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;b \leq 3.1 \cdot 10^{+182}:\\ \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin t\_0 \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{1}{t\_0}}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\frac{1}{angle\_m}}\right)\right)\right)\right) \cdot \cos t\_0\\ \end{array} \end{array} \end{array} \]
            a_m = (fabs.f64 a)
            angle\_m = (fabs.f64 angle)
            angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
            (FPCore (angle_s a_m b angle_m)
             :precision binary64
             (let* ((t_0 (* PI (* angle_m 0.005555555555555556))))
               (*
                angle_s
                (if (<= b 3.1e+182)
                  (*
                   (* (+ b a_m) (* (- b a_m) (* (sin t_0) 2.0)))
                   (cos (/ 1.0 (/ 1.0 t_0))))
                  (*
                   (*
                    (+ b a_m)
                    (*
                     (- b a_m)
                     (* 2.0 (sin (* (/ (sqrt PI) 180.0) (/ (sqrt PI) (/ 1.0 angle_m)))))))
                   (cos t_0))))))
            a_m = fabs(a);
            angle\_m = fabs(angle);
            angle\_s = copysign(1.0, angle);
            double code(double angle_s, double a_m, double b, double angle_m) {
            	double t_0 = ((double) M_PI) * (angle_m * 0.005555555555555556);
            	double tmp;
            	if (b <= 3.1e+182) {
            		tmp = ((b + a_m) * ((b - a_m) * (sin(t_0) * 2.0))) * cos((1.0 / (1.0 / t_0)));
            	} else {
            		tmp = ((b + a_m) * ((b - a_m) * (2.0 * sin(((sqrt(((double) M_PI)) / 180.0) * (sqrt(((double) M_PI)) / (1.0 / angle_m))))))) * cos(t_0);
            	}
            	return angle_s * tmp;
            }
            
            a_m = Math.abs(a);
            angle\_m = Math.abs(angle);
            angle\_s = Math.copySign(1.0, angle);
            public static double code(double angle_s, double a_m, double b, double angle_m) {
            	double t_0 = Math.PI * (angle_m * 0.005555555555555556);
            	double tmp;
            	if (b <= 3.1e+182) {
            		tmp = ((b + a_m) * ((b - a_m) * (Math.sin(t_0) * 2.0))) * Math.cos((1.0 / (1.0 / t_0)));
            	} else {
            		tmp = ((b + a_m) * ((b - a_m) * (2.0 * Math.sin(((Math.sqrt(Math.PI) / 180.0) * (Math.sqrt(Math.PI) / (1.0 / angle_m))))))) * Math.cos(t_0);
            	}
            	return angle_s * tmp;
            }
            
            a_m = math.fabs(a)
            angle\_m = math.fabs(angle)
            angle\_s = math.copysign(1.0, angle)
            def code(angle_s, a_m, b, angle_m):
            	t_0 = math.pi * (angle_m * 0.005555555555555556)
            	tmp = 0
            	if b <= 3.1e+182:
            		tmp = ((b + a_m) * ((b - a_m) * (math.sin(t_0) * 2.0))) * math.cos((1.0 / (1.0 / t_0)))
            	else:
            		tmp = ((b + a_m) * ((b - a_m) * (2.0 * math.sin(((math.sqrt(math.pi) / 180.0) * (math.sqrt(math.pi) / (1.0 / angle_m))))))) * math.cos(t_0)
            	return angle_s * tmp
            
            a_m = abs(a)
            angle\_m = abs(angle)
            angle\_s = copysign(1.0, angle)
            function code(angle_s, a_m, b, angle_m)
            	t_0 = Float64(pi * Float64(angle_m * 0.005555555555555556))
            	tmp = 0.0
            	if (b <= 3.1e+182)
            		tmp = Float64(Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(sin(t_0) * 2.0))) * cos(Float64(1.0 / Float64(1.0 / t_0))));
            	else
            		tmp = Float64(Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(2.0 * sin(Float64(Float64(sqrt(pi) / 180.0) * Float64(sqrt(pi) / Float64(1.0 / angle_m))))))) * cos(t_0));
            	end
            	return Float64(angle_s * tmp)
            end
            
            a_m = abs(a);
            angle\_m = abs(angle);
            angle\_s = sign(angle) * abs(1.0);
            function tmp_2 = code(angle_s, a_m, b, angle_m)
            	t_0 = pi * (angle_m * 0.005555555555555556);
            	tmp = 0.0;
            	if (b <= 3.1e+182)
            		tmp = ((b + a_m) * ((b - a_m) * (sin(t_0) * 2.0))) * cos((1.0 / (1.0 / t_0)));
            	else
            		tmp = ((b + a_m) * ((b - a_m) * (2.0 * sin(((sqrt(pi) / 180.0) * (sqrt(pi) / (1.0 / angle_m))))))) * cos(t_0);
            	end
            	tmp_2 = angle_s * tmp;
            end
            
            a_m = N[Abs[a], $MachinePrecision]
            angle\_m = N[Abs[angle], $MachinePrecision]
            angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
            code[angle$95$s_, a$95$m_, b_, angle$95$m_] := Block[{t$95$0 = N[(Pi * N[(angle$95$m * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]}, N[(angle$95$s * If[LessEqual[b, 3.1e+182], N[(N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(N[Sin[t$95$0], $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Cos[N[(1.0 / N[(1.0 / t$95$0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(2.0 * N[Sin[N[(N[(N[Sqrt[Pi], $MachinePrecision] / 180.0), $MachinePrecision] * N[(N[Sqrt[Pi], $MachinePrecision] / N[(1.0 / angle$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Cos[t$95$0], $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]
            
            \begin{array}{l}
            a_m = \left|a\right|
            \\
            angle\_m = \left|angle\right|
            \\
            angle\_s = \mathsf{copysign}\left(1, angle\right)
            
            \\
            \begin{array}{l}
            t_0 := \pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\\
            angle\_s \cdot \begin{array}{l}
            \mathbf{if}\;b \leq 3.1 \cdot 10^{+182}:\\
            \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin t\_0 \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{1}{t\_0}}\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\frac{1}{angle\_m}}\right)\right)\right)\right) \cdot \cos t\_0\\
            
            
            \end{array}
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if b < 3.09999999999999996e182

              1. Initial program 58.6%

                \[\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. Add Preprocessing
              3. Step-by-step derivation
                1. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                2. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                3. lift--.f64N/A

                  \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                4. *-commutativeN/A

                  \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                5. lift-PI.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                6. lift-/.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                7. lift-*.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                8. lift-sin.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                9. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                10. lift--.f64N/A

                  \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                11. lift-pow.f64N/A

                  \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                12. unpow2N/A

                  \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                13. lift-pow.f64N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                14. unpow2N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                15. difference-of-squaresN/A

                  \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                16. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                17. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                18. lower-+.f64N/A

                  \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                19. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              4. Applied egg-rr68.2%

                \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
              5. Step-by-step derivation
                1. lift-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right) \]
                2. associate-*r/N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{\mathsf{PI}\left(\right) \cdot angle}{180}\right)} \]
                3. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
                4. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
                5. clear-numN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
                6. lower-/.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
                7. lower-/.f6467.5

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\color{blue}{\frac{180}{angle \cdot \pi}}}\right) \]
                8. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}}\right) \]
                9. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\mathsf{PI}\left(\right) \cdot angle}}}\right) \]
                10. lower-*.f6467.5

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

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{\pi \cdot angle}}\right)} \]
              7. Step-by-step derivation
                1. lift-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\mathsf{PI}\left(\right)} \cdot angle}}\right) \]
                2. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\mathsf{PI}\left(\right) \cdot angle}}}\right) \]
                3. clear-numN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\color{blue}{\frac{1}{\frac{\mathsf{PI}\left(\right) \cdot angle}{180}}}}\right) \]
                4. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{1}{\frac{\color{blue}{\mathsf{PI}\left(\right) \cdot angle}}{180}}}\right) \]
                5. associate-*r/N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{1}{\color{blue}{\mathsf{PI}\left(\right) \cdot \frac{angle}{180}}}}\right) \]
                6. lift-/.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{1}{\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}}}\right) \]
                7. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{1}{\color{blue}{\mathsf{PI}\left(\right) \cdot \frac{angle}{180}}}}\right) \]
                8. lower-/.f6467.2

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\color{blue}{\frac{1}{\pi \cdot \frac{angle}{180}}}}\right) \]
                9. lift-/.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{1}{\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}}}\right) \]
                10. div-invN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{1}{\mathsf{PI}\left(\right) \cdot \color{blue}{\left(angle \cdot \frac{1}{180}\right)}}}\right) \]
                11. metadata-evalN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{1}{\mathsf{PI}\left(\right) \cdot \left(angle \cdot \color{blue}{\frac{1}{180}}\right)}}\right) \]
                12. lift-*.f6467.8

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{1}{\pi \cdot \color{blue}{\left(angle \cdot 0.005555555555555556\right)}}}\right) \]
              8. Applied egg-rr67.8%

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

              if 3.09999999999999996e182 < b

              1. Initial program 26.2%

                \[\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. Add Preprocessing
              3. Step-by-step derivation
                1. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                2. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                3. lift--.f64N/A

                  \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                4. *-commutativeN/A

                  \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                5. lift-PI.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                6. lift-/.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                7. lift-*.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                8. lift-sin.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                9. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                10. lift--.f64N/A

                  \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                11. lift-pow.f64N/A

                  \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                12. unpow2N/A

                  \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                13. lift-pow.f64N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                14. unpow2N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                15. difference-of-squaresN/A

                  \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                16. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                17. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                18. lower-+.f64N/A

                  \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                19. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              4. Applied egg-rr69.5%

                \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
              5. Step-by-step derivation
                1. lift-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right) \]
                2. associate-*r/N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{\mathsf{PI}\left(\right) \cdot angle}{180}\right)} \]
                3. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
                4. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}{180}\right) \]
                5. clear-numN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
                6. lower-/.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{angle \cdot \mathsf{PI}\left(\right)}}\right)} \]
                7. lower-/.f6481.6

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\color{blue}{\frac{180}{angle \cdot \pi}}}\right) \]
                8. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{angle \cdot \mathsf{PI}\left(\right)}}}\right) \]
                9. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\mathsf{PI}\left(\right) \cdot angle}}}\right) \]
                10. lower-*.f6481.6

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

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{\pi \cdot angle}}\right)} \]
              7. Step-by-step derivation
                1. lift-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                2. metadata-evalN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \color{blue}{\frac{1}{180}}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                3. div-invN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                4. clear-numN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{1}{\frac{180}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                5. un-div-invN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\mathsf{PI}\left(\right)}{\frac{180}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                6. lift-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\mathsf{PI}\left(\right)}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                7. add-sqr-sqrtN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}}{\frac{180}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                8. div-invN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}}{\color{blue}{180 \cdot \frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                9. times-fracN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                10. lower-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                11. lower-/.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\frac{\sqrt{\mathsf{PI}\left(\right)}}{180}} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                12. lift-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                13. lower-sqrt.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                14. lower-/.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \color{blue}{\frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                15. lift-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                16. lower-sqrt.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\color{blue}{\sqrt{\mathsf{PI}\left(\right)}}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right) \]
                17. lower-/.f6484.4

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\color{blue}{\frac{1}{angle}}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\pi \cdot angle}}\right) \]
              8. Applied egg-rr84.4%

                \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\frac{1}{angle}}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\pi \cdot angle}}\right) \]
              9. Step-by-step derivation
                1. lift-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\mathsf{PI}\left(\right)} \cdot angle}}\right) \]
                2. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{180}{\color{blue}{\mathsf{PI}\left(\right) \cdot angle}}}\right) \]
                3. frac-2negN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\color{blue}{\frac{\mathsf{neg}\left(180\right)}{\mathsf{neg}\left(\mathsf{PI}\left(\right) \cdot angle\right)}}}\right) \]
                4. *-lft-identityN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{\mathsf{neg}\left(180\right)}{\color{blue}{1 \cdot \left(\mathsf{neg}\left(\mathsf{PI}\left(\right) \cdot angle\right)\right)}}}\right) \]
                5. associate-/l/N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\color{blue}{\frac{\frac{\mathsf{neg}\left(180\right)}{\mathsf{neg}\left(\mathsf{PI}\left(\right) \cdot angle\right)}}{1}}}\right) \]
                6. frac-2negN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{\color{blue}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}}{1}}\right) \]
                7. lift-/.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\frac{\color{blue}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}}{1}}\right) \]
                8. clear-numN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{1}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}\right)} \]
                9. lift-/.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{1}{\color{blue}{\frac{180}{\mathsf{PI}\left(\right) \cdot angle}}}\right) \]
                10. clear-numN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\frac{\mathsf{PI}\left(\right) \cdot angle}{180}\right)} \]
                11. div-invN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right)} \]
                12. metadata-evalN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \color{blue}{\frac{1}{180}}\right) \]
                13. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \frac{1}{180}\right) \]
                14. associate-*r*N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right)} \]
                15. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(angle \cdot \frac{1}{180}\right)}\right) \]
                16. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\mathsf{PI}\left(\right)}}{180} \cdot \frac{\sqrt{\mathsf{PI}\left(\right)}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \cos \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right)} \]
                17. lower-cos.f6484.4

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\frac{\sqrt{\pi}}{180} \cdot \frac{\sqrt{\pi}}{\frac{1}{angle}}\right) \cdot 2\right)\right)\right) \cdot \color{blue}{\cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)} \]
              10. Applied egg-rr84.4%

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

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

            Alternative 11: 67.1% accurate, 1.6× speedup?

            \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ \begin{array}{l} t_0 := \cos \left(\frac{angle\_m}{180} \cdot \pi\right)\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 1.2 \cdot 10^{+122}:\\ \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot t\_0\\ \mathbf{elif}\;\frac{angle\_m}{180} \leq 6 \cdot 10^{+149}:\\ \;\;\;\;\left(\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\_m\right) \cdot \left(b - a\_m\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle\_m \cdot angle\_m, \left(\pi \cdot \pi\right) \cdot -1.54320987654321 \cdot 10^{-5}, 1\right)\\ \mathbf{else}:\\ \;\;\;\;t\_0 \cdot \left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\right)\right)\\ \end{array} \end{array} \end{array} \]
            a_m = (fabs.f64 a)
            angle\_m = (fabs.f64 angle)
            angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
            (FPCore (angle_s a_m b angle_m)
             :precision binary64
             (let* ((t_0 (cos (* (/ angle_m 180.0) PI))))
               (*
                angle_s
                (if (<= (/ angle_m 180.0) 1.2e+122)
                  (*
                   (*
                    (+ b a_m)
                    (* (- b a_m) (* (sin (* PI (* angle_m 0.005555555555555556))) 2.0)))
                   t_0)
                  (if (<= (/ angle_m 180.0) 6e+149)
                    (*
                     (* (* angle_m PI) (* 0.011111111111111112 (* (+ b a_m) (- b a_m))))
                     (fma (* angle_m angle_m) (* (* PI PI) -1.54320987654321e-5) 1.0))
                    (*
                     t_0
                     (*
                      (+ b a_m)
                      (*
                       (- b a_m)
                       (* 2.0 (sin (* 0.005555555555555556 (* angle_m PI))))))))))))
            a_m = fabs(a);
            angle\_m = fabs(angle);
            angle\_s = copysign(1.0, angle);
            double code(double angle_s, double a_m, double b, double angle_m) {
            	double t_0 = cos(((angle_m / 180.0) * ((double) M_PI)));
            	double tmp;
            	if ((angle_m / 180.0) <= 1.2e+122) {
            		tmp = ((b + a_m) * ((b - a_m) * (sin((((double) M_PI) * (angle_m * 0.005555555555555556))) * 2.0))) * t_0;
            	} else if ((angle_m / 180.0) <= 6e+149) {
            		tmp = ((angle_m * ((double) M_PI)) * (0.011111111111111112 * ((b + a_m) * (b - a_m)))) * fma((angle_m * angle_m), ((((double) M_PI) * ((double) M_PI)) * -1.54320987654321e-5), 1.0);
            	} else {
            		tmp = t_0 * ((b + a_m) * ((b - a_m) * (2.0 * sin((0.005555555555555556 * (angle_m * ((double) M_PI)))))));
            	}
            	return angle_s * tmp;
            }
            
            a_m = abs(a)
            angle\_m = abs(angle)
            angle\_s = copysign(1.0, angle)
            function code(angle_s, a_m, b, angle_m)
            	t_0 = cos(Float64(Float64(angle_m / 180.0) * pi))
            	tmp = 0.0
            	if (Float64(angle_m / 180.0) <= 1.2e+122)
            		tmp = Float64(Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(sin(Float64(pi * Float64(angle_m * 0.005555555555555556))) * 2.0))) * t_0);
            	elseif (Float64(angle_m / 180.0) <= 6e+149)
            		tmp = Float64(Float64(Float64(angle_m * pi) * Float64(0.011111111111111112 * Float64(Float64(b + a_m) * Float64(b - a_m)))) * fma(Float64(angle_m * angle_m), Float64(Float64(pi * pi) * -1.54320987654321e-5), 1.0));
            	else
            		tmp = Float64(t_0 * Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(2.0 * sin(Float64(0.005555555555555556 * Float64(angle_m * pi)))))));
            	end
            	return Float64(angle_s * tmp)
            end
            
            a_m = N[Abs[a], $MachinePrecision]
            angle\_m = N[Abs[angle], $MachinePrecision]
            angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
            code[angle$95$s_, a$95$m_, b_, angle$95$m_] := Block[{t$95$0 = N[Cos[N[(N[(angle$95$m / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]}, N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 1.2e+122], N[(N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(N[Sin[N[(Pi * N[(angle$95$m * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision], If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 6e+149], N[(N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(0.011111111111111112 * N[(N[(b + a$95$m), $MachinePrecision] * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(angle$95$m * angle$95$m), $MachinePrecision] * N[(N[(Pi * Pi), $MachinePrecision] * -1.54320987654321e-5), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(t$95$0 * N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(2.0 * N[Sin[N[(0.005555555555555556 * N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
            
            \begin{array}{l}
            a_m = \left|a\right|
            \\
            angle\_m = \left|angle\right|
            \\
            angle\_s = \mathsf{copysign}\left(1, angle\right)
            
            \\
            \begin{array}{l}
            t_0 := \cos \left(\frac{angle\_m}{180} \cdot \pi\right)\\
            angle\_s \cdot \begin{array}{l}
            \mathbf{if}\;\frac{angle\_m}{180} \leq 1.2 \cdot 10^{+122}:\\
            \;\;\;\;\left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot t\_0\\
            
            \mathbf{elif}\;\frac{angle\_m}{180} \leq 6 \cdot 10^{+149}:\\
            \;\;\;\;\left(\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\_m\right) \cdot \left(b - a\_m\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle\_m \cdot angle\_m, \left(\pi \cdot \pi\right) \cdot -1.54320987654321 \cdot 10^{-5}, 1\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_0 \cdot \left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\right)\right)\\
            
            
            \end{array}
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if (/.f64 angle #s(literal 180 binary64)) < 1.2000000000000001e122

              1. Initial program 61.2%

                \[\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. Add Preprocessing
              3. Step-by-step derivation
                1. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                2. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                3. lift--.f64N/A

                  \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                4. *-commutativeN/A

                  \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                5. lift-PI.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                6. lift-/.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                7. lift-*.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                8. lift-sin.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                9. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                10. lift--.f64N/A

                  \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                11. lift-pow.f64N/A

                  \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                12. unpow2N/A

                  \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                13. lift-pow.f64N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                14. unpow2N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                15. difference-of-squaresN/A

                  \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                16. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                17. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                18. lower-+.f64N/A

                  \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                19. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              4. Applied egg-rr78.7%

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

              if 1.2000000000000001e122 < (/.f64 angle #s(literal 180 binary64)) < 6.00000000000000007e149

              1. Initial program 15.3%

                \[\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. Add Preprocessing
              3. Taylor expanded in angle around 0

                \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              4. Step-by-step derivation
                1. *-commutativeN/A

                  \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                2. associate-*r*N/A

                  \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                3. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                4. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                5. lower-*.f64N/A

                  \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                6. lower-PI.f64N/A

                  \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                7. *-commutativeN/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                8. lower-*.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                9. unpow2N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                10. unpow2N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                11. difference-of-squaresN/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                12. lower-*.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                13. +-commutativeN/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                14. lower-+.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                15. lower--.f6434.0

                  \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
              5. Simplified34.0%

                \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
              6. Taylor expanded in angle around 0

                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{\left(1 + \frac{-1}{64800} \cdot \left({angle}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)\right)} \]
              7. Step-by-step derivation
                1. +-commutativeN/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{\left(\frac{-1}{64800} \cdot \left({angle}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + 1\right)} \]
                2. *-commutativeN/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \left(\color{blue}{\left({angle}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) \cdot \frac{-1}{64800}} + 1\right) \]
                3. associate-*r*N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \left(\color{blue}{{angle}^{2} \cdot \left({\mathsf{PI}\left(\right)}^{2} \cdot \frac{-1}{64800}\right)} + 1\right) \]
                4. *-commutativeN/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \left({angle}^{2} \cdot \color{blue}{\left(\frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} + 1\right) \]
                5. lower-fma.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{\mathsf{fma}\left({angle}^{2}, \frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}, 1\right)} \]
                6. unpow2N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(\color{blue}{angle \cdot angle}, \frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}, 1\right) \]
                7. lower-*.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(\color{blue}{angle \cdot angle}, \frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}, 1\right) \]
                8. lower-*.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \color{blue}{\frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}}, 1\right) \]
                9. unpow2N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \frac{-1}{64800} \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)}, 1\right) \]
                10. lower-*.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \frac{-1}{64800} \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)}, 1\right) \]
                11. lower-PI.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \frac{-1}{64800} \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \mathsf{PI}\left(\right)\right), 1\right) \]
                12. lower-PI.f6459.1

                  \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, -1.54320987654321 \cdot 10^{-5} \cdot \left(\pi \cdot \color{blue}{\pi}\right), 1\right) \]
              8. Simplified59.1%

                \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{\mathsf{fma}\left(angle \cdot angle, -1.54320987654321 \cdot 10^{-5} \cdot \left(\pi \cdot \pi\right), 1\right)} \]

              if 6.00000000000000007e149 < (/.f64 angle #s(literal 180 binary64))

              1. Initial program 29.9%

                \[\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. Add Preprocessing
              3. Step-by-step derivation
                1. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                2. lift-pow.f64N/A

                  \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                3. lift--.f64N/A

                  \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                4. *-commutativeN/A

                  \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                5. lift-PI.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                6. lift-/.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                7. lift-*.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                8. lift-sin.f64N/A

                  \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                9. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                10. lift--.f64N/A

                  \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                11. lift-pow.f64N/A

                  \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                12. unpow2N/A

                  \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                13. lift-pow.f64N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                14. unpow2N/A

                  \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                15. difference-of-squaresN/A

                  \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                16. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                17. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                18. lower-+.f64N/A

                  \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                19. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              4. Applied egg-rr29.4%

                \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
              5. Step-by-step derivation
                1. lift-PI.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                2. associate-*r*N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                3. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                4. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                5. lower-*.f6434.6

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(angle \cdot \pi\right) \cdot 0.005555555555555556\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                6. lift-*.f64N/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                7. *-commutativeN/A

                  \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                8. lower-*.f6434.6

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

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

              \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq 1.2 \cdot 10^{+122}:\\ \;\;\;\;\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\\ \mathbf{elif}\;\frac{angle}{180} \leq 6 \cdot 10^{+149}:\\ \;\;\;\;\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \left(\pi \cdot \pi\right) \cdot -1.54320987654321 \cdot 10^{-5}, 1\right)\\ \mathbf{else}:\\ \;\;\;\;\cos \left(\frac{angle}{180} \cdot \pi\right) \cdot \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)\right)\right)\\ \end{array} \]
            5. Add Preprocessing

            Alternative 12: 57.0% accurate, 2.0× speedup?

            \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;{b}^{2} - {a\_m}^{2} \leq -1 \cdot 10^{-264}:\\ \;\;\;\;a\_m \cdot \left(\left(angle\_m \cdot -0.011111111111111112\right) \cdot \left(a\_m \cdot \pi\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\ \end{array} \end{array} \]
            a_m = (fabs.f64 a)
            angle\_m = (fabs.f64 angle)
            angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
            (FPCore (angle_s a_m b angle_m)
             :precision binary64
             (*
              angle_s
              (if (<= (- (pow b 2.0) (pow a_m 2.0)) -1e-264)
                (* a_m (* (* angle_m -0.011111111111111112) (* a_m PI)))
                (* (* angle_m PI) (* 0.011111111111111112 (* b b))))))
            a_m = fabs(a);
            angle\_m = fabs(angle);
            angle\_s = copysign(1.0, angle);
            double code(double angle_s, double a_m, double b, double angle_m) {
            	double tmp;
            	if ((pow(b, 2.0) - pow(a_m, 2.0)) <= -1e-264) {
            		tmp = a_m * ((angle_m * -0.011111111111111112) * (a_m * ((double) M_PI)));
            	} else {
            		tmp = (angle_m * ((double) M_PI)) * (0.011111111111111112 * (b * b));
            	}
            	return angle_s * tmp;
            }
            
            a_m = Math.abs(a);
            angle\_m = Math.abs(angle);
            angle\_s = Math.copySign(1.0, angle);
            public static double code(double angle_s, double a_m, double b, double angle_m) {
            	double tmp;
            	if ((Math.pow(b, 2.0) - Math.pow(a_m, 2.0)) <= -1e-264) {
            		tmp = a_m * ((angle_m * -0.011111111111111112) * (a_m * Math.PI));
            	} else {
            		tmp = (angle_m * Math.PI) * (0.011111111111111112 * (b * b));
            	}
            	return angle_s * tmp;
            }
            
            a_m = math.fabs(a)
            angle\_m = math.fabs(angle)
            angle\_s = math.copysign(1.0, angle)
            def code(angle_s, a_m, b, angle_m):
            	tmp = 0
            	if (math.pow(b, 2.0) - math.pow(a_m, 2.0)) <= -1e-264:
            		tmp = a_m * ((angle_m * -0.011111111111111112) * (a_m * math.pi))
            	else:
            		tmp = (angle_m * math.pi) * (0.011111111111111112 * (b * b))
            	return angle_s * tmp
            
            a_m = abs(a)
            angle\_m = abs(angle)
            angle\_s = copysign(1.0, angle)
            function code(angle_s, a_m, b, angle_m)
            	tmp = 0.0
            	if (Float64((b ^ 2.0) - (a_m ^ 2.0)) <= -1e-264)
            		tmp = Float64(a_m * Float64(Float64(angle_m * -0.011111111111111112) * Float64(a_m * pi)));
            	else
            		tmp = Float64(Float64(angle_m * pi) * Float64(0.011111111111111112 * Float64(b * b)));
            	end
            	return Float64(angle_s * tmp)
            end
            
            a_m = abs(a);
            angle\_m = abs(angle);
            angle\_s = sign(angle) * abs(1.0);
            function tmp_2 = code(angle_s, a_m, b, angle_m)
            	tmp = 0.0;
            	if (((b ^ 2.0) - (a_m ^ 2.0)) <= -1e-264)
            		tmp = a_m * ((angle_m * -0.011111111111111112) * (a_m * pi));
            	else
            		tmp = (angle_m * pi) * (0.011111111111111112 * (b * b));
            	end
            	tmp_2 = angle_s * tmp;
            end
            
            a_m = N[Abs[a], $MachinePrecision]
            angle\_m = N[Abs[angle], $MachinePrecision]
            angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
            code[angle$95$s_, a$95$m_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision], -1e-264], N[(a$95$m * N[(N[(angle$95$m * -0.011111111111111112), $MachinePrecision] * N[(a$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(0.011111111111111112 * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
            
            \begin{array}{l}
            a_m = \left|a\right|
            \\
            angle\_m = \left|angle\right|
            \\
            angle\_s = \mathsf{copysign}\left(1, angle\right)
            
            \\
            angle\_s \cdot \begin{array}{l}
            \mathbf{if}\;{b}^{2} - {a\_m}^{2} \leq -1 \cdot 10^{-264}:\\
            \;\;\;\;a\_m \cdot \left(\left(angle\_m \cdot -0.011111111111111112\right) \cdot \left(a\_m \cdot \pi\right)\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64))) < -1e-264

              1. Initial program 64.1%

                \[\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. Add Preprocessing
              3. Taylor expanded in angle around 0

                \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
              4. Step-by-step derivation
                1. *-commutativeN/A

                  \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                2. associate-*r*N/A

                  \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                3. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                4. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                5. lower-*.f64N/A

                  \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                6. lower-PI.f64N/A

                  \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                7. *-commutativeN/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                8. lower-*.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                9. unpow2N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                10. unpow2N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                11. difference-of-squaresN/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                12. lower-*.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                13. +-commutativeN/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                14. lower-+.f64N/A

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                15. lower--.f6458.3

                  \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
              5. Simplified58.3%

                \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
              6. Taylor expanded in angle around 0

                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
              7. Step-by-step derivation
                1. Simplified52.6%

                  \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                2. Taylor expanded in a around inf

                  \[\leadsto \color{blue}{\left(\frac{-1}{90} \cdot \left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)\right)} \cdot 1 \]
                3. Step-by-step derivation
                  1. lower-*.f64N/A

                    \[\leadsto \color{blue}{\left(\frac{-1}{90} \cdot \left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)\right)} \cdot 1 \]
                  2. *-commutativeN/A

                    \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot {a}^{2}\right)}\right) \cdot 1 \]
                  3. associate-*l*N/A

                    \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)\right)}\right) \cdot 1 \]
                  4. lower-*.f64N/A

                    \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)\right)}\right) \cdot 1 \]
                  5. lower-*.f64N/A

                    \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)}\right)\right) \cdot 1 \]
                  6. lower-PI.f64N/A

                    \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot {a}^{2}\right)\right)\right) \cdot 1 \]
                  7. unpow2N/A

                    \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(a \cdot a\right)}\right)\right)\right) \cdot 1 \]
                  8. lower-*.f6452.2

                    \[\leadsto \left(-0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \color{blue}{\left(a \cdot a\right)}\right)\right)\right) \cdot 1 \]
                4. Simplified52.2%

                  \[\leadsto \color{blue}{\left(-0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(a \cdot a\right)\right)\right)\right)} \cdot 1 \]
                5. Step-by-step derivation
                  1. lift-PI.f64N/A

                    \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(a \cdot a\right)\right)\right)\right) \cdot 1 \]
                  2. lift-*.f64N/A

                    \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(a \cdot a\right)}\right)\right)\right) \cdot 1 \]
                  3. lift-*.f64N/A

                    \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(a \cdot a\right)\right)}\right)\right) \cdot 1 \]
                  4. associate-*r*N/A

                    \[\leadsto \color{blue}{\left(\left(\frac{-1}{90} \cdot angle\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \left(a \cdot a\right)\right)\right)} \cdot 1 \]
                  5. lift-*.f64N/A

                    \[\leadsto \left(\left(\frac{-1}{90} \cdot angle\right) \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(a \cdot a\right)\right)}\right) \cdot 1 \]
                  6. lift-*.f64N/A

                    \[\leadsto \left(\left(\frac{-1}{90} \cdot angle\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(a \cdot a\right)}\right)\right) \cdot 1 \]
                  7. associate-*r*N/A

                    \[\leadsto \left(\left(\frac{-1}{90} \cdot angle\right) \cdot \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot a\right) \cdot a\right)}\right) \cdot 1 \]
                  8. associate-*r*N/A

                    \[\leadsto \color{blue}{\left(\left(\left(\frac{-1}{90} \cdot angle\right) \cdot \left(\mathsf{PI}\left(\right) \cdot a\right)\right) \cdot a\right)} \cdot 1 \]
                  9. lower-*.f64N/A

                    \[\leadsto \color{blue}{\left(\left(\left(\frac{-1}{90} \cdot angle\right) \cdot \left(\mathsf{PI}\left(\right) \cdot a\right)\right) \cdot a\right)} \cdot 1 \]
                  10. lower-*.f64N/A

                    \[\leadsto \left(\color{blue}{\left(\left(\frac{-1}{90} \cdot angle\right) \cdot \left(\mathsf{PI}\left(\right) \cdot a\right)\right)} \cdot a\right) \cdot 1 \]
                  11. *-commutativeN/A

                    \[\leadsto \left(\left(\color{blue}{\left(angle \cdot \frac{-1}{90}\right)} \cdot \left(\mathsf{PI}\left(\right) \cdot a\right)\right) \cdot a\right) \cdot 1 \]
                  12. lower-*.f64N/A

                    \[\leadsto \left(\left(\color{blue}{\left(angle \cdot \frac{-1}{90}\right)} \cdot \left(\mathsf{PI}\left(\right) \cdot a\right)\right) \cdot a\right) \cdot 1 \]
                  13. lower-*.f6458.4

                    \[\leadsto \left(\left(\left(angle \cdot -0.011111111111111112\right) \cdot \color{blue}{\left(\pi \cdot a\right)}\right) \cdot a\right) \cdot 1 \]
                6. Applied egg-rr58.4%

                  \[\leadsto \color{blue}{\left(\left(\left(angle \cdot -0.011111111111111112\right) \cdot \left(\pi \cdot a\right)\right) \cdot a\right)} \cdot 1 \]

                if -1e-264 < (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))

                1. Initial program 45.9%

                  \[\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. Add Preprocessing
                3. Taylor expanded in angle around 0

                  \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                4. Step-by-step derivation
                  1. *-commutativeN/A

                    \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                  2. associate-*r*N/A

                    \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                  3. associate-*l*N/A

                    \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                  4. lower-*.f64N/A

                    \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                  5. lower-*.f64N/A

                    \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                  6. lower-PI.f64N/A

                    \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                  7. *-commutativeN/A

                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                  8. lower-*.f64N/A

                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                  9. unpow2N/A

                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                  10. unpow2N/A

                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                  11. difference-of-squaresN/A

                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                  12. lower-*.f64N/A

                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                  13. +-commutativeN/A

                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                  14. lower-+.f64N/A

                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                  15. lower--.f6448.6

                    \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                5. Simplified48.6%

                  \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                6. Taylor expanded in angle around 0

                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                7. Step-by-step derivation
                  1. Simplified46.4%

                    \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                  2. Taylor expanded in a around 0

                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot {b}^{2}\right)}\right) \cdot 1 \]
                  3. Step-by-step derivation
                    1. lower-*.f64N/A

                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot {b}^{2}\right)}\right) \cdot 1 \]
                    2. unpow2N/A

                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \cdot 1 \]
                    3. lower-*.f6445.0

                      \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \cdot 1 \]
                  4. Simplified45.0%

                    \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \color{blue}{\left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)}\right) \cdot 1 \]
                8. Recombined 2 regimes into one program.
                9. Final simplification51.3%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;{b}^{2} - {a}^{2} \leq -1 \cdot 10^{-264}:\\ \;\;\;\;a \cdot \left(\left(angle \cdot -0.011111111111111112\right) \cdot \left(a \cdot \pi\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\ \end{array} \]
                10. Add Preprocessing

                Alternative 13: 52.8% accurate, 2.0× speedup?

                \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;{b}^{2} - {a\_m}^{2} \leq -1 \cdot 10^{-264}:\\ \;\;\;\;\left(\pi \cdot \left(angle\_m \cdot -0.011111111111111112\right)\right) \cdot \left(a\_m \cdot a\_m\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\ \end{array} \end{array} \]
                a_m = (fabs.f64 a)
                angle\_m = (fabs.f64 angle)
                angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                (FPCore (angle_s a_m b angle_m)
                 :precision binary64
                 (*
                  angle_s
                  (if (<= (- (pow b 2.0) (pow a_m 2.0)) -1e-264)
                    (* (* PI (* angle_m -0.011111111111111112)) (* a_m a_m))
                    (* (* angle_m PI) (* 0.011111111111111112 (* b b))))))
                a_m = fabs(a);
                angle\_m = fabs(angle);
                angle\_s = copysign(1.0, angle);
                double code(double angle_s, double a_m, double b, double angle_m) {
                	double tmp;
                	if ((pow(b, 2.0) - pow(a_m, 2.0)) <= -1e-264) {
                		tmp = (((double) M_PI) * (angle_m * -0.011111111111111112)) * (a_m * a_m);
                	} else {
                		tmp = (angle_m * ((double) M_PI)) * (0.011111111111111112 * (b * b));
                	}
                	return angle_s * tmp;
                }
                
                a_m = Math.abs(a);
                angle\_m = Math.abs(angle);
                angle\_s = Math.copySign(1.0, angle);
                public static double code(double angle_s, double a_m, double b, double angle_m) {
                	double tmp;
                	if ((Math.pow(b, 2.0) - Math.pow(a_m, 2.0)) <= -1e-264) {
                		tmp = (Math.PI * (angle_m * -0.011111111111111112)) * (a_m * a_m);
                	} else {
                		tmp = (angle_m * Math.PI) * (0.011111111111111112 * (b * b));
                	}
                	return angle_s * tmp;
                }
                
                a_m = math.fabs(a)
                angle\_m = math.fabs(angle)
                angle\_s = math.copysign(1.0, angle)
                def code(angle_s, a_m, b, angle_m):
                	tmp = 0
                	if (math.pow(b, 2.0) - math.pow(a_m, 2.0)) <= -1e-264:
                		tmp = (math.pi * (angle_m * -0.011111111111111112)) * (a_m * a_m)
                	else:
                		tmp = (angle_m * math.pi) * (0.011111111111111112 * (b * b))
                	return angle_s * tmp
                
                a_m = abs(a)
                angle\_m = abs(angle)
                angle\_s = copysign(1.0, angle)
                function code(angle_s, a_m, b, angle_m)
                	tmp = 0.0
                	if (Float64((b ^ 2.0) - (a_m ^ 2.0)) <= -1e-264)
                		tmp = Float64(Float64(pi * Float64(angle_m * -0.011111111111111112)) * Float64(a_m * a_m));
                	else
                		tmp = Float64(Float64(angle_m * pi) * Float64(0.011111111111111112 * Float64(b * b)));
                	end
                	return Float64(angle_s * tmp)
                end
                
                a_m = abs(a);
                angle\_m = abs(angle);
                angle\_s = sign(angle) * abs(1.0);
                function tmp_2 = code(angle_s, a_m, b, angle_m)
                	tmp = 0.0;
                	if (((b ^ 2.0) - (a_m ^ 2.0)) <= -1e-264)
                		tmp = (pi * (angle_m * -0.011111111111111112)) * (a_m * a_m);
                	else
                		tmp = (angle_m * pi) * (0.011111111111111112 * (b * b));
                	end
                	tmp_2 = angle_s * tmp;
                end
                
                a_m = N[Abs[a], $MachinePrecision]
                angle\_m = N[Abs[angle], $MachinePrecision]
                angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                code[angle$95$s_, a$95$m_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision], -1e-264], N[(N[(Pi * N[(angle$95$m * -0.011111111111111112), $MachinePrecision]), $MachinePrecision] * N[(a$95$m * a$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(0.011111111111111112 * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                
                \begin{array}{l}
                a_m = \left|a\right|
                \\
                angle\_m = \left|angle\right|
                \\
                angle\_s = \mathsf{copysign}\left(1, angle\right)
                
                \\
                angle\_s \cdot \begin{array}{l}
                \mathbf{if}\;{b}^{2} - {a\_m}^{2} \leq -1 \cdot 10^{-264}:\\
                \;\;\;\;\left(\pi \cdot \left(angle\_m \cdot -0.011111111111111112\right)\right) \cdot \left(a\_m \cdot a\_m\right)\\
                
                \mathbf{else}:\\
                \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64))) < -1e-264

                  1. Initial program 64.1%

                    \[\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. Add Preprocessing
                  3. Taylor expanded in angle around 0

                    \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                  4. Step-by-step derivation
                    1. *-commutativeN/A

                      \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                    2. associate-*r*N/A

                      \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                    3. associate-*l*N/A

                      \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                    4. lower-*.f64N/A

                      \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                    5. lower-*.f64N/A

                      \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                    6. lower-PI.f64N/A

                      \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                    7. *-commutativeN/A

                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                    8. lower-*.f64N/A

                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                    9. unpow2N/A

                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                    10. unpow2N/A

                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                    11. difference-of-squaresN/A

                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                    12. lower-*.f64N/A

                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                    13. +-commutativeN/A

                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                    14. lower-+.f64N/A

                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                    15. lower--.f6458.3

                      \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                  5. Simplified58.3%

                    \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                  6. Taylor expanded in angle around 0

                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                  7. Step-by-step derivation
                    1. Simplified52.6%

                      \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                    2. Taylor expanded in a around inf

                      \[\leadsto \color{blue}{\left(\frac{-1}{90} \cdot \left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)\right)} \cdot 1 \]
                    3. Step-by-step derivation
                      1. lower-*.f64N/A

                        \[\leadsto \color{blue}{\left(\frac{-1}{90} \cdot \left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)\right)} \cdot 1 \]
                      2. *-commutativeN/A

                        \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot {a}^{2}\right)}\right) \cdot 1 \]
                      3. associate-*l*N/A

                        \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)\right)}\right) \cdot 1 \]
                      4. lower-*.f64N/A

                        \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)\right)}\right) \cdot 1 \]
                      5. lower-*.f64N/A

                        \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)}\right)\right) \cdot 1 \]
                      6. lower-PI.f64N/A

                        \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot {a}^{2}\right)\right)\right) \cdot 1 \]
                      7. unpow2N/A

                        \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(a \cdot a\right)}\right)\right)\right) \cdot 1 \]
                      8. lower-*.f6452.2

                        \[\leadsto \left(-0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \color{blue}{\left(a \cdot a\right)}\right)\right)\right) \cdot 1 \]
                    4. Simplified52.2%

                      \[\leadsto \color{blue}{\left(-0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(a \cdot a\right)\right)\right)\right)} \cdot 1 \]
                    5. Step-by-step derivation
                      1. lift-PI.f64N/A

                        \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(a \cdot a\right)\right)\right)\right) \cdot 1 \]
                      2. lift-*.f64N/A

                        \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(a \cdot a\right)}\right)\right)\right) \cdot 1 \]
                      3. lift-*.f64N/A

                        \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(a \cdot a\right)\right)}\right)\right) \cdot 1 \]
                      4. associate-*r*N/A

                        \[\leadsto \color{blue}{\left(\left(\frac{-1}{90} \cdot angle\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \left(a \cdot a\right)\right)\right)} \cdot 1 \]
                      5. lift-*.f64N/A

                        \[\leadsto \left(\left(\frac{-1}{90} \cdot angle\right) \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(a \cdot a\right)\right)}\right) \cdot 1 \]
                      6. associate-*r*N/A

                        \[\leadsto \color{blue}{\left(\left(\left(\frac{-1}{90} \cdot angle\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \left(a \cdot a\right)\right)} \cdot 1 \]
                      7. lower-*.f64N/A

                        \[\leadsto \color{blue}{\left(\left(\left(\frac{-1}{90} \cdot angle\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \left(a \cdot a\right)\right)} \cdot 1 \]
                      8. lower-*.f64N/A

                        \[\leadsto \left(\color{blue}{\left(\left(\frac{-1}{90} \cdot angle\right) \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(a \cdot a\right)\right) \cdot 1 \]
                      9. *-commutativeN/A

                        \[\leadsto \left(\left(\color{blue}{\left(angle \cdot \frac{-1}{90}\right)} \cdot \mathsf{PI}\left(\right)\right) \cdot \left(a \cdot a\right)\right) \cdot 1 \]
                      10. lower-*.f6452.3

                        \[\leadsto \left(\left(\color{blue}{\left(angle \cdot -0.011111111111111112\right)} \cdot \pi\right) \cdot \left(a \cdot a\right)\right) \cdot 1 \]
                    6. Applied egg-rr52.3%

                      \[\leadsto \color{blue}{\left(\left(\left(angle \cdot -0.011111111111111112\right) \cdot \pi\right) \cdot \left(a \cdot a\right)\right)} \cdot 1 \]

                    if -1e-264 < (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))

                    1. Initial program 45.9%

                      \[\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. Add Preprocessing
                    3. Taylor expanded in angle around 0

                      \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                    4. Step-by-step derivation
                      1. *-commutativeN/A

                        \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                      2. associate-*r*N/A

                        \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                      3. associate-*l*N/A

                        \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                      4. lower-*.f64N/A

                        \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                      5. lower-*.f64N/A

                        \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                      6. lower-PI.f64N/A

                        \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                      7. *-commutativeN/A

                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                      8. lower-*.f64N/A

                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                      9. unpow2N/A

                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                      10. unpow2N/A

                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                      11. difference-of-squaresN/A

                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                      12. lower-*.f64N/A

                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                      13. +-commutativeN/A

                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                      14. lower-+.f64N/A

                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                      15. lower--.f6448.6

                        \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                    5. Simplified48.6%

                      \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                    6. Taylor expanded in angle around 0

                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                    7. Step-by-step derivation
                      1. Simplified46.4%

                        \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                      2. Taylor expanded in a around 0

                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot {b}^{2}\right)}\right) \cdot 1 \]
                      3. Step-by-step derivation
                        1. lower-*.f64N/A

                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot {b}^{2}\right)}\right) \cdot 1 \]
                        2. unpow2N/A

                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \cdot 1 \]
                        3. lower-*.f6445.0

                          \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \cdot 1 \]
                      4. Simplified45.0%

                        \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \color{blue}{\left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)}\right) \cdot 1 \]
                    8. Recombined 2 regimes into one program.
                    9. Final simplification48.4%

                      \[\leadsto \begin{array}{l} \mathbf{if}\;{b}^{2} - {a}^{2} \leq -1 \cdot 10^{-264}:\\ \;\;\;\;\left(\pi \cdot \left(angle \cdot -0.011111111111111112\right)\right) \cdot \left(a \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\ \end{array} \]
                    10. Add Preprocessing

                    Alternative 14: 52.8% accurate, 2.0× speedup?

                    \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;{b}^{2} - {a\_m}^{2} \leq -1 \cdot 10^{-264}:\\ \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(-0.011111111111111112 \cdot \left(a\_m \cdot a\_m\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\ \end{array} \end{array} \]
                    a_m = (fabs.f64 a)
                    angle\_m = (fabs.f64 angle)
                    angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                    (FPCore (angle_s a_m b angle_m)
                     :precision binary64
                     (*
                      angle_s
                      (if (<= (- (pow b 2.0) (pow a_m 2.0)) -1e-264)
                        (* (* angle_m PI) (* -0.011111111111111112 (* a_m a_m)))
                        (* (* angle_m PI) (* 0.011111111111111112 (* b b))))))
                    a_m = fabs(a);
                    angle\_m = fabs(angle);
                    angle\_s = copysign(1.0, angle);
                    double code(double angle_s, double a_m, double b, double angle_m) {
                    	double tmp;
                    	if ((pow(b, 2.0) - pow(a_m, 2.0)) <= -1e-264) {
                    		tmp = (angle_m * ((double) M_PI)) * (-0.011111111111111112 * (a_m * a_m));
                    	} else {
                    		tmp = (angle_m * ((double) M_PI)) * (0.011111111111111112 * (b * b));
                    	}
                    	return angle_s * tmp;
                    }
                    
                    a_m = Math.abs(a);
                    angle\_m = Math.abs(angle);
                    angle\_s = Math.copySign(1.0, angle);
                    public static double code(double angle_s, double a_m, double b, double angle_m) {
                    	double tmp;
                    	if ((Math.pow(b, 2.0) - Math.pow(a_m, 2.0)) <= -1e-264) {
                    		tmp = (angle_m * Math.PI) * (-0.011111111111111112 * (a_m * a_m));
                    	} else {
                    		tmp = (angle_m * Math.PI) * (0.011111111111111112 * (b * b));
                    	}
                    	return angle_s * tmp;
                    }
                    
                    a_m = math.fabs(a)
                    angle\_m = math.fabs(angle)
                    angle\_s = math.copysign(1.0, angle)
                    def code(angle_s, a_m, b, angle_m):
                    	tmp = 0
                    	if (math.pow(b, 2.0) - math.pow(a_m, 2.0)) <= -1e-264:
                    		tmp = (angle_m * math.pi) * (-0.011111111111111112 * (a_m * a_m))
                    	else:
                    		tmp = (angle_m * math.pi) * (0.011111111111111112 * (b * b))
                    	return angle_s * tmp
                    
                    a_m = abs(a)
                    angle\_m = abs(angle)
                    angle\_s = copysign(1.0, angle)
                    function code(angle_s, a_m, b, angle_m)
                    	tmp = 0.0
                    	if (Float64((b ^ 2.0) - (a_m ^ 2.0)) <= -1e-264)
                    		tmp = Float64(Float64(angle_m * pi) * Float64(-0.011111111111111112 * Float64(a_m * a_m)));
                    	else
                    		tmp = Float64(Float64(angle_m * pi) * Float64(0.011111111111111112 * Float64(b * b)));
                    	end
                    	return Float64(angle_s * tmp)
                    end
                    
                    a_m = abs(a);
                    angle\_m = abs(angle);
                    angle\_s = sign(angle) * abs(1.0);
                    function tmp_2 = code(angle_s, a_m, b, angle_m)
                    	tmp = 0.0;
                    	if (((b ^ 2.0) - (a_m ^ 2.0)) <= -1e-264)
                    		tmp = (angle_m * pi) * (-0.011111111111111112 * (a_m * a_m));
                    	else
                    		tmp = (angle_m * pi) * (0.011111111111111112 * (b * b));
                    	end
                    	tmp_2 = angle_s * tmp;
                    end
                    
                    a_m = N[Abs[a], $MachinePrecision]
                    angle\_m = N[Abs[angle], $MachinePrecision]
                    angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                    code[angle$95$s_, a$95$m_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision], -1e-264], N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(-0.011111111111111112 * N[(a$95$m * a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(0.011111111111111112 * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                    
                    \begin{array}{l}
                    a_m = \left|a\right|
                    \\
                    angle\_m = \left|angle\right|
                    \\
                    angle\_s = \mathsf{copysign}\left(1, angle\right)
                    
                    \\
                    angle\_s \cdot \begin{array}{l}
                    \mathbf{if}\;{b}^{2} - {a\_m}^{2} \leq -1 \cdot 10^{-264}:\\
                    \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(-0.011111111111111112 \cdot \left(a\_m \cdot a\_m\right)\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64))) < -1e-264

                      1. Initial program 64.1%

                        \[\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. Add Preprocessing
                      3. Taylor expanded in angle around 0

                        \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                      4. Step-by-step derivation
                        1. *-commutativeN/A

                          \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                        2. associate-*r*N/A

                          \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                        3. associate-*l*N/A

                          \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                        4. lower-*.f64N/A

                          \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                        5. lower-*.f64N/A

                          \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                        6. lower-PI.f64N/A

                          \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                        7. *-commutativeN/A

                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                        8. lower-*.f64N/A

                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                        9. unpow2N/A

                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                        10. unpow2N/A

                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                        11. difference-of-squaresN/A

                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                        12. lower-*.f64N/A

                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                        13. +-commutativeN/A

                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                        14. lower-+.f64N/A

                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                        15. lower--.f6458.3

                          \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                      5. Simplified58.3%

                        \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                      6. Taylor expanded in angle around 0

                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                      7. Step-by-step derivation
                        1. Simplified52.6%

                          \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                        2. Taylor expanded in a around inf

                          \[\leadsto \color{blue}{\left(\frac{-1}{90} \cdot \left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)\right)} \cdot 1 \]
                        3. Step-by-step derivation
                          1. lower-*.f64N/A

                            \[\leadsto \color{blue}{\left(\frac{-1}{90} \cdot \left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)\right)} \cdot 1 \]
                          2. *-commutativeN/A

                            \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot {a}^{2}\right)}\right) \cdot 1 \]
                          3. associate-*l*N/A

                            \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)\right)}\right) \cdot 1 \]
                          4. lower-*.f64N/A

                            \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)\right)}\right) \cdot 1 \]
                          5. lower-*.f64N/A

                            \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)}\right)\right) \cdot 1 \]
                          6. lower-PI.f64N/A

                            \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot {a}^{2}\right)\right)\right) \cdot 1 \]
                          7. unpow2N/A

                            \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(a \cdot a\right)}\right)\right)\right) \cdot 1 \]
                          8. lower-*.f6452.2

                            \[\leadsto \left(-0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \color{blue}{\left(a \cdot a\right)}\right)\right)\right) \cdot 1 \]
                        4. Simplified52.2%

                          \[\leadsto \color{blue}{\left(-0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(a \cdot a\right)\right)\right)\right)} \cdot 1 \]
                        5. Step-by-step derivation
                          1. lift-PI.f64N/A

                            \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(a \cdot a\right)\right)\right)\right) \cdot 1 \]
                          2. lift-*.f64N/A

                            \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(a \cdot a\right)}\right)\right)\right) \cdot 1 \]
                          3. lift-*.f64N/A

                            \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(a \cdot a\right)\right)}\right)\right) \cdot 1 \]
                          4. lift-*.f64N/A

                            \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left(a \cdot a\right)\right)\right)}\right) \cdot 1 \]
                          5. *-commutativeN/A

                            \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left(a \cdot a\right)\right)\right) \cdot \frac{-1}{90}\right)} \cdot 1 \]
                          6. lift-*.f64N/A

                            \[\leadsto \left(\color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left(a \cdot a\right)\right)\right)} \cdot \frac{-1}{90}\right) \cdot 1 \]
                          7. lift-*.f64N/A

                            \[\leadsto \left(\left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(a \cdot a\right)\right)}\right) \cdot \frac{-1}{90}\right) \cdot 1 \]
                          8. associate-*r*N/A

                            \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(a \cdot a\right)\right)} \cdot \frac{-1}{90}\right) \cdot 1 \]
                          9. *-commutativeN/A

                            \[\leadsto \left(\left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \left(a \cdot a\right)\right) \cdot \frac{-1}{90}\right) \cdot 1 \]
                          10. lift-*.f64N/A

                            \[\leadsto \left(\left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \left(a \cdot a\right)\right) \cdot \frac{-1}{90}\right) \cdot 1 \]
                          11. associate-*l*N/A

                            \[\leadsto \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\left(a \cdot a\right) \cdot \frac{-1}{90}\right)\right)} \cdot 1 \]
                          12. lower-*.f64N/A

                            \[\leadsto \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\left(a \cdot a\right) \cdot \frac{-1}{90}\right)\right)} \cdot 1 \]
                          13. lower-*.f6452.3

                            \[\leadsto \left(\left(\pi \cdot angle\right) \cdot \color{blue}{\left(\left(a \cdot a\right) \cdot -0.011111111111111112\right)}\right) \cdot 1 \]
                        6. Applied egg-rr52.3%

                          \[\leadsto \color{blue}{\left(\left(\pi \cdot angle\right) \cdot \left(\left(a \cdot a\right) \cdot -0.011111111111111112\right)\right)} \cdot 1 \]

                        if -1e-264 < (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))

                        1. Initial program 45.9%

                          \[\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. Add Preprocessing
                        3. Taylor expanded in angle around 0

                          \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                        4. Step-by-step derivation
                          1. *-commutativeN/A

                            \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                          2. associate-*r*N/A

                            \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                          3. associate-*l*N/A

                            \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                          4. lower-*.f64N/A

                            \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                          5. lower-*.f64N/A

                            \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                          6. lower-PI.f64N/A

                            \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                          7. *-commutativeN/A

                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                          8. lower-*.f64N/A

                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                          9. unpow2N/A

                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                          10. unpow2N/A

                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                          11. difference-of-squaresN/A

                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                          12. lower-*.f64N/A

                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                          13. +-commutativeN/A

                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                          14. lower-+.f64N/A

                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                          15. lower--.f6448.6

                            \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                        5. Simplified48.6%

                          \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                        6. Taylor expanded in angle around 0

                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                        7. Step-by-step derivation
                          1. Simplified46.4%

                            \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                          2. Taylor expanded in a around 0

                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot {b}^{2}\right)}\right) \cdot 1 \]
                          3. Step-by-step derivation
                            1. lower-*.f64N/A

                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot {b}^{2}\right)}\right) \cdot 1 \]
                            2. unpow2N/A

                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \cdot 1 \]
                            3. lower-*.f6445.0

                              \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \cdot 1 \]
                          4. Simplified45.0%

                            \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \color{blue}{\left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)}\right) \cdot 1 \]
                        8. Recombined 2 regimes into one program.
                        9. Final simplification48.4%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;{b}^{2} - {a}^{2} \leq -1 \cdot 10^{-264}:\\ \;\;\;\;\left(angle \cdot \pi\right) \cdot \left(-0.011111111111111112 \cdot \left(a \cdot a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\ \end{array} \]
                        10. Add Preprocessing

                        Alternative 15: 52.9% accurate, 2.0× speedup?

                        \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;{b}^{2} - {a\_m}^{2} \leq -1 \cdot 10^{-264}:\\ \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(a\_m \cdot \left(a\_m \cdot -0.011111111111111112\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\ \end{array} \end{array} \]
                        a_m = (fabs.f64 a)
                        angle\_m = (fabs.f64 angle)
                        angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                        (FPCore (angle_s a_m b angle_m)
                         :precision binary64
                         (*
                          angle_s
                          (if (<= (- (pow b 2.0) (pow a_m 2.0)) -1e-264)
                            (* (* angle_m PI) (* a_m (* a_m -0.011111111111111112)))
                            (* (* angle_m PI) (* 0.011111111111111112 (* b b))))))
                        a_m = fabs(a);
                        angle\_m = fabs(angle);
                        angle\_s = copysign(1.0, angle);
                        double code(double angle_s, double a_m, double b, double angle_m) {
                        	double tmp;
                        	if ((pow(b, 2.0) - pow(a_m, 2.0)) <= -1e-264) {
                        		tmp = (angle_m * ((double) M_PI)) * (a_m * (a_m * -0.011111111111111112));
                        	} else {
                        		tmp = (angle_m * ((double) M_PI)) * (0.011111111111111112 * (b * b));
                        	}
                        	return angle_s * tmp;
                        }
                        
                        a_m = Math.abs(a);
                        angle\_m = Math.abs(angle);
                        angle\_s = Math.copySign(1.0, angle);
                        public static double code(double angle_s, double a_m, double b, double angle_m) {
                        	double tmp;
                        	if ((Math.pow(b, 2.0) - Math.pow(a_m, 2.0)) <= -1e-264) {
                        		tmp = (angle_m * Math.PI) * (a_m * (a_m * -0.011111111111111112));
                        	} else {
                        		tmp = (angle_m * Math.PI) * (0.011111111111111112 * (b * b));
                        	}
                        	return angle_s * tmp;
                        }
                        
                        a_m = math.fabs(a)
                        angle\_m = math.fabs(angle)
                        angle\_s = math.copysign(1.0, angle)
                        def code(angle_s, a_m, b, angle_m):
                        	tmp = 0
                        	if (math.pow(b, 2.0) - math.pow(a_m, 2.0)) <= -1e-264:
                        		tmp = (angle_m * math.pi) * (a_m * (a_m * -0.011111111111111112))
                        	else:
                        		tmp = (angle_m * math.pi) * (0.011111111111111112 * (b * b))
                        	return angle_s * tmp
                        
                        a_m = abs(a)
                        angle\_m = abs(angle)
                        angle\_s = copysign(1.0, angle)
                        function code(angle_s, a_m, b, angle_m)
                        	tmp = 0.0
                        	if (Float64((b ^ 2.0) - (a_m ^ 2.0)) <= -1e-264)
                        		tmp = Float64(Float64(angle_m * pi) * Float64(a_m * Float64(a_m * -0.011111111111111112)));
                        	else
                        		tmp = Float64(Float64(angle_m * pi) * Float64(0.011111111111111112 * Float64(b * b)));
                        	end
                        	return Float64(angle_s * tmp)
                        end
                        
                        a_m = abs(a);
                        angle\_m = abs(angle);
                        angle\_s = sign(angle) * abs(1.0);
                        function tmp_2 = code(angle_s, a_m, b, angle_m)
                        	tmp = 0.0;
                        	if (((b ^ 2.0) - (a_m ^ 2.0)) <= -1e-264)
                        		tmp = (angle_m * pi) * (a_m * (a_m * -0.011111111111111112));
                        	else
                        		tmp = (angle_m * pi) * (0.011111111111111112 * (b * b));
                        	end
                        	tmp_2 = angle_s * tmp;
                        end
                        
                        a_m = N[Abs[a], $MachinePrecision]
                        angle\_m = N[Abs[angle], $MachinePrecision]
                        angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                        code[angle$95$s_, a$95$m_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision], -1e-264], N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(a$95$m * N[(a$95$m * -0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(0.011111111111111112 * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                        
                        \begin{array}{l}
                        a_m = \left|a\right|
                        \\
                        angle\_m = \left|angle\right|
                        \\
                        angle\_s = \mathsf{copysign}\left(1, angle\right)
                        
                        \\
                        angle\_s \cdot \begin{array}{l}
                        \mathbf{if}\;{b}^{2} - {a\_m}^{2} \leq -1 \cdot 10^{-264}:\\
                        \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(a\_m \cdot \left(a\_m \cdot -0.011111111111111112\right)\right)\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64))) < -1e-264

                          1. Initial program 64.1%

                            \[\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. Add Preprocessing
                          3. Taylor expanded in angle around 0

                            \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                          4. Step-by-step derivation
                            1. *-commutativeN/A

                              \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                            2. associate-*r*N/A

                              \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                            3. associate-*l*N/A

                              \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                            4. lower-*.f64N/A

                              \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                            5. lower-*.f64N/A

                              \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                            6. lower-PI.f64N/A

                              \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                            7. *-commutativeN/A

                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                            8. lower-*.f64N/A

                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                            9. unpow2N/A

                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                            10. unpow2N/A

                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                            11. difference-of-squaresN/A

                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                            12. lower-*.f64N/A

                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                            13. +-commutativeN/A

                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                            14. lower-+.f64N/A

                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                            15. lower--.f6458.3

                              \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                          5. Simplified58.3%

                            \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                          6. Taylor expanded in angle around 0

                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                          7. Step-by-step derivation
                            1. Simplified52.6%

                              \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                            2. Taylor expanded in a around inf

                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{-1}{90} \cdot {a}^{2}\right)}\right) \cdot 1 \]
                            3. Step-by-step derivation
                              1. unpow2N/A

                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{-1}{90} \cdot \color{blue}{\left(a \cdot a\right)}\right)\right) \cdot 1 \]
                              2. associate-*r*N/A

                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\left(\frac{-1}{90} \cdot a\right) \cdot a\right)}\right) \cdot 1 \]
                              3. *-commutativeN/A

                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(a \cdot \left(\frac{-1}{90} \cdot a\right)\right)}\right) \cdot 1 \]
                              4. lower-*.f64N/A

                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(a \cdot \left(\frac{-1}{90} \cdot a\right)\right)}\right) \cdot 1 \]
                              5. *-commutativeN/A

                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(a \cdot \color{blue}{\left(a \cdot \frac{-1}{90}\right)}\right)\right) \cdot 1 \]
                              6. lower-*.f6452.3

                                \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(a \cdot \color{blue}{\left(a \cdot -0.011111111111111112\right)}\right)\right) \cdot 1 \]
                            4. Simplified52.3%

                              \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \color{blue}{\left(a \cdot \left(a \cdot -0.011111111111111112\right)\right)}\right) \cdot 1 \]

                            if -1e-264 < (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))

                            1. Initial program 45.9%

                              \[\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. Add Preprocessing
                            3. Taylor expanded in angle around 0

                              \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                            4. Step-by-step derivation
                              1. *-commutativeN/A

                                \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                              2. associate-*r*N/A

                                \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                              3. associate-*l*N/A

                                \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                              4. lower-*.f64N/A

                                \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                              5. lower-*.f64N/A

                                \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                              6. lower-PI.f64N/A

                                \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                              7. *-commutativeN/A

                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                              8. lower-*.f64N/A

                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                              9. unpow2N/A

                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                              10. unpow2N/A

                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                              11. difference-of-squaresN/A

                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                              12. lower-*.f64N/A

                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                              13. +-commutativeN/A

                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                              14. lower-+.f64N/A

                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                              15. lower--.f6448.6

                                \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                            5. Simplified48.6%

                              \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                            6. Taylor expanded in angle around 0

                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                            7. Step-by-step derivation
                              1. Simplified46.4%

                                \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                              2. Taylor expanded in a around 0

                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot {b}^{2}\right)}\right) \cdot 1 \]
                              3. Step-by-step derivation
                                1. lower-*.f64N/A

                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot {b}^{2}\right)}\right) \cdot 1 \]
                                2. unpow2N/A

                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \cdot 1 \]
                                3. lower-*.f6445.0

                                  \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \cdot 1 \]
                              4. Simplified45.0%

                                \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \color{blue}{\left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)}\right) \cdot 1 \]
                            8. Recombined 2 regimes into one program.
                            9. Final simplification48.4%

                              \[\leadsto \begin{array}{l} \mathbf{if}\;{b}^{2} - {a}^{2} \leq -1 \cdot 10^{-264}:\\ \;\;\;\;\left(angle \cdot \pi\right) \cdot \left(a \cdot \left(a \cdot -0.011111111111111112\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\ \end{array} \]
                            10. Add Preprocessing

                            Alternative 16: 52.8% accurate, 2.0× speedup?

                            \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;{b}^{2} - {a\_m}^{2} \leq -1 \cdot 10^{-264}:\\ \;\;\;\;-0.011111111111111112 \cdot \left(angle\_m \cdot \left(\pi \cdot \left(a\_m \cdot a\_m\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\ \end{array} \end{array} \]
                            a_m = (fabs.f64 a)
                            angle\_m = (fabs.f64 angle)
                            angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                            (FPCore (angle_s a_m b angle_m)
                             :precision binary64
                             (*
                              angle_s
                              (if (<= (- (pow b 2.0) (pow a_m 2.0)) -1e-264)
                                (* -0.011111111111111112 (* angle_m (* PI (* a_m a_m))))
                                (* (* angle_m PI) (* 0.011111111111111112 (* b b))))))
                            a_m = fabs(a);
                            angle\_m = fabs(angle);
                            angle\_s = copysign(1.0, angle);
                            double code(double angle_s, double a_m, double b, double angle_m) {
                            	double tmp;
                            	if ((pow(b, 2.0) - pow(a_m, 2.0)) <= -1e-264) {
                            		tmp = -0.011111111111111112 * (angle_m * (((double) M_PI) * (a_m * a_m)));
                            	} else {
                            		tmp = (angle_m * ((double) M_PI)) * (0.011111111111111112 * (b * b));
                            	}
                            	return angle_s * tmp;
                            }
                            
                            a_m = Math.abs(a);
                            angle\_m = Math.abs(angle);
                            angle\_s = Math.copySign(1.0, angle);
                            public static double code(double angle_s, double a_m, double b, double angle_m) {
                            	double tmp;
                            	if ((Math.pow(b, 2.0) - Math.pow(a_m, 2.0)) <= -1e-264) {
                            		tmp = -0.011111111111111112 * (angle_m * (Math.PI * (a_m * a_m)));
                            	} else {
                            		tmp = (angle_m * Math.PI) * (0.011111111111111112 * (b * b));
                            	}
                            	return angle_s * tmp;
                            }
                            
                            a_m = math.fabs(a)
                            angle\_m = math.fabs(angle)
                            angle\_s = math.copysign(1.0, angle)
                            def code(angle_s, a_m, b, angle_m):
                            	tmp = 0
                            	if (math.pow(b, 2.0) - math.pow(a_m, 2.0)) <= -1e-264:
                            		tmp = -0.011111111111111112 * (angle_m * (math.pi * (a_m * a_m)))
                            	else:
                            		tmp = (angle_m * math.pi) * (0.011111111111111112 * (b * b))
                            	return angle_s * tmp
                            
                            a_m = abs(a)
                            angle\_m = abs(angle)
                            angle\_s = copysign(1.0, angle)
                            function code(angle_s, a_m, b, angle_m)
                            	tmp = 0.0
                            	if (Float64((b ^ 2.0) - (a_m ^ 2.0)) <= -1e-264)
                            		tmp = Float64(-0.011111111111111112 * Float64(angle_m * Float64(pi * Float64(a_m * a_m))));
                            	else
                            		tmp = Float64(Float64(angle_m * pi) * Float64(0.011111111111111112 * Float64(b * b)));
                            	end
                            	return Float64(angle_s * tmp)
                            end
                            
                            a_m = abs(a);
                            angle\_m = abs(angle);
                            angle\_s = sign(angle) * abs(1.0);
                            function tmp_2 = code(angle_s, a_m, b, angle_m)
                            	tmp = 0.0;
                            	if (((b ^ 2.0) - (a_m ^ 2.0)) <= -1e-264)
                            		tmp = -0.011111111111111112 * (angle_m * (pi * (a_m * a_m)));
                            	else
                            		tmp = (angle_m * pi) * (0.011111111111111112 * (b * b));
                            	end
                            	tmp_2 = angle_s * tmp;
                            end
                            
                            a_m = N[Abs[a], $MachinePrecision]
                            angle\_m = N[Abs[angle], $MachinePrecision]
                            angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                            code[angle$95$s_, a$95$m_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision], -1e-264], N[(-0.011111111111111112 * N[(angle$95$m * N[(Pi * N[(a$95$m * a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(0.011111111111111112 * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                            
                            \begin{array}{l}
                            a_m = \left|a\right|
                            \\
                            angle\_m = \left|angle\right|
                            \\
                            angle\_s = \mathsf{copysign}\left(1, angle\right)
                            
                            \\
                            angle\_s \cdot \begin{array}{l}
                            \mathbf{if}\;{b}^{2} - {a\_m}^{2} \leq -1 \cdot 10^{-264}:\\
                            \;\;\;\;-0.011111111111111112 \cdot \left(angle\_m \cdot \left(\pi \cdot \left(a\_m \cdot a\_m\right)\right)\right)\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64))) < -1e-264

                              1. Initial program 64.1%

                                \[\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. Add Preprocessing
                              3. Taylor expanded in angle around 0

                                \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                              4. Step-by-step derivation
                                1. *-commutativeN/A

                                  \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                2. associate-*r*N/A

                                  \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                3. associate-*l*N/A

                                  \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                4. lower-*.f64N/A

                                  \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                5. lower-*.f64N/A

                                  \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                6. lower-PI.f64N/A

                                  \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                7. *-commutativeN/A

                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                8. lower-*.f64N/A

                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                9. unpow2N/A

                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                10. unpow2N/A

                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                11. difference-of-squaresN/A

                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                12. lower-*.f64N/A

                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                13. +-commutativeN/A

                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                14. lower-+.f64N/A

                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                15. lower--.f6458.3

                                  \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                              5. Simplified58.3%

                                \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                              6. Taylor expanded in angle around 0

                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                              7. Step-by-step derivation
                                1. Simplified52.6%

                                  \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                2. Taylor expanded in a around inf

                                  \[\leadsto \color{blue}{\left(\frac{-1}{90} \cdot \left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)\right)} \cdot 1 \]
                                3. Step-by-step derivation
                                  1. lower-*.f64N/A

                                    \[\leadsto \color{blue}{\left(\frac{-1}{90} \cdot \left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)\right)} \cdot 1 \]
                                  2. *-commutativeN/A

                                    \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot {a}^{2}\right)}\right) \cdot 1 \]
                                  3. associate-*l*N/A

                                    \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)\right)}\right) \cdot 1 \]
                                  4. lower-*.f64N/A

                                    \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)\right)}\right) \cdot 1 \]
                                  5. lower-*.f64N/A

                                    \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)}\right)\right) \cdot 1 \]
                                  6. lower-PI.f64N/A

                                    \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot {a}^{2}\right)\right)\right) \cdot 1 \]
                                  7. unpow2N/A

                                    \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(a \cdot a\right)}\right)\right)\right) \cdot 1 \]
                                  8. lower-*.f6452.2

                                    \[\leadsto \left(-0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \color{blue}{\left(a \cdot a\right)}\right)\right)\right) \cdot 1 \]
                                4. Simplified52.2%

                                  \[\leadsto \color{blue}{\left(-0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(a \cdot a\right)\right)\right)\right)} \cdot 1 \]

                                if -1e-264 < (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))

                                1. Initial program 45.9%

                                  \[\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. Add Preprocessing
                                3. Taylor expanded in angle around 0

                                  \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                4. Step-by-step derivation
                                  1. *-commutativeN/A

                                    \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                  2. associate-*r*N/A

                                    \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                  3. associate-*l*N/A

                                    \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                  4. lower-*.f64N/A

                                    \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                  5. lower-*.f64N/A

                                    \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                  6. lower-PI.f64N/A

                                    \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                  7. *-commutativeN/A

                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                  8. lower-*.f64N/A

                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                  9. unpow2N/A

                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                  10. unpow2N/A

                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                  11. difference-of-squaresN/A

                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                  12. lower-*.f64N/A

                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                  13. +-commutativeN/A

                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                  14. lower-+.f64N/A

                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                  15. lower--.f6448.6

                                    \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                5. Simplified48.6%

                                  \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                6. Taylor expanded in angle around 0

                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                7. Step-by-step derivation
                                  1. Simplified46.4%

                                    \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                  2. Taylor expanded in a around 0

                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot {b}^{2}\right)}\right) \cdot 1 \]
                                  3. Step-by-step derivation
                                    1. lower-*.f64N/A

                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot {b}^{2}\right)}\right) \cdot 1 \]
                                    2. unpow2N/A

                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \cdot 1 \]
                                    3. lower-*.f6445.0

                                      \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \cdot 1 \]
                                  4. Simplified45.0%

                                    \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \color{blue}{\left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)}\right) \cdot 1 \]
                                8. Recombined 2 regimes into one program.
                                9. Final simplification48.4%

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;{b}^{2} - {a}^{2} \leq -1 \cdot 10^{-264}:\\ \;\;\;\;-0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(a \cdot a\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot b\right)\right)\\ \end{array} \]
                                10. Add Preprocessing

                                Alternative 17: 52.7% accurate, 2.0× speedup?

                                \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;{b}^{2} - {a\_m}^{2} \leq -1 \cdot 10^{-264}:\\ \;\;\;\;-0.011111111111111112 \cdot \left(angle\_m \cdot \left(\pi \cdot \left(a\_m \cdot a\_m\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;0.011111111111111112 \cdot \left(angle\_m \cdot \left(\pi \cdot \left(b \cdot b\right)\right)\right)\\ \end{array} \end{array} \]
                                a_m = (fabs.f64 a)
                                angle\_m = (fabs.f64 angle)
                                angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                                (FPCore (angle_s a_m b angle_m)
                                 :precision binary64
                                 (*
                                  angle_s
                                  (if (<= (- (pow b 2.0) (pow a_m 2.0)) -1e-264)
                                    (* -0.011111111111111112 (* angle_m (* PI (* a_m a_m))))
                                    (* 0.011111111111111112 (* angle_m (* PI (* b b)))))))
                                a_m = fabs(a);
                                angle\_m = fabs(angle);
                                angle\_s = copysign(1.0, angle);
                                double code(double angle_s, double a_m, double b, double angle_m) {
                                	double tmp;
                                	if ((pow(b, 2.0) - pow(a_m, 2.0)) <= -1e-264) {
                                		tmp = -0.011111111111111112 * (angle_m * (((double) M_PI) * (a_m * a_m)));
                                	} else {
                                		tmp = 0.011111111111111112 * (angle_m * (((double) M_PI) * (b * b)));
                                	}
                                	return angle_s * tmp;
                                }
                                
                                a_m = Math.abs(a);
                                angle\_m = Math.abs(angle);
                                angle\_s = Math.copySign(1.0, angle);
                                public static double code(double angle_s, double a_m, double b, double angle_m) {
                                	double tmp;
                                	if ((Math.pow(b, 2.0) - Math.pow(a_m, 2.0)) <= -1e-264) {
                                		tmp = -0.011111111111111112 * (angle_m * (Math.PI * (a_m * a_m)));
                                	} else {
                                		tmp = 0.011111111111111112 * (angle_m * (Math.PI * (b * b)));
                                	}
                                	return angle_s * tmp;
                                }
                                
                                a_m = math.fabs(a)
                                angle\_m = math.fabs(angle)
                                angle\_s = math.copysign(1.0, angle)
                                def code(angle_s, a_m, b, angle_m):
                                	tmp = 0
                                	if (math.pow(b, 2.0) - math.pow(a_m, 2.0)) <= -1e-264:
                                		tmp = -0.011111111111111112 * (angle_m * (math.pi * (a_m * a_m)))
                                	else:
                                		tmp = 0.011111111111111112 * (angle_m * (math.pi * (b * b)))
                                	return angle_s * tmp
                                
                                a_m = abs(a)
                                angle\_m = abs(angle)
                                angle\_s = copysign(1.0, angle)
                                function code(angle_s, a_m, b, angle_m)
                                	tmp = 0.0
                                	if (Float64((b ^ 2.0) - (a_m ^ 2.0)) <= -1e-264)
                                		tmp = Float64(-0.011111111111111112 * Float64(angle_m * Float64(pi * Float64(a_m * a_m))));
                                	else
                                		tmp = Float64(0.011111111111111112 * Float64(angle_m * Float64(pi * Float64(b * b))));
                                	end
                                	return Float64(angle_s * tmp)
                                end
                                
                                a_m = abs(a);
                                angle\_m = abs(angle);
                                angle\_s = sign(angle) * abs(1.0);
                                function tmp_2 = code(angle_s, a_m, b, angle_m)
                                	tmp = 0.0;
                                	if (((b ^ 2.0) - (a_m ^ 2.0)) <= -1e-264)
                                		tmp = -0.011111111111111112 * (angle_m * (pi * (a_m * a_m)));
                                	else
                                		tmp = 0.011111111111111112 * (angle_m * (pi * (b * b)));
                                	end
                                	tmp_2 = angle_s * tmp;
                                end
                                
                                a_m = N[Abs[a], $MachinePrecision]
                                angle\_m = N[Abs[angle], $MachinePrecision]
                                angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                code[angle$95$s_, a$95$m_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision], -1e-264], N[(-0.011111111111111112 * N[(angle$95$m * N[(Pi * N[(a$95$m * a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.011111111111111112 * N[(angle$95$m * N[(Pi * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                                
                                \begin{array}{l}
                                a_m = \left|a\right|
                                \\
                                angle\_m = \left|angle\right|
                                \\
                                angle\_s = \mathsf{copysign}\left(1, angle\right)
                                
                                \\
                                angle\_s \cdot \begin{array}{l}
                                \mathbf{if}\;{b}^{2} - {a\_m}^{2} \leq -1 \cdot 10^{-264}:\\
                                \;\;\;\;-0.011111111111111112 \cdot \left(angle\_m \cdot \left(\pi \cdot \left(a\_m \cdot a\_m\right)\right)\right)\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;0.011111111111111112 \cdot \left(angle\_m \cdot \left(\pi \cdot \left(b \cdot b\right)\right)\right)\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64))) < -1e-264

                                  1. Initial program 64.1%

                                    \[\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. Add Preprocessing
                                  3. Taylor expanded in angle around 0

                                    \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                  4. Step-by-step derivation
                                    1. *-commutativeN/A

                                      \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                    2. associate-*r*N/A

                                      \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                    3. associate-*l*N/A

                                      \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                    4. lower-*.f64N/A

                                      \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                    5. lower-*.f64N/A

                                      \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                    6. lower-PI.f64N/A

                                      \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                    7. *-commutativeN/A

                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                    8. lower-*.f64N/A

                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                    9. unpow2N/A

                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                    10. unpow2N/A

                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                    11. difference-of-squaresN/A

                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                    12. lower-*.f64N/A

                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                    13. +-commutativeN/A

                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                    14. lower-+.f64N/A

                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                    15. lower--.f6458.3

                                      \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                  5. Simplified58.3%

                                    \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                  6. Taylor expanded in angle around 0

                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                  7. Step-by-step derivation
                                    1. Simplified52.6%

                                      \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                    2. Taylor expanded in a around inf

                                      \[\leadsto \color{blue}{\left(\frac{-1}{90} \cdot \left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)\right)} \cdot 1 \]
                                    3. Step-by-step derivation
                                      1. lower-*.f64N/A

                                        \[\leadsto \color{blue}{\left(\frac{-1}{90} \cdot \left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)\right)} \cdot 1 \]
                                      2. *-commutativeN/A

                                        \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot {a}^{2}\right)}\right) \cdot 1 \]
                                      3. associate-*l*N/A

                                        \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)\right)}\right) \cdot 1 \]
                                      4. lower-*.f64N/A

                                        \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)\right)}\right) \cdot 1 \]
                                      5. lower-*.f64N/A

                                        \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)}\right)\right) \cdot 1 \]
                                      6. lower-PI.f64N/A

                                        \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot {a}^{2}\right)\right)\right) \cdot 1 \]
                                      7. unpow2N/A

                                        \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(a \cdot a\right)}\right)\right)\right) \cdot 1 \]
                                      8. lower-*.f6452.2

                                        \[\leadsto \left(-0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \color{blue}{\left(a \cdot a\right)}\right)\right)\right) \cdot 1 \]
                                    4. Simplified52.2%

                                      \[\leadsto \color{blue}{\left(-0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(a \cdot a\right)\right)\right)\right)} \cdot 1 \]

                                    if -1e-264 < (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))

                                    1. Initial program 45.9%

                                      \[\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. Add Preprocessing
                                    3. Taylor expanded in angle around 0

                                      \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                    4. Step-by-step derivation
                                      1. *-commutativeN/A

                                        \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                      2. associate-*r*N/A

                                        \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                      3. associate-*l*N/A

                                        \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                      4. lower-*.f64N/A

                                        \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                      5. lower-*.f64N/A

                                        \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                      6. lower-PI.f64N/A

                                        \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                      7. *-commutativeN/A

                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                      8. lower-*.f64N/A

                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                      9. unpow2N/A

                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                      10. unpow2N/A

                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                      11. difference-of-squaresN/A

                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                      12. lower-*.f64N/A

                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                      13. +-commutativeN/A

                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                      14. lower-+.f64N/A

                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                      15. lower--.f6448.6

                                        \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                    5. Simplified48.6%

                                      \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                    6. Taylor expanded in angle around 0

                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                    7. Step-by-step derivation
                                      1. Simplified46.4%

                                        \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                      2. Taylor expanded in a around 0

                                        \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left({b}^{2} \cdot \mathsf{PI}\left(\right)\right)\right)\right)} \cdot 1 \]
                                      3. Step-by-step derivation
                                        1. lower-*.f64N/A

                                          \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left({b}^{2} \cdot \mathsf{PI}\left(\right)\right)\right)\right)} \cdot 1 \]
                                        2. lower-*.f64N/A

                                          \[\leadsto \left(\frac{1}{90} \cdot \color{blue}{\left(angle \cdot \left({b}^{2} \cdot \mathsf{PI}\left(\right)\right)\right)}\right) \cdot 1 \]
                                        3. *-commutativeN/A

                                          \[\leadsto \left(\frac{1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot {b}^{2}\right)}\right)\right) \cdot 1 \]
                                        4. lower-*.f64N/A

                                          \[\leadsto \left(\frac{1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot {b}^{2}\right)}\right)\right) \cdot 1 \]
                                        5. lower-PI.f64N/A

                                          \[\leadsto \left(\frac{1}{90} \cdot \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot {b}^{2}\right)\right)\right) \cdot 1 \]
                                        6. unpow2N/A

                                          \[\leadsto \left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(b \cdot b\right)}\right)\right)\right) \cdot 1 \]
                                        7. lower-*.f6445.0

                                          \[\leadsto \left(0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \color{blue}{\left(b \cdot b\right)}\right)\right)\right) \cdot 1 \]
                                      4. Simplified45.0%

                                        \[\leadsto \color{blue}{\left(0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(b \cdot b\right)\right)\right)\right)} \cdot 1 \]
                                    8. Recombined 2 regimes into one program.
                                    9. Final simplification48.4%

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;{b}^{2} - {a}^{2} \leq -1 \cdot 10^{-264}:\\ \;\;\;\;-0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(a \cdot a\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(b \cdot b\right)\right)\right)\\ \end{array} \]
                                    10. Add Preprocessing

                                    Alternative 18: 64.4% accurate, 2.8× speedup?

                                    \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 4 \cdot 10^{+121}:\\ \;\;\;\;\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\cos \left(angle\_m \cdot \left(\pi \cdot 0.005555555555555556\right)\right) \cdot \left(0.011111111111111112 \cdot \left(\left(angle\_m \cdot \pi\right) \cdot \left(\left(b + a\_m\right) \cdot \left(b - a\_m\right)\right)\right)\right)\\ \end{array} \end{array} \]
                                    a_m = (fabs.f64 a)
                                    angle\_m = (fabs.f64 angle)
                                    angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                                    (FPCore (angle_s a_m b angle_m)
                                     :precision binary64
                                     (*
                                      angle_s
                                      (if (<= (/ angle_m 180.0) 4e+121)
                                        (*
                                         (+ b a_m)
                                         (* (- b a_m) (* 2.0 (sin (* 0.005555555555555556 (* angle_m PI))))))
                                        (*
                                         (cos (* angle_m (* PI 0.005555555555555556)))
                                         (* 0.011111111111111112 (* (* angle_m PI) (* (+ b a_m) (- b a_m))))))))
                                    a_m = fabs(a);
                                    angle\_m = fabs(angle);
                                    angle\_s = copysign(1.0, angle);
                                    double code(double angle_s, double a_m, double b, double angle_m) {
                                    	double tmp;
                                    	if ((angle_m / 180.0) <= 4e+121) {
                                    		tmp = (b + a_m) * ((b - a_m) * (2.0 * sin((0.005555555555555556 * (angle_m * ((double) M_PI))))));
                                    	} else {
                                    		tmp = cos((angle_m * (((double) M_PI) * 0.005555555555555556))) * (0.011111111111111112 * ((angle_m * ((double) M_PI)) * ((b + a_m) * (b - a_m))));
                                    	}
                                    	return angle_s * tmp;
                                    }
                                    
                                    a_m = Math.abs(a);
                                    angle\_m = Math.abs(angle);
                                    angle\_s = Math.copySign(1.0, angle);
                                    public static double code(double angle_s, double a_m, double b, double angle_m) {
                                    	double tmp;
                                    	if ((angle_m / 180.0) <= 4e+121) {
                                    		tmp = (b + a_m) * ((b - a_m) * (2.0 * Math.sin((0.005555555555555556 * (angle_m * Math.PI)))));
                                    	} else {
                                    		tmp = Math.cos((angle_m * (Math.PI * 0.005555555555555556))) * (0.011111111111111112 * ((angle_m * Math.PI) * ((b + a_m) * (b - a_m))));
                                    	}
                                    	return angle_s * tmp;
                                    }
                                    
                                    a_m = math.fabs(a)
                                    angle\_m = math.fabs(angle)
                                    angle\_s = math.copysign(1.0, angle)
                                    def code(angle_s, a_m, b, angle_m):
                                    	tmp = 0
                                    	if (angle_m / 180.0) <= 4e+121:
                                    		tmp = (b + a_m) * ((b - a_m) * (2.0 * math.sin((0.005555555555555556 * (angle_m * math.pi)))))
                                    	else:
                                    		tmp = math.cos((angle_m * (math.pi * 0.005555555555555556))) * (0.011111111111111112 * ((angle_m * math.pi) * ((b + a_m) * (b - a_m))))
                                    	return angle_s * tmp
                                    
                                    a_m = abs(a)
                                    angle\_m = abs(angle)
                                    angle\_s = copysign(1.0, angle)
                                    function code(angle_s, a_m, b, angle_m)
                                    	tmp = 0.0
                                    	if (Float64(angle_m / 180.0) <= 4e+121)
                                    		tmp = Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(2.0 * sin(Float64(0.005555555555555556 * Float64(angle_m * pi))))));
                                    	else
                                    		tmp = Float64(cos(Float64(angle_m * Float64(pi * 0.005555555555555556))) * Float64(0.011111111111111112 * Float64(Float64(angle_m * pi) * Float64(Float64(b + a_m) * Float64(b - a_m)))));
                                    	end
                                    	return Float64(angle_s * tmp)
                                    end
                                    
                                    a_m = abs(a);
                                    angle\_m = abs(angle);
                                    angle\_s = sign(angle) * abs(1.0);
                                    function tmp_2 = code(angle_s, a_m, b, angle_m)
                                    	tmp = 0.0;
                                    	if ((angle_m / 180.0) <= 4e+121)
                                    		tmp = (b + a_m) * ((b - a_m) * (2.0 * sin((0.005555555555555556 * (angle_m * pi)))));
                                    	else
                                    		tmp = cos((angle_m * (pi * 0.005555555555555556))) * (0.011111111111111112 * ((angle_m * pi) * ((b + a_m) * (b - a_m))));
                                    	end
                                    	tmp_2 = angle_s * tmp;
                                    end
                                    
                                    a_m = N[Abs[a], $MachinePrecision]
                                    angle\_m = N[Abs[angle], $MachinePrecision]
                                    angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                    code[angle$95$s_, a$95$m_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 4e+121], N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(2.0 * N[Sin[N[(0.005555555555555556 * N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Cos[N[(angle$95$m * N[(Pi * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(0.011111111111111112 * N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(N[(b + a$95$m), $MachinePrecision] * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                                    
                                    \begin{array}{l}
                                    a_m = \left|a\right|
                                    \\
                                    angle\_m = \left|angle\right|
                                    \\
                                    angle\_s = \mathsf{copysign}\left(1, angle\right)
                                    
                                    \\
                                    angle\_s \cdot \begin{array}{l}
                                    \mathbf{if}\;\frac{angle\_m}{180} \leq 4 \cdot 10^{+121}:\\
                                    \;\;\;\;\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\right)\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;\cos \left(angle\_m \cdot \left(\pi \cdot 0.005555555555555556\right)\right) \cdot \left(0.011111111111111112 \cdot \left(\left(angle\_m \cdot \pi\right) \cdot \left(\left(b + a\_m\right) \cdot \left(b - a\_m\right)\right)\right)\right)\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if (/.f64 angle #s(literal 180 binary64)) < 4.00000000000000015e121

                                      1. Initial program 61.0%

                                        \[\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. Add Preprocessing
                                      3. Step-by-step derivation
                                        1. lift-pow.f64N/A

                                          \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        2. lift-pow.f64N/A

                                          \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        3. lift--.f64N/A

                                          \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        4. *-commutativeN/A

                                          \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        5. lift-PI.f64N/A

                                          \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        6. lift-/.f64N/A

                                          \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        7. lift-*.f64N/A

                                          \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        8. lift-sin.f64N/A

                                          \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        9. associate-*l*N/A

                                          \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        10. lift--.f64N/A

                                          \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        11. lift-pow.f64N/A

                                          \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        12. unpow2N/A

                                          \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        13. lift-pow.f64N/A

                                          \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        14. unpow2N/A

                                          \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        15. difference-of-squaresN/A

                                          \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        16. associate-*l*N/A

                                          \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        17. lower-*.f64N/A

                                          \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        18. lower-+.f64N/A

                                          \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        19. *-commutativeN/A

                                          \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                      4. Applied egg-rr78.6%

                                        \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                      5. Step-by-step derivation
                                        1. lift-PI.f64N/A

                                          \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        2. associate-*r*N/A

                                          \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        3. *-commutativeN/A

                                          \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        4. lift-*.f64N/A

                                          \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        5. lower-*.f6478.5

                                          \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(angle \cdot \pi\right) \cdot 0.005555555555555556\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                        6. lift-*.f64N/A

                                          \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        7. *-commutativeN/A

                                          \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        8. lower-*.f6478.5

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

                                        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(\pi \cdot angle\right) \cdot 0.005555555555555556\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                      7. Taylor expanded in angle around 0

                                        \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \color{blue}{1} \]
                                      8. Step-by-step derivation
                                        1. Simplified77.6%

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

                                        if 4.00000000000000015e121 < (/.f64 angle #s(literal 180 binary64))

                                        1. Initial program 27.8%

                                          \[\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. Add Preprocessing
                                        3. Taylor expanded in angle around 0

                                          \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        4. Step-by-step derivation
                                          1. *-commutativeN/A

                                            \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          2. associate-*r*N/A

                                            \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          3. associate-*l*N/A

                                            \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          4. lower-*.f64N/A

                                            \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          5. lower-*.f64N/A

                                            \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          6. lower-PI.f64N/A

                                            \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          7. *-commutativeN/A

                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          8. lower-*.f64N/A

                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          9. unpow2N/A

                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          10. unpow2N/A

                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          11. difference-of-squaresN/A

                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          12. lower-*.f64N/A

                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          13. +-commutativeN/A

                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          14. lower-+.f64N/A

                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          15. lower--.f6432.5

                                            \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                        5. Simplified32.5%

                                          \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                        6. Step-by-step derivation
                                          1. lift-PI.f64N/A

                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right) \]
                                          2. div-invN/A

                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(angle \cdot \frac{1}{180}\right)}\right) \]
                                          3. metadata-evalN/A

                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \color{blue}{\frac{1}{180}}\right)\right) \]
                                          4. *-commutativeN/A

                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(\frac{1}{180} \cdot angle\right)}\right) \]
                                          5. associate-*r*N/A

                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right)} \]
                                          6. lower-*.f64N/A

                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right)} \]
                                          7. lower-*.f6438.5

                                            \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\color{blue}{\left(\pi \cdot 0.005555555555555556\right)} \cdot angle\right) \]
                                        7. Applied egg-rr38.5%

                                          \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \color{blue}{\left(\left(\pi \cdot 0.005555555555555556\right) \cdot angle\right)} \]
                                        8. Step-by-step derivation
                                          1. lift-PI.f64N/A

                                            \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right) \]
                                          2. *-commutativeN/A

                                            \[\leadsto \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right) \]
                                          3. lift-*.f64N/A

                                            \[\leadsto \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right) \]
                                          4. +-commutativeN/A

                                            \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(b + a\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right) \]
                                          5. difference-of-squaresN/A

                                            \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(b \cdot b - a \cdot a\right)}\right)\right) \cdot \cos \left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right) \]
                                          6. *-commutativeN/A

                                            \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \color{blue}{\left(\left(b \cdot b - a \cdot a\right) \cdot \frac{1}{90}\right)}\right) \cdot \cos \left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right) \]
                                          7. associate-*r*N/A

                                            \[\leadsto \color{blue}{\left(\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(b \cdot b - a \cdot a\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right) \]
                                          8. lower-*.f64N/A

                                            \[\leadsto \color{blue}{\left(\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(b \cdot b - a \cdot a\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right) \]
                                          9. lower-*.f64N/A

                                            \[\leadsto \left(\color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(b \cdot b - a \cdot a\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right) \]
                                          10. difference-of-squaresN/A

                                            \[\leadsto \left(\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right) \cdot \frac{1}{90}\right) \cdot \cos \left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right) \]
                                          11. +-commutativeN/A

                                            \[\leadsto \left(\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right) \cdot \frac{1}{90}\right) \cdot \cos \left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right) \]
                                          12. lift-+.f64N/A

                                            \[\leadsto \left(\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right) \cdot \frac{1}{90}\right) \cdot \cos \left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right) \]
                                          13. lift--.f64N/A

                                            \[\leadsto \left(\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right) \cdot \frac{1}{90}\right) \cdot \cos \left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right) \]
                                          14. lift-*.f6438.5

                                            \[\leadsto \left(\left(\left(\pi \cdot angle\right) \cdot \color{blue}{\left(\left(a + b\right) \cdot \left(b - a\right)\right)}\right) \cdot 0.011111111111111112\right) \cdot \cos \left(\left(\pi \cdot 0.005555555555555556\right) \cdot angle\right) \]
                                        9. Applied egg-rr38.5%

                                          \[\leadsto \color{blue}{\left(\left(\left(\pi \cdot angle\right) \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right) \cdot 0.011111111111111112\right)} \cdot \cos \left(\left(\pi \cdot 0.005555555555555556\right) \cdot angle\right) \]
                                      9. Recombined 2 regimes into one program.
                                      10. Final simplification69.8%

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq 4 \cdot 10^{+121}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\cos \left(angle \cdot \left(\pi \cdot 0.005555555555555556\right)\right) \cdot \left(0.011111111111111112 \cdot \left(\left(angle \cdot \pi\right) \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)\right)\right)\\ \end{array} \]
                                      11. Add Preprocessing

                                      Alternative 19: 64.4% accurate, 2.8× speedup?

                                      \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 4 \cdot 10^{+121}:\\ \;\;\;\;\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\cos \left(angle\_m \cdot \left(\pi \cdot 0.005555555555555556\right)\right) \cdot \left(\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\_m\right) \cdot \left(b - a\_m\right)\right)\right)\right)\\ \end{array} \end{array} \]
                                      a_m = (fabs.f64 a)
                                      angle\_m = (fabs.f64 angle)
                                      angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                                      (FPCore (angle_s a_m b angle_m)
                                       :precision binary64
                                       (*
                                        angle_s
                                        (if (<= (/ angle_m 180.0) 4e+121)
                                          (*
                                           (+ b a_m)
                                           (* (- b a_m) (* 2.0 (sin (* 0.005555555555555556 (* angle_m PI))))))
                                          (*
                                           (cos (* angle_m (* PI 0.005555555555555556)))
                                           (* (* angle_m PI) (* 0.011111111111111112 (* (+ b a_m) (- b a_m))))))))
                                      a_m = fabs(a);
                                      angle\_m = fabs(angle);
                                      angle\_s = copysign(1.0, angle);
                                      double code(double angle_s, double a_m, double b, double angle_m) {
                                      	double tmp;
                                      	if ((angle_m / 180.0) <= 4e+121) {
                                      		tmp = (b + a_m) * ((b - a_m) * (2.0 * sin((0.005555555555555556 * (angle_m * ((double) M_PI))))));
                                      	} else {
                                      		tmp = cos((angle_m * (((double) M_PI) * 0.005555555555555556))) * ((angle_m * ((double) M_PI)) * (0.011111111111111112 * ((b + a_m) * (b - a_m))));
                                      	}
                                      	return angle_s * tmp;
                                      }
                                      
                                      a_m = Math.abs(a);
                                      angle\_m = Math.abs(angle);
                                      angle\_s = Math.copySign(1.0, angle);
                                      public static double code(double angle_s, double a_m, double b, double angle_m) {
                                      	double tmp;
                                      	if ((angle_m / 180.0) <= 4e+121) {
                                      		tmp = (b + a_m) * ((b - a_m) * (2.0 * Math.sin((0.005555555555555556 * (angle_m * Math.PI)))));
                                      	} else {
                                      		tmp = Math.cos((angle_m * (Math.PI * 0.005555555555555556))) * ((angle_m * Math.PI) * (0.011111111111111112 * ((b + a_m) * (b - a_m))));
                                      	}
                                      	return angle_s * tmp;
                                      }
                                      
                                      a_m = math.fabs(a)
                                      angle\_m = math.fabs(angle)
                                      angle\_s = math.copysign(1.0, angle)
                                      def code(angle_s, a_m, b, angle_m):
                                      	tmp = 0
                                      	if (angle_m / 180.0) <= 4e+121:
                                      		tmp = (b + a_m) * ((b - a_m) * (2.0 * math.sin((0.005555555555555556 * (angle_m * math.pi)))))
                                      	else:
                                      		tmp = math.cos((angle_m * (math.pi * 0.005555555555555556))) * ((angle_m * math.pi) * (0.011111111111111112 * ((b + a_m) * (b - a_m))))
                                      	return angle_s * tmp
                                      
                                      a_m = abs(a)
                                      angle\_m = abs(angle)
                                      angle\_s = copysign(1.0, angle)
                                      function code(angle_s, a_m, b, angle_m)
                                      	tmp = 0.0
                                      	if (Float64(angle_m / 180.0) <= 4e+121)
                                      		tmp = Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(2.0 * sin(Float64(0.005555555555555556 * Float64(angle_m * pi))))));
                                      	else
                                      		tmp = Float64(cos(Float64(angle_m * Float64(pi * 0.005555555555555556))) * Float64(Float64(angle_m * pi) * Float64(0.011111111111111112 * Float64(Float64(b + a_m) * Float64(b - a_m)))));
                                      	end
                                      	return Float64(angle_s * tmp)
                                      end
                                      
                                      a_m = abs(a);
                                      angle\_m = abs(angle);
                                      angle\_s = sign(angle) * abs(1.0);
                                      function tmp_2 = code(angle_s, a_m, b, angle_m)
                                      	tmp = 0.0;
                                      	if ((angle_m / 180.0) <= 4e+121)
                                      		tmp = (b + a_m) * ((b - a_m) * (2.0 * sin((0.005555555555555556 * (angle_m * pi)))));
                                      	else
                                      		tmp = cos((angle_m * (pi * 0.005555555555555556))) * ((angle_m * pi) * (0.011111111111111112 * ((b + a_m) * (b - a_m))));
                                      	end
                                      	tmp_2 = angle_s * tmp;
                                      end
                                      
                                      a_m = N[Abs[a], $MachinePrecision]
                                      angle\_m = N[Abs[angle], $MachinePrecision]
                                      angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                      code[angle$95$s_, a$95$m_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 4e+121], N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(2.0 * N[Sin[N[(0.005555555555555556 * N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Cos[N[(angle$95$m * N[(Pi * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(0.011111111111111112 * N[(N[(b + a$95$m), $MachinePrecision] * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                                      
                                      \begin{array}{l}
                                      a_m = \left|a\right|
                                      \\
                                      angle\_m = \left|angle\right|
                                      \\
                                      angle\_s = \mathsf{copysign}\left(1, angle\right)
                                      
                                      \\
                                      angle\_s \cdot \begin{array}{l}
                                      \mathbf{if}\;\frac{angle\_m}{180} \leq 4 \cdot 10^{+121}:\\
                                      \;\;\;\;\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\right)\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;\cos \left(angle\_m \cdot \left(\pi \cdot 0.005555555555555556\right)\right) \cdot \left(\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\_m\right) \cdot \left(b - a\_m\right)\right)\right)\right)\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if (/.f64 angle #s(literal 180 binary64)) < 4.00000000000000015e121

                                        1. Initial program 61.0%

                                          \[\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. Add Preprocessing
                                        3. Step-by-step derivation
                                          1. lift-pow.f64N/A

                                            \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          2. lift-pow.f64N/A

                                            \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          3. lift--.f64N/A

                                            \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          4. *-commutativeN/A

                                            \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          5. lift-PI.f64N/A

                                            \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          6. lift-/.f64N/A

                                            \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          7. lift-*.f64N/A

                                            \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          8. lift-sin.f64N/A

                                            \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          9. associate-*l*N/A

                                            \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          10. lift--.f64N/A

                                            \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          11. lift-pow.f64N/A

                                            \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          12. unpow2N/A

                                            \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          13. lift-pow.f64N/A

                                            \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          14. unpow2N/A

                                            \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          15. difference-of-squaresN/A

                                            \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          16. associate-*l*N/A

                                            \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          17. lower-*.f64N/A

                                            \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          18. lower-+.f64N/A

                                            \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          19. *-commutativeN/A

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        4. Applied egg-rr78.6%

                                          \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                        5. Step-by-step derivation
                                          1. lift-PI.f64N/A

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          2. associate-*r*N/A

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          3. *-commutativeN/A

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          4. lift-*.f64N/A

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          5. lower-*.f6478.5

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(angle \cdot \pi\right) \cdot 0.005555555555555556\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                          6. lift-*.f64N/A

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          7. *-commutativeN/A

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          8. lower-*.f6478.5

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

                                          \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(\pi \cdot angle\right) \cdot 0.005555555555555556\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                        7. Taylor expanded in angle around 0

                                          \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \color{blue}{1} \]
                                        8. Step-by-step derivation
                                          1. Simplified77.6%

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

                                          if 4.00000000000000015e121 < (/.f64 angle #s(literal 180 binary64))

                                          1. Initial program 27.8%

                                            \[\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. Add Preprocessing
                                          3. Taylor expanded in angle around 0

                                            \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          4. Step-by-step derivation
                                            1. *-commutativeN/A

                                              \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            2. associate-*r*N/A

                                              \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            3. associate-*l*N/A

                                              \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            4. lower-*.f64N/A

                                              \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            5. lower-*.f64N/A

                                              \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            6. lower-PI.f64N/A

                                              \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            7. *-commutativeN/A

                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            8. lower-*.f64N/A

                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            9. unpow2N/A

                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            10. unpow2N/A

                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            11. difference-of-squaresN/A

                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            12. lower-*.f64N/A

                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            13. +-commutativeN/A

                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            14. lower-+.f64N/A

                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            15. lower--.f6432.5

                                              \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                          5. Simplified32.5%

                                            \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                          6. Step-by-step derivation
                                            1. lift-PI.f64N/A

                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right) \]
                                            2. div-invN/A

                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(angle \cdot \frac{1}{180}\right)}\right) \]
                                            3. metadata-evalN/A

                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \color{blue}{\frac{1}{180}}\right)\right) \]
                                            4. *-commutativeN/A

                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(\frac{1}{180} \cdot angle\right)}\right) \]
                                            5. associate-*r*N/A

                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right)} \]
                                            6. lower-*.f64N/A

                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{180}\right) \cdot angle\right)} \]
                                            7. lower-*.f6438.5

                                              \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\color{blue}{\left(\pi \cdot 0.005555555555555556\right)} \cdot angle\right) \]
                                          7. Applied egg-rr38.5%

                                            \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \color{blue}{\left(\left(\pi \cdot 0.005555555555555556\right) \cdot angle\right)} \]
                                        9. Recombined 2 regimes into one program.
                                        10. Final simplification69.8%

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq 4 \cdot 10^{+121}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\cos \left(angle \cdot \left(\pi \cdot 0.005555555555555556\right)\right) \cdot \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)\right)\right)\\ \end{array} \]
                                        11. Add Preprocessing

                                        Alternative 20: 65.6% accurate, 3.4× speedup?

                                        \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\right)\right) \end{array} \]
                                        a_m = (fabs.f64 a)
                                        angle\_m = (fabs.f64 angle)
                                        angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                                        (FPCore (angle_s a_m b angle_m)
                                         :precision binary64
                                         (*
                                          angle_s
                                          (*
                                           (+ b a_m)
                                           (* (- b a_m) (* 2.0 (sin (* 0.005555555555555556 (* angle_m PI))))))))
                                        a_m = fabs(a);
                                        angle\_m = fabs(angle);
                                        angle\_s = copysign(1.0, angle);
                                        double code(double angle_s, double a_m, double b, double angle_m) {
                                        	return angle_s * ((b + a_m) * ((b - a_m) * (2.0 * sin((0.005555555555555556 * (angle_m * ((double) M_PI)))))));
                                        }
                                        
                                        a_m = Math.abs(a);
                                        angle\_m = Math.abs(angle);
                                        angle\_s = Math.copySign(1.0, angle);
                                        public static double code(double angle_s, double a_m, double b, double angle_m) {
                                        	return angle_s * ((b + a_m) * ((b - a_m) * (2.0 * Math.sin((0.005555555555555556 * (angle_m * Math.PI))))));
                                        }
                                        
                                        a_m = math.fabs(a)
                                        angle\_m = math.fabs(angle)
                                        angle\_s = math.copysign(1.0, angle)
                                        def code(angle_s, a_m, b, angle_m):
                                        	return angle_s * ((b + a_m) * ((b - a_m) * (2.0 * math.sin((0.005555555555555556 * (angle_m * math.pi))))))
                                        
                                        a_m = abs(a)
                                        angle\_m = abs(angle)
                                        angle\_s = copysign(1.0, angle)
                                        function code(angle_s, a_m, b, angle_m)
                                        	return Float64(angle_s * Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(2.0 * sin(Float64(0.005555555555555556 * Float64(angle_m * pi)))))))
                                        end
                                        
                                        a_m = abs(a);
                                        angle\_m = abs(angle);
                                        angle\_s = sign(angle) * abs(1.0);
                                        function tmp = code(angle_s, a_m, b, angle_m)
                                        	tmp = angle_s * ((b + a_m) * ((b - a_m) * (2.0 * sin((0.005555555555555556 * (angle_m * pi))))));
                                        end
                                        
                                        a_m = N[Abs[a], $MachinePrecision]
                                        angle\_m = N[Abs[angle], $MachinePrecision]
                                        angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                        code[angle$95$s_, a$95$m_, b_, angle$95$m_] := N[(angle$95$s * N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(2.0 * N[Sin[N[(0.005555555555555556 * N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                        
                                        \begin{array}{l}
                                        a_m = \left|a\right|
                                        \\
                                        angle\_m = \left|angle\right|
                                        \\
                                        angle\_s = \mathsf{copysign}\left(1, angle\right)
                                        
                                        \\
                                        angle\_s \cdot \left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\right)\right)
                                        \end{array}
                                        
                                        Derivation
                                        1. Initial program 54.4%

                                          \[\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. Add Preprocessing
                                        3. Step-by-step derivation
                                          1. lift-pow.f64N/A

                                            \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          2. lift-pow.f64N/A

                                            \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          3. lift--.f64N/A

                                            \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          4. *-commutativeN/A

                                            \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          5. lift-PI.f64N/A

                                            \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          6. lift-/.f64N/A

                                            \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          7. lift-*.f64N/A

                                            \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          8. lift-sin.f64N/A

                                            \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          9. associate-*l*N/A

                                            \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          10. lift--.f64N/A

                                            \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          11. lift-pow.f64N/A

                                            \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          12. unpow2N/A

                                            \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          13. lift-pow.f64N/A

                                            \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          14. unpow2N/A

                                            \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          15. difference-of-squaresN/A

                                            \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          16. associate-*l*N/A

                                            \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          17. lower-*.f64N/A

                                            \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          18. lower-+.f64N/A

                                            \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          19. *-commutativeN/A

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                        4. Applied egg-rr68.4%

                                          \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                        5. Step-by-step derivation
                                          1. lift-PI.f64N/A

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          2. associate-*r*N/A

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          3. *-commutativeN/A

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          4. lift-*.f64N/A

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          5. lower-*.f6469.1

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(angle \cdot \pi\right) \cdot 0.005555555555555556\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                          6. lift-*.f64N/A

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          7. *-commutativeN/A

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          8. lower-*.f6469.1

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

                                          \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \color{blue}{\left(\left(\pi \cdot angle\right) \cdot 0.005555555555555556\right)} \cdot 2\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                        7. Taylor expanded in angle around 0

                                          \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{180}\right) \cdot 2\right)\right)\right) \cdot \color{blue}{1} \]
                                        8. Step-by-step derivation
                                          1. Simplified66.7%

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\left(\pi \cdot angle\right) \cdot 0.005555555555555556\right) \cdot 2\right)\right)\right) \cdot \color{blue}{1} \]
                                          2. Final simplification66.7%

                                            \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)\right) \]
                                          3. Add Preprocessing

                                          Alternative 21: 65.5% accurate, 3.4× speedup?

                                          \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \end{array} \]
                                          a_m = (fabs.f64 a)
                                          angle\_m = (fabs.f64 angle)
                                          angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                                          (FPCore (angle_s a_m b angle_m)
                                           :precision binary64
                                           (*
                                            angle_s
                                            (*
                                             (+ b a_m)
                                             (* (- b a_m) (* (sin (* PI (* angle_m 0.005555555555555556))) 2.0)))))
                                          a_m = fabs(a);
                                          angle\_m = fabs(angle);
                                          angle\_s = copysign(1.0, angle);
                                          double code(double angle_s, double a_m, double b, double angle_m) {
                                          	return angle_s * ((b + a_m) * ((b - a_m) * (sin((((double) M_PI) * (angle_m * 0.005555555555555556))) * 2.0)));
                                          }
                                          
                                          a_m = Math.abs(a);
                                          angle\_m = Math.abs(angle);
                                          angle\_s = Math.copySign(1.0, angle);
                                          public static double code(double angle_s, double a_m, double b, double angle_m) {
                                          	return angle_s * ((b + a_m) * ((b - a_m) * (Math.sin((Math.PI * (angle_m * 0.005555555555555556))) * 2.0)));
                                          }
                                          
                                          a_m = math.fabs(a)
                                          angle\_m = math.fabs(angle)
                                          angle\_s = math.copysign(1.0, angle)
                                          def code(angle_s, a_m, b, angle_m):
                                          	return angle_s * ((b + a_m) * ((b - a_m) * (math.sin((math.pi * (angle_m * 0.005555555555555556))) * 2.0)))
                                          
                                          a_m = abs(a)
                                          angle\_m = abs(angle)
                                          angle\_s = copysign(1.0, angle)
                                          function code(angle_s, a_m, b, angle_m)
                                          	return Float64(angle_s * Float64(Float64(b + a_m) * Float64(Float64(b - a_m) * Float64(sin(Float64(pi * Float64(angle_m * 0.005555555555555556))) * 2.0))))
                                          end
                                          
                                          a_m = abs(a);
                                          angle\_m = abs(angle);
                                          angle\_s = sign(angle) * abs(1.0);
                                          function tmp = code(angle_s, a_m, b, angle_m)
                                          	tmp = angle_s * ((b + a_m) * ((b - a_m) * (sin((pi * (angle_m * 0.005555555555555556))) * 2.0)));
                                          end
                                          
                                          a_m = N[Abs[a], $MachinePrecision]
                                          angle\_m = N[Abs[angle], $MachinePrecision]
                                          angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                          code[angle$95$s_, a$95$m_, b_, angle$95$m_] := N[(angle$95$s * N[(N[(b + a$95$m), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(N[Sin[N[(Pi * N[(angle$95$m * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                          
                                          \begin{array}{l}
                                          a_m = \left|a\right|
                                          \\
                                          angle\_m = \left|angle\right|
                                          \\
                                          angle\_s = \mathsf{copysign}\left(1, angle\right)
                                          
                                          \\
                                          angle\_s \cdot \left(\left(b + a\_m\right) \cdot \left(\left(b - a\_m\right) \cdot \left(\sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)
                                          \end{array}
                                          
                                          Derivation
                                          1. Initial program 54.4%

                                            \[\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. Add Preprocessing
                                          3. Step-by-step derivation
                                            1. lift-pow.f64N/A

                                              \[\leadsto \left(\left(2 \cdot \left(\color{blue}{{b}^{2}} - {a}^{2}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            2. lift-pow.f64N/A

                                              \[\leadsto \left(\left(2 \cdot \left({b}^{2} - \color{blue}{{a}^{2}}\right)\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            3. lift--.f64N/A

                                              \[\leadsto \left(\left(2 \cdot \color{blue}{\left({b}^{2} - {a}^{2}\right)}\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            4. *-commutativeN/A

                                              \[\leadsto \left(\color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right)} \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            5. lift-PI.f64N/A

                                              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            6. lift-/.f64N/A

                                              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\frac{angle}{180}}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            7. lift-*.f64N/A

                                              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            8. lift-sin.f64N/A

                                              \[\leadsto \left(\left(\left({b}^{2} - {a}^{2}\right) \cdot 2\right) \cdot \color{blue}{\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            9. associate-*l*N/A

                                              \[\leadsto \color{blue}{\left(\left({b}^{2} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            10. lift--.f64N/A

                                              \[\leadsto \left(\color{blue}{\left({b}^{2} - {a}^{2}\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            11. lift-pow.f64N/A

                                              \[\leadsto \left(\left(\color{blue}{{b}^{2}} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            12. unpow2N/A

                                              \[\leadsto \left(\left(\color{blue}{b \cdot b} - {a}^{2}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            13. lift-pow.f64N/A

                                              \[\leadsto \left(\left(b \cdot b - \color{blue}{{a}^{2}}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            14. unpow2N/A

                                              \[\leadsto \left(\left(b \cdot b - \color{blue}{a \cdot a}\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            15. difference-of-squaresN/A

                                              \[\leadsto \left(\color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            16. associate-*l*N/A

                                              \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            17. lower-*.f64N/A

                                              \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            18. lower-+.f64N/A

                                              \[\leadsto \left(\color{blue}{\left(b + a\right)} \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                            19. *-commutativeN/A

                                              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot 2\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                          4. Applied egg-rr68.4%

                                            \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                          5. Taylor expanded in angle around 0

                                            \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{180}\right)\right) \cdot 2\right)\right)\right) \cdot \color{blue}{1} \]
                                          6. Step-by-step derivation
                                            1. Simplified66.7%

                                              \[\leadsto \left(\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right)\right) \cdot \color{blue}{1} \]
                                            2. Final simplification66.7%

                                              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right) \cdot 2\right)\right) \]
                                            3. Add Preprocessing

                                            Alternative 22: 62.3% accurate, 6.5× speedup?

                                            \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 100000:\\ \;\;\;\;\left(b - a\_m\right) \cdot \left(\left(b + a\_m\right) \cdot \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\_m\right) \cdot \left(b - a\_m\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle\_m \cdot angle\_m, \left(\pi \cdot \pi\right) \cdot -1.54320987654321 \cdot 10^{-5}, 1\right)\\ \end{array} \end{array} \]
                                            a_m = (fabs.f64 a)
                                            angle\_m = (fabs.f64 angle)
                                            angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                                            (FPCore (angle_s a_m b angle_m)
                                             :precision binary64
                                             (*
                                              angle_s
                                              (if (<= (/ angle_m 180.0) 100000.0)
                                                (* (- b a_m) (* (+ b a_m) (* PI (* angle_m 0.011111111111111112))))
                                                (*
                                                 (* (* angle_m PI) (* 0.011111111111111112 (* (+ b a_m) (- b a_m))))
                                                 (fma (* angle_m angle_m) (* (* PI PI) -1.54320987654321e-5) 1.0)))))
                                            a_m = fabs(a);
                                            angle\_m = fabs(angle);
                                            angle\_s = copysign(1.0, angle);
                                            double code(double angle_s, double a_m, double b, double angle_m) {
                                            	double tmp;
                                            	if ((angle_m / 180.0) <= 100000.0) {
                                            		tmp = (b - a_m) * ((b + a_m) * (((double) M_PI) * (angle_m * 0.011111111111111112)));
                                            	} else {
                                            		tmp = ((angle_m * ((double) M_PI)) * (0.011111111111111112 * ((b + a_m) * (b - a_m)))) * fma((angle_m * angle_m), ((((double) M_PI) * ((double) M_PI)) * -1.54320987654321e-5), 1.0);
                                            	}
                                            	return angle_s * tmp;
                                            }
                                            
                                            a_m = abs(a)
                                            angle\_m = abs(angle)
                                            angle\_s = copysign(1.0, angle)
                                            function code(angle_s, a_m, b, angle_m)
                                            	tmp = 0.0
                                            	if (Float64(angle_m / 180.0) <= 100000.0)
                                            		tmp = Float64(Float64(b - a_m) * Float64(Float64(b + a_m) * Float64(pi * Float64(angle_m * 0.011111111111111112))));
                                            	else
                                            		tmp = Float64(Float64(Float64(angle_m * pi) * Float64(0.011111111111111112 * Float64(Float64(b + a_m) * Float64(b - a_m)))) * fma(Float64(angle_m * angle_m), Float64(Float64(pi * pi) * -1.54320987654321e-5), 1.0));
                                            	end
                                            	return Float64(angle_s * tmp)
                                            end
                                            
                                            a_m = N[Abs[a], $MachinePrecision]
                                            angle\_m = N[Abs[angle], $MachinePrecision]
                                            angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                            code[angle$95$s_, a$95$m_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 100000.0], N[(N[(b - a$95$m), $MachinePrecision] * N[(N[(b + a$95$m), $MachinePrecision] * N[(Pi * N[(angle$95$m * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(0.011111111111111112 * N[(N[(b + a$95$m), $MachinePrecision] * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(angle$95$m * angle$95$m), $MachinePrecision] * N[(N[(Pi * Pi), $MachinePrecision] * -1.54320987654321e-5), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                                            
                                            \begin{array}{l}
                                            a_m = \left|a\right|
                                            \\
                                            angle\_m = \left|angle\right|
                                            \\
                                            angle\_s = \mathsf{copysign}\left(1, angle\right)
                                            
                                            \\
                                            angle\_s \cdot \begin{array}{l}
                                            \mathbf{if}\;\frac{angle\_m}{180} \leq 100000:\\
                                            \;\;\;\;\left(b - a\_m\right) \cdot \left(\left(b + a\_m\right) \cdot \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;\left(\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\_m\right) \cdot \left(b - a\_m\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle\_m \cdot angle\_m, \left(\pi \cdot \pi\right) \cdot -1.54320987654321 \cdot 10^{-5}, 1\right)\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 2 regimes
                                            2. if (/.f64 angle #s(literal 180 binary64)) < 1e5

                                              1. Initial program 62.8%

                                                \[\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. Add Preprocessing
                                              3. Taylor expanded in angle around 0

                                                \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                              4. Step-by-step derivation
                                                1. *-commutativeN/A

                                                  \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                2. associate-*r*N/A

                                                  \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                3. associate-*l*N/A

                                                  \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                4. lower-*.f64N/A

                                                  \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                5. lower-*.f64N/A

                                                  \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                6. lower-PI.f64N/A

                                                  \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                7. *-commutativeN/A

                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                8. lower-*.f64N/A

                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                9. unpow2N/A

                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                10. unpow2N/A

                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                11. difference-of-squaresN/A

                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                12. lower-*.f64N/A

                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                13. +-commutativeN/A

                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                14. lower-+.f64N/A

                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                15. lower--.f6463.0

                                                  \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                              5. Simplified63.0%

                                                \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                              6. Taylor expanded in angle around 0

                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                              7. Step-by-step derivation
                                                1. Simplified60.3%

                                                  \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                2. Step-by-step derivation
                                                  1. lift-PI.f64N/A

                                                    \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                  2. *-commutativeN/A

                                                    \[\leadsto \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                  3. lift-+.f64N/A

                                                    \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                  4. lift--.f64N/A

                                                    \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot 1 \]
                                                  5. *-commutativeN/A

                                                    \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
                                                  6. lift-*.f64N/A

                                                    \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
                                                  7. remove-double-divN/A

                                                    \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\frac{1}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
                                                  8. lift-/.f64N/A

                                                    \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \frac{1}{\color{blue}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
                                                  9. div-invN/A

                                                    \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \color{blue}{\frac{\frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right) \cdot 1 \]
                                                  10. lift-*.f64N/A

                                                    \[\leadsto \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \frac{\frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}\right) \cdot 1 \]
                                                  11. associate-/l*N/A

                                                    \[\leadsto \color{blue}{\frac{\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}} \cdot 1 \]
                                                  12. lift-*.f64N/A

                                                    \[\leadsto \frac{\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}} \cdot 1 \]
                                                  13. clear-numN/A

                                                    \[\leadsto \color{blue}{\frac{1}{\frac{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}{\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}}}} \cdot 1 \]
                                                  14. associate-/r/N/A

                                                    \[\leadsto \color{blue}{\left(\frac{1}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}} \cdot \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}\right)\right)} \cdot 1 \]
                                                  15. /-rgt-identityN/A

                                                    \[\leadsto \left(\frac{1}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}} \cdot \color{blue}{\frac{\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}}{1}}\right) \cdot 1 \]
                                                  16. times-fracN/A

                                                    \[\leadsto \color{blue}{\frac{1 \cdot \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}\right)}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)} \cdot 1}} \cdot 1 \]
                                                  17. *-rgt-identityN/A

                                                    \[\leadsto \frac{1 \cdot \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}\right)}{\color{blue}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}} \cdot 1 \]
                                                3. Applied egg-rr75.0%

                                                  \[\leadsto \color{blue}{\left(\left(b - a\right) \cdot \left(\left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right) \cdot \left(a + b\right)\right)\right)} \cdot 1 \]

                                                if 1e5 < (/.f64 angle #s(literal 180 binary64))

                                                1. Initial program 32.1%

                                                  \[\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. Add Preprocessing
                                                3. Taylor expanded in angle around 0

                                                  \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                4. Step-by-step derivation
                                                  1. *-commutativeN/A

                                                    \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  2. associate-*r*N/A

                                                    \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  3. associate-*l*N/A

                                                    \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  4. lower-*.f64N/A

                                                    \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  5. lower-*.f64N/A

                                                    \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  6. lower-PI.f64N/A

                                                    \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  7. *-commutativeN/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  8. lower-*.f64N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  9. unpow2N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  10. unpow2N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  11. difference-of-squaresN/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  12. lower-*.f64N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  13. +-commutativeN/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  14. lower-+.f64N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  15. lower--.f6427.1

                                                    \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                5. Simplified27.1%

                                                  \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                6. Taylor expanded in angle around 0

                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{\left(1 + \frac{-1}{64800} \cdot \left({angle}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)\right)} \]
                                                7. Step-by-step derivation
                                                  1. +-commutativeN/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{\left(\frac{-1}{64800} \cdot \left({angle}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + 1\right)} \]
                                                  2. *-commutativeN/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \left(\color{blue}{\left({angle}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) \cdot \frac{-1}{64800}} + 1\right) \]
                                                  3. associate-*r*N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \left(\color{blue}{{angle}^{2} \cdot \left({\mathsf{PI}\left(\right)}^{2} \cdot \frac{-1}{64800}\right)} + 1\right) \]
                                                  4. *-commutativeN/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \left({angle}^{2} \cdot \color{blue}{\left(\frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} + 1\right) \]
                                                  5. lower-fma.f64N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{\mathsf{fma}\left({angle}^{2}, \frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}, 1\right)} \]
                                                  6. unpow2N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(\color{blue}{angle \cdot angle}, \frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}, 1\right) \]
                                                  7. lower-*.f64N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(\color{blue}{angle \cdot angle}, \frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}, 1\right) \]
                                                  8. lower-*.f64N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \color{blue}{\frac{-1}{64800} \cdot {\mathsf{PI}\left(\right)}^{2}}, 1\right) \]
                                                  9. unpow2N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \frac{-1}{64800} \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)}, 1\right) \]
                                                  10. lower-*.f64N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \frac{-1}{64800} \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)}, 1\right) \]
                                                  11. lower-PI.f64N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \frac{-1}{64800} \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \mathsf{PI}\left(\right)\right), 1\right) \]
                                                  12. lower-PI.f6435.3

                                                    \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, -1.54320987654321 \cdot 10^{-5} \cdot \left(\pi \cdot \color{blue}{\pi}\right), 1\right) \]
                                                8. Simplified35.3%

                                                  \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{\mathsf{fma}\left(angle \cdot angle, -1.54320987654321 \cdot 10^{-5} \cdot \left(\pi \cdot \pi\right), 1\right)} \]
                                              8. Recombined 2 regimes into one program.
                                              9. Final simplification64.2%

                                                \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq 100000:\\ \;\;\;\;\left(b - a\right) \cdot \left(\left(b + a\right) \cdot \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \mathsf{fma}\left(angle \cdot angle, \left(\pi \cdot \pi\right) \cdot -1.54320987654321 \cdot 10^{-5}, 1\right)\\ \end{array} \]
                                              10. Add Preprocessing

                                              Alternative 23: 63.6% accurate, 7.9× speedup?

                                              \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ \begin{array}{l} t_0 := \left(b + a\_m\right) \cdot 0.011111111111111112\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{-5}:\\ \;\;\;\;\left(b - a\_m\right) \cdot \left(\left(b + a\_m\right) \cdot \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \mathsf{fma}\left(t\_0, -a\_m, b \cdot t\_0\right)\\ \end{array} \end{array} \end{array} \]
                                              a_m = (fabs.f64 a)
                                              angle\_m = (fabs.f64 angle)
                                              angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                                              (FPCore (angle_s a_m b angle_m)
                                               :precision binary64
                                               (let* ((t_0 (* (+ b a_m) 0.011111111111111112)))
                                                 (*
                                                  angle_s
                                                  (if (<= (/ angle_m 180.0) 2e-5)
                                                    (* (- b a_m) (* (+ b a_m) (* PI (* angle_m 0.011111111111111112))))
                                                    (* (* angle_m PI) (fma t_0 (- a_m) (* b t_0)))))))
                                              a_m = fabs(a);
                                              angle\_m = fabs(angle);
                                              angle\_s = copysign(1.0, angle);
                                              double code(double angle_s, double a_m, double b, double angle_m) {
                                              	double t_0 = (b + a_m) * 0.011111111111111112;
                                              	double tmp;
                                              	if ((angle_m / 180.0) <= 2e-5) {
                                              		tmp = (b - a_m) * ((b + a_m) * (((double) M_PI) * (angle_m * 0.011111111111111112)));
                                              	} else {
                                              		tmp = (angle_m * ((double) M_PI)) * fma(t_0, -a_m, (b * t_0));
                                              	}
                                              	return angle_s * tmp;
                                              }
                                              
                                              a_m = abs(a)
                                              angle\_m = abs(angle)
                                              angle\_s = copysign(1.0, angle)
                                              function code(angle_s, a_m, b, angle_m)
                                              	t_0 = Float64(Float64(b + a_m) * 0.011111111111111112)
                                              	tmp = 0.0
                                              	if (Float64(angle_m / 180.0) <= 2e-5)
                                              		tmp = Float64(Float64(b - a_m) * Float64(Float64(b + a_m) * Float64(pi * Float64(angle_m * 0.011111111111111112))));
                                              	else
                                              		tmp = Float64(Float64(angle_m * pi) * fma(t_0, Float64(-a_m), Float64(b * t_0)));
                                              	end
                                              	return Float64(angle_s * tmp)
                                              end
                                              
                                              a_m = N[Abs[a], $MachinePrecision]
                                              angle\_m = N[Abs[angle], $MachinePrecision]
                                              angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                              code[angle$95$s_, a$95$m_, b_, angle$95$m_] := Block[{t$95$0 = N[(N[(b + a$95$m), $MachinePrecision] * 0.011111111111111112), $MachinePrecision]}, N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 2e-5], N[(N[(b - a$95$m), $MachinePrecision] * N[(N[(b + a$95$m), $MachinePrecision] * N[(Pi * N[(angle$95$m * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(t$95$0 * (-a$95$m) + N[(b * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]
                                              
                                              \begin{array}{l}
                                              a_m = \left|a\right|
                                              \\
                                              angle\_m = \left|angle\right|
                                              \\
                                              angle\_s = \mathsf{copysign}\left(1, angle\right)
                                              
                                              \\
                                              \begin{array}{l}
                                              t_0 := \left(b + a\_m\right) \cdot 0.011111111111111112\\
                                              angle\_s \cdot \begin{array}{l}
                                              \mathbf{if}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{-5}:\\
                                              \;\;\;\;\left(b - a\_m\right) \cdot \left(\left(b + a\_m\right) \cdot \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \mathsf{fma}\left(t\_0, -a\_m, b \cdot t\_0\right)\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 2 regimes
                                              2. if (/.f64 angle #s(literal 180 binary64)) < 2.00000000000000016e-5

                                                1. Initial program 62.4%

                                                  \[\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. Add Preprocessing
                                                3. Taylor expanded in angle around 0

                                                  \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                4. Step-by-step derivation
                                                  1. *-commutativeN/A

                                                    \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  2. associate-*r*N/A

                                                    \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  3. associate-*l*N/A

                                                    \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  4. lower-*.f64N/A

                                                    \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  5. lower-*.f64N/A

                                                    \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  6. lower-PI.f64N/A

                                                    \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  7. *-commutativeN/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  8. lower-*.f64N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  9. unpow2N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  10. unpow2N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  11. difference-of-squaresN/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  12. lower-*.f64N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  13. +-commutativeN/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  14. lower-+.f64N/A

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  15. lower--.f6462.9

                                                    \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                5. Simplified62.9%

                                                  \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                6. Taylor expanded in angle around 0

                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                7. Step-by-step derivation
                                                  1. Simplified60.1%

                                                    \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                  2. Step-by-step derivation
                                                    1. lift-PI.f64N/A

                                                      \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                    2. *-commutativeN/A

                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                    3. lift-+.f64N/A

                                                      \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                    4. lift--.f64N/A

                                                      \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot 1 \]
                                                    5. *-commutativeN/A

                                                      \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
                                                    6. lift-*.f64N/A

                                                      \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
                                                    7. remove-double-divN/A

                                                      \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\frac{1}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
                                                    8. lift-/.f64N/A

                                                      \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \frac{1}{\color{blue}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
                                                    9. div-invN/A

                                                      \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \color{blue}{\frac{\frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right) \cdot 1 \]
                                                    10. lift-*.f64N/A

                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \frac{\frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}\right) \cdot 1 \]
                                                    11. associate-/l*N/A

                                                      \[\leadsto \color{blue}{\frac{\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}} \cdot 1 \]
                                                    12. lift-*.f64N/A

                                                      \[\leadsto \frac{\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}} \cdot 1 \]
                                                    13. clear-numN/A

                                                      \[\leadsto \color{blue}{\frac{1}{\frac{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}{\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}}}} \cdot 1 \]
                                                    14. associate-/r/N/A

                                                      \[\leadsto \color{blue}{\left(\frac{1}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}} \cdot \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}\right)\right)} \cdot 1 \]
                                                    15. /-rgt-identityN/A

                                                      \[\leadsto \left(\frac{1}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}} \cdot \color{blue}{\frac{\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}}{1}}\right) \cdot 1 \]
                                                    16. times-fracN/A

                                                      \[\leadsto \color{blue}{\frac{1 \cdot \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}\right)}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)} \cdot 1}} \cdot 1 \]
                                                    17. *-rgt-identityN/A

                                                      \[\leadsto \frac{1 \cdot \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}\right)}{\color{blue}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}} \cdot 1 \]
                                                  3. Applied egg-rr75.1%

                                                    \[\leadsto \color{blue}{\left(\left(b - a\right) \cdot \left(\left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right) \cdot \left(a + b\right)\right)\right)} \cdot 1 \]

                                                  if 2.00000000000000016e-5 < (/.f64 angle #s(literal 180 binary64))

                                                  1. Initial program 34.0%

                                                    \[\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. Add Preprocessing
                                                  3. Taylor expanded in angle around 0

                                                    \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                  4. Step-by-step derivation
                                                    1. *-commutativeN/A

                                                      \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                    2. associate-*r*N/A

                                                      \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                    3. associate-*l*N/A

                                                      \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                    4. lower-*.f64N/A

                                                      \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                    5. lower-*.f64N/A

                                                      \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                    6. lower-PI.f64N/A

                                                      \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                    7. *-commutativeN/A

                                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                    8. lower-*.f64N/A

                                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                    9. unpow2N/A

                                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                    10. unpow2N/A

                                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                    11. difference-of-squaresN/A

                                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                    12. lower-*.f64N/A

                                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                    13. +-commutativeN/A

                                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                    14. lower-+.f64N/A

                                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                    15. lower--.f6428.4

                                                      \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                  5. Simplified28.4%

                                                    \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                  6. Taylor expanded in angle around 0

                                                    \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                  7. Step-by-step derivation
                                                    1. Simplified21.6%

                                                      \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                    2. Step-by-step derivation
                                                      1. lift-+.f64N/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                      2. lift--.f64N/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot 1 \]
                                                      3. associate-*r*N/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\left(\frac{1}{90} \cdot \left(a + b\right)\right) \cdot \left(b - a\right)\right)}\right) \cdot 1 \]
                                                      4. lift--.f64N/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left(\frac{1}{90} \cdot \left(a + b\right)\right) \cdot \color{blue}{\left(b - a\right)}\right)\right) \cdot 1 \]
                                                      5. sub-negN/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left(\frac{1}{90} \cdot \left(a + b\right)\right) \cdot \color{blue}{\left(b + \left(\mathsf{neg}\left(a\right)\right)\right)}\right)\right) \cdot 1 \]
                                                      6. +-commutativeN/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left(\frac{1}{90} \cdot \left(a + b\right)\right) \cdot \color{blue}{\left(\left(\mathsf{neg}\left(a\right)\right) + b\right)}\right)\right) \cdot 1 \]
                                                      7. distribute-lft-inN/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\left(\frac{1}{90} \cdot \left(a + b\right)\right) \cdot \left(\mathsf{neg}\left(a\right)\right) + \left(\frac{1}{90} \cdot \left(a + b\right)\right) \cdot b\right)}\right) \cdot 1 \]
                                                      8. lower-fma.f64N/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{1}{90} \cdot \left(a + b\right), \mathsf{neg}\left(a\right), \left(\frac{1}{90} \cdot \left(a + b\right)\right) \cdot b\right)}\right) \cdot 1 \]
                                                      9. lower-*.f64N/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \mathsf{fma}\left(\color{blue}{\frac{1}{90} \cdot \left(a + b\right)}, \mathsf{neg}\left(a\right), \left(\frac{1}{90} \cdot \left(a + b\right)\right) \cdot b\right)\right) \cdot 1 \]
                                                      10. lower-neg.f64N/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \mathsf{fma}\left(\frac{1}{90} \cdot \left(a + b\right), \color{blue}{\mathsf{neg}\left(a\right)}, \left(\frac{1}{90} \cdot \left(a + b\right)\right) \cdot b\right)\right) \cdot 1 \]
                                                      11. lower-*.f64N/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \mathsf{fma}\left(\frac{1}{90} \cdot \left(a + b\right), \mathsf{neg}\left(a\right), \color{blue}{\left(\frac{1}{90} \cdot \left(a + b\right)\right) \cdot b}\right)\right) \cdot 1 \]
                                                      12. lower-*.f6421.6

                                                        \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \mathsf{fma}\left(0.011111111111111112 \cdot \left(a + b\right), -a, \color{blue}{\left(0.011111111111111112 \cdot \left(a + b\right)\right)} \cdot b\right)\right) \cdot 1 \]
                                                    3. Applied egg-rr21.6%

                                                      \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \color{blue}{\mathsf{fma}\left(0.011111111111111112 \cdot \left(a + b\right), -a, \left(0.011111111111111112 \cdot \left(a + b\right)\right) \cdot b\right)}\right) \cdot 1 \]
                                                  8. Recombined 2 regimes into one program.
                                                  9. Final simplification60.0%

                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq 2 \cdot 10^{-5}:\\ \;\;\;\;\left(b - a\right) \cdot \left(\left(b + a\right) \cdot \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle \cdot \pi\right) \cdot \mathsf{fma}\left(\left(b + a\right) \cdot 0.011111111111111112, -a, b \cdot \left(\left(b + a\right) \cdot 0.011111111111111112\right)\right)\\ \end{array} \]
                                                  10. Add Preprocessing

                                                  Alternative 24: 63.7% accurate, 10.3× speedup?

                                                  \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{-5}:\\ \;\;\;\;\left(b - a\_m\right) \cdot \left(\left(b + a\_m\right) \cdot \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;angle\_m \cdot \left(\pi \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\_m\right) \cdot \left(b - a\_m\right)\right)\right)\right)\\ \end{array} \end{array} \]
                                                  a_m = (fabs.f64 a)
                                                  angle\_m = (fabs.f64 angle)
                                                  angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                                                  (FPCore (angle_s a_m b angle_m)
                                                   :precision binary64
                                                   (*
                                                    angle_s
                                                    (if (<= (/ angle_m 180.0) 2e-5)
                                                      (* (- b a_m) (* (+ b a_m) (* PI (* angle_m 0.011111111111111112))))
                                                      (* angle_m (* PI (* 0.011111111111111112 (* (+ b a_m) (- b a_m))))))))
                                                  a_m = fabs(a);
                                                  angle\_m = fabs(angle);
                                                  angle\_s = copysign(1.0, angle);
                                                  double code(double angle_s, double a_m, double b, double angle_m) {
                                                  	double tmp;
                                                  	if ((angle_m / 180.0) <= 2e-5) {
                                                  		tmp = (b - a_m) * ((b + a_m) * (((double) M_PI) * (angle_m * 0.011111111111111112)));
                                                  	} else {
                                                  		tmp = angle_m * (((double) M_PI) * (0.011111111111111112 * ((b + a_m) * (b - a_m))));
                                                  	}
                                                  	return angle_s * tmp;
                                                  }
                                                  
                                                  a_m = Math.abs(a);
                                                  angle\_m = Math.abs(angle);
                                                  angle\_s = Math.copySign(1.0, angle);
                                                  public static double code(double angle_s, double a_m, double b, double angle_m) {
                                                  	double tmp;
                                                  	if ((angle_m / 180.0) <= 2e-5) {
                                                  		tmp = (b - a_m) * ((b + a_m) * (Math.PI * (angle_m * 0.011111111111111112)));
                                                  	} else {
                                                  		tmp = angle_m * (Math.PI * (0.011111111111111112 * ((b + a_m) * (b - a_m))));
                                                  	}
                                                  	return angle_s * tmp;
                                                  }
                                                  
                                                  a_m = math.fabs(a)
                                                  angle\_m = math.fabs(angle)
                                                  angle\_s = math.copysign(1.0, angle)
                                                  def code(angle_s, a_m, b, angle_m):
                                                  	tmp = 0
                                                  	if (angle_m / 180.0) <= 2e-5:
                                                  		tmp = (b - a_m) * ((b + a_m) * (math.pi * (angle_m * 0.011111111111111112)))
                                                  	else:
                                                  		tmp = angle_m * (math.pi * (0.011111111111111112 * ((b + a_m) * (b - a_m))))
                                                  	return angle_s * tmp
                                                  
                                                  a_m = abs(a)
                                                  angle\_m = abs(angle)
                                                  angle\_s = copysign(1.0, angle)
                                                  function code(angle_s, a_m, b, angle_m)
                                                  	tmp = 0.0
                                                  	if (Float64(angle_m / 180.0) <= 2e-5)
                                                  		tmp = Float64(Float64(b - a_m) * Float64(Float64(b + a_m) * Float64(pi * Float64(angle_m * 0.011111111111111112))));
                                                  	else
                                                  		tmp = Float64(angle_m * Float64(pi * Float64(0.011111111111111112 * Float64(Float64(b + a_m) * Float64(b - a_m)))));
                                                  	end
                                                  	return Float64(angle_s * tmp)
                                                  end
                                                  
                                                  a_m = abs(a);
                                                  angle\_m = abs(angle);
                                                  angle\_s = sign(angle) * abs(1.0);
                                                  function tmp_2 = code(angle_s, a_m, b, angle_m)
                                                  	tmp = 0.0;
                                                  	if ((angle_m / 180.0) <= 2e-5)
                                                  		tmp = (b - a_m) * ((b + a_m) * (pi * (angle_m * 0.011111111111111112)));
                                                  	else
                                                  		tmp = angle_m * (pi * (0.011111111111111112 * ((b + a_m) * (b - a_m))));
                                                  	end
                                                  	tmp_2 = angle_s * tmp;
                                                  end
                                                  
                                                  a_m = N[Abs[a], $MachinePrecision]
                                                  angle\_m = N[Abs[angle], $MachinePrecision]
                                                  angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                  code[angle$95$s_, a$95$m_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 2e-5], N[(N[(b - a$95$m), $MachinePrecision] * N[(N[(b + a$95$m), $MachinePrecision] * N[(Pi * N[(angle$95$m * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(angle$95$m * N[(Pi * N[(0.011111111111111112 * N[(N[(b + a$95$m), $MachinePrecision] * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                                                  
                                                  \begin{array}{l}
                                                  a_m = \left|a\right|
                                                  \\
                                                  angle\_m = \left|angle\right|
                                                  \\
                                                  angle\_s = \mathsf{copysign}\left(1, angle\right)
                                                  
                                                  \\
                                                  angle\_s \cdot \begin{array}{l}
                                                  \mathbf{if}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{-5}:\\
                                                  \;\;\;\;\left(b - a\_m\right) \cdot \left(\left(b + a\_m\right) \cdot \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\\
                                                  
                                                  \mathbf{else}:\\
                                                  \;\;\;\;angle\_m \cdot \left(\pi \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\_m\right) \cdot \left(b - a\_m\right)\right)\right)\right)\\
                                                  
                                                  
                                                  \end{array}
                                                  \end{array}
                                                  
                                                  Derivation
                                                  1. Split input into 2 regimes
                                                  2. if (/.f64 angle #s(literal 180 binary64)) < 2.00000000000000016e-5

                                                    1. Initial program 62.4%

                                                      \[\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. Add Preprocessing
                                                    3. Taylor expanded in angle around 0

                                                      \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                    4. Step-by-step derivation
                                                      1. *-commutativeN/A

                                                        \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                      2. associate-*r*N/A

                                                        \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                      3. associate-*l*N/A

                                                        \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                      4. lower-*.f64N/A

                                                        \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                      5. lower-*.f64N/A

                                                        \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                      6. lower-PI.f64N/A

                                                        \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                      7. *-commutativeN/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                      8. lower-*.f64N/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                      9. unpow2N/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                      10. unpow2N/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                      11. difference-of-squaresN/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                      12. lower-*.f64N/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                      13. +-commutativeN/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                      14. lower-+.f64N/A

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                      15. lower--.f6462.9

                                                        \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                    5. Simplified62.9%

                                                      \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                    6. Taylor expanded in angle around 0

                                                      \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                    7. Step-by-step derivation
                                                      1. Simplified60.1%

                                                        \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                      2. Step-by-step derivation
                                                        1. lift-PI.f64N/A

                                                          \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                        2. *-commutativeN/A

                                                          \[\leadsto \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                        3. lift-+.f64N/A

                                                          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                        4. lift--.f64N/A

                                                          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot 1 \]
                                                        5. *-commutativeN/A

                                                          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
                                                        6. lift-*.f64N/A

                                                          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
                                                        7. remove-double-divN/A

                                                          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\frac{1}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
                                                        8. lift-/.f64N/A

                                                          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \frac{1}{\color{blue}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
                                                        9. div-invN/A

                                                          \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \color{blue}{\frac{\frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right) \cdot 1 \]
                                                        10. lift-*.f64N/A

                                                          \[\leadsto \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \frac{\frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}\right) \cdot 1 \]
                                                        11. associate-/l*N/A

                                                          \[\leadsto \color{blue}{\frac{\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}} \cdot 1 \]
                                                        12. lift-*.f64N/A

                                                          \[\leadsto \frac{\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}} \cdot 1 \]
                                                        13. clear-numN/A

                                                          \[\leadsto \color{blue}{\frac{1}{\frac{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}{\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}}}} \cdot 1 \]
                                                        14. associate-/r/N/A

                                                          \[\leadsto \color{blue}{\left(\frac{1}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}} \cdot \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}\right)\right)} \cdot 1 \]
                                                        15. /-rgt-identityN/A

                                                          \[\leadsto \left(\frac{1}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}} \cdot \color{blue}{\frac{\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}}{1}}\right) \cdot 1 \]
                                                        16. times-fracN/A

                                                          \[\leadsto \color{blue}{\frac{1 \cdot \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}\right)}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)} \cdot 1}} \cdot 1 \]
                                                        17. *-rgt-identityN/A

                                                          \[\leadsto \frac{1 \cdot \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}\right)}{\color{blue}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}} \cdot 1 \]
                                                      3. Applied egg-rr75.1%

                                                        \[\leadsto \color{blue}{\left(\left(b - a\right) \cdot \left(\left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right) \cdot \left(a + b\right)\right)\right)} \cdot 1 \]

                                                      if 2.00000000000000016e-5 < (/.f64 angle #s(literal 180 binary64))

                                                      1. Initial program 34.0%

                                                        \[\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. Add Preprocessing
                                                      3. Taylor expanded in angle around 0

                                                        \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                      4. Step-by-step derivation
                                                        1. *-commutativeN/A

                                                          \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                        2. associate-*r*N/A

                                                          \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                        3. associate-*l*N/A

                                                          \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                        4. lower-*.f64N/A

                                                          \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                        5. lower-*.f64N/A

                                                          \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                        6. lower-PI.f64N/A

                                                          \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                        7. *-commutativeN/A

                                                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                        8. lower-*.f64N/A

                                                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                        9. unpow2N/A

                                                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                        10. unpow2N/A

                                                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                        11. difference-of-squaresN/A

                                                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                        12. lower-*.f64N/A

                                                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                        13. +-commutativeN/A

                                                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                        14. lower-+.f64N/A

                                                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                        15. lower--.f6428.4

                                                          \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                      5. Simplified28.4%

                                                        \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                      6. Taylor expanded in angle around 0

                                                        \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                      7. Step-by-step derivation
                                                        1. Simplified21.6%

                                                          \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                        2. Step-by-step derivation
                                                          1. lift-PI.f64N/A

                                                            \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                          2. lift-+.f64N/A

                                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                          3. lift--.f64N/A

                                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot 1 \]
                                                          4. *-commutativeN/A

                                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
                                                          5. lift-*.f64N/A

                                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
                                                          6. remove-double-divN/A

                                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\frac{1}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
                                                          7. lift-/.f64N/A

                                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \frac{1}{\color{blue}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
                                                          8. div-invN/A

                                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\frac{\frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right) \cdot 1 \]
                                                          9. associate-*l*N/A

                                                            \[\leadsto \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{\frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}\right)\right)} \cdot 1 \]
                                                          10. lift-/.f64N/A

                                                            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{\frac{1}{90}}{\color{blue}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
                                                          11. associate-/r/N/A

                                                            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(\frac{\frac{1}{90}}{1} \cdot \left(\left(b - a\right) \cdot \left(a + b\right)\right)\right)}\right)\right) \cdot 1 \]
                                                          12. metadata-evalN/A

                                                            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\color{blue}{\frac{1}{90}} \cdot \left(\left(b - a\right) \cdot \left(a + b\right)\right)\right)\right)\right) \cdot 1 \]
                                                          13. lift-*.f64N/A

                                                            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right)\right) \cdot 1 \]
                                                          14. *-commutativeN/A

                                                            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(a + b\right) \cdot \left(b - a\right)\right)}\right)\right)\right) \cdot 1 \]
                                                          15. lift-*.f64N/A

                                                            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(a + b\right) \cdot \left(b - a\right)\right)}\right)\right)\right) \cdot 1 \]
                                                          16. lift-*.f64N/A

                                                            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)}\right)\right) \cdot 1 \]
                                                          17. *-commutativeN/A

                                                            \[\leadsto \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot angle\right)} \cdot 1 \]
                                                        3. Applied egg-rr21.6%

                                                          \[\leadsto \color{blue}{\left(\left(\pi \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot angle\right)} \cdot 1 \]
                                                      8. Recombined 2 regimes into one program.
                                                      9. Final simplification60.0%

                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq 2 \cdot 10^{-5}:\\ \;\;\;\;\left(b - a\right) \cdot \left(\left(b + a\right) \cdot \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;angle \cdot \left(\pi \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)\right)\right)\\ \end{array} \]
                                                      10. Add Preprocessing

                                                      Alternative 25: 63.7% accurate, 10.3× speedup?

                                                      \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 5 \cdot 10^{-23}:\\ \;\;\;\;\left(\left(b + a\_m\right) \cdot 0.011111111111111112\right) \cdot \left(\left(b - a\_m\right) \cdot \left(angle\_m \cdot \pi\right)\right)\\ \mathbf{else}:\\ \;\;\;\;angle\_m \cdot \left(\pi \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\_m\right) \cdot \left(b - a\_m\right)\right)\right)\right)\\ \end{array} \end{array} \]
                                                      a_m = (fabs.f64 a)
                                                      angle\_m = (fabs.f64 angle)
                                                      angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                                                      (FPCore (angle_s a_m b angle_m)
                                                       :precision binary64
                                                       (*
                                                        angle_s
                                                        (if (<= (/ angle_m 180.0) 5e-23)
                                                          (* (* (+ b a_m) 0.011111111111111112) (* (- b a_m) (* angle_m PI)))
                                                          (* angle_m (* PI (* 0.011111111111111112 (* (+ b a_m) (- b a_m))))))))
                                                      a_m = fabs(a);
                                                      angle\_m = fabs(angle);
                                                      angle\_s = copysign(1.0, angle);
                                                      double code(double angle_s, double a_m, double b, double angle_m) {
                                                      	double tmp;
                                                      	if ((angle_m / 180.0) <= 5e-23) {
                                                      		tmp = ((b + a_m) * 0.011111111111111112) * ((b - a_m) * (angle_m * ((double) M_PI)));
                                                      	} else {
                                                      		tmp = angle_m * (((double) M_PI) * (0.011111111111111112 * ((b + a_m) * (b - a_m))));
                                                      	}
                                                      	return angle_s * tmp;
                                                      }
                                                      
                                                      a_m = Math.abs(a);
                                                      angle\_m = Math.abs(angle);
                                                      angle\_s = Math.copySign(1.0, angle);
                                                      public static double code(double angle_s, double a_m, double b, double angle_m) {
                                                      	double tmp;
                                                      	if ((angle_m / 180.0) <= 5e-23) {
                                                      		tmp = ((b + a_m) * 0.011111111111111112) * ((b - a_m) * (angle_m * Math.PI));
                                                      	} else {
                                                      		tmp = angle_m * (Math.PI * (0.011111111111111112 * ((b + a_m) * (b - a_m))));
                                                      	}
                                                      	return angle_s * tmp;
                                                      }
                                                      
                                                      a_m = math.fabs(a)
                                                      angle\_m = math.fabs(angle)
                                                      angle\_s = math.copysign(1.0, angle)
                                                      def code(angle_s, a_m, b, angle_m):
                                                      	tmp = 0
                                                      	if (angle_m / 180.0) <= 5e-23:
                                                      		tmp = ((b + a_m) * 0.011111111111111112) * ((b - a_m) * (angle_m * math.pi))
                                                      	else:
                                                      		tmp = angle_m * (math.pi * (0.011111111111111112 * ((b + a_m) * (b - a_m))))
                                                      	return angle_s * tmp
                                                      
                                                      a_m = abs(a)
                                                      angle\_m = abs(angle)
                                                      angle\_s = copysign(1.0, angle)
                                                      function code(angle_s, a_m, b, angle_m)
                                                      	tmp = 0.0
                                                      	if (Float64(angle_m / 180.0) <= 5e-23)
                                                      		tmp = Float64(Float64(Float64(b + a_m) * 0.011111111111111112) * Float64(Float64(b - a_m) * Float64(angle_m * pi)));
                                                      	else
                                                      		tmp = Float64(angle_m * Float64(pi * Float64(0.011111111111111112 * Float64(Float64(b + a_m) * Float64(b - a_m)))));
                                                      	end
                                                      	return Float64(angle_s * tmp)
                                                      end
                                                      
                                                      a_m = abs(a);
                                                      angle\_m = abs(angle);
                                                      angle\_s = sign(angle) * abs(1.0);
                                                      function tmp_2 = code(angle_s, a_m, b, angle_m)
                                                      	tmp = 0.0;
                                                      	if ((angle_m / 180.0) <= 5e-23)
                                                      		tmp = ((b + a_m) * 0.011111111111111112) * ((b - a_m) * (angle_m * pi));
                                                      	else
                                                      		tmp = angle_m * (pi * (0.011111111111111112 * ((b + a_m) * (b - a_m))));
                                                      	end
                                                      	tmp_2 = angle_s * tmp;
                                                      end
                                                      
                                                      a_m = N[Abs[a], $MachinePrecision]
                                                      angle\_m = N[Abs[angle], $MachinePrecision]
                                                      angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                      code[angle$95$s_, a$95$m_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 5e-23], N[(N[(N[(b + a$95$m), $MachinePrecision] * 0.011111111111111112), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(angle$95$m * N[(Pi * N[(0.011111111111111112 * N[(N[(b + a$95$m), $MachinePrecision] * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                                                      
                                                      \begin{array}{l}
                                                      a_m = \left|a\right|
                                                      \\
                                                      angle\_m = \left|angle\right|
                                                      \\
                                                      angle\_s = \mathsf{copysign}\left(1, angle\right)
                                                      
                                                      \\
                                                      angle\_s \cdot \begin{array}{l}
                                                      \mathbf{if}\;\frac{angle\_m}{180} \leq 5 \cdot 10^{-23}:\\
                                                      \;\;\;\;\left(\left(b + a\_m\right) \cdot 0.011111111111111112\right) \cdot \left(\left(b - a\_m\right) \cdot \left(angle\_m \cdot \pi\right)\right)\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;angle\_m \cdot \left(\pi \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\_m\right) \cdot \left(b - a\_m\right)\right)\right)\right)\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 2 regimes
                                                      2. if (/.f64 angle #s(literal 180 binary64)) < 5.0000000000000002e-23

                                                        1. Initial program 62.0%

                                                          \[\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. Add Preprocessing
                                                        3. Taylor expanded in angle around 0

                                                          \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                        4. Step-by-step derivation
                                                          1. *-commutativeN/A

                                                            \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                          2. associate-*r*N/A

                                                            \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                          3. associate-*l*N/A

                                                            \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                          4. lower-*.f64N/A

                                                            \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                          5. lower-*.f64N/A

                                                            \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                          6. lower-PI.f64N/A

                                                            \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                          7. *-commutativeN/A

                                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                          8. lower-*.f64N/A

                                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                          9. unpow2N/A

                                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                          10. unpow2N/A

                                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                          11. difference-of-squaresN/A

                                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                          12. lower-*.f64N/A

                                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                          13. +-commutativeN/A

                                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                          14. lower-+.f64N/A

                                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                          15. lower--.f6462.5

                                                            \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                        5. Simplified62.5%

                                                          \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                        6. Taylor expanded in angle around 0

                                                          \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                        7. Step-by-step derivation
                                                          1. Simplified59.7%

                                                            \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                          2. Step-by-step derivation
                                                            1. lift-PI.f64N/A

                                                              \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                            2. *-commutativeN/A

                                                              \[\leadsto \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                            3. lift-+.f64N/A

                                                              \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                            4. lift--.f64N/A

                                                              \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot 1 \]
                                                            5. *-commutativeN/A

                                                              \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
                                                            6. lift-*.f64N/A

                                                              \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
                                                            7. remove-double-divN/A

                                                              \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\frac{1}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
                                                            8. lift-/.f64N/A

                                                              \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \frac{1}{\color{blue}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
                                                            9. div-invN/A

                                                              \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \color{blue}{\frac{\frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right) \cdot 1 \]
                                                            10. lift-*.f64N/A

                                                              \[\leadsto \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \frac{\frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}\right) \cdot 1 \]
                                                            11. lift-/.f64N/A

                                                              \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{\frac{1}{90}}{\color{blue}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right) \cdot 1 \]
                                                            12. associate-/r/N/A

                                                              \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \color{blue}{\left(\frac{\frac{1}{90}}{1} \cdot \left(\left(b - a\right) \cdot \left(a + b\right)\right)\right)}\right) \cdot 1 \]
                                                            13. metadata-evalN/A

                                                              \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\color{blue}{\frac{1}{90}} \cdot \left(\left(b - a\right) \cdot \left(a + b\right)\right)\right)\right) \cdot 1 \]
                                                            14. lift-*.f64N/A

                                                              \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
                                                            15. *-commutativeN/A

                                                              \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(a + b\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot 1 \]
                                                            16. lift-*.f64N/A

                                                              \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(a + b\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot 1 \]
                                                            17. lift-*.f64N/A

                                                              \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)}\right) \cdot 1 \]
                                                            18. *-commutativeN/A

                                                              \[\leadsto \color{blue}{\left(\left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right) \cdot \left(\mathsf{PI}\left(\right) \cdot angle\right)\right)} \cdot 1 \]
                                                          3. Applied egg-rr74.8%

                                                            \[\leadsto \color{blue}{\left(\left(0.011111111111111112 \cdot \left(a + b\right)\right) \cdot \left(\left(b - a\right) \cdot \left(\pi \cdot angle\right)\right)\right)} \cdot 1 \]

                                                          if 5.0000000000000002e-23 < (/.f64 angle #s(literal 180 binary64))

                                                          1. Initial program 35.8%

                                                            \[\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. Add Preprocessing
                                                          3. Taylor expanded in angle around 0

                                                            \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                          4. Step-by-step derivation
                                                            1. *-commutativeN/A

                                                              \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                            2. associate-*r*N/A

                                                              \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                            3. associate-*l*N/A

                                                              \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                            4. lower-*.f64N/A

                                                              \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                            5. lower-*.f64N/A

                                                              \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                            6. lower-PI.f64N/A

                                                              \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                            7. *-commutativeN/A

                                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                            8. lower-*.f64N/A

                                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                            9. unpow2N/A

                                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                            10. unpow2N/A

                                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                            11. difference-of-squaresN/A

                                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                            12. lower-*.f64N/A

                                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                            13. +-commutativeN/A

                                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                            14. lower-+.f64N/A

                                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                            15. lower--.f6430.3

                                                              \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                          5. Simplified30.3%

                                                            \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                          6. Taylor expanded in angle around 0

                                                            \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                          7. Step-by-step derivation
                                                            1. Simplified23.7%

                                                              \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                            2. Step-by-step derivation
                                                              1. lift-PI.f64N/A

                                                                \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                              2. lift-+.f64N/A

                                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                              3. lift--.f64N/A

                                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot 1 \]
                                                              4. *-commutativeN/A

                                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
                                                              5. lift-*.f64N/A

                                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
                                                              6. remove-double-divN/A

                                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\frac{1}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
                                                              7. lift-/.f64N/A

                                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \frac{1}{\color{blue}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
                                                              8. div-invN/A

                                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\frac{\frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right) \cdot 1 \]
                                                              9. associate-*l*N/A

                                                                \[\leadsto \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{\frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}\right)\right)} \cdot 1 \]
                                                              10. lift-/.f64N/A

                                                                \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{\frac{1}{90}}{\color{blue}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
                                                              11. associate-/r/N/A

                                                                \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(\frac{\frac{1}{90}}{1} \cdot \left(\left(b - a\right) \cdot \left(a + b\right)\right)\right)}\right)\right) \cdot 1 \]
                                                              12. metadata-evalN/A

                                                                \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\color{blue}{\frac{1}{90}} \cdot \left(\left(b - a\right) \cdot \left(a + b\right)\right)\right)\right)\right) \cdot 1 \]
                                                              13. lift-*.f64N/A

                                                                \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right)\right) \cdot 1 \]
                                                              14. *-commutativeN/A

                                                                \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(a + b\right) \cdot \left(b - a\right)\right)}\right)\right)\right) \cdot 1 \]
                                                              15. lift-*.f64N/A

                                                                \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(a + b\right) \cdot \left(b - a\right)\right)}\right)\right)\right) \cdot 1 \]
                                                              16. lift-*.f64N/A

                                                                \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)}\right)\right) \cdot 1 \]
                                                              17. *-commutativeN/A

                                                                \[\leadsto \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot angle\right)} \cdot 1 \]
                                                            3. Applied egg-rr23.7%

                                                              \[\leadsto \color{blue}{\left(\left(\pi \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot angle\right)} \cdot 1 \]
                                                          8. Recombined 2 regimes into one program.
                                                          9. Final simplification60.0%

                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq 5 \cdot 10^{-23}:\\ \;\;\;\;\left(\left(b + a\right) \cdot 0.011111111111111112\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \pi\right)\right)\\ \mathbf{else}:\\ \;\;\;\;angle \cdot \left(\pi \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)\right)\right)\\ \end{array} \]
                                                          10. Add Preprocessing

                                                          Alternative 26: 63.7% accurate, 10.3× speedup?

                                                          \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{-24}:\\ \;\;\;\;\left(\left(b + a\_m\right) \cdot 0.011111111111111112\right) \cdot \left(\left(b - a\_m\right) \cdot \left(angle\_m \cdot \pi\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\_m\right) \cdot \left(b - a\_m\right)\right)\right)\\ \end{array} \end{array} \]
                                                          a_m = (fabs.f64 a)
                                                          angle\_m = (fabs.f64 angle)
                                                          angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                                                          (FPCore (angle_s a_m b angle_m)
                                                           :precision binary64
                                                           (*
                                                            angle_s
                                                            (if (<= (/ angle_m 180.0) 2e-24)
                                                              (* (* (+ b a_m) 0.011111111111111112) (* (- b a_m) (* angle_m PI)))
                                                              (* (* angle_m PI) (* 0.011111111111111112 (* (+ b a_m) (- b a_m)))))))
                                                          a_m = fabs(a);
                                                          angle\_m = fabs(angle);
                                                          angle\_s = copysign(1.0, angle);
                                                          double code(double angle_s, double a_m, double b, double angle_m) {
                                                          	double tmp;
                                                          	if ((angle_m / 180.0) <= 2e-24) {
                                                          		tmp = ((b + a_m) * 0.011111111111111112) * ((b - a_m) * (angle_m * ((double) M_PI)));
                                                          	} else {
                                                          		tmp = (angle_m * ((double) M_PI)) * (0.011111111111111112 * ((b + a_m) * (b - a_m)));
                                                          	}
                                                          	return angle_s * tmp;
                                                          }
                                                          
                                                          a_m = Math.abs(a);
                                                          angle\_m = Math.abs(angle);
                                                          angle\_s = Math.copySign(1.0, angle);
                                                          public static double code(double angle_s, double a_m, double b, double angle_m) {
                                                          	double tmp;
                                                          	if ((angle_m / 180.0) <= 2e-24) {
                                                          		tmp = ((b + a_m) * 0.011111111111111112) * ((b - a_m) * (angle_m * Math.PI));
                                                          	} else {
                                                          		tmp = (angle_m * Math.PI) * (0.011111111111111112 * ((b + a_m) * (b - a_m)));
                                                          	}
                                                          	return angle_s * tmp;
                                                          }
                                                          
                                                          a_m = math.fabs(a)
                                                          angle\_m = math.fabs(angle)
                                                          angle\_s = math.copysign(1.0, angle)
                                                          def code(angle_s, a_m, b, angle_m):
                                                          	tmp = 0
                                                          	if (angle_m / 180.0) <= 2e-24:
                                                          		tmp = ((b + a_m) * 0.011111111111111112) * ((b - a_m) * (angle_m * math.pi))
                                                          	else:
                                                          		tmp = (angle_m * math.pi) * (0.011111111111111112 * ((b + a_m) * (b - a_m)))
                                                          	return angle_s * tmp
                                                          
                                                          a_m = abs(a)
                                                          angle\_m = abs(angle)
                                                          angle\_s = copysign(1.0, angle)
                                                          function code(angle_s, a_m, b, angle_m)
                                                          	tmp = 0.0
                                                          	if (Float64(angle_m / 180.0) <= 2e-24)
                                                          		tmp = Float64(Float64(Float64(b + a_m) * 0.011111111111111112) * Float64(Float64(b - a_m) * Float64(angle_m * pi)));
                                                          	else
                                                          		tmp = Float64(Float64(angle_m * pi) * Float64(0.011111111111111112 * Float64(Float64(b + a_m) * Float64(b - a_m))));
                                                          	end
                                                          	return Float64(angle_s * tmp)
                                                          end
                                                          
                                                          a_m = abs(a);
                                                          angle\_m = abs(angle);
                                                          angle\_s = sign(angle) * abs(1.0);
                                                          function tmp_2 = code(angle_s, a_m, b, angle_m)
                                                          	tmp = 0.0;
                                                          	if ((angle_m / 180.0) <= 2e-24)
                                                          		tmp = ((b + a_m) * 0.011111111111111112) * ((b - a_m) * (angle_m * pi));
                                                          	else
                                                          		tmp = (angle_m * pi) * (0.011111111111111112 * ((b + a_m) * (b - a_m)));
                                                          	end
                                                          	tmp_2 = angle_s * tmp;
                                                          end
                                                          
                                                          a_m = N[Abs[a], $MachinePrecision]
                                                          angle\_m = N[Abs[angle], $MachinePrecision]
                                                          angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                          code[angle$95$s_, a$95$m_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 2e-24], N[(N[(N[(b + a$95$m), $MachinePrecision] * 0.011111111111111112), $MachinePrecision] * N[(N[(b - a$95$m), $MachinePrecision] * N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(0.011111111111111112 * N[(N[(b + a$95$m), $MachinePrecision] * N[(b - a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                                                          
                                                          \begin{array}{l}
                                                          a_m = \left|a\right|
                                                          \\
                                                          angle\_m = \left|angle\right|
                                                          \\
                                                          angle\_s = \mathsf{copysign}\left(1, angle\right)
                                                          
                                                          \\
                                                          angle\_s \cdot \begin{array}{l}
                                                          \mathbf{if}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{-24}:\\
                                                          \;\;\;\;\left(\left(b + a\_m\right) \cdot 0.011111111111111112\right) \cdot \left(\left(b - a\_m\right) \cdot \left(angle\_m \cdot \pi\right)\right)\\
                                                          
                                                          \mathbf{else}:\\
                                                          \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\_m\right) \cdot \left(b - a\_m\right)\right)\right)\\
                                                          
                                                          
                                                          \end{array}
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Split input into 2 regimes
                                                          2. if (/.f64 angle #s(literal 180 binary64)) < 1.99999999999999985e-24

                                                            1. Initial program 62.0%

                                                              \[\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. Add Preprocessing
                                                            3. Taylor expanded in angle around 0

                                                              \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                            4. Step-by-step derivation
                                                              1. *-commutativeN/A

                                                                \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                              2. associate-*r*N/A

                                                                \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                              3. associate-*l*N/A

                                                                \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                              4. lower-*.f64N/A

                                                                \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                              5. lower-*.f64N/A

                                                                \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                              6. lower-PI.f64N/A

                                                                \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                              7. *-commutativeN/A

                                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                              8. lower-*.f64N/A

                                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                              9. unpow2N/A

                                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                              10. unpow2N/A

                                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                              11. difference-of-squaresN/A

                                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                              12. lower-*.f64N/A

                                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                              13. +-commutativeN/A

                                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                              14. lower-+.f64N/A

                                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                              15. lower--.f6462.5

                                                                \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                            5. Simplified62.5%

                                                              \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                            6. Taylor expanded in angle around 0

                                                              \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                            7. Step-by-step derivation
                                                              1. Simplified59.7%

                                                                \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                              2. Step-by-step derivation
                                                                1. lift-PI.f64N/A

                                                                  \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                                2. *-commutativeN/A

                                                                  \[\leadsto \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                                3. lift-+.f64N/A

                                                                  \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot 1 \]
                                                                4. lift--.f64N/A

                                                                  \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot 1 \]
                                                                5. *-commutativeN/A

                                                                  \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
                                                                6. lift-*.f64N/A

                                                                  \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
                                                                7. remove-double-divN/A

                                                                  \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\frac{1}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
                                                                8. lift-/.f64N/A

                                                                  \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \frac{1}{\color{blue}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right)\right) \cdot 1 \]
                                                                9. div-invN/A

                                                                  \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \color{blue}{\frac{\frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right) \cdot 1 \]
                                                                10. lift-*.f64N/A

                                                                  \[\leadsto \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot angle\right)} \cdot \frac{\frac{1}{90}}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}\right) \cdot 1 \]
                                                                11. lift-/.f64N/A

                                                                  \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{\frac{1}{90}}{\color{blue}{\frac{1}{\left(b - a\right) \cdot \left(a + b\right)}}}\right) \cdot 1 \]
                                                                12. associate-/r/N/A

                                                                  \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \color{blue}{\left(\frac{\frac{1}{90}}{1} \cdot \left(\left(b - a\right) \cdot \left(a + b\right)\right)\right)}\right) \cdot 1 \]
                                                                13. metadata-evalN/A

                                                                  \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\color{blue}{\frac{1}{90}} \cdot \left(\left(b - a\right) \cdot \left(a + b\right)\right)\right)\right) \cdot 1 \]
                                                                14. lift-*.f64N/A

                                                                  \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b - a\right) \cdot \left(a + b\right)\right)}\right)\right) \cdot 1 \]
                                                                15. *-commutativeN/A

                                                                  \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(a + b\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot 1 \]
                                                                16. lift-*.f64N/A

                                                                  \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(a + b\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot 1 \]
                                                                17. lift-*.f64N/A

                                                                  \[\leadsto \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)}\right) \cdot 1 \]
                                                                18. *-commutativeN/A

                                                                  \[\leadsto \color{blue}{\left(\left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right) \cdot \left(\mathsf{PI}\left(\right) \cdot angle\right)\right)} \cdot 1 \]
                                                              3. Applied egg-rr74.8%

                                                                \[\leadsto \color{blue}{\left(\left(0.011111111111111112 \cdot \left(a + b\right)\right) \cdot \left(\left(b - a\right) \cdot \left(\pi \cdot angle\right)\right)\right)} \cdot 1 \]

                                                              if 1.99999999999999985e-24 < (/.f64 angle #s(literal 180 binary64))

                                                              1. Initial program 35.8%

                                                                \[\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. Add Preprocessing
                                                              3. Taylor expanded in angle around 0

                                                                \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                              4. Step-by-step derivation
                                                                1. *-commutativeN/A

                                                                  \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                2. associate-*r*N/A

                                                                  \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                3. associate-*l*N/A

                                                                  \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                4. lower-*.f64N/A

                                                                  \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                5. lower-*.f64N/A

                                                                  \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                6. lower-PI.f64N/A

                                                                  \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                7. *-commutativeN/A

                                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                8. lower-*.f64N/A

                                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                9. unpow2N/A

                                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                10. unpow2N/A

                                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                11. difference-of-squaresN/A

                                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                12. lower-*.f64N/A

                                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                13. +-commutativeN/A

                                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                14. lower-+.f64N/A

                                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                15. lower--.f6430.3

                                                                  \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                              5. Simplified30.3%

                                                                \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                              6. Taylor expanded in angle around 0

                                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                              7. Step-by-step derivation
                                                                1. Simplified23.7%

                                                                  \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                              8. Recombined 2 regimes into one program.
                                                              9. Final simplification60.0%

                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq 2 \cdot 10^{-24}:\\ \;\;\;\;\left(\left(b + a\right) \cdot 0.011111111111111112\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \pi\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)\right)\\ \end{array} \]
                                                              10. Add Preprocessing

                                                              Alternative 27: 35.6% accurate, 21.6× speedup?

                                                              \[\begin{array}{l} a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \left(-0.011111111111111112 \cdot \left(angle\_m \cdot \left(\pi \cdot \left(a\_m \cdot a\_m\right)\right)\right)\right) \end{array} \]
                                                              a_m = (fabs.f64 a)
                                                              angle\_m = (fabs.f64 angle)
                                                              angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                                                              (FPCore (angle_s a_m b angle_m)
                                                               :precision binary64
                                                               (* angle_s (* -0.011111111111111112 (* angle_m (* PI (* a_m a_m))))))
                                                              a_m = fabs(a);
                                                              angle\_m = fabs(angle);
                                                              angle\_s = copysign(1.0, angle);
                                                              double code(double angle_s, double a_m, double b, double angle_m) {
                                                              	return angle_s * (-0.011111111111111112 * (angle_m * (((double) M_PI) * (a_m * a_m))));
                                                              }
                                                              
                                                              a_m = Math.abs(a);
                                                              angle\_m = Math.abs(angle);
                                                              angle\_s = Math.copySign(1.0, angle);
                                                              public static double code(double angle_s, double a_m, double b, double angle_m) {
                                                              	return angle_s * (-0.011111111111111112 * (angle_m * (Math.PI * (a_m * a_m))));
                                                              }
                                                              
                                                              a_m = math.fabs(a)
                                                              angle\_m = math.fabs(angle)
                                                              angle\_s = math.copysign(1.0, angle)
                                                              def code(angle_s, a_m, b, angle_m):
                                                              	return angle_s * (-0.011111111111111112 * (angle_m * (math.pi * (a_m * a_m))))
                                                              
                                                              a_m = abs(a)
                                                              angle\_m = abs(angle)
                                                              angle\_s = copysign(1.0, angle)
                                                              function code(angle_s, a_m, b, angle_m)
                                                              	return Float64(angle_s * Float64(-0.011111111111111112 * Float64(angle_m * Float64(pi * Float64(a_m * a_m)))))
                                                              end
                                                              
                                                              a_m = abs(a);
                                                              angle\_m = abs(angle);
                                                              angle\_s = sign(angle) * abs(1.0);
                                                              function tmp = code(angle_s, a_m, b, angle_m)
                                                              	tmp = angle_s * (-0.011111111111111112 * (angle_m * (pi * (a_m * a_m))));
                                                              end
                                                              
                                                              a_m = N[Abs[a], $MachinePrecision]
                                                              angle\_m = N[Abs[angle], $MachinePrecision]
                                                              angle\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[angle]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                              code[angle$95$s_, a$95$m_, b_, angle$95$m_] := N[(angle$95$s * N[(-0.011111111111111112 * N[(angle$95$m * N[(Pi * N[(a$95$m * a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                                              
                                                              \begin{array}{l}
                                                              a_m = \left|a\right|
                                                              \\
                                                              angle\_m = \left|angle\right|
                                                              \\
                                                              angle\_s = \mathsf{copysign}\left(1, angle\right)
                                                              
                                                              \\
                                                              angle\_s \cdot \left(-0.011111111111111112 \cdot \left(angle\_m \cdot \left(\pi \cdot \left(a\_m \cdot a\_m\right)\right)\right)\right)
                                                              \end{array}
                                                              
                                                              Derivation
                                                              1. Initial program 54.4%

                                                                \[\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. Add Preprocessing
                                                              3. Taylor expanded in angle around 0

                                                                \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                              4. Step-by-step derivation
                                                                1. *-commutativeN/A

                                                                  \[\leadsto \color{blue}{\left(\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                2. associate-*r*N/A

                                                                  \[\leadsto \left(\color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \cdot \frac{1}{90}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                3. associate-*l*N/A

                                                                  \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                4. lower-*.f64N/A

                                                                  \[\leadsto \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right)} \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                5. lower-*.f64N/A

                                                                  \[\leadsto \left(\color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                6. lower-PI.f64N/A

                                                                  \[\leadsto \left(\left(angle \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot \left(\left({b}^{2} - {a}^{2}\right) \cdot \frac{1}{90}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                7. *-commutativeN/A

                                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                8. lower-*.f64N/A

                                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left({b}^{2} - {a}^{2}\right)\right)}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                9. unpow2N/A

                                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                10. unpow2N/A

                                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                11. difference-of-squaresN/A

                                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                12. lower-*.f64N/A

                                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)}\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                13. +-commutativeN/A

                                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                14. lower-+.f64N/A

                                                                  \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\color{blue}{\left(a + b\right)} \cdot \left(b - a\right)\right)\right)\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \]
                                                                15. lower--.f6453.2

                                                                  \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                              5. Simplified53.2%

                                                                \[\leadsto \color{blue}{\left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                              6. Taylor expanded in angle around 0

                                                                \[\leadsto \left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot \left(\frac{1}{90} \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                              7. Step-by-step derivation
                                                                1. Simplified49.3%

                                                                  \[\leadsto \left(\left(angle \cdot \pi\right) \cdot \left(0.011111111111111112 \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right) \cdot \color{blue}{1} \]
                                                                2. Taylor expanded in a around inf

                                                                  \[\leadsto \color{blue}{\left(\frac{-1}{90} \cdot \left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)\right)} \cdot 1 \]
                                                                3. Step-by-step derivation
                                                                  1. lower-*.f64N/A

                                                                    \[\leadsto \color{blue}{\left(\frac{-1}{90} \cdot \left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)\right)} \cdot 1 \]
                                                                  2. *-commutativeN/A

                                                                    \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(\left(angle \cdot \mathsf{PI}\left(\right)\right) \cdot {a}^{2}\right)}\right) \cdot 1 \]
                                                                  3. associate-*l*N/A

                                                                    \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)\right)}\right) \cdot 1 \]
                                                                  4. lower-*.f64N/A

                                                                    \[\leadsto \left(\frac{-1}{90} \cdot \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)\right)}\right) \cdot 1 \]
                                                                  5. lower-*.f64N/A

                                                                    \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot {a}^{2}\right)}\right)\right) \cdot 1 \]
                                                                  6. lower-PI.f64N/A

                                                                    \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot {a}^{2}\right)\right)\right) \cdot 1 \]
                                                                  7. unpow2N/A

                                                                    \[\leadsto \left(\frac{-1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(a \cdot a\right)}\right)\right)\right) \cdot 1 \]
                                                                  8. lower-*.f6435.3

                                                                    \[\leadsto \left(-0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \color{blue}{\left(a \cdot a\right)}\right)\right)\right) \cdot 1 \]
                                                                4. Simplified35.3%

                                                                  \[\leadsto \color{blue}{\left(-0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(a \cdot a\right)\right)\right)\right)} \cdot 1 \]
                                                                5. Final simplification35.3%

                                                                  \[\leadsto -0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(a \cdot a\right)\right)\right) \]
                                                                6. Add Preprocessing

                                                                Reproduce

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