ab-angle->ABCF B

Percentage Accurate: 54.0% → 67.3%
Time: 18.3s
Alternatives: 25
Speedup: 13.7×

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 25 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: 67.3% accurate, 2.0× speedup?

\[\begin{array}{l} b_m = \left|b\right| \\ a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ \begin{array}{l} t_0 := \sin \left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\\ t_1 := \left(b\_m + a\_m\right) \cdot \left(b\_m - a\_m\right)\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{+75}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot t\_0\right)\\ \mathbf{elif}\;\frac{angle\_m}{180} \leq 5 \cdot 10^{+141}:\\ \;\;\;\;\left(t\_1 \cdot \left(b\_m \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\right) \cdot \frac{1}{b\_m - a\_m}\\ \mathbf{elif}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{+240}:\\ \;\;\;\;t\_0 \cdot t\_1\\ \mathbf{else}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \sin \left(0.011111111111111112 \cdot \left(angle\_m \cdot \left(\sqrt{\pi \cdot \sqrt{\pi}} \cdot \sqrt{\sqrt{\pi}}\right)\right)\right)\right)\\ \end{array} \end{array} \end{array} \]
b_m = (fabs.f64 b)
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_m angle_m)
 :precision binary64
 (let* ((t_0 (sin (* angle_m (* PI 0.011111111111111112))))
        (t_1 (* (+ b_m a_m) (- b_m a_m))))
   (*
    angle_s
    (if (<= (/ angle_m 180.0) 2e+75)
      (* (+ b_m a_m) (* (- b_m a_m) t_0))
      (if (<= (/ angle_m 180.0) 5e+141)
        (*
         (* t_1 (* b_m (sin (* PI (* angle_m 0.011111111111111112)))))
         (/ 1.0 (- b_m a_m)))
        (if (<= (/ angle_m 180.0) 2e+240)
          (* t_0 t_1)
          (*
           (+ b_m a_m)
           (*
            (- b_m a_m)
            (sin
             (*
              0.011111111111111112
              (*
               angle_m
               (* (sqrt (* PI (sqrt PI))) (sqrt (sqrt PI))))))))))))))
b_m = fabs(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_m, double angle_m) {
	double t_0 = sin((angle_m * (((double) M_PI) * 0.011111111111111112)));
	double t_1 = (b_m + a_m) * (b_m - a_m);
	double tmp;
	if ((angle_m / 180.0) <= 2e+75) {
		tmp = (b_m + a_m) * ((b_m - a_m) * t_0);
	} else if ((angle_m / 180.0) <= 5e+141) {
		tmp = (t_1 * (b_m * sin((((double) M_PI) * (angle_m * 0.011111111111111112))))) * (1.0 / (b_m - a_m));
	} else if ((angle_m / 180.0) <= 2e+240) {
		tmp = t_0 * t_1;
	} else {
		tmp = (b_m + a_m) * ((b_m - a_m) * sin((0.011111111111111112 * (angle_m * (sqrt((((double) M_PI) * sqrt(((double) M_PI)))) * sqrt(sqrt(((double) M_PI))))))));
	}
	return angle_s * tmp;
}
b_m = Math.abs(b);
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_m, double angle_m) {
	double t_0 = Math.sin((angle_m * (Math.PI * 0.011111111111111112)));
	double t_1 = (b_m + a_m) * (b_m - a_m);
	double tmp;
	if ((angle_m / 180.0) <= 2e+75) {
		tmp = (b_m + a_m) * ((b_m - a_m) * t_0);
	} else if ((angle_m / 180.0) <= 5e+141) {
		tmp = (t_1 * (b_m * Math.sin((Math.PI * (angle_m * 0.011111111111111112))))) * (1.0 / (b_m - a_m));
	} else if ((angle_m / 180.0) <= 2e+240) {
		tmp = t_0 * t_1;
	} else {
		tmp = (b_m + a_m) * ((b_m - a_m) * Math.sin((0.011111111111111112 * (angle_m * (Math.sqrt((Math.PI * Math.sqrt(Math.PI))) * Math.sqrt(Math.sqrt(Math.PI)))))));
	}
	return angle_s * tmp;
}
b_m = math.fabs(b)
a_m = math.fabs(a)
angle\_m = math.fabs(angle)
angle\_s = math.copysign(1.0, angle)
def code(angle_s, a_m, b_m, angle_m):
	t_0 = math.sin((angle_m * (math.pi * 0.011111111111111112)))
	t_1 = (b_m + a_m) * (b_m - a_m)
	tmp = 0
	if (angle_m / 180.0) <= 2e+75:
		tmp = (b_m + a_m) * ((b_m - a_m) * t_0)
	elif (angle_m / 180.0) <= 5e+141:
		tmp = (t_1 * (b_m * math.sin((math.pi * (angle_m * 0.011111111111111112))))) * (1.0 / (b_m - a_m))
	elif (angle_m / 180.0) <= 2e+240:
		tmp = t_0 * t_1
	else:
		tmp = (b_m + a_m) * ((b_m - a_m) * math.sin((0.011111111111111112 * (angle_m * (math.sqrt((math.pi * math.sqrt(math.pi))) * math.sqrt(math.sqrt(math.pi)))))))
	return angle_s * tmp
b_m = abs(b)
a_m = abs(a)
angle\_m = abs(angle)
angle\_s = copysign(1.0, angle)
function code(angle_s, a_m, b_m, angle_m)
	t_0 = sin(Float64(angle_m * Float64(pi * 0.011111111111111112)))
	t_1 = Float64(Float64(b_m + a_m) * Float64(b_m - a_m))
	tmp = 0.0
	if (Float64(angle_m / 180.0) <= 2e+75)
		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * t_0));
	elseif (Float64(angle_m / 180.0) <= 5e+141)
		tmp = Float64(Float64(t_1 * Float64(b_m * sin(Float64(pi * Float64(angle_m * 0.011111111111111112))))) * Float64(1.0 / Float64(b_m - a_m)));
	elseif (Float64(angle_m / 180.0) <= 2e+240)
		tmp = Float64(t_0 * t_1);
	else
		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * sin(Float64(0.011111111111111112 * Float64(angle_m * Float64(sqrt(Float64(pi * sqrt(pi))) * sqrt(sqrt(pi))))))));
	end
	return Float64(angle_s * tmp)
end
b_m = abs(b);
a_m = abs(a);
angle\_m = abs(angle);
angle\_s = sign(angle) * abs(1.0);
function tmp_2 = code(angle_s, a_m, b_m, angle_m)
	t_0 = sin((angle_m * (pi * 0.011111111111111112)));
	t_1 = (b_m + a_m) * (b_m - a_m);
	tmp = 0.0;
	if ((angle_m / 180.0) <= 2e+75)
		tmp = (b_m + a_m) * ((b_m - a_m) * t_0);
	elseif ((angle_m / 180.0) <= 5e+141)
		tmp = (t_1 * (b_m * sin((pi * (angle_m * 0.011111111111111112))))) * (1.0 / (b_m - a_m));
	elseif ((angle_m / 180.0) <= 2e+240)
		tmp = t_0 * t_1;
	else
		tmp = (b_m + a_m) * ((b_m - a_m) * sin((0.011111111111111112 * (angle_m * (sqrt((pi * sqrt(pi))) * sqrt(sqrt(pi)))))));
	end
	tmp_2 = angle_s * tmp;
end
b_m = N[Abs[b], $MachinePrecision]
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$95$m_, angle$95$m_] := Block[{t$95$0 = N[Sin[N[(angle$95$m * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$1 = N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(b$95$m - a$95$m), $MachinePrecision]), $MachinePrecision]}, N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 2e+75], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 5e+141], N[(N[(t$95$1 * N[(b$95$m * N[Sin[N[(Pi * N[(angle$95$m * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(b$95$m - a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 2e+240], N[(t$95$0 * t$95$1), $MachinePrecision], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[Sin[N[(0.011111111111111112 * N[(angle$95$m * N[(N[Sqrt[N[(Pi * N[Sqrt[Pi], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[Sqrt[Pi], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]), $MachinePrecision]]]
\begin{array}{l}
b_m = \left|b\right|
\\
a_m = \left|a\right|
\\
angle\_m = \left|angle\right|
\\
angle\_s = \mathsf{copysign}\left(1, angle\right)

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

\mathbf{elif}\;\frac{angle\_m}{180} \leq 5 \cdot 10^{+141}:\\
\;\;\;\;\left(t\_1 \cdot \left(b\_m \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\right) \cdot \frac{1}{b\_m - a\_m}\\

\mathbf{elif}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{+240}:\\
\;\;\;\;t\_0 \cdot t\_1\\

\mathbf{else}:\\
\;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \sin \left(0.011111111111111112 \cdot \left(angle\_m \cdot \left(\sqrt{\pi \cdot \sqrt{\pi}} \cdot \sqrt{\sqrt{\pi}}\right)\right)\right)\right)\\


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

    1. Initial program 60.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. Applied egg-rr80.3%

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

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

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

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

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

        \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right) \cdot angle\right)}\right) \]
      6. lower-*.f6481.4

        \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \color{blue}{\left(\left(\pi \cdot 0.011111111111111112\right) \cdot angle\right)}\right) \]
    5. Applied egg-rr81.4%

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

    if 1.99999999999999985e75 < (/.f64 angle #s(literal 180 binary64)) < 5.00000000000000025e141

    1. Initial program 18.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. Applied egg-rr18.7%

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

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

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

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

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

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

        \[\leadsto \left(b + a\right) \cdot \left(\sin \left(\frac{1}{90} \cdot \color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)}\right) \cdot b\right) \]
      6. lower-PI.f6419.8

        \[\leadsto \left(b + a\right) \cdot \left(\sin \left(0.011111111111111112 \cdot \left(angle \cdot \color{blue}{\pi}\right)\right) \cdot b\right) \]
    6. Simplified19.8%

      \[\leadsto \left(b + a\right) \cdot \color{blue}{\left(\sin \left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right) \cdot b\right)} \]
    7. Step-by-step derivation
      1. flip-+N/A

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

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

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

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

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

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

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

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

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

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

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

    if 5.00000000000000025e141 < (/.f64 angle #s(literal 180 binary64)) < 2.00000000000000003e240

    1. Initial program 40.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. Applied egg-rr49.4%

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}\right) \]
      9. lower-*.f6449.4

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

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

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

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

        \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{90}\right)\right)} \]
      14. lower-*.f6444.8

        \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \sin \left(\pi \cdot \color{blue}{\left(angle \cdot 0.011111111111111112\right)}\right) \]
    5. Applied egg-rr44.8%

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

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

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

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

        \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \sin \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)} \cdot angle\right) \]
      5. lift-*.f6444.9

        \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \sin \color{blue}{\left(\left(\pi \cdot 0.011111111111111112\right) \cdot angle\right)} \]
    7. Applied egg-rr44.9%

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

    if 2.00000000000000003e240 < (/.f64 angle #s(literal 180 binary64))

    1. Initial program 17.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. Applied egg-rr23.5%

      \[\leadsto \color{blue}{\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \left(\left(\pi \cdot angle\right) \cdot 0.011111111111111112\right)\right)} \]
    4. Step-by-step derivation
      1. lift-PI.f6423.5

        \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \left(\left(\color{blue}{\pi} \cdot angle\right) \cdot 0.011111111111111112\right)\right) \]
      2. rem-square-sqrtN/A

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \left(\left(\left(\sqrt{\mathsf{PI}\left(\right) \cdot \sqrt{\mathsf{PI}\left(\right)}} \cdot \sqrt{\sqrt{\color{blue}{\mathsf{PI}\left(\right)}}}\right) \cdot angle\right) \cdot \frac{1}{90}\right)\right) \]
      15. lower-sqrt.f6438.3

        \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \left(\left(\left(\sqrt{\pi \cdot \sqrt{\pi}} \cdot \sqrt{\color{blue}{\sqrt{\pi}}}\right) \cdot angle\right) \cdot 0.011111111111111112\right)\right) \]
    5. Applied egg-rr38.3%

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

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

Alternative 2: 64.8% accurate, 0.4× speedup?

\[\begin{array}{l} b_m = \left|b\right| \\ 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 := \cos t\_0 \cdot \left(\left(2 \cdot \left({b\_m}^{2} - {a\_m}^{2}\right)\right) \cdot \sin t\_0\right)\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;t\_1 \leq -1 \cdot 10^{-320}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(angle\_m \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle\_m \cdot angle\_m\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{elif}\;t\_1 \leq 10^{+290}:\\ \;\;\;\;\sin \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right) \cdot \left(b\_m \cdot b\_m\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(angle\_m \cdot 0.011111111111111112\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \pi\right)\right)\\ \end{array} \end{array} \end{array} \]
b_m = (fabs.f64 b)
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_m angle_m)
 :precision binary64
 (let* ((t_0 (* (/ angle_m 180.0) PI))
        (t_1
         (* (cos t_0) (* (* 2.0 (- (pow b_m 2.0) (pow a_m 2.0))) (sin t_0)))))
   (*
    angle_s
    (if (<= t_1 -1e-320)
      (*
       (+ b_m a_m)
       (*
        (- b_m a_m)
        (*
         angle_m
         (fma
          -2.2862368541380886e-7
          (* (* angle_m angle_m) (* PI (* PI PI)))
          (* PI 0.011111111111111112)))))
      (if (<= t_1 1e+290)
        (* (sin (* PI (* angle_m 0.011111111111111112))) (* b_m b_m))
        (*
         (+ b_m a_m)
         (* (* angle_m 0.011111111111111112) (* (- b_m a_m) PI))))))))
b_m = fabs(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_m, double angle_m) {
	double t_0 = (angle_m / 180.0) * ((double) M_PI);
	double t_1 = cos(t_0) * ((2.0 * (pow(b_m, 2.0) - pow(a_m, 2.0))) * sin(t_0));
	double tmp;
	if (t_1 <= -1e-320) {
		tmp = (b_m + a_m) * ((b_m - a_m) * (angle_m * fma(-2.2862368541380886e-7, ((angle_m * angle_m) * (((double) M_PI) * (((double) M_PI) * ((double) M_PI)))), (((double) M_PI) * 0.011111111111111112))));
	} else if (t_1 <= 1e+290) {
		tmp = sin((((double) M_PI) * (angle_m * 0.011111111111111112))) * (b_m * b_m);
	} else {
		tmp = (b_m + a_m) * ((angle_m * 0.011111111111111112) * ((b_m - a_m) * ((double) M_PI)));
	}
	return angle_s * tmp;
}
b_m = abs(b)
a_m = abs(a)
angle\_m = abs(angle)
angle\_s = copysign(1.0, angle)
function code(angle_s, a_m, b_m, angle_m)
	t_0 = Float64(Float64(angle_m / 180.0) * pi)
	t_1 = Float64(cos(t_0) * Float64(Float64(2.0 * Float64((b_m ^ 2.0) - (a_m ^ 2.0))) * sin(t_0)))
	tmp = 0.0
	if (t_1 <= -1e-320)
		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * Float64(angle_m * fma(-2.2862368541380886e-7, Float64(Float64(angle_m * angle_m) * Float64(pi * Float64(pi * pi))), Float64(pi * 0.011111111111111112)))));
	elseif (t_1 <= 1e+290)
		tmp = Float64(sin(Float64(pi * Float64(angle_m * 0.011111111111111112))) * Float64(b_m * b_m));
	else
		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(angle_m * 0.011111111111111112) * Float64(Float64(b_m - a_m) * pi)));
	end
	return Float64(angle_s * tmp)
end
b_m = N[Abs[b], $MachinePrecision]
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$95$m_, angle$95$m_] := Block[{t$95$0 = N[(N[(angle$95$m / 180.0), $MachinePrecision] * Pi), $MachinePrecision]}, Block[{t$95$1 = N[(N[Cos[t$95$0], $MachinePrecision] * N[(N[(2.0 * N[(N[Power[b$95$m, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(angle$95$s * If[LessEqual[t$95$1, -1e-320], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[(angle$95$m * N[(-2.2862368541380886e-7 * N[(N[(angle$95$m * angle$95$m), $MachinePrecision] * N[(Pi * N[(Pi * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+290], N[(N[Sin[N[(Pi * N[(angle$95$m * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(b$95$m * b$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(angle$95$m * 0.011111111111111112), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]]
\begin{array}{l}
b_m = \left|b\right|
\\
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 := \cos t\_0 \cdot \left(\left(2 \cdot \left({b\_m}^{2} - {a\_m}^{2}\right)\right) \cdot \sin t\_0\right)\\
angle\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-320}:\\
\;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(angle\_m \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle\_m \cdot angle\_m\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\

\mathbf{elif}\;t\_1 \leq 10^{+290}:\\
\;\;\;\;\sin \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right) \cdot \left(b\_m \cdot b\_m\right)\\

\mathbf{else}:\\
\;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(angle\_m \cdot 0.011111111111111112\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \pi\right)\right)\\


\end{array}
\end{array}
\end{array}
Derivation
  1. Split input into 3 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.99989e-321

    1. Initial program 51.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. Applied egg-rr67.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000}, \left(angle \cdot angle\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)\right), \color{blue}{\frac{1}{90} \cdot \mathsf{PI}\left(\right)}\right)\right)\right) \]
      15. lower-PI.f6465.6

        \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle \cdot angle\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), 0.011111111111111112 \cdot \color{blue}{\pi}\right)\right)\right) \]
    6. Simplified65.6%

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

    if -9.99989e-321 < (*.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.00000000000000006e290

    1. Initial program 68.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. Applied egg-rr68.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{90}\right)\right)} \]
      14. lower-*.f6468.6

        \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \sin \left(\pi \cdot \color{blue}{\left(angle \cdot 0.011111111111111112\right)}\right) \]
    5. Applied egg-rr68.6%

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

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

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

        \[\leadsto \color{blue}{\left(b \cdot b\right)} \cdot \sin \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right) \]
    8. Simplified53.9%

      \[\leadsto \color{blue}{\left(b \cdot b\right)} \cdot \sin \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right) \]

    if 1.00000000000000006e290 < (*.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 39.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. Applied egg-rr77.2%

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

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

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

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

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

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

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

        \[\leadsto \left(b + a\right) \cdot \left(\left(0.011111111111111112 \cdot angle\right) \cdot \left(\pi \cdot \color{blue}{\left(b - a\right)}\right)\right) \]
    6. Simplified69.4%

      \[\leadsto \left(b + a\right) \cdot \color{blue}{\left(\left(0.011111111111111112 \cdot angle\right) \cdot \left(\pi \cdot \left(b - a\right)\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification62.9%

    \[\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^{-320}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle \cdot angle\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\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 10^{+290}:\\ \;\;\;\;\sin \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right) \cdot \left(b \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(angle \cdot 0.011111111111111112\right) \cdot \left(\left(b - a\right) \cdot \pi\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 64.8% accurate, 0.4× speedup?

\[\begin{array}{l} b_m = \left|b\right| \\ 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 := \cos t\_0 \cdot \left(\left(2 \cdot \left({b\_m}^{2} - {a\_m}^{2}\right)\right) \cdot \sin t\_0\right)\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;t\_1 \leq -1 \cdot 10^{-320}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(angle\_m \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle\_m \cdot angle\_m\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{elif}\;t\_1 \leq 10^{+290}:\\ \;\;\;\;\sin \left(0.011111111111111112 \cdot \left(angle\_m \cdot \pi\right)\right) \cdot \left(b\_m \cdot b\_m\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(angle\_m \cdot 0.011111111111111112\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \pi\right)\right)\\ \end{array} \end{array} \end{array} \]
b_m = (fabs.f64 b)
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_m angle_m)
 :precision binary64
 (let* ((t_0 (* (/ angle_m 180.0) PI))
        (t_1
         (* (cos t_0) (* (* 2.0 (- (pow b_m 2.0) (pow a_m 2.0))) (sin t_0)))))
   (*
    angle_s
    (if (<= t_1 -1e-320)
      (*
       (+ b_m a_m)
       (*
        (- b_m a_m)
        (*
         angle_m
         (fma
          -2.2862368541380886e-7
          (* (* angle_m angle_m) (* PI (* PI PI)))
          (* PI 0.011111111111111112)))))
      (if (<= t_1 1e+290)
        (* (sin (* 0.011111111111111112 (* angle_m PI))) (* b_m b_m))
        (*
         (+ b_m a_m)
         (* (* angle_m 0.011111111111111112) (* (- b_m a_m) PI))))))))
b_m = fabs(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_m, double angle_m) {
	double t_0 = (angle_m / 180.0) * ((double) M_PI);
	double t_1 = cos(t_0) * ((2.0 * (pow(b_m, 2.0) - pow(a_m, 2.0))) * sin(t_0));
	double tmp;
	if (t_1 <= -1e-320) {
		tmp = (b_m + a_m) * ((b_m - a_m) * (angle_m * fma(-2.2862368541380886e-7, ((angle_m * angle_m) * (((double) M_PI) * (((double) M_PI) * ((double) M_PI)))), (((double) M_PI) * 0.011111111111111112))));
	} else if (t_1 <= 1e+290) {
		tmp = sin((0.011111111111111112 * (angle_m * ((double) M_PI)))) * (b_m * b_m);
	} else {
		tmp = (b_m + a_m) * ((angle_m * 0.011111111111111112) * ((b_m - a_m) * ((double) M_PI)));
	}
	return angle_s * tmp;
}
b_m = abs(b)
a_m = abs(a)
angle\_m = abs(angle)
angle\_s = copysign(1.0, angle)
function code(angle_s, a_m, b_m, angle_m)
	t_0 = Float64(Float64(angle_m / 180.0) * pi)
	t_1 = Float64(cos(t_0) * Float64(Float64(2.0 * Float64((b_m ^ 2.0) - (a_m ^ 2.0))) * sin(t_0)))
	tmp = 0.0
	if (t_1 <= -1e-320)
		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * Float64(angle_m * fma(-2.2862368541380886e-7, Float64(Float64(angle_m * angle_m) * Float64(pi * Float64(pi * pi))), Float64(pi * 0.011111111111111112)))));
	elseif (t_1 <= 1e+290)
		tmp = Float64(sin(Float64(0.011111111111111112 * Float64(angle_m * pi))) * Float64(b_m * b_m));
	else
		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(angle_m * 0.011111111111111112) * Float64(Float64(b_m - a_m) * pi)));
	end
	return Float64(angle_s * tmp)
end
b_m = N[Abs[b], $MachinePrecision]
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$95$m_, angle$95$m_] := Block[{t$95$0 = N[(N[(angle$95$m / 180.0), $MachinePrecision] * Pi), $MachinePrecision]}, Block[{t$95$1 = N[(N[Cos[t$95$0], $MachinePrecision] * N[(N[(2.0 * N[(N[Power[b$95$m, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(angle$95$s * If[LessEqual[t$95$1, -1e-320], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[(angle$95$m * N[(-2.2862368541380886e-7 * N[(N[(angle$95$m * angle$95$m), $MachinePrecision] * N[(Pi * N[(Pi * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+290], N[(N[Sin[N[(0.011111111111111112 * N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(b$95$m * b$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(angle$95$m * 0.011111111111111112), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]]
\begin{array}{l}
b_m = \left|b\right|
\\
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 := \cos t\_0 \cdot \left(\left(2 \cdot \left({b\_m}^{2} - {a\_m}^{2}\right)\right) \cdot \sin t\_0\right)\\
angle\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-320}:\\
\;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(angle\_m \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle\_m \cdot angle\_m\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\

\mathbf{elif}\;t\_1 \leq 10^{+290}:\\
\;\;\;\;\sin \left(0.011111111111111112 \cdot \left(angle\_m \cdot \pi\right)\right) \cdot \left(b\_m \cdot b\_m\right)\\

\mathbf{else}:\\
\;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(angle\_m \cdot 0.011111111111111112\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \pi\right)\right)\\


\end{array}
\end{array}
\end{array}
Derivation
  1. Split input into 3 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.99989e-321

    1. Initial program 51.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. Applied egg-rr67.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000}, \left(angle \cdot angle\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)\right), \color{blue}{\frac{1}{90} \cdot \mathsf{PI}\left(\right)}\right)\right)\right) \]
      15. lower-PI.f6465.6

        \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle \cdot angle\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), 0.011111111111111112 \cdot \color{blue}{\pi}\right)\right)\right) \]
    6. Simplified65.6%

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

    if -9.99989e-321 < (*.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.00000000000000006e290

    1. Initial program 68.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. Applied egg-rr68.8%

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

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

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

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

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

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

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

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

        \[\leadsto \sin \left(\frac{1}{90} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \color{blue}{\left(b \cdot b\right)} \]
      8. lower-*.f6453.9

        \[\leadsto \sin \left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right) \cdot \color{blue}{\left(b \cdot b\right)} \]
    6. Simplified53.9%

      \[\leadsto \color{blue}{\sin \left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(b \cdot b\right)} \]

    if 1.00000000000000006e290 < (*.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 39.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. Applied egg-rr77.2%

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

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

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

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

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

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

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

        \[\leadsto \left(b + a\right) \cdot \left(\left(0.011111111111111112 \cdot angle\right) \cdot \left(\pi \cdot \color{blue}{\left(b - a\right)}\right)\right) \]
    6. Simplified69.4%

      \[\leadsto \left(b + a\right) \cdot \color{blue}{\left(\left(0.011111111111111112 \cdot angle\right) \cdot \left(\pi \cdot \left(b - a\right)\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification62.9%

    \[\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^{-320}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle \cdot angle\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\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 10^{+290}:\\ \;\;\;\;\sin \left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(b \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(angle \cdot 0.011111111111111112\right) \cdot \left(\left(b - a\right) \cdot \pi\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 64.0% accurate, 0.5× speedup?

\[\begin{array}{l} b_m = \left|b\right| \\ 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 := \cos t\_0 \cdot \left(\left(2 \cdot \left({b\_m}^{2} - {a\_m}^{2}\right)\right) \cdot \sin t\_0\right)\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;t\_1 \leq -1 \cdot 10^{-320}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(angle\_m \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle\_m \cdot angle\_m\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{-250}:\\ \;\;\;\;\pi \cdot \left(\left(b\_m \cdot b\_m\right) \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(0.011111111111111112 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\\ \end{array} \end{array} \end{array} \]
b_m = (fabs.f64 b)
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_m angle_m)
 :precision binary64
 (let* ((t_0 (* (/ angle_m 180.0) PI))
        (t_1
         (* (cos t_0) (* (* 2.0 (- (pow b_m 2.0) (pow a_m 2.0))) (sin t_0)))))
   (*
    angle_s
    (if (<= t_1 -1e-320)
      (*
       (+ b_m a_m)
       (*
        (- b_m a_m)
        (*
         angle_m
         (fma
          -2.2862368541380886e-7
          (* (* angle_m angle_m) (* PI (* PI PI)))
          (* PI 0.011111111111111112)))))
      (if (<= t_1 2e-250)
        (* PI (* (* b_m b_m) (* angle_m 0.011111111111111112)))
        (*
         (+ b_m a_m)
         (* (- b_m a_m) (* 0.011111111111111112 (* angle_m PI)))))))))
b_m = fabs(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_m, double angle_m) {
	double t_0 = (angle_m / 180.0) * ((double) M_PI);
	double t_1 = cos(t_0) * ((2.0 * (pow(b_m, 2.0) - pow(a_m, 2.0))) * sin(t_0));
	double tmp;
	if (t_1 <= -1e-320) {
		tmp = (b_m + a_m) * ((b_m - a_m) * (angle_m * fma(-2.2862368541380886e-7, ((angle_m * angle_m) * (((double) M_PI) * (((double) M_PI) * ((double) M_PI)))), (((double) M_PI) * 0.011111111111111112))));
	} else if (t_1 <= 2e-250) {
		tmp = ((double) M_PI) * ((b_m * b_m) * (angle_m * 0.011111111111111112));
	} else {
		tmp = (b_m + a_m) * ((b_m - a_m) * (0.011111111111111112 * (angle_m * ((double) M_PI))));
	}
	return angle_s * tmp;
}
b_m = abs(b)
a_m = abs(a)
angle\_m = abs(angle)
angle\_s = copysign(1.0, angle)
function code(angle_s, a_m, b_m, angle_m)
	t_0 = Float64(Float64(angle_m / 180.0) * pi)
	t_1 = Float64(cos(t_0) * Float64(Float64(2.0 * Float64((b_m ^ 2.0) - (a_m ^ 2.0))) * sin(t_0)))
	tmp = 0.0
	if (t_1 <= -1e-320)
		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * Float64(angle_m * fma(-2.2862368541380886e-7, Float64(Float64(angle_m * angle_m) * Float64(pi * Float64(pi * pi))), Float64(pi * 0.011111111111111112)))));
	elseif (t_1 <= 2e-250)
		tmp = Float64(pi * Float64(Float64(b_m * b_m) * Float64(angle_m * 0.011111111111111112)));
	else
		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * Float64(0.011111111111111112 * Float64(angle_m * pi))));
	end
	return Float64(angle_s * tmp)
end
b_m = N[Abs[b], $MachinePrecision]
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$95$m_, angle$95$m_] := Block[{t$95$0 = N[(N[(angle$95$m / 180.0), $MachinePrecision] * Pi), $MachinePrecision]}, Block[{t$95$1 = N[(N[Cos[t$95$0], $MachinePrecision] * N[(N[(2.0 * N[(N[Power[b$95$m, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(angle$95$s * If[LessEqual[t$95$1, -1e-320], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[(angle$95$m * N[(-2.2862368541380886e-7 * N[(N[(angle$95$m * angle$95$m), $MachinePrecision] * N[(Pi * N[(Pi * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e-250], N[(Pi * N[(N[(b$95$m * b$95$m), $MachinePrecision] * N[(angle$95$m * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[(0.011111111111111112 * N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]]
\begin{array}{l}
b_m = \left|b\right|
\\
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 := \cos t\_0 \cdot \left(\left(2 \cdot \left({b\_m}^{2} - {a\_m}^{2}\right)\right) \cdot \sin t\_0\right)\\
angle\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-320}:\\
\;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(angle\_m \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle\_m \cdot angle\_m\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\

\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{-250}:\\
\;\;\;\;\pi \cdot \left(\left(b\_m \cdot b\_m\right) \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(0.011111111111111112 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\\


\end{array}
\end{array}
\end{array}
Derivation
  1. Split input into 3 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.99989e-321

    1. Initial program 51.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. Applied egg-rr67.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000}, \left(angle \cdot angle\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)\right), \color{blue}{\frac{1}{90} \cdot \mathsf{PI}\left(\right)}\right)\right)\right) \]
      15. lower-PI.f6465.6

        \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle \cdot angle\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), 0.011111111111111112 \cdot \color{blue}{\pi}\right)\right)\right) \]
    6. Simplified65.6%

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

    if -9.99989e-321 < (*.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))))) < 2.0000000000000001e-250

    1. Initial program 92.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. Taylor expanded in angle around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{\left(b + a\right)} \cdot \left(b - a\right)\right) \]
      16. lower--.f6491.9

        \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
    5. Simplified91.9%

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

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

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

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

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

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

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

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

        \[\leadsto 0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \]
    8. Simplified89.7%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(\left(angle \cdot 0.011111111111111112\right) \cdot \left(b \cdot b\right)\right)} \cdot \pi \]
      12. lift-*.f64N/A

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

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

        \[\leadsto \left(\color{blue}{\left(0.011111111111111112 \cdot angle\right)} \cdot \left(b \cdot b\right)\right) \cdot \pi \]
    10. Applied egg-rr89.8%

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

    if 2.0000000000000001e-250 < (*.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 44.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. Applied egg-rr66.9%

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

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

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

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

        \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(0.011111111111111112 \cdot \left(angle \cdot \color{blue}{\pi}\right)\right)\right) \]
    6. Simplified59.9%

      \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right)}\right) \]
  3. Recombined 3 regimes into one program.
  4. Final simplification66.3%

    \[\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^{-320}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle \cdot angle\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\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 2 \cdot 10^{-250}:\\ \;\;\;\;\pi \cdot \left(\left(b \cdot b\right) \cdot \left(angle \cdot 0.011111111111111112\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 66.3% accurate, 0.9× speedup?

\[\begin{array}{l} b_m = \left|b\right| \\ 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\_m + a\_m\right) \cdot \left(b\_m - a\_m\right)\\ t_1 := \cos \left(\frac{angle\_m}{180} \cdot \pi\right)\\ t_2 := \sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right)\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{+75}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \sin \left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{elif}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{+161}:\\ \;\;\;\;\frac{2 \cdot t\_2}{{\left(t\_0 \cdot t\_0\right)}^{-0.5}} \cdot t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_1 \cdot e^{-\log \left(\frac{1}{2 \cdot \left(t\_2 \cdot t\_0\right)}\right)}\\ \end{array} \end{array} \end{array} \]
b_m = (fabs.f64 b)
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_m angle_m)
 :precision binary64
 (let* ((t_0 (* (+ b_m a_m) (- b_m a_m)))
        (t_1 (cos (* (/ angle_m 180.0) PI)))
        (t_2 (sin (* PI (* angle_m 0.005555555555555556)))))
   (*
    angle_s
    (if (<= (/ angle_m 180.0) 2e+75)
      (*
       (+ b_m a_m)
       (* (- b_m a_m) (sin (* angle_m (* PI 0.011111111111111112)))))
      (if (<= (/ angle_m 180.0) 2e+161)
        (* (/ (* 2.0 t_2) (pow (* t_0 t_0) -0.5)) t_1)
        (* t_1 (exp (- (log (/ 1.0 (* 2.0 (* t_2 t_0))))))))))))
b_m = fabs(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_m, double angle_m) {
	double t_0 = (b_m + a_m) * (b_m - a_m);
	double t_1 = cos(((angle_m / 180.0) * ((double) M_PI)));
	double t_2 = sin((((double) M_PI) * (angle_m * 0.005555555555555556)));
	double tmp;
	if ((angle_m / 180.0) <= 2e+75) {
		tmp = (b_m + a_m) * ((b_m - a_m) * sin((angle_m * (((double) M_PI) * 0.011111111111111112))));
	} else if ((angle_m / 180.0) <= 2e+161) {
		tmp = ((2.0 * t_2) / pow((t_0 * t_0), -0.5)) * t_1;
	} else {
		tmp = t_1 * exp(-log((1.0 / (2.0 * (t_2 * t_0)))));
	}
	return angle_s * tmp;
}
b_m = Math.abs(b);
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_m, double angle_m) {
	double t_0 = (b_m + a_m) * (b_m - a_m);
	double t_1 = Math.cos(((angle_m / 180.0) * Math.PI));
	double t_2 = Math.sin((Math.PI * (angle_m * 0.005555555555555556)));
	double tmp;
	if ((angle_m / 180.0) <= 2e+75) {
		tmp = (b_m + a_m) * ((b_m - a_m) * Math.sin((angle_m * (Math.PI * 0.011111111111111112))));
	} else if ((angle_m / 180.0) <= 2e+161) {
		tmp = ((2.0 * t_2) / Math.pow((t_0 * t_0), -0.5)) * t_1;
	} else {
		tmp = t_1 * Math.exp(-Math.log((1.0 / (2.0 * (t_2 * t_0)))));
	}
	return angle_s * tmp;
}
b_m = math.fabs(b)
a_m = math.fabs(a)
angle\_m = math.fabs(angle)
angle\_s = math.copysign(1.0, angle)
def code(angle_s, a_m, b_m, angle_m):
	t_0 = (b_m + a_m) * (b_m - a_m)
	t_1 = math.cos(((angle_m / 180.0) * math.pi))
	t_2 = math.sin((math.pi * (angle_m * 0.005555555555555556)))
	tmp = 0
	if (angle_m / 180.0) <= 2e+75:
		tmp = (b_m + a_m) * ((b_m - a_m) * math.sin((angle_m * (math.pi * 0.011111111111111112))))
	elif (angle_m / 180.0) <= 2e+161:
		tmp = ((2.0 * t_2) / math.pow((t_0 * t_0), -0.5)) * t_1
	else:
		tmp = t_1 * math.exp(-math.log((1.0 / (2.0 * (t_2 * t_0)))))
	return angle_s * tmp
b_m = abs(b)
a_m = abs(a)
angle\_m = abs(angle)
angle\_s = copysign(1.0, angle)
function code(angle_s, a_m, b_m, angle_m)
	t_0 = Float64(Float64(b_m + a_m) * Float64(b_m - a_m))
	t_1 = cos(Float64(Float64(angle_m / 180.0) * pi))
	t_2 = sin(Float64(pi * Float64(angle_m * 0.005555555555555556)))
	tmp = 0.0
	if (Float64(angle_m / 180.0) <= 2e+75)
		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * sin(Float64(angle_m * Float64(pi * 0.011111111111111112)))));
	elseif (Float64(angle_m / 180.0) <= 2e+161)
		tmp = Float64(Float64(Float64(2.0 * t_2) / (Float64(t_0 * t_0) ^ -0.5)) * t_1);
	else
		tmp = Float64(t_1 * exp(Float64(-log(Float64(1.0 / Float64(2.0 * Float64(t_2 * t_0)))))));
	end
	return Float64(angle_s * tmp)
end
b_m = abs(b);
a_m = abs(a);
angle\_m = abs(angle);
angle\_s = sign(angle) * abs(1.0);
function tmp_2 = code(angle_s, a_m, b_m, angle_m)
	t_0 = (b_m + a_m) * (b_m - a_m);
	t_1 = cos(((angle_m / 180.0) * pi));
	t_2 = sin((pi * (angle_m * 0.005555555555555556)));
	tmp = 0.0;
	if ((angle_m / 180.0) <= 2e+75)
		tmp = (b_m + a_m) * ((b_m - a_m) * sin((angle_m * (pi * 0.011111111111111112))));
	elseif ((angle_m / 180.0) <= 2e+161)
		tmp = ((2.0 * t_2) / ((t_0 * t_0) ^ -0.5)) * t_1;
	else
		tmp = t_1 * exp(-log((1.0 / (2.0 * (t_2 * t_0)))));
	end
	tmp_2 = angle_s * tmp;
end
b_m = N[Abs[b], $MachinePrecision]
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$95$m_, angle$95$m_] := Block[{t$95$0 = N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(b$95$m - a$95$m), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Cos[N[(N[(angle$95$m / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[Sin[N[(Pi * N[(angle$95$m * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 2e+75], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[Sin[N[(angle$95$m * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 2e+161], N[(N[(N[(2.0 * t$95$2), $MachinePrecision] / N[Power[N[(t$95$0 * t$95$0), $MachinePrecision], -0.5], $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision], N[(t$95$1 * N[Exp[(-N[Log[N[(1.0 / N[(2.0 * N[(t$95$2 * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])], $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]]]
\begin{array}{l}
b_m = \left|b\right|
\\
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\_m + a\_m\right) \cdot \left(b\_m - a\_m\right)\\
t_1 := \cos \left(\frac{angle\_m}{180} \cdot \pi\right)\\
t_2 := \sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right)\\
angle\_s \cdot \begin{array}{l}
\mathbf{if}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{+75}:\\
\;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \sin \left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\right)\\

\mathbf{elif}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{+161}:\\
\;\;\;\;\frac{2 \cdot t\_2}{{\left(t\_0 \cdot t\_0\right)}^{-0.5}} \cdot t\_1\\

\mathbf{else}:\\
\;\;\;\;t\_1 \cdot e^{-\log \left(\frac{1}{2 \cdot \left(t\_2 \cdot t\_0\right)}\right)}\\


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

    1. Initial program 60.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. Applied egg-rr80.3%

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

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

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

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

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

        \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right) \cdot angle\right)}\right) \]
      6. lower-*.f6481.4

        \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \color{blue}{\left(\left(\pi \cdot 0.011111111111111112\right) \cdot angle\right)}\right) \]
    5. Applied egg-rr81.4%

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

    if 1.99999999999999985e75 < (/.f64 angle #s(literal 180 binary64)) < 2.0000000000000001e161

    1. Initial program 29.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 2.0000000000000001e161 < (/.f64 angle #s(literal 180 binary64))

    1. Initial program 26.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

Alternative 6: 67.4% accurate, 1.1× speedup?

\[\begin{array}{l} b_m = \left|b\right| \\ 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\_m + a\_m\right) \cdot \left(b\_m - a\_m\right)\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{+75}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \sin \left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{elif}\;\frac{angle\_m}{180} \leq 5 \cdot 10^{+152}:\\ \;\;\;\;\frac{2 \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right)}{{\left(t\_0 \cdot t\_0\right)}^{-0.5}} \cdot \cos \left(\frac{angle\_m}{180} \cdot \pi\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{2 \cdot \sin \left(\left(angle\_m \cdot 0.005555555555555556\right) \cdot \left(\sqrt{\pi \cdot \sqrt{\pi}} \cdot \sqrt{\sqrt{\pi}}\right)\right)}{\frac{1}{t\_0}}\\ \end{array} \end{array} \end{array} \]
b_m = (fabs.f64 b)
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_m angle_m)
 :precision binary64
 (let* ((t_0 (* (+ b_m a_m) (- b_m a_m))))
   (*
    angle_s
    (if (<= (/ angle_m 180.0) 2e+75)
      (*
       (+ b_m a_m)
       (* (- b_m a_m) (sin (* angle_m (* PI 0.011111111111111112)))))
      (if (<= (/ angle_m 180.0) 5e+152)
        (*
         (/
          (* 2.0 (sin (* PI (* angle_m 0.005555555555555556))))
          (pow (* t_0 t_0) -0.5))
         (cos (* (/ angle_m 180.0) PI)))
        (/
         (*
          2.0
          (sin
           (*
            (* angle_m 0.005555555555555556)
            (* (sqrt (* PI (sqrt PI))) (sqrt (sqrt PI))))))
         (/ 1.0 t_0)))))))
b_m = fabs(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_m, double angle_m) {
	double t_0 = (b_m + a_m) * (b_m - a_m);
	double tmp;
	if ((angle_m / 180.0) <= 2e+75) {
		tmp = (b_m + a_m) * ((b_m - a_m) * sin((angle_m * (((double) M_PI) * 0.011111111111111112))));
	} else if ((angle_m / 180.0) <= 5e+152) {
		tmp = ((2.0 * sin((((double) M_PI) * (angle_m * 0.005555555555555556)))) / pow((t_0 * t_0), -0.5)) * cos(((angle_m / 180.0) * ((double) M_PI)));
	} else {
		tmp = (2.0 * sin(((angle_m * 0.005555555555555556) * (sqrt((((double) M_PI) * sqrt(((double) M_PI)))) * sqrt(sqrt(((double) M_PI))))))) / (1.0 / t_0);
	}
	return angle_s * tmp;
}
b_m = Math.abs(b);
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_m, double angle_m) {
	double t_0 = (b_m + a_m) * (b_m - a_m);
	double tmp;
	if ((angle_m / 180.0) <= 2e+75) {
		tmp = (b_m + a_m) * ((b_m - a_m) * Math.sin((angle_m * (Math.PI * 0.011111111111111112))));
	} else if ((angle_m / 180.0) <= 5e+152) {
		tmp = ((2.0 * Math.sin((Math.PI * (angle_m * 0.005555555555555556)))) / Math.pow((t_0 * t_0), -0.5)) * Math.cos(((angle_m / 180.0) * Math.PI));
	} else {
		tmp = (2.0 * Math.sin(((angle_m * 0.005555555555555556) * (Math.sqrt((Math.PI * Math.sqrt(Math.PI))) * Math.sqrt(Math.sqrt(Math.PI)))))) / (1.0 / t_0);
	}
	return angle_s * tmp;
}
b_m = math.fabs(b)
a_m = math.fabs(a)
angle\_m = math.fabs(angle)
angle\_s = math.copysign(1.0, angle)
def code(angle_s, a_m, b_m, angle_m):
	t_0 = (b_m + a_m) * (b_m - a_m)
	tmp = 0
	if (angle_m / 180.0) <= 2e+75:
		tmp = (b_m + a_m) * ((b_m - a_m) * math.sin((angle_m * (math.pi * 0.011111111111111112))))
	elif (angle_m / 180.0) <= 5e+152:
		tmp = ((2.0 * math.sin((math.pi * (angle_m * 0.005555555555555556)))) / math.pow((t_0 * t_0), -0.5)) * math.cos(((angle_m / 180.0) * math.pi))
	else:
		tmp = (2.0 * math.sin(((angle_m * 0.005555555555555556) * (math.sqrt((math.pi * math.sqrt(math.pi))) * math.sqrt(math.sqrt(math.pi)))))) / (1.0 / t_0)
	return angle_s * tmp
b_m = abs(b)
a_m = abs(a)
angle\_m = abs(angle)
angle\_s = copysign(1.0, angle)
function code(angle_s, a_m, b_m, angle_m)
	t_0 = Float64(Float64(b_m + a_m) * Float64(b_m - a_m))
	tmp = 0.0
	if (Float64(angle_m / 180.0) <= 2e+75)
		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * sin(Float64(angle_m * Float64(pi * 0.011111111111111112)))));
	elseif (Float64(angle_m / 180.0) <= 5e+152)
		tmp = Float64(Float64(Float64(2.0 * sin(Float64(pi * Float64(angle_m * 0.005555555555555556)))) / (Float64(t_0 * t_0) ^ -0.5)) * cos(Float64(Float64(angle_m / 180.0) * pi)));
	else
		tmp = Float64(Float64(2.0 * sin(Float64(Float64(angle_m * 0.005555555555555556) * Float64(sqrt(Float64(pi * sqrt(pi))) * sqrt(sqrt(pi)))))) / Float64(1.0 / t_0));
	end
	return Float64(angle_s * tmp)
end
b_m = abs(b);
a_m = abs(a);
angle\_m = abs(angle);
angle\_s = sign(angle) * abs(1.0);
function tmp_2 = code(angle_s, a_m, b_m, angle_m)
	t_0 = (b_m + a_m) * (b_m - a_m);
	tmp = 0.0;
	if ((angle_m / 180.0) <= 2e+75)
		tmp = (b_m + a_m) * ((b_m - a_m) * sin((angle_m * (pi * 0.011111111111111112))));
	elseif ((angle_m / 180.0) <= 5e+152)
		tmp = ((2.0 * sin((pi * (angle_m * 0.005555555555555556)))) / ((t_0 * t_0) ^ -0.5)) * cos(((angle_m / 180.0) * pi));
	else
		tmp = (2.0 * sin(((angle_m * 0.005555555555555556) * (sqrt((pi * sqrt(pi))) * sqrt(sqrt(pi)))))) / (1.0 / t_0);
	end
	tmp_2 = angle_s * tmp;
end
b_m = N[Abs[b], $MachinePrecision]
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$95$m_, angle$95$m_] := Block[{t$95$0 = N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(b$95$m - a$95$m), $MachinePrecision]), $MachinePrecision]}, N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 2e+75], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[Sin[N[(angle$95$m * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 5e+152], N[(N[(N[(2.0 * N[Sin[N[(Pi * N[(angle$95$m * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[Power[N[(t$95$0 * t$95$0), $MachinePrecision], -0.5], $MachinePrecision]), $MachinePrecision] * N[Cos[N[(N[(angle$95$m / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[(2.0 * N[Sin[N[(N[(angle$95$m * 0.005555555555555556), $MachinePrecision] * N[(N[Sqrt[N[(Pi * N[Sqrt[Pi], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[Sqrt[Pi], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(1.0 / t$95$0), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
b_m = \left|b\right|
\\
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\_m + a\_m\right) \cdot \left(b\_m - a\_m\right)\\
angle\_s \cdot \begin{array}{l}
\mathbf{if}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{+75}:\\
\;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \sin \left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\right)\\

\mathbf{elif}\;\frac{angle\_m}{180} \leq 5 \cdot 10^{+152}:\\
\;\;\;\;\frac{2 \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right)}{{\left(t\_0 \cdot t\_0\right)}^{-0.5}} \cdot \cos \left(\frac{angle\_m}{180} \cdot \pi\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{2 \cdot \sin \left(\left(angle\_m \cdot 0.005555555555555556\right) \cdot \left(\sqrt{\pi \cdot \sqrt{\pi}} \cdot \sqrt{\sqrt{\pi}}\right)\right)}{\frac{1}{t\_0}}\\


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

    1. Initial program 60.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. Applied egg-rr80.3%

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

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

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

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

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

        \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right) \cdot angle\right)}\right) \]
      6. lower-*.f6481.4

        \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \color{blue}{\left(\left(\pi \cdot 0.011111111111111112\right) \cdot angle\right)}\right) \]
    5. Applied egg-rr81.4%

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

    if 1.99999999999999985e75 < (/.f64 angle #s(literal 180 binary64)) < 5e152

    1. Initial program 24.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 5e152 < (/.f64 angle #s(literal 180 binary64))

    1. Initial program 28.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 7: 67.3% accurate, 1.9× speedup?

    \[\begin{array}{l} b_m = \left|b\right| \\ 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\_m + a\_m\right) \cdot \left(b\_m - a\_m\right)\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{+75}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \sin \left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{elif}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{+131}:\\ \;\;\;\;\left(t\_0 \cdot \left(b\_m \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\right) \cdot \frac{1}{b\_m - a\_m}\\ \mathbf{else}:\\ \;\;\;\;\frac{2 \cdot \sin \left(\left(angle\_m \cdot 0.005555555555555556\right) \cdot \left(\sqrt{\pi \cdot \sqrt{\pi}} \cdot \sqrt{\sqrt{\pi}}\right)\right)}{\frac{1}{t\_0}}\\ \end{array} \end{array} \end{array} \]
    b_m = (fabs.f64 b)
    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_m angle_m)
     :precision binary64
     (let* ((t_0 (* (+ b_m a_m) (- b_m a_m))))
       (*
        angle_s
        (if (<= (/ angle_m 180.0) 2e+75)
          (*
           (+ b_m a_m)
           (* (- b_m a_m) (sin (* angle_m (* PI 0.011111111111111112)))))
          (if (<= (/ angle_m 180.0) 2e+131)
            (*
             (* t_0 (* b_m (sin (* PI (* angle_m 0.011111111111111112)))))
             (/ 1.0 (- b_m a_m)))
            (/
             (*
              2.0
              (sin
               (*
                (* angle_m 0.005555555555555556)
                (* (sqrt (* PI (sqrt PI))) (sqrt (sqrt PI))))))
             (/ 1.0 t_0)))))))
    b_m = fabs(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_m, double angle_m) {
    	double t_0 = (b_m + a_m) * (b_m - a_m);
    	double tmp;
    	if ((angle_m / 180.0) <= 2e+75) {
    		tmp = (b_m + a_m) * ((b_m - a_m) * sin((angle_m * (((double) M_PI) * 0.011111111111111112))));
    	} else if ((angle_m / 180.0) <= 2e+131) {
    		tmp = (t_0 * (b_m * sin((((double) M_PI) * (angle_m * 0.011111111111111112))))) * (1.0 / (b_m - a_m));
    	} else {
    		tmp = (2.0 * sin(((angle_m * 0.005555555555555556) * (sqrt((((double) M_PI) * sqrt(((double) M_PI)))) * sqrt(sqrt(((double) M_PI))))))) / (1.0 / t_0);
    	}
    	return angle_s * tmp;
    }
    
    b_m = Math.abs(b);
    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_m, double angle_m) {
    	double t_0 = (b_m + a_m) * (b_m - a_m);
    	double tmp;
    	if ((angle_m / 180.0) <= 2e+75) {
    		tmp = (b_m + a_m) * ((b_m - a_m) * Math.sin((angle_m * (Math.PI * 0.011111111111111112))));
    	} else if ((angle_m / 180.0) <= 2e+131) {
    		tmp = (t_0 * (b_m * Math.sin((Math.PI * (angle_m * 0.011111111111111112))))) * (1.0 / (b_m - a_m));
    	} else {
    		tmp = (2.0 * Math.sin(((angle_m * 0.005555555555555556) * (Math.sqrt((Math.PI * Math.sqrt(Math.PI))) * Math.sqrt(Math.sqrt(Math.PI)))))) / (1.0 / t_0);
    	}
    	return angle_s * tmp;
    }
    
    b_m = math.fabs(b)
    a_m = math.fabs(a)
    angle\_m = math.fabs(angle)
    angle\_s = math.copysign(1.0, angle)
    def code(angle_s, a_m, b_m, angle_m):
    	t_0 = (b_m + a_m) * (b_m - a_m)
    	tmp = 0
    	if (angle_m / 180.0) <= 2e+75:
    		tmp = (b_m + a_m) * ((b_m - a_m) * math.sin((angle_m * (math.pi * 0.011111111111111112))))
    	elif (angle_m / 180.0) <= 2e+131:
    		tmp = (t_0 * (b_m * math.sin((math.pi * (angle_m * 0.011111111111111112))))) * (1.0 / (b_m - a_m))
    	else:
    		tmp = (2.0 * math.sin(((angle_m * 0.005555555555555556) * (math.sqrt((math.pi * math.sqrt(math.pi))) * math.sqrt(math.sqrt(math.pi)))))) / (1.0 / t_0)
    	return angle_s * tmp
    
    b_m = abs(b)
    a_m = abs(a)
    angle\_m = abs(angle)
    angle\_s = copysign(1.0, angle)
    function code(angle_s, a_m, b_m, angle_m)
    	t_0 = Float64(Float64(b_m + a_m) * Float64(b_m - a_m))
    	tmp = 0.0
    	if (Float64(angle_m / 180.0) <= 2e+75)
    		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * sin(Float64(angle_m * Float64(pi * 0.011111111111111112)))));
    	elseif (Float64(angle_m / 180.0) <= 2e+131)
    		tmp = Float64(Float64(t_0 * Float64(b_m * sin(Float64(pi * Float64(angle_m * 0.011111111111111112))))) * Float64(1.0 / Float64(b_m - a_m)));
    	else
    		tmp = Float64(Float64(2.0 * sin(Float64(Float64(angle_m * 0.005555555555555556) * Float64(sqrt(Float64(pi * sqrt(pi))) * sqrt(sqrt(pi)))))) / Float64(1.0 / t_0));
    	end
    	return Float64(angle_s * tmp)
    end
    
    b_m = abs(b);
    a_m = abs(a);
    angle\_m = abs(angle);
    angle\_s = sign(angle) * abs(1.0);
    function tmp_2 = code(angle_s, a_m, b_m, angle_m)
    	t_0 = (b_m + a_m) * (b_m - a_m);
    	tmp = 0.0;
    	if ((angle_m / 180.0) <= 2e+75)
    		tmp = (b_m + a_m) * ((b_m - a_m) * sin((angle_m * (pi * 0.011111111111111112))));
    	elseif ((angle_m / 180.0) <= 2e+131)
    		tmp = (t_0 * (b_m * sin((pi * (angle_m * 0.011111111111111112))))) * (1.0 / (b_m - a_m));
    	else
    		tmp = (2.0 * sin(((angle_m * 0.005555555555555556) * (sqrt((pi * sqrt(pi))) * sqrt(sqrt(pi)))))) / (1.0 / t_0);
    	end
    	tmp_2 = angle_s * tmp;
    end
    
    b_m = N[Abs[b], $MachinePrecision]
    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$95$m_, angle$95$m_] := Block[{t$95$0 = N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(b$95$m - a$95$m), $MachinePrecision]), $MachinePrecision]}, N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 2e+75], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[Sin[N[(angle$95$m * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 2e+131], N[(N[(t$95$0 * N[(b$95$m * N[Sin[N[(Pi * N[(angle$95$m * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(b$95$m - a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 * N[Sin[N[(N[(angle$95$m * 0.005555555555555556), $MachinePrecision] * N[(N[Sqrt[N[(Pi * N[Sqrt[Pi], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[Sqrt[N[Sqrt[Pi], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(1.0 / t$95$0), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
    
    \begin{array}{l}
    b_m = \left|b\right|
    \\
    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\_m + a\_m\right) \cdot \left(b\_m - a\_m\right)\\
    angle\_s \cdot \begin{array}{l}
    \mathbf{if}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{+75}:\\
    \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \sin \left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\right)\\
    
    \mathbf{elif}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{+131}:\\
    \;\;\;\;\left(t\_0 \cdot \left(b\_m \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\right) \cdot \frac{1}{b\_m - a\_m}\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{2 \cdot \sin \left(\left(angle\_m \cdot 0.005555555555555556\right) \cdot \left(\sqrt{\pi \cdot \sqrt{\pi}} \cdot \sqrt{\sqrt{\pi}}\right)\right)}{\frac{1}{t\_0}}\\
    
    
    \end{array}
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if (/.f64 angle #s(literal 180 binary64)) < 1.99999999999999985e75

      1. Initial program 60.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. Applied egg-rr80.3%

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

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

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

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

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

          \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right) \cdot angle\right)}\right) \]
        6. lower-*.f6481.4

          \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \color{blue}{\left(\left(\pi \cdot 0.011111111111111112\right) \cdot angle\right)}\right) \]
      5. Applied egg-rr81.4%

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

      if 1.99999999999999985e75 < (/.f64 angle #s(literal 180 binary64)) < 1.9999999999999998e131

      1. Initial program 19.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. Applied egg-rr20.4%

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

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

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

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

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

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

          \[\leadsto \left(b + a\right) \cdot \left(\sin \left(\frac{1}{90} \cdot \color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)}\right) \cdot b\right) \]
        6. lower-PI.f6421.2

          \[\leadsto \left(b + a\right) \cdot \left(\sin \left(0.011111111111111112 \cdot \left(angle \cdot \color{blue}{\pi}\right)\right) \cdot b\right) \]
      6. Simplified21.2%

        \[\leadsto \left(b + a\right) \cdot \color{blue}{\left(\sin \left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right) \cdot b\right)} \]
      7. Step-by-step derivation
        1. flip-+N/A

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

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

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

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

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

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

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

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

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

          \[\leadsto \color{blue}{\left(\left(b \cdot b - a \cdot a\right) \cdot \left(\sin \left(\frac{1}{90} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right) \cdot b\right)\right) \cdot \frac{1}{b - a}} \]
      8. Applied egg-rr56.6%

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

      if 1.9999999999999998e131 < (/.f64 angle #s(literal 180 binary64))

      1. Initial program 29.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 8: 57.9% accurate, 2.0× speedup?

      \[\begin{array}{l} b_m = \left|b\right| \\ 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\_m}^{2} - {a\_m}^{2} \leq 10^{-269}:\\ \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(-0.011111111111111112 \cdot \left(a\_m \cdot a\_m\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b\_m \cdot \left(\left(angle\_m \cdot 0.011111111111111112\right) \cdot \left(b\_m \cdot \pi\right)\right)\\ \end{array} \end{array} \]
      b_m = (fabs.f64 b)
      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_m angle_m)
       :precision binary64
       (*
        angle_s
        (if (<= (- (pow b_m 2.0) (pow a_m 2.0)) 1e-269)
          (* (* angle_m PI) (* -0.011111111111111112 (* a_m a_m)))
          (* b_m (* (* angle_m 0.011111111111111112) (* b_m PI))))))
      b_m = fabs(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_m, double angle_m) {
      	double tmp;
      	if ((pow(b_m, 2.0) - pow(a_m, 2.0)) <= 1e-269) {
      		tmp = (angle_m * ((double) M_PI)) * (-0.011111111111111112 * (a_m * a_m));
      	} else {
      		tmp = b_m * ((angle_m * 0.011111111111111112) * (b_m * ((double) M_PI)));
      	}
      	return angle_s * tmp;
      }
      
      b_m = Math.abs(b);
      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_m, double angle_m) {
      	double tmp;
      	if ((Math.pow(b_m, 2.0) - Math.pow(a_m, 2.0)) <= 1e-269) {
      		tmp = (angle_m * Math.PI) * (-0.011111111111111112 * (a_m * a_m));
      	} else {
      		tmp = b_m * ((angle_m * 0.011111111111111112) * (b_m * Math.PI));
      	}
      	return angle_s * tmp;
      }
      
      b_m = math.fabs(b)
      a_m = math.fabs(a)
      angle\_m = math.fabs(angle)
      angle\_s = math.copysign(1.0, angle)
      def code(angle_s, a_m, b_m, angle_m):
      	tmp = 0
      	if (math.pow(b_m, 2.0) - math.pow(a_m, 2.0)) <= 1e-269:
      		tmp = (angle_m * math.pi) * (-0.011111111111111112 * (a_m * a_m))
      	else:
      		tmp = b_m * ((angle_m * 0.011111111111111112) * (b_m * math.pi))
      	return angle_s * tmp
      
      b_m = abs(b)
      a_m = abs(a)
      angle\_m = abs(angle)
      angle\_s = copysign(1.0, angle)
      function code(angle_s, a_m, b_m, angle_m)
      	tmp = 0.0
      	if (Float64((b_m ^ 2.0) - (a_m ^ 2.0)) <= 1e-269)
      		tmp = Float64(Float64(angle_m * pi) * Float64(-0.011111111111111112 * Float64(a_m * a_m)));
      	else
      		tmp = Float64(b_m * Float64(Float64(angle_m * 0.011111111111111112) * Float64(b_m * pi)));
      	end
      	return Float64(angle_s * tmp)
      end
      
      b_m = abs(b);
      a_m = abs(a);
      angle\_m = abs(angle);
      angle\_s = sign(angle) * abs(1.0);
      function tmp_2 = code(angle_s, a_m, b_m, angle_m)
      	tmp = 0.0;
      	if (((b_m ^ 2.0) - (a_m ^ 2.0)) <= 1e-269)
      		tmp = (angle_m * pi) * (-0.011111111111111112 * (a_m * a_m));
      	else
      		tmp = b_m * ((angle_m * 0.011111111111111112) * (b_m * pi));
      	end
      	tmp_2 = angle_s * tmp;
      end
      
      b_m = N[Abs[b], $MachinePrecision]
      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$95$m_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(N[Power[b$95$m, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision], 1e-269], N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(-0.011111111111111112 * N[(a$95$m * a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b$95$m * N[(N[(angle$95$m * 0.011111111111111112), $MachinePrecision] * N[(b$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
      
      \begin{array}{l}
      b_m = \left|b\right|
      \\
      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\_m}^{2} - {a\_m}^{2} \leq 10^{-269}:\\
      \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(-0.011111111111111112 \cdot \left(a\_m \cdot a\_m\right)\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;b\_m \cdot \left(\left(angle\_m \cdot 0.011111111111111112\right) \cdot \left(b\_m \cdot \pi\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))) < 9.9999999999999996e-270

        1. Initial program 59.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. Taylor expanded in angle around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
        5. Simplified59.2%

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

          \[\leadsto \color{blue}{\frac{-1}{90} \cdot \left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)} \]
        7. Step-by-step derivation
          1. associate-*r*N/A

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

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

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

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

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

            \[\leadsto \left(\frac{-1}{90} \cdot \left(a \cdot a\right)\right) \cdot \color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \]
          7. lower-PI.f6459.2

            \[\leadsto \left(-0.011111111111111112 \cdot \left(a \cdot a\right)\right) \cdot \left(angle \cdot \color{blue}{\pi}\right) \]
        8. Simplified59.2%

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

        if 9.9999999999999996e-270 < (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))

        1. Initial program 46.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. Taylor expanded in angle around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{\left(b + a\right)} \cdot \left(b - a\right)\right) \]
          16. lower--.f6448.8

            \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
        5. Simplified48.8%

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

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

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

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

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

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

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

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

            \[\leadsto 0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \]
        8. Simplified48.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(\left(0.011111111111111112 \cdot angle\right) \cdot \color{blue}{\left(b \cdot \pi\right)}\right) \cdot b \]
        10. Applied egg-rr60.7%

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;{b}^{2} - {a}^{2} \leq 10^{-269}:\\ \;\;\;\;\left(angle \cdot \pi\right) \cdot \left(-0.011111111111111112 \cdot \left(a \cdot a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(\left(angle \cdot 0.011111111111111112\right) \cdot \left(b \cdot \pi\right)\right)\\ \end{array} \]
      5. Add Preprocessing

      Alternative 9: 57.9% accurate, 2.0× speedup?

      \[\begin{array}{l} b_m = \left|b\right| \\ 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\_m}^{2} - {a\_m}^{2} \leq 10^{-269}:\\ \;\;\;\;\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 b\_m\right) \cdot \left(0.011111111111111112 \cdot \left(b\_m \cdot \pi\right)\right)\\ \end{array} \end{array} \]
      b_m = (fabs.f64 b)
      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_m angle_m)
       :precision binary64
       (*
        angle_s
        (if (<= (- (pow b_m 2.0) (pow a_m 2.0)) 1e-269)
          (* (* angle_m PI) (* -0.011111111111111112 (* a_m a_m)))
          (* (* angle_m b_m) (* 0.011111111111111112 (* b_m PI))))))
      b_m = fabs(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_m, double angle_m) {
      	double tmp;
      	if ((pow(b_m, 2.0) - pow(a_m, 2.0)) <= 1e-269) {
      		tmp = (angle_m * ((double) M_PI)) * (-0.011111111111111112 * (a_m * a_m));
      	} else {
      		tmp = (angle_m * b_m) * (0.011111111111111112 * (b_m * ((double) M_PI)));
      	}
      	return angle_s * tmp;
      }
      
      b_m = Math.abs(b);
      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_m, double angle_m) {
      	double tmp;
      	if ((Math.pow(b_m, 2.0) - Math.pow(a_m, 2.0)) <= 1e-269) {
      		tmp = (angle_m * Math.PI) * (-0.011111111111111112 * (a_m * a_m));
      	} else {
      		tmp = (angle_m * b_m) * (0.011111111111111112 * (b_m * Math.PI));
      	}
      	return angle_s * tmp;
      }
      
      b_m = math.fabs(b)
      a_m = math.fabs(a)
      angle\_m = math.fabs(angle)
      angle\_s = math.copysign(1.0, angle)
      def code(angle_s, a_m, b_m, angle_m):
      	tmp = 0
      	if (math.pow(b_m, 2.0) - math.pow(a_m, 2.0)) <= 1e-269:
      		tmp = (angle_m * math.pi) * (-0.011111111111111112 * (a_m * a_m))
      	else:
      		tmp = (angle_m * b_m) * (0.011111111111111112 * (b_m * math.pi))
      	return angle_s * tmp
      
      b_m = abs(b)
      a_m = abs(a)
      angle\_m = abs(angle)
      angle\_s = copysign(1.0, angle)
      function code(angle_s, a_m, b_m, angle_m)
      	tmp = 0.0
      	if (Float64((b_m ^ 2.0) - (a_m ^ 2.0)) <= 1e-269)
      		tmp = Float64(Float64(angle_m * pi) * Float64(-0.011111111111111112 * Float64(a_m * a_m)));
      	else
      		tmp = Float64(Float64(angle_m * b_m) * Float64(0.011111111111111112 * Float64(b_m * pi)));
      	end
      	return Float64(angle_s * tmp)
      end
      
      b_m = abs(b);
      a_m = abs(a);
      angle\_m = abs(angle);
      angle\_s = sign(angle) * abs(1.0);
      function tmp_2 = code(angle_s, a_m, b_m, angle_m)
      	tmp = 0.0;
      	if (((b_m ^ 2.0) - (a_m ^ 2.0)) <= 1e-269)
      		tmp = (angle_m * pi) * (-0.011111111111111112 * (a_m * a_m));
      	else
      		tmp = (angle_m * b_m) * (0.011111111111111112 * (b_m * pi));
      	end
      	tmp_2 = angle_s * tmp;
      end
      
      b_m = N[Abs[b], $MachinePrecision]
      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$95$m_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(N[Power[b$95$m, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision], 1e-269], 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 * b$95$m), $MachinePrecision] * N[(0.011111111111111112 * N[(b$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
      
      \begin{array}{l}
      b_m = \left|b\right|
      \\
      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\_m}^{2} - {a\_m}^{2} \leq 10^{-269}:\\
      \;\;\;\;\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 b\_m\right) \cdot \left(0.011111111111111112 \cdot \left(b\_m \cdot \pi\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))) < 9.9999999999999996e-270

        1. Initial program 59.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. Taylor expanded in angle around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
        5. Simplified59.2%

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

          \[\leadsto \color{blue}{\frac{-1}{90} \cdot \left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)} \]
        7. Step-by-step derivation
          1. associate-*r*N/A

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

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

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

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

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

            \[\leadsto \left(\frac{-1}{90} \cdot \left(a \cdot a\right)\right) \cdot \color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \]
          7. lower-PI.f6459.2

            \[\leadsto \left(-0.011111111111111112 \cdot \left(a \cdot a\right)\right) \cdot \left(angle \cdot \color{blue}{\pi}\right) \]
        8. Simplified59.2%

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

        if 9.9999999999999996e-270 < (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))

        1. Initial program 46.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. Taylor expanded in angle around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{\left(b + a\right)} \cdot \left(b - a\right)\right) \]
          16. lower--.f6448.8

            \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
        5. Simplified48.8%

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

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

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

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

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

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

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

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

            \[\leadsto 0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \]
        8. Simplified48.3%

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto 0.011111111111111112 \cdot \left(\left(b \cdot \pi\right) \cdot \color{blue}{\left(b \cdot angle\right)}\right) \]
        10. Applied egg-rr60.0%

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

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

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

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

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

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

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

            \[\leadsto \left(b \cdot angle\right) \cdot \color{blue}{\left(0.011111111111111112 \cdot \left(b \cdot \pi\right)\right)} \]
        12. Applied egg-rr60.7%

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;{b}^{2} - {a}^{2} \leq 10^{-269}:\\ \;\;\;\;\left(angle \cdot \pi\right) \cdot \left(-0.011111111111111112 \cdot \left(a \cdot a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle \cdot b\right) \cdot \left(0.011111111111111112 \cdot \left(b \cdot \pi\right)\right)\\ \end{array} \]
      5. Add Preprocessing

      Alternative 10: 57.9% accurate, 2.0× speedup?

      \[\begin{array}{l} b_m = \left|b\right| \\ 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\_m}^{2} - {a\_m}^{2} \leq 10^{-269}:\\ \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(-0.011111111111111112 \cdot \left(a\_m \cdot a\_m\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b\_m \cdot 0.011111111111111112\right) \cdot \left(\pi \cdot \left(angle\_m \cdot b\_m\right)\right)\\ \end{array} \end{array} \]
      b_m = (fabs.f64 b)
      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_m angle_m)
       :precision binary64
       (*
        angle_s
        (if (<= (- (pow b_m 2.0) (pow a_m 2.0)) 1e-269)
          (* (* angle_m PI) (* -0.011111111111111112 (* a_m a_m)))
          (* (* b_m 0.011111111111111112) (* PI (* angle_m b_m))))))
      b_m = fabs(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_m, double angle_m) {
      	double tmp;
      	if ((pow(b_m, 2.0) - pow(a_m, 2.0)) <= 1e-269) {
      		tmp = (angle_m * ((double) M_PI)) * (-0.011111111111111112 * (a_m * a_m));
      	} else {
      		tmp = (b_m * 0.011111111111111112) * (((double) M_PI) * (angle_m * b_m));
      	}
      	return angle_s * tmp;
      }
      
      b_m = Math.abs(b);
      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_m, double angle_m) {
      	double tmp;
      	if ((Math.pow(b_m, 2.0) - Math.pow(a_m, 2.0)) <= 1e-269) {
      		tmp = (angle_m * Math.PI) * (-0.011111111111111112 * (a_m * a_m));
      	} else {
      		tmp = (b_m * 0.011111111111111112) * (Math.PI * (angle_m * b_m));
      	}
      	return angle_s * tmp;
      }
      
      b_m = math.fabs(b)
      a_m = math.fabs(a)
      angle\_m = math.fabs(angle)
      angle\_s = math.copysign(1.0, angle)
      def code(angle_s, a_m, b_m, angle_m):
      	tmp = 0
      	if (math.pow(b_m, 2.0) - math.pow(a_m, 2.0)) <= 1e-269:
      		tmp = (angle_m * math.pi) * (-0.011111111111111112 * (a_m * a_m))
      	else:
      		tmp = (b_m * 0.011111111111111112) * (math.pi * (angle_m * b_m))
      	return angle_s * tmp
      
      b_m = abs(b)
      a_m = abs(a)
      angle\_m = abs(angle)
      angle\_s = copysign(1.0, angle)
      function code(angle_s, a_m, b_m, angle_m)
      	tmp = 0.0
      	if (Float64((b_m ^ 2.0) - (a_m ^ 2.0)) <= 1e-269)
      		tmp = Float64(Float64(angle_m * pi) * Float64(-0.011111111111111112 * Float64(a_m * a_m)));
      	else
      		tmp = Float64(Float64(b_m * 0.011111111111111112) * Float64(pi * Float64(angle_m * b_m)));
      	end
      	return Float64(angle_s * tmp)
      end
      
      b_m = abs(b);
      a_m = abs(a);
      angle\_m = abs(angle);
      angle\_s = sign(angle) * abs(1.0);
      function tmp_2 = code(angle_s, a_m, b_m, angle_m)
      	tmp = 0.0;
      	if (((b_m ^ 2.0) - (a_m ^ 2.0)) <= 1e-269)
      		tmp = (angle_m * pi) * (-0.011111111111111112 * (a_m * a_m));
      	else
      		tmp = (b_m * 0.011111111111111112) * (pi * (angle_m * b_m));
      	end
      	tmp_2 = angle_s * tmp;
      end
      
      b_m = N[Abs[b], $MachinePrecision]
      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$95$m_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(N[Power[b$95$m, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision], 1e-269], N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(-0.011111111111111112 * N[(a$95$m * a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b$95$m * 0.011111111111111112), $MachinePrecision] * N[(Pi * N[(angle$95$m * b$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
      
      \begin{array}{l}
      b_m = \left|b\right|
      \\
      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\_m}^{2} - {a\_m}^{2} \leq 10^{-269}:\\
      \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(-0.011111111111111112 \cdot \left(a\_m \cdot a\_m\right)\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;\left(b\_m \cdot 0.011111111111111112\right) \cdot \left(\pi \cdot \left(angle\_m \cdot b\_m\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))) < 9.9999999999999996e-270

        1. Initial program 59.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. Taylor expanded in angle around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
        5. Simplified59.2%

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

          \[\leadsto \color{blue}{\frac{-1}{90} \cdot \left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)} \]
        7. Step-by-step derivation
          1. associate-*r*N/A

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

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

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

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

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

            \[\leadsto \left(\frac{-1}{90} \cdot \left(a \cdot a\right)\right) \cdot \color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \]
          7. lower-PI.f6459.2

            \[\leadsto \left(-0.011111111111111112 \cdot \left(a \cdot a\right)\right) \cdot \left(angle \cdot \color{blue}{\pi}\right) \]
        8. Simplified59.2%

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

        if 9.9999999999999996e-270 < (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))

        1. Initial program 46.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. Taylor expanded in angle around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{\left(b + a\right)} \cdot \left(b - a\right)\right) \]
          16. lower--.f6448.8

            \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
        5. Simplified48.8%

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

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

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

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

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

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

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

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

            \[\leadsto 0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \]
        8. Simplified48.3%

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto 0.011111111111111112 \cdot \left(\left(b \cdot \pi\right) \cdot \color{blue}{\left(b \cdot angle\right)}\right) \]
        10. Applied egg-rr60.0%

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

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

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

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

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

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

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

            \[\leadsto \left(0.011111111111111112 \cdot b\right) \cdot \color{blue}{\left(\pi \cdot \left(b \cdot angle\right)\right)} \]
        12. Applied egg-rr60.6%

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;{b}^{2} - {a}^{2} \leq 10^{-269}:\\ \;\;\;\;\left(angle \cdot \pi\right) \cdot \left(-0.011111111111111112 \cdot \left(a \cdot a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot 0.011111111111111112\right) \cdot \left(\pi \cdot \left(angle \cdot b\right)\right)\\ \end{array} \]
      5. Add Preprocessing

      Alternative 11: 57.9% accurate, 2.0× speedup?

      \[\begin{array}{l} b_m = \left|b\right| \\ 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\_m}^{2} - {a\_m}^{2} \leq 10^{-269}:\\ \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(-0.011111111111111112 \cdot \left(a\_m \cdot a\_m\right)\right)\\ \mathbf{else}:\\ \;\;\;\;0.011111111111111112 \cdot \left(\left(b\_m \cdot \pi\right) \cdot \left(angle\_m \cdot b\_m\right)\right)\\ \end{array} \end{array} \]
      b_m = (fabs.f64 b)
      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_m angle_m)
       :precision binary64
       (*
        angle_s
        (if (<= (- (pow b_m 2.0) (pow a_m 2.0)) 1e-269)
          (* (* angle_m PI) (* -0.011111111111111112 (* a_m a_m)))
          (* 0.011111111111111112 (* (* b_m PI) (* angle_m b_m))))))
      b_m = fabs(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_m, double angle_m) {
      	double tmp;
      	if ((pow(b_m, 2.0) - pow(a_m, 2.0)) <= 1e-269) {
      		tmp = (angle_m * ((double) M_PI)) * (-0.011111111111111112 * (a_m * a_m));
      	} else {
      		tmp = 0.011111111111111112 * ((b_m * ((double) M_PI)) * (angle_m * b_m));
      	}
      	return angle_s * tmp;
      }
      
      b_m = Math.abs(b);
      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_m, double angle_m) {
      	double tmp;
      	if ((Math.pow(b_m, 2.0) - Math.pow(a_m, 2.0)) <= 1e-269) {
      		tmp = (angle_m * Math.PI) * (-0.011111111111111112 * (a_m * a_m));
      	} else {
      		tmp = 0.011111111111111112 * ((b_m * Math.PI) * (angle_m * b_m));
      	}
      	return angle_s * tmp;
      }
      
      b_m = math.fabs(b)
      a_m = math.fabs(a)
      angle\_m = math.fabs(angle)
      angle\_s = math.copysign(1.0, angle)
      def code(angle_s, a_m, b_m, angle_m):
      	tmp = 0
      	if (math.pow(b_m, 2.0) - math.pow(a_m, 2.0)) <= 1e-269:
      		tmp = (angle_m * math.pi) * (-0.011111111111111112 * (a_m * a_m))
      	else:
      		tmp = 0.011111111111111112 * ((b_m * math.pi) * (angle_m * b_m))
      	return angle_s * tmp
      
      b_m = abs(b)
      a_m = abs(a)
      angle\_m = abs(angle)
      angle\_s = copysign(1.0, angle)
      function code(angle_s, a_m, b_m, angle_m)
      	tmp = 0.0
      	if (Float64((b_m ^ 2.0) - (a_m ^ 2.0)) <= 1e-269)
      		tmp = Float64(Float64(angle_m * pi) * Float64(-0.011111111111111112 * Float64(a_m * a_m)));
      	else
      		tmp = Float64(0.011111111111111112 * Float64(Float64(b_m * pi) * Float64(angle_m * b_m)));
      	end
      	return Float64(angle_s * tmp)
      end
      
      b_m = abs(b);
      a_m = abs(a);
      angle\_m = abs(angle);
      angle\_s = sign(angle) * abs(1.0);
      function tmp_2 = code(angle_s, a_m, b_m, angle_m)
      	tmp = 0.0;
      	if (((b_m ^ 2.0) - (a_m ^ 2.0)) <= 1e-269)
      		tmp = (angle_m * pi) * (-0.011111111111111112 * (a_m * a_m));
      	else
      		tmp = 0.011111111111111112 * ((b_m * pi) * (angle_m * b_m));
      	end
      	tmp_2 = angle_s * tmp;
      end
      
      b_m = N[Abs[b], $MachinePrecision]
      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$95$m_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(N[Power[b$95$m, 2.0], $MachinePrecision] - N[Power[a$95$m, 2.0], $MachinePrecision]), $MachinePrecision], 1e-269], N[(N[(angle$95$m * Pi), $MachinePrecision] * N[(-0.011111111111111112 * N[(a$95$m * a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.011111111111111112 * N[(N[(b$95$m * Pi), $MachinePrecision] * N[(angle$95$m * b$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
      
      \begin{array}{l}
      b_m = \left|b\right|
      \\
      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\_m}^{2} - {a\_m}^{2} \leq 10^{-269}:\\
      \;\;\;\;\left(angle\_m \cdot \pi\right) \cdot \left(-0.011111111111111112 \cdot \left(a\_m \cdot a\_m\right)\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;0.011111111111111112 \cdot \left(\left(b\_m \cdot \pi\right) \cdot \left(angle\_m \cdot b\_m\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))) < 9.9999999999999996e-270

        1. Initial program 59.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. Taylor expanded in angle around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
        5. Simplified59.2%

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

          \[\leadsto \color{blue}{\frac{-1}{90} \cdot \left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)} \]
        7. Step-by-step derivation
          1. associate-*r*N/A

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

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

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

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

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

            \[\leadsto \left(\frac{-1}{90} \cdot \left(a \cdot a\right)\right) \cdot \color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)} \]
          7. lower-PI.f6459.2

            \[\leadsto \left(-0.011111111111111112 \cdot \left(a \cdot a\right)\right) \cdot \left(angle \cdot \color{blue}{\pi}\right) \]
        8. Simplified59.2%

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

        if 9.9999999999999996e-270 < (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))

        1. Initial program 46.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. Taylor expanded in angle around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{\left(b + a\right)} \cdot \left(b - a\right)\right) \]
          16. lower--.f6448.8

            \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
        5. Simplified48.8%

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

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

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

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

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

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

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

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

            \[\leadsto 0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \]
        8. Simplified48.3%

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto 0.011111111111111112 \cdot \left(\left(b \cdot \pi\right) \cdot \color{blue}{\left(b \cdot angle\right)}\right) \]
        10. Applied egg-rr60.0%

          \[\leadsto 0.011111111111111112 \cdot \color{blue}{\left(\left(b \cdot \pi\right) \cdot \left(b \cdot angle\right)\right)} \]
      3. Recombined 2 regimes into one program.
      4. Final simplification59.6%

        \[\leadsto \begin{array}{l} \mathbf{if}\;{b}^{2} - {a}^{2} \leq 10^{-269}:\\ \;\;\;\;\left(angle \cdot \pi\right) \cdot \left(-0.011111111111111112 \cdot \left(a \cdot a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;0.011111111111111112 \cdot \left(\left(b \cdot \pi\right) \cdot \left(angle \cdot b\right)\right)\\ \end{array} \]
      5. Add Preprocessing

      Alternative 12: 67.3% accurate, 2.4× speedup?

      \[\begin{array}{l} b_m = \left|b\right| \\ 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\_m + a\_m\right) \cdot \left(b\_m - a\_m\right)\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{+75}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \sin \left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{elif}\;\frac{angle\_m}{180} \leq 10^{+159}:\\ \;\;\;\;\left(t\_0 \cdot \left(b\_m \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\right) \cdot \frac{1}{b\_m - a\_m}\\ \mathbf{else}:\\ \;\;\;\;\frac{2 \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right)}{\frac{1}{t\_0}}\\ \end{array} \end{array} \end{array} \]
      b_m = (fabs.f64 b)
      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_m angle_m)
       :precision binary64
       (let* ((t_0 (* (+ b_m a_m) (- b_m a_m))))
         (*
          angle_s
          (if (<= (/ angle_m 180.0) 2e+75)
            (*
             (+ b_m a_m)
             (* (- b_m a_m) (sin (* angle_m (* PI 0.011111111111111112)))))
            (if (<= (/ angle_m 180.0) 1e+159)
              (*
               (* t_0 (* b_m (sin (* PI (* angle_m 0.011111111111111112)))))
               (/ 1.0 (- b_m a_m)))
              (/
               (* 2.0 (sin (* PI (* angle_m 0.005555555555555556))))
               (/ 1.0 t_0)))))))
      b_m = fabs(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_m, double angle_m) {
      	double t_0 = (b_m + a_m) * (b_m - a_m);
      	double tmp;
      	if ((angle_m / 180.0) <= 2e+75) {
      		tmp = (b_m + a_m) * ((b_m - a_m) * sin((angle_m * (((double) M_PI) * 0.011111111111111112))));
      	} else if ((angle_m / 180.0) <= 1e+159) {
      		tmp = (t_0 * (b_m * sin((((double) M_PI) * (angle_m * 0.011111111111111112))))) * (1.0 / (b_m - a_m));
      	} else {
      		tmp = (2.0 * sin((((double) M_PI) * (angle_m * 0.005555555555555556)))) / (1.0 / t_0);
      	}
      	return angle_s * tmp;
      }
      
      b_m = Math.abs(b);
      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_m, double angle_m) {
      	double t_0 = (b_m + a_m) * (b_m - a_m);
      	double tmp;
      	if ((angle_m / 180.0) <= 2e+75) {
      		tmp = (b_m + a_m) * ((b_m - a_m) * Math.sin((angle_m * (Math.PI * 0.011111111111111112))));
      	} else if ((angle_m / 180.0) <= 1e+159) {
      		tmp = (t_0 * (b_m * Math.sin((Math.PI * (angle_m * 0.011111111111111112))))) * (1.0 / (b_m - a_m));
      	} else {
      		tmp = (2.0 * Math.sin((Math.PI * (angle_m * 0.005555555555555556)))) / (1.0 / t_0);
      	}
      	return angle_s * tmp;
      }
      
      b_m = math.fabs(b)
      a_m = math.fabs(a)
      angle\_m = math.fabs(angle)
      angle\_s = math.copysign(1.0, angle)
      def code(angle_s, a_m, b_m, angle_m):
      	t_0 = (b_m + a_m) * (b_m - a_m)
      	tmp = 0
      	if (angle_m / 180.0) <= 2e+75:
      		tmp = (b_m + a_m) * ((b_m - a_m) * math.sin((angle_m * (math.pi * 0.011111111111111112))))
      	elif (angle_m / 180.0) <= 1e+159:
      		tmp = (t_0 * (b_m * math.sin((math.pi * (angle_m * 0.011111111111111112))))) * (1.0 / (b_m - a_m))
      	else:
      		tmp = (2.0 * math.sin((math.pi * (angle_m * 0.005555555555555556)))) / (1.0 / t_0)
      	return angle_s * tmp
      
      b_m = abs(b)
      a_m = abs(a)
      angle\_m = abs(angle)
      angle\_s = copysign(1.0, angle)
      function code(angle_s, a_m, b_m, angle_m)
      	t_0 = Float64(Float64(b_m + a_m) * Float64(b_m - a_m))
      	tmp = 0.0
      	if (Float64(angle_m / 180.0) <= 2e+75)
      		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * sin(Float64(angle_m * Float64(pi * 0.011111111111111112)))));
      	elseif (Float64(angle_m / 180.0) <= 1e+159)
      		tmp = Float64(Float64(t_0 * Float64(b_m * sin(Float64(pi * Float64(angle_m * 0.011111111111111112))))) * Float64(1.0 / Float64(b_m - a_m)));
      	else
      		tmp = Float64(Float64(2.0 * sin(Float64(pi * Float64(angle_m * 0.005555555555555556)))) / Float64(1.0 / t_0));
      	end
      	return Float64(angle_s * tmp)
      end
      
      b_m = abs(b);
      a_m = abs(a);
      angle\_m = abs(angle);
      angle\_s = sign(angle) * abs(1.0);
      function tmp_2 = code(angle_s, a_m, b_m, angle_m)
      	t_0 = (b_m + a_m) * (b_m - a_m);
      	tmp = 0.0;
      	if ((angle_m / 180.0) <= 2e+75)
      		tmp = (b_m + a_m) * ((b_m - a_m) * sin((angle_m * (pi * 0.011111111111111112))));
      	elseif ((angle_m / 180.0) <= 1e+159)
      		tmp = (t_0 * (b_m * sin((pi * (angle_m * 0.011111111111111112))))) * (1.0 / (b_m - a_m));
      	else
      		tmp = (2.0 * sin((pi * (angle_m * 0.005555555555555556)))) / (1.0 / t_0);
      	end
      	tmp_2 = angle_s * tmp;
      end
      
      b_m = N[Abs[b], $MachinePrecision]
      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$95$m_, angle$95$m_] := Block[{t$95$0 = N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(b$95$m - a$95$m), $MachinePrecision]), $MachinePrecision]}, N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 2e+75], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[Sin[N[(angle$95$m * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 1e+159], N[(N[(t$95$0 * N[(b$95$m * N[Sin[N[(Pi * N[(angle$95$m * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(b$95$m - a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(2.0 * N[Sin[N[(Pi * N[(angle$95$m * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(1.0 / t$95$0), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
      
      \begin{array}{l}
      b_m = \left|b\right|
      \\
      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\_m + a\_m\right) \cdot \left(b\_m - a\_m\right)\\
      angle\_s \cdot \begin{array}{l}
      \mathbf{if}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{+75}:\\
      \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \sin \left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\right)\\
      
      \mathbf{elif}\;\frac{angle\_m}{180} \leq 10^{+159}:\\
      \;\;\;\;\left(t\_0 \cdot \left(b\_m \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\right) \cdot \frac{1}{b\_m - a\_m}\\
      
      \mathbf{else}:\\
      \;\;\;\;\frac{2 \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right)}{\frac{1}{t\_0}}\\
      
      
      \end{array}
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if (/.f64 angle #s(literal 180 binary64)) < 1.99999999999999985e75

        1. Initial program 60.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. Applied egg-rr80.3%

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

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

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

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

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

            \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right) \cdot angle\right)}\right) \]
          6. lower-*.f6481.4

            \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \color{blue}{\left(\left(\pi \cdot 0.011111111111111112\right) \cdot angle\right)}\right) \]
        5. Applied egg-rr81.4%

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

        if 1.99999999999999985e75 < (/.f64 angle #s(literal 180 binary64)) < 9.9999999999999993e158

        1. Initial program 29.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. Applied egg-rr29.4%

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

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

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

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

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

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

            \[\leadsto \left(b + a\right) \cdot \left(\sin \left(\frac{1}{90} \cdot \color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)}\right) \cdot b\right) \]
          6. lower-PI.f6416.3

            \[\leadsto \left(b + a\right) \cdot \left(\sin \left(0.011111111111111112 \cdot \left(angle \cdot \color{blue}{\pi}\right)\right) \cdot b\right) \]
        6. Simplified16.3%

          \[\leadsto \left(b + a\right) \cdot \color{blue}{\left(\sin \left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right) \cdot b\right)} \]
        7. Step-by-step derivation
          1. flip-+N/A

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

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

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

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

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

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

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

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

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

            \[\leadsto \color{blue}{\left(\left(b \cdot b - a \cdot a\right) \cdot \left(\sin \left(\frac{1}{90} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right) \cdot b\right)\right) \cdot \frac{1}{b - a}} \]
        8. Applied egg-rr46.5%

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

        if 9.9999999999999993e158 < (/.f64 angle #s(literal 180 binary64))

        1. Initial program 26.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

        Alternative 13: 66.6% accurate, 2.7× speedup?

        \[\begin{array}{l} b_m = \left|b\right| \\ 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^{+75}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \sin \left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(\left(b\_m + a\_m\right) \cdot \left(b\_m - a\_m\right)\right) \cdot \left(b\_m \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\right) \cdot \frac{1}{b\_m - a\_m}\\ \end{array} \end{array} \]
        b_m = (fabs.f64 b)
        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_m angle_m)
         :precision binary64
         (*
          angle_s
          (if (<= (/ angle_m 180.0) 2e+75)
            (*
             (+ b_m a_m)
             (* (- b_m a_m) (sin (* angle_m (* PI 0.011111111111111112)))))
            (*
             (*
              (* (+ b_m a_m) (- b_m a_m))
              (* b_m (sin (* PI (* angle_m 0.011111111111111112)))))
             (/ 1.0 (- b_m a_m))))))
        b_m = fabs(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_m, double angle_m) {
        	double tmp;
        	if ((angle_m / 180.0) <= 2e+75) {
        		tmp = (b_m + a_m) * ((b_m - a_m) * sin((angle_m * (((double) M_PI) * 0.011111111111111112))));
        	} else {
        		tmp = (((b_m + a_m) * (b_m - a_m)) * (b_m * sin((((double) M_PI) * (angle_m * 0.011111111111111112))))) * (1.0 / (b_m - a_m));
        	}
        	return angle_s * tmp;
        }
        
        b_m = Math.abs(b);
        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_m, double angle_m) {
        	double tmp;
        	if ((angle_m / 180.0) <= 2e+75) {
        		tmp = (b_m + a_m) * ((b_m - a_m) * Math.sin((angle_m * (Math.PI * 0.011111111111111112))));
        	} else {
        		tmp = (((b_m + a_m) * (b_m - a_m)) * (b_m * Math.sin((Math.PI * (angle_m * 0.011111111111111112))))) * (1.0 / (b_m - a_m));
        	}
        	return angle_s * tmp;
        }
        
        b_m = math.fabs(b)
        a_m = math.fabs(a)
        angle\_m = math.fabs(angle)
        angle\_s = math.copysign(1.0, angle)
        def code(angle_s, a_m, b_m, angle_m):
        	tmp = 0
        	if (angle_m / 180.0) <= 2e+75:
        		tmp = (b_m + a_m) * ((b_m - a_m) * math.sin((angle_m * (math.pi * 0.011111111111111112))))
        	else:
        		tmp = (((b_m + a_m) * (b_m - a_m)) * (b_m * math.sin((math.pi * (angle_m * 0.011111111111111112))))) * (1.0 / (b_m - a_m))
        	return angle_s * tmp
        
        b_m = abs(b)
        a_m = abs(a)
        angle\_m = abs(angle)
        angle\_s = copysign(1.0, angle)
        function code(angle_s, a_m, b_m, angle_m)
        	tmp = 0.0
        	if (Float64(angle_m / 180.0) <= 2e+75)
        		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * sin(Float64(angle_m * Float64(pi * 0.011111111111111112)))));
        	else
        		tmp = Float64(Float64(Float64(Float64(b_m + a_m) * Float64(b_m - a_m)) * Float64(b_m * sin(Float64(pi * Float64(angle_m * 0.011111111111111112))))) * Float64(1.0 / Float64(b_m - a_m)));
        	end
        	return Float64(angle_s * tmp)
        end
        
        b_m = abs(b);
        a_m = abs(a);
        angle\_m = abs(angle);
        angle\_s = sign(angle) * abs(1.0);
        function tmp_2 = code(angle_s, a_m, b_m, angle_m)
        	tmp = 0.0;
        	if ((angle_m / 180.0) <= 2e+75)
        		tmp = (b_m + a_m) * ((b_m - a_m) * sin((angle_m * (pi * 0.011111111111111112))));
        	else
        		tmp = (((b_m + a_m) * (b_m - a_m)) * (b_m * sin((pi * (angle_m * 0.011111111111111112))))) * (1.0 / (b_m - a_m));
        	end
        	tmp_2 = angle_s * tmp;
        end
        
        b_m = N[Abs[b], $MachinePrecision]
        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$95$m_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 2e+75], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[Sin[N[(angle$95$m * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(b$95$m - a$95$m), $MachinePrecision]), $MachinePrecision] * N[(b$95$m * N[Sin[N[(Pi * N[(angle$95$m * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(b$95$m - a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
        
        \begin{array}{l}
        b_m = \left|b\right|
        \\
        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^{+75}:\\
        \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \sin \left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\left(\left(\left(b\_m + a\_m\right) \cdot \left(b\_m - a\_m\right)\right) \cdot \left(b\_m \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\right) \cdot \frac{1}{b\_m - a\_m}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if (/.f64 angle #s(literal 180 binary64)) < 1.99999999999999985e75

          1. Initial program 60.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. Applied egg-rr80.3%

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

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

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

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

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

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right) \cdot angle\right)}\right) \]
            6. lower-*.f6481.4

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \color{blue}{\left(\left(\pi \cdot 0.011111111111111112\right) \cdot angle\right)}\right) \]
          5. Applied egg-rr81.4%

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

          if 1.99999999999999985e75 < (/.f64 angle #s(literal 180 binary64))

          1. Initial program 27.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. Applied egg-rr33.3%

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

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

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

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

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

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

              \[\leadsto \left(b + a\right) \cdot \left(\sin \left(\frac{1}{90} \cdot \color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)}\right) \cdot b\right) \]
            6. lower-PI.f6424.2

              \[\leadsto \left(b + a\right) \cdot \left(\sin \left(0.011111111111111112 \cdot \left(angle \cdot \color{blue}{\pi}\right)\right) \cdot b\right) \]
          6. Simplified24.2%

            \[\leadsto \left(b + a\right) \cdot \color{blue}{\left(\sin \left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right) \cdot b\right)} \]
          7. Step-by-step derivation
            1. flip-+N/A

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

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

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

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

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

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

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

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

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

              \[\leadsto \color{blue}{\left(\left(b \cdot b - a \cdot a\right) \cdot \left(\sin \left(\frac{1}{90} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right) \cdot b\right)\right) \cdot \frac{1}{b - a}} \]
          8. Applied egg-rr34.6%

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

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

        Alternative 14: 67.5% accurate, 3.1× speedup?

        \[\begin{array}{l} b_m = \left|b\right| \\ 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^{-40}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(angle\_m \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle\_m \cdot angle\_m\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\sin \left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b\_m + a\_m\right) \cdot \left(b\_m - a\_m\right)\right)\\ \end{array} \end{array} \]
        b_m = (fabs.f64 b)
        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_m angle_m)
         :precision binary64
         (*
          angle_s
          (if (<= (/ angle_m 180.0) 5e-40)
            (*
             (+ b_m a_m)
             (*
              (- b_m a_m)
              (*
               angle_m
               (fma
                -2.2862368541380886e-7
                (* (* angle_m angle_m) (* PI (* PI PI)))
                (* PI 0.011111111111111112)))))
            (*
             (sin (* angle_m (* PI 0.011111111111111112)))
             (* (+ b_m a_m) (- b_m a_m))))))
        b_m = fabs(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_m, double angle_m) {
        	double tmp;
        	if ((angle_m / 180.0) <= 5e-40) {
        		tmp = (b_m + a_m) * ((b_m - a_m) * (angle_m * fma(-2.2862368541380886e-7, ((angle_m * angle_m) * (((double) M_PI) * (((double) M_PI) * ((double) M_PI)))), (((double) M_PI) * 0.011111111111111112))));
        	} else {
        		tmp = sin((angle_m * (((double) M_PI) * 0.011111111111111112))) * ((b_m + a_m) * (b_m - a_m));
        	}
        	return angle_s * tmp;
        }
        
        b_m = abs(b)
        a_m = abs(a)
        angle\_m = abs(angle)
        angle\_s = copysign(1.0, angle)
        function code(angle_s, a_m, b_m, angle_m)
        	tmp = 0.0
        	if (Float64(angle_m / 180.0) <= 5e-40)
        		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * Float64(angle_m * fma(-2.2862368541380886e-7, Float64(Float64(angle_m * angle_m) * Float64(pi * Float64(pi * pi))), Float64(pi * 0.011111111111111112)))));
        	else
        		tmp = Float64(sin(Float64(angle_m * Float64(pi * 0.011111111111111112))) * Float64(Float64(b_m + a_m) * Float64(b_m - a_m)));
        	end
        	return Float64(angle_s * tmp)
        end
        
        b_m = N[Abs[b], $MachinePrecision]
        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$95$m_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 5e-40], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[(angle$95$m * N[(-2.2862368541380886e-7 * N[(N[(angle$95$m * angle$95$m), $MachinePrecision] * N[(Pi * N[(Pi * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Sin[N[(angle$95$m * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(b$95$m - a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
        
        \begin{array}{l}
        b_m = \left|b\right|
        \\
        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^{-40}:\\
        \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(angle\_m \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle\_m \cdot angle\_m\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\sin \left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b\_m + a\_m\right) \cdot \left(b\_m - a\_m\right)\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if (/.f64 angle #s(literal 180 binary64)) < 4.99999999999999965e-40

          1. Initial program 60.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. Applied egg-rr82.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000}, \left(angle \cdot angle\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)\right), \color{blue}{\frac{1}{90} \cdot \mathsf{PI}\left(\right)}\right)\right)\right) \]
            15. lower-PI.f6477.4

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle \cdot angle\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), 0.011111111111111112 \cdot \color{blue}{\pi}\right)\right)\right) \]
          6. Simplified77.4%

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

          if 4.99999999999999965e-40 < (/.f64 angle #s(literal 180 binary64))

          1. Initial program 33.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. Applied egg-rr38.6%

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

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

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

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

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

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

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

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

              \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}\right) \]
            9. lower-*.f6438.6

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

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

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

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

              \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{90}\right)\right)} \]
            14. lower-*.f6436.9

              \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \sin \left(\pi \cdot \color{blue}{\left(angle \cdot 0.011111111111111112\right)}\right) \]
          5. Applied egg-rr36.9%

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

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

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

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

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

              \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \sin \color{blue}{\left(\left(\pi \cdot 0.011111111111111112\right) \cdot angle\right)} \]
          7. Applied egg-rr35.5%

            \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \sin \color{blue}{\left(\left(\pi \cdot 0.011111111111111112\right) \cdot angle\right)} \]
        3. Recombined 2 regimes into one program.
        4. Final simplification66.3%

          \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq 5 \cdot 10^{-40}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle \cdot angle\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\sin \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 15: 67.3% accurate, 3.4× speedup?

        \[\begin{array}{l} b_m = \left|b\right| \\ 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 \leq 1.6 \cdot 10^{+207}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \sin \left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(b\_m + a\_m\right) \cdot \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)}{\frac{1}{b\_m - a\_m}}\\ \end{array} \end{array} \]
        b_m = (fabs.f64 b)
        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_m angle_m)
         :precision binary64
         (*
          angle_s
          (if (<= a_m 1.6e+207)
            (*
             (+ b_m a_m)
             (* (- b_m a_m) (sin (* angle_m (* PI 0.011111111111111112)))))
            (/
             (* (+ b_m a_m) (* PI (* angle_m 0.011111111111111112)))
             (/ 1.0 (- b_m a_m))))))
        b_m = fabs(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_m, double angle_m) {
        	double tmp;
        	if (a_m <= 1.6e+207) {
        		tmp = (b_m + a_m) * ((b_m - a_m) * sin((angle_m * (((double) M_PI) * 0.011111111111111112))));
        	} else {
        		tmp = ((b_m + a_m) * (((double) M_PI) * (angle_m * 0.011111111111111112))) / (1.0 / (b_m - a_m));
        	}
        	return angle_s * tmp;
        }
        
        b_m = Math.abs(b);
        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_m, double angle_m) {
        	double tmp;
        	if (a_m <= 1.6e+207) {
        		tmp = (b_m + a_m) * ((b_m - a_m) * Math.sin((angle_m * (Math.PI * 0.011111111111111112))));
        	} else {
        		tmp = ((b_m + a_m) * (Math.PI * (angle_m * 0.011111111111111112))) / (1.0 / (b_m - a_m));
        	}
        	return angle_s * tmp;
        }
        
        b_m = math.fabs(b)
        a_m = math.fabs(a)
        angle\_m = math.fabs(angle)
        angle\_s = math.copysign(1.0, angle)
        def code(angle_s, a_m, b_m, angle_m):
        	tmp = 0
        	if a_m <= 1.6e+207:
        		tmp = (b_m + a_m) * ((b_m - a_m) * math.sin((angle_m * (math.pi * 0.011111111111111112))))
        	else:
        		tmp = ((b_m + a_m) * (math.pi * (angle_m * 0.011111111111111112))) / (1.0 / (b_m - a_m))
        	return angle_s * tmp
        
        b_m = abs(b)
        a_m = abs(a)
        angle\_m = abs(angle)
        angle\_s = copysign(1.0, angle)
        function code(angle_s, a_m, b_m, angle_m)
        	tmp = 0.0
        	if (a_m <= 1.6e+207)
        		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * sin(Float64(angle_m * Float64(pi * 0.011111111111111112)))));
        	else
        		tmp = Float64(Float64(Float64(b_m + a_m) * Float64(pi * Float64(angle_m * 0.011111111111111112))) / Float64(1.0 / Float64(b_m - a_m)));
        	end
        	return Float64(angle_s * tmp)
        end
        
        b_m = abs(b);
        a_m = abs(a);
        angle\_m = abs(angle);
        angle\_s = sign(angle) * abs(1.0);
        function tmp_2 = code(angle_s, a_m, b_m, angle_m)
        	tmp = 0.0;
        	if (a_m <= 1.6e+207)
        		tmp = (b_m + a_m) * ((b_m - a_m) * sin((angle_m * (pi * 0.011111111111111112))));
        	else
        		tmp = ((b_m + a_m) * (pi * (angle_m * 0.011111111111111112))) / (1.0 / (b_m - a_m));
        	end
        	tmp_2 = angle_s * tmp;
        end
        
        b_m = N[Abs[b], $MachinePrecision]
        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$95$m_, angle$95$m_] := N[(angle$95$s * If[LessEqual[a$95$m, 1.6e+207], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[Sin[N[(angle$95$m * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(Pi * N[(angle$95$m * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 / N[(b$95$m - a$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
        
        \begin{array}{l}
        b_m = \left|b\right|
        \\
        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 \leq 1.6 \cdot 10^{+207}:\\
        \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \sin \left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\frac{\left(b\_m + a\_m\right) \cdot \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)}{\frac{1}{b\_m - a\_m}}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if a < 1.6000000000000001e207

          1. Initial program 56.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. Applied egg-rr71.8%

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

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

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

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

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

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right) \cdot angle\right)}\right) \]
            6. lower-*.f6472.3

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \color{blue}{\left(\left(\pi \cdot 0.011111111111111112\right) \cdot angle\right)}\right) \]
          5. Applied egg-rr72.3%

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

          if 1.6000000000000001e207 < a

          1. Initial program 31.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}{\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)} \]
          4. Step-by-step derivation
            1. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{\left(b + a\right)} \cdot \left(b - a\right)\right) \]
            16. lower--.f6469.9

              \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
          5. Simplified69.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \frac{\left(b + a\right) \cdot \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right)}{\color{blue}{\frac{1}{b - a}}} \]
          7. Applied egg-rr76.9%

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

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

        Alternative 16: 67.1% accurate, 3.4× speedup?

        \[\begin{array}{l} b_m = \left|b\right| \\ 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 \leq 4.5 \cdot 10^{+149}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{elif}\;a\_m \leq 2 \cdot 10^{+215}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(angle\_m \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle\_m \cdot angle\_m\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(0.011111111111111112 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\\ \end{array} \end{array} \]
        b_m = (fabs.f64 b)
        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_m angle_m)
         :precision binary64
         (*
          angle_s
          (if (<= a_m 4.5e+149)
            (*
             (+ b_m a_m)
             (* (- b_m a_m) (sin (* PI (* angle_m 0.011111111111111112)))))
            (if (<= a_m 2e+215)
              (*
               (+ b_m a_m)
               (*
                (- b_m a_m)
                (*
                 angle_m
                 (fma
                  -2.2862368541380886e-7
                  (* (* angle_m angle_m) (* PI (* PI PI)))
                  (* PI 0.011111111111111112)))))
              (*
               (+ b_m a_m)
               (* (- b_m a_m) (* 0.011111111111111112 (* angle_m PI))))))))
        b_m = fabs(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_m, double angle_m) {
        	double tmp;
        	if (a_m <= 4.5e+149) {
        		tmp = (b_m + a_m) * ((b_m - a_m) * sin((((double) M_PI) * (angle_m * 0.011111111111111112))));
        	} else if (a_m <= 2e+215) {
        		tmp = (b_m + a_m) * ((b_m - a_m) * (angle_m * fma(-2.2862368541380886e-7, ((angle_m * angle_m) * (((double) M_PI) * (((double) M_PI) * ((double) M_PI)))), (((double) M_PI) * 0.011111111111111112))));
        	} else {
        		tmp = (b_m + a_m) * ((b_m - a_m) * (0.011111111111111112 * (angle_m * ((double) M_PI))));
        	}
        	return angle_s * tmp;
        }
        
        b_m = abs(b)
        a_m = abs(a)
        angle\_m = abs(angle)
        angle\_s = copysign(1.0, angle)
        function code(angle_s, a_m, b_m, angle_m)
        	tmp = 0.0
        	if (a_m <= 4.5e+149)
        		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * sin(Float64(pi * Float64(angle_m * 0.011111111111111112)))));
        	elseif (a_m <= 2e+215)
        		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * Float64(angle_m * fma(-2.2862368541380886e-7, Float64(Float64(angle_m * angle_m) * Float64(pi * Float64(pi * pi))), Float64(pi * 0.011111111111111112)))));
        	else
        		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * Float64(0.011111111111111112 * Float64(angle_m * pi))));
        	end
        	return Float64(angle_s * tmp)
        end
        
        b_m = N[Abs[b], $MachinePrecision]
        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$95$m_, angle$95$m_] := N[(angle$95$s * If[LessEqual[a$95$m, 4.5e+149], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[Sin[N[(Pi * N[(angle$95$m * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a$95$m, 2e+215], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[(angle$95$m * N[(-2.2862368541380886e-7 * N[(N[(angle$95$m * angle$95$m), $MachinePrecision] * N[(Pi * N[(Pi * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[(0.011111111111111112 * N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
        
        \begin{array}{l}
        b_m = \left|b\right|
        \\
        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 \leq 4.5 \cdot 10^{+149}:\\
        \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\\
        
        \mathbf{elif}\;a\_m \leq 2 \cdot 10^{+215}:\\
        \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(angle\_m \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle\_m \cdot angle\_m\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(0.011111111111111112 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if a < 4.49999999999999982e149

          1. Initial program 56.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. Applied egg-rr71.9%

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

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

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

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

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \color{blue}{\left(\left(angle \cdot \frac{1}{90}\right) \cdot \mathsf{PI}\left(\right)\right)}\right) \]
            5. lower-*.f6471.6

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \left(\color{blue}{\left(angle \cdot 0.011111111111111112\right)} \cdot \pi\right)\right) \]
          5. Applied egg-rr71.6%

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

          if 4.49999999999999982e149 < a < 1.99999999999999981e215

          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. Applied egg-rr63.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000}, \left(angle \cdot angle\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)\right), \color{blue}{\frac{1}{90} \cdot \mathsf{PI}\left(\right)}\right)\right)\right) \]
            15. lower-PI.f6481.5

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle \cdot angle\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), 0.011111111111111112 \cdot \color{blue}{\pi}\right)\right)\right) \]
          6. Simplified81.5%

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

          if 1.99999999999999981e215 < a

          1. Initial program 32.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. Applied egg-rr64.1%

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

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

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

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

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

            \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right)}\right) \]
        3. Recombined 3 regimes into one program.
        4. Final simplification72.4%

          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq 4.5 \cdot 10^{+149}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{elif}\;a \leq 2 \cdot 10^{+215}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle \cdot angle\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right)\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 17: 65.1% accurate, 3.5× speedup?

        \[\begin{array}{l} b_m = \left|b\right| \\ 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 \leq 3.4 \cdot 10^{-99}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(b\_m \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{elif}\;a\_m \leq 2 \cdot 10^{+215}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(angle\_m \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle\_m \cdot angle\_m\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(0.011111111111111112 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\\ \end{array} \end{array} \]
        b_m = (fabs.f64 b)
        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_m angle_m)
         :precision binary64
         (*
          angle_s
          (if (<= a_m 3.4e-99)
            (* (+ b_m a_m) (* b_m (sin (* PI (* angle_m 0.011111111111111112)))))
            (if (<= a_m 2e+215)
              (*
               (+ b_m a_m)
               (*
                (- b_m a_m)
                (*
                 angle_m
                 (fma
                  -2.2862368541380886e-7
                  (* (* angle_m angle_m) (* PI (* PI PI)))
                  (* PI 0.011111111111111112)))))
              (*
               (+ b_m a_m)
               (* (- b_m a_m) (* 0.011111111111111112 (* angle_m PI))))))))
        b_m = fabs(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_m, double angle_m) {
        	double tmp;
        	if (a_m <= 3.4e-99) {
        		tmp = (b_m + a_m) * (b_m * sin((((double) M_PI) * (angle_m * 0.011111111111111112))));
        	} else if (a_m <= 2e+215) {
        		tmp = (b_m + a_m) * ((b_m - a_m) * (angle_m * fma(-2.2862368541380886e-7, ((angle_m * angle_m) * (((double) M_PI) * (((double) M_PI) * ((double) M_PI)))), (((double) M_PI) * 0.011111111111111112))));
        	} else {
        		tmp = (b_m + a_m) * ((b_m - a_m) * (0.011111111111111112 * (angle_m * ((double) M_PI))));
        	}
        	return angle_s * tmp;
        }
        
        b_m = abs(b)
        a_m = abs(a)
        angle\_m = abs(angle)
        angle\_s = copysign(1.0, angle)
        function code(angle_s, a_m, b_m, angle_m)
        	tmp = 0.0
        	if (a_m <= 3.4e-99)
        		tmp = Float64(Float64(b_m + a_m) * Float64(b_m * sin(Float64(pi * Float64(angle_m * 0.011111111111111112)))));
        	elseif (a_m <= 2e+215)
        		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * Float64(angle_m * fma(-2.2862368541380886e-7, Float64(Float64(angle_m * angle_m) * Float64(pi * Float64(pi * pi))), Float64(pi * 0.011111111111111112)))));
        	else
        		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * Float64(0.011111111111111112 * Float64(angle_m * pi))));
        	end
        	return Float64(angle_s * tmp)
        end
        
        b_m = N[Abs[b], $MachinePrecision]
        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$95$m_, angle$95$m_] := N[(angle$95$s * If[LessEqual[a$95$m, 3.4e-99], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(b$95$m * N[Sin[N[(Pi * N[(angle$95$m * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a$95$m, 2e+215], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[(angle$95$m * N[(-2.2862368541380886e-7 * N[(N[(angle$95$m * angle$95$m), $MachinePrecision] * N[(Pi * N[(Pi * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[(0.011111111111111112 * N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
        
        \begin{array}{l}
        b_m = \left|b\right|
        \\
        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 \leq 3.4 \cdot 10^{-99}:\\
        \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(b\_m \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\right)\right)\right)\\
        
        \mathbf{elif}\;a\_m \leq 2 \cdot 10^{+215}:\\
        \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(angle\_m \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle\_m \cdot angle\_m\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(0.011111111111111112 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if a < 3.40000000000000007e-99

          1. Initial program 55.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. Applied egg-rr72.7%

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

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

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

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

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

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

              \[\leadsto \left(b + a\right) \cdot \left(\sin \left(\frac{1}{90} \cdot \color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)}\right) \cdot b\right) \]
            6. lower-PI.f6449.9

              \[\leadsto \left(b + a\right) \cdot \left(\sin \left(0.011111111111111112 \cdot \left(angle \cdot \color{blue}{\pi}\right)\right) \cdot b\right) \]
          6. Simplified49.9%

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

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

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

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

              \[\leadsto \left(b + a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot \frac{1}{90}\right)} \cdot \mathsf{PI}\left(\right)\right) \cdot b\right) \]
            5. lower-*.f6449.6

              \[\leadsto \left(b + a\right) \cdot \left(\sin \left(\color{blue}{\left(angle \cdot 0.011111111111111112\right)} \cdot \pi\right) \cdot b\right) \]
          8. Applied egg-rr49.6%

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

          if 3.40000000000000007e-99 < a < 1.99999999999999981e215

          1. Initial program 56.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. Applied egg-rr67.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000}, \left(angle \cdot angle\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)\right), \color{blue}{\frac{1}{90} \cdot \mathsf{PI}\left(\right)}\right)\right)\right) \]
            15. lower-PI.f6469.0

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle \cdot angle\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), 0.011111111111111112 \cdot \color{blue}{\pi}\right)\right)\right) \]
          6. Simplified69.0%

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

          if 1.99999999999999981e215 < a

          1. Initial program 32.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. Applied egg-rr64.1%

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

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

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

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

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

            \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right)}\right) \]
        3. Recombined 3 regimes into one program.
        4. Final simplification56.3%

          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq 3.4 \cdot 10^{-99}:\\ \;\;\;\;\left(b + a\right) \cdot \left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{elif}\;a \leq 2 \cdot 10^{+215}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle \cdot angle\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right)\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 18: 65.1% accurate, 3.5× speedup?

        \[\begin{array}{l} b_m = \left|b\right| \\ a_m = \left|a\right| \\ angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ \begin{array}{l} t_0 := 0.011111111111111112 \cdot \left(angle\_m \cdot \pi\right)\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;a\_m \leq 3.4 \cdot 10^{-99}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(b\_m \cdot \sin t\_0\right)\\ \mathbf{elif}\;a\_m \leq 4.8 \cdot 10^{+225}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(angle\_m \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle\_m \cdot angle\_m\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot t\_0\right)\\ \end{array} \end{array} \end{array} \]
        b_m = (fabs.f64 b)
        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_m angle_m)
         :precision binary64
         (let* ((t_0 (* 0.011111111111111112 (* angle_m PI))))
           (*
            angle_s
            (if (<= a_m 3.4e-99)
              (* (+ b_m a_m) (* b_m (sin t_0)))
              (if (<= a_m 4.8e+225)
                (*
                 (+ b_m a_m)
                 (*
                  (- b_m a_m)
                  (*
                   angle_m
                   (fma
                    -2.2862368541380886e-7
                    (* (* angle_m angle_m) (* PI (* PI PI)))
                    (* PI 0.011111111111111112)))))
                (* (+ b_m a_m) (* (- b_m a_m) t_0)))))))
        b_m = fabs(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_m, double angle_m) {
        	double t_0 = 0.011111111111111112 * (angle_m * ((double) M_PI));
        	double tmp;
        	if (a_m <= 3.4e-99) {
        		tmp = (b_m + a_m) * (b_m * sin(t_0));
        	} else if (a_m <= 4.8e+225) {
        		tmp = (b_m + a_m) * ((b_m - a_m) * (angle_m * fma(-2.2862368541380886e-7, ((angle_m * angle_m) * (((double) M_PI) * (((double) M_PI) * ((double) M_PI)))), (((double) M_PI) * 0.011111111111111112))));
        	} else {
        		tmp = (b_m + a_m) * ((b_m - a_m) * t_0);
        	}
        	return angle_s * tmp;
        }
        
        b_m = abs(b)
        a_m = abs(a)
        angle\_m = abs(angle)
        angle\_s = copysign(1.0, angle)
        function code(angle_s, a_m, b_m, angle_m)
        	t_0 = Float64(0.011111111111111112 * Float64(angle_m * pi))
        	tmp = 0.0
        	if (a_m <= 3.4e-99)
        		tmp = Float64(Float64(b_m + a_m) * Float64(b_m * sin(t_0)));
        	elseif (a_m <= 4.8e+225)
        		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * Float64(angle_m * fma(-2.2862368541380886e-7, Float64(Float64(angle_m * angle_m) * Float64(pi * Float64(pi * pi))), Float64(pi * 0.011111111111111112)))));
        	else
        		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * t_0));
        	end
        	return Float64(angle_s * tmp)
        end
        
        b_m = N[Abs[b], $MachinePrecision]
        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$95$m_, angle$95$m_] := Block[{t$95$0 = N[(0.011111111111111112 * N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]}, N[(angle$95$s * If[LessEqual[a$95$m, 3.4e-99], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(b$95$m * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a$95$m, 4.8e+225], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[(angle$95$m * N[(-2.2862368541380886e-7 * N[(N[(angle$95$m * angle$95$m), $MachinePrecision] * N[(Pi * N[(Pi * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
        
        \begin{array}{l}
        b_m = \left|b\right|
        \\
        a_m = \left|a\right|
        \\
        angle\_m = \left|angle\right|
        \\
        angle\_s = \mathsf{copysign}\left(1, angle\right)
        
        \\
        \begin{array}{l}
        t_0 := 0.011111111111111112 \cdot \left(angle\_m \cdot \pi\right)\\
        angle\_s \cdot \begin{array}{l}
        \mathbf{if}\;a\_m \leq 3.4 \cdot 10^{-99}:\\
        \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(b\_m \cdot \sin t\_0\right)\\
        
        \mathbf{elif}\;a\_m \leq 4.8 \cdot 10^{+225}:\\
        \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(angle\_m \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle\_m \cdot angle\_m\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot t\_0\right)\\
        
        
        \end{array}
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if a < 3.40000000000000007e-99

          1. Initial program 55.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. Applied egg-rr72.7%

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

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

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

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

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

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

              \[\leadsto \left(b + a\right) \cdot \left(\sin \left(\frac{1}{90} \cdot \color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)}\right) \cdot b\right) \]
            6. lower-PI.f6449.9

              \[\leadsto \left(b + a\right) \cdot \left(\sin \left(0.011111111111111112 \cdot \left(angle \cdot \color{blue}{\pi}\right)\right) \cdot b\right) \]
          6. Simplified49.9%

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

          if 3.40000000000000007e-99 < a < 4.8000000000000002e225

          1. Initial program 55.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. Applied egg-rr67.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000}, \left(angle \cdot angle\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)\right), \color{blue}{\frac{1}{90} \cdot \mathsf{PI}\left(\right)}\right)\right)\right) \]
            15. lower-PI.f6468.9

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle \cdot angle\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), 0.011111111111111112 \cdot \color{blue}{\pi}\right)\right)\right) \]
          6. Simplified68.9%

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

          if 4.8000000000000002e225 < a

          1. Initial program 31.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. Applied egg-rr63.6%

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

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

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

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

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(0.011111111111111112 \cdot \left(angle \cdot \color{blue}{\pi}\right)\right)\right) \]
          6. Simplified77.3%

            \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right)}\right) \]
        3. Recombined 3 regimes into one program.
        4. Final simplification56.5%

          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq 3.4 \cdot 10^{-99}:\\ \;\;\;\;\left(b + a\right) \cdot \left(b \cdot \sin \left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right)\right)\\ \mathbf{elif}\;a \leq 4.8 \cdot 10^{+225}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(angle \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7}, \left(angle \cdot angle\right) \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right), \pi \cdot 0.011111111111111112\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right)\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 19: 62.3% accurate, 5.2× speedup?

        \[\begin{array}{l} b_m = \left|b\right| \\ 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^{+129}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(0.011111111111111112 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\\ \mathbf{elif}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{+184}:\\ \;\;\;\;\left(\left(b\_m + a\_m\right) \cdot \left(b\_m - a\_m\right)\right) \cdot \left(angle\_m \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7} \cdot \left(angle\_m \cdot angle\_m\right), \pi \cdot \left(\pi \cdot \pi\right), \pi \cdot 0.011111111111111112\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(-a\_m \cdot \left(b\_m + a\_m\right)\right)\\ \end{array} \end{array} \]
        b_m = (fabs.f64 b)
        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_m angle_m)
         :precision binary64
         (*
          angle_s
          (if (<= (/ angle_m 180.0) 2e+129)
            (* (+ b_m a_m) (* (- b_m a_m) (* 0.011111111111111112 (* angle_m PI))))
            (if (<= (/ angle_m 180.0) 2e+184)
              (*
               (* (+ b_m a_m) (- b_m a_m))
               (*
                angle_m
                (fma
                 (* -2.2862368541380886e-7 (* angle_m angle_m))
                 (* PI (* PI PI))
                 (* PI 0.011111111111111112))))
              (* (* angle_m (* PI 0.011111111111111112)) (- (* a_m (+ b_m a_m))))))))
        b_m = fabs(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_m, double angle_m) {
        	double tmp;
        	if ((angle_m / 180.0) <= 2e+129) {
        		tmp = (b_m + a_m) * ((b_m - a_m) * (0.011111111111111112 * (angle_m * ((double) M_PI))));
        	} else if ((angle_m / 180.0) <= 2e+184) {
        		tmp = ((b_m + a_m) * (b_m - a_m)) * (angle_m * fma((-2.2862368541380886e-7 * (angle_m * angle_m)), (((double) M_PI) * (((double) M_PI) * ((double) M_PI))), (((double) M_PI) * 0.011111111111111112)));
        	} else {
        		tmp = (angle_m * (((double) M_PI) * 0.011111111111111112)) * -(a_m * (b_m + a_m));
        	}
        	return angle_s * tmp;
        }
        
        b_m = abs(b)
        a_m = abs(a)
        angle\_m = abs(angle)
        angle\_s = copysign(1.0, angle)
        function code(angle_s, a_m, b_m, angle_m)
        	tmp = 0.0
        	if (Float64(angle_m / 180.0) <= 2e+129)
        		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * Float64(0.011111111111111112 * Float64(angle_m * pi))));
        	elseif (Float64(angle_m / 180.0) <= 2e+184)
        		tmp = Float64(Float64(Float64(b_m + a_m) * Float64(b_m - a_m)) * Float64(angle_m * fma(Float64(-2.2862368541380886e-7 * Float64(angle_m * angle_m)), Float64(pi * Float64(pi * pi)), Float64(pi * 0.011111111111111112))));
        	else
        		tmp = Float64(Float64(angle_m * Float64(pi * 0.011111111111111112)) * Float64(-Float64(a_m * Float64(b_m + a_m))));
        	end
        	return Float64(angle_s * tmp)
        end
        
        b_m = N[Abs[b], $MachinePrecision]
        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$95$m_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 2e+129], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[(0.011111111111111112 * N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 2e+184], N[(N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(b$95$m - a$95$m), $MachinePrecision]), $MachinePrecision] * N[(angle$95$m * N[(N[(-2.2862368541380886e-7 * N[(angle$95$m * angle$95$m), $MachinePrecision]), $MachinePrecision] * N[(Pi * N[(Pi * Pi), $MachinePrecision]), $MachinePrecision] + N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(angle$95$m * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision] * (-N[(a$95$m * N[(b$95$m + a$95$m), $MachinePrecision]), $MachinePrecision])), $MachinePrecision]]]), $MachinePrecision]
        
        \begin{array}{l}
        b_m = \left|b\right|
        \\
        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^{+129}:\\
        \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(0.011111111111111112 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\\
        
        \mathbf{elif}\;\frac{angle\_m}{180} \leq 2 \cdot 10^{+184}:\\
        \;\;\;\;\left(\left(b\_m + a\_m\right) \cdot \left(b\_m - a\_m\right)\right) \cdot \left(angle\_m \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7} \cdot \left(angle\_m \cdot angle\_m\right), \pi \cdot \left(\pi \cdot \pi\right), \pi \cdot 0.011111111111111112\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(-a\_m \cdot \left(b\_m + a\_m\right)\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if (/.f64 angle #s(literal 180 binary64)) < 2e129

          1. Initial program 58.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. Applied egg-rr77.2%

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

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

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

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

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(0.011111111111111112 \cdot \left(angle \cdot \color{blue}{\pi}\right)\right)\right) \]
          6. Simplified73.9%

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

          if 2e129 < (/.f64 angle #s(literal 180 binary64)) < 2.00000000000000003e184

          1. Initial program 38.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. Applied egg-rr53.3%

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

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

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

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

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

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

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

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

              \[\leadsto \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \cdot \sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}\right) \]
            9. lower-*.f6453.3

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

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

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

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

              \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(angle \cdot \frac{1}{90}\right)\right)} \]
            14. lower-*.f6445.6

              \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \sin \left(\pi \cdot \color{blue}{\left(angle \cdot 0.011111111111111112\right)}\right) \]
          5. Applied egg-rr45.6%

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

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

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

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

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

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

              \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000} \cdot \color{blue}{\left(angle \cdot angle\right)}, {\mathsf{PI}\left(\right)}^{3}, \frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \]
            6. lower-*.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000} \cdot \color{blue}{\left(angle \cdot angle\right)}, {\mathsf{PI}\left(\right)}^{3}, \frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \]
            7. cube-multN/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000} \cdot \left(angle \cdot angle\right), \color{blue}{\mathsf{PI}\left(\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)}, \frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \]
            8. unpow2N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000} \cdot \left(angle \cdot angle\right), \mathsf{PI}\left(\right) \cdot \color{blue}{{\mathsf{PI}\left(\right)}^{2}}, \frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \]
            9. lower-*.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000} \cdot \left(angle \cdot angle\right), \color{blue}{\mathsf{PI}\left(\right) \cdot {\mathsf{PI}\left(\right)}^{2}}, \frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \]
            10. lower-PI.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000} \cdot \left(angle \cdot angle\right), \color{blue}{\mathsf{PI}\left(\right)} \cdot {\mathsf{PI}\left(\right)}^{2}, \frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \]
            11. unpow2N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000} \cdot \left(angle \cdot angle\right), \mathsf{PI}\left(\right) \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)}, \frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \]
            12. lower-*.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000} \cdot \left(angle \cdot angle\right), \mathsf{PI}\left(\right) \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)}, \frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \]
            13. lower-PI.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000} \cdot \left(angle \cdot angle\right), \mathsf{PI}\left(\right) \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \mathsf{PI}\left(\right)\right), \frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \]
            14. lower-PI.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000} \cdot \left(angle \cdot angle\right), \mathsf{PI}\left(\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}\right), \frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \]
            15. lower-*.f64N/A

              \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \left(angle \cdot \mathsf{fma}\left(\frac{-1}{4374000} \cdot \left(angle \cdot angle\right), \mathsf{PI}\left(\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right), \color{blue}{\frac{1}{90} \cdot \mathsf{PI}\left(\right)}\right)\right) \]
            16. lower-PI.f6447.5

              \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \left(angle \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7} \cdot \left(angle \cdot angle\right), \pi \cdot \left(\pi \cdot \pi\right), 0.011111111111111112 \cdot \color{blue}{\pi}\right)\right) \]
          8. Simplified47.5%

            \[\leadsto \left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \color{blue}{\left(angle \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7} \cdot \left(angle \cdot angle\right), \pi \cdot \left(\pi \cdot \pi\right), 0.011111111111111112 \cdot \pi\right)\right)} \]

          if 2.00000000000000003e184 < (/.f64 angle #s(literal 180 binary64))

          1. Initial program 25.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}{\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)} \]
          4. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}} \]
            2. associate-*r*N/A

              \[\leadsto \color{blue}{angle \cdot \left(\left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \frac{1}{90}\right)} \]
            3. *-commutativeN/A

              \[\leadsto angle \cdot \color{blue}{\left(\frac{1}{90} \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)} \]
            4. associate-*r*N/A

              \[\leadsto angle \cdot \color{blue}{\left(\left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \]
            5. associate-*r*N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)} \]
            6. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)} \]
            7. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right)} \cdot \left({b}^{2} - {a}^{2}\right) \]
            8. *-commutativeN/A

              \[\leadsto \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)}\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            9. lower-*.f64N/A

              \[\leadsto \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)}\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            10. lower-PI.f64N/A

              \[\leadsto \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{1}{90}\right)\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            11. unpow2N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right) \]
            12. unpow2N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right) \]
            13. difference-of-squaresN/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
            14. lower-*.f64N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
            15. lower-+.f64N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{\left(b + a\right)} \cdot \left(b - a\right)\right) \]
            16. lower--.f6419.6

              \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
          5. Simplified19.6%

            \[\leadsto \color{blue}{\left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
          6. Taylor expanded in b around 0

            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(-1 \cdot a\right)}\right) \]
          7. Step-by-step derivation
            1. mul-1-negN/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(\mathsf{neg}\left(a\right)\right)}\right) \]
            2. lower-neg.f6422.8

              \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(-a\right)}\right) \]
          8. Simplified22.8%

            \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(-a\right)}\right) \]
        3. Recombined 3 regimes into one program.
        4. Final simplification66.9%

          \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq 2 \cdot 10^{+129}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right)\right)\\ \mathbf{elif}\;\frac{angle}{180} \leq 2 \cdot 10^{+184}:\\ \;\;\;\;\left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \left(angle \cdot \mathsf{fma}\left(-2.2862368541380886 \cdot 10^{-7} \cdot \left(angle \cdot angle\right), \pi \cdot \left(\pi \cdot \pi\right), \pi \cdot 0.011111111111111112\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(-a \cdot \left(b + a\right)\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 20: 62.8% accurate, 10.3× speedup?

        \[\begin{array}{l} b_m = \left|b\right| \\ 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 10^{+128}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(0.011111111111111112 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(-a\_m \cdot \left(b\_m + a\_m\right)\right)\\ \end{array} \end{array} \]
        b_m = (fabs.f64 b)
        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_m angle_m)
         :precision binary64
         (*
          angle_s
          (if (<= (/ angle_m 180.0) 1e+128)
            (* (+ b_m a_m) (* (- b_m a_m) (* 0.011111111111111112 (* angle_m PI))))
            (* (* angle_m (* PI 0.011111111111111112)) (- (* a_m (+ b_m a_m)))))))
        b_m = fabs(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_m, double angle_m) {
        	double tmp;
        	if ((angle_m / 180.0) <= 1e+128) {
        		tmp = (b_m + a_m) * ((b_m - a_m) * (0.011111111111111112 * (angle_m * ((double) M_PI))));
        	} else {
        		tmp = (angle_m * (((double) M_PI) * 0.011111111111111112)) * -(a_m * (b_m + a_m));
        	}
        	return angle_s * tmp;
        }
        
        b_m = Math.abs(b);
        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_m, double angle_m) {
        	double tmp;
        	if ((angle_m / 180.0) <= 1e+128) {
        		tmp = (b_m + a_m) * ((b_m - a_m) * (0.011111111111111112 * (angle_m * Math.PI)));
        	} else {
        		tmp = (angle_m * (Math.PI * 0.011111111111111112)) * -(a_m * (b_m + a_m));
        	}
        	return angle_s * tmp;
        }
        
        b_m = math.fabs(b)
        a_m = math.fabs(a)
        angle\_m = math.fabs(angle)
        angle\_s = math.copysign(1.0, angle)
        def code(angle_s, a_m, b_m, angle_m):
        	tmp = 0
        	if (angle_m / 180.0) <= 1e+128:
        		tmp = (b_m + a_m) * ((b_m - a_m) * (0.011111111111111112 * (angle_m * math.pi)))
        	else:
        		tmp = (angle_m * (math.pi * 0.011111111111111112)) * -(a_m * (b_m + a_m))
        	return angle_s * tmp
        
        b_m = abs(b)
        a_m = abs(a)
        angle\_m = abs(angle)
        angle\_s = copysign(1.0, angle)
        function code(angle_s, a_m, b_m, angle_m)
        	tmp = 0.0
        	if (Float64(angle_m / 180.0) <= 1e+128)
        		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(b_m - a_m) * Float64(0.011111111111111112 * Float64(angle_m * pi))));
        	else
        		tmp = Float64(Float64(angle_m * Float64(pi * 0.011111111111111112)) * Float64(-Float64(a_m * Float64(b_m + a_m))));
        	end
        	return Float64(angle_s * tmp)
        end
        
        b_m = abs(b);
        a_m = abs(a);
        angle\_m = abs(angle);
        angle\_s = sign(angle) * abs(1.0);
        function tmp_2 = code(angle_s, a_m, b_m, angle_m)
        	tmp = 0.0;
        	if ((angle_m / 180.0) <= 1e+128)
        		tmp = (b_m + a_m) * ((b_m - a_m) * (0.011111111111111112 * (angle_m * pi)));
        	else
        		tmp = (angle_m * (pi * 0.011111111111111112)) * -(a_m * (b_m + a_m));
        	end
        	tmp_2 = angle_s * tmp;
        end
        
        b_m = N[Abs[b], $MachinePrecision]
        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$95$m_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 1e+128], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[(0.011111111111111112 * N[(angle$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(angle$95$m * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision] * (-N[(a$95$m * N[(b$95$m + a$95$m), $MachinePrecision]), $MachinePrecision])), $MachinePrecision]]), $MachinePrecision]
        
        \begin{array}{l}
        b_m = \left|b\right|
        \\
        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 10^{+128}:\\
        \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \left(0.011111111111111112 \cdot \left(angle\_m \cdot \pi\right)\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(-a\_m \cdot \left(b\_m + a\_m\right)\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if (/.f64 angle #s(literal 180 binary64)) < 1.0000000000000001e128

          1. Initial program 58.5%

            \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
          2. Add Preprocessing
          3. Applied egg-rr77.6%

            \[\leadsto \color{blue}{\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \left(\left(\pi \cdot angle\right) \cdot 0.011111111111111112\right)\right)} \]
          4. Taylor expanded in angle around 0

            \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)}\right) \]
          5. Step-by-step derivation
            1. lower-*.f64N/A

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)}\right) \]
            2. lower-*.f64N/A

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(\frac{1}{90} \cdot \color{blue}{\left(angle \cdot \mathsf{PI}\left(\right)\right)}\right)\right) \]
            3. lower-PI.f6473.8

              \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(0.011111111111111112 \cdot \left(angle \cdot \color{blue}{\pi}\right)\right)\right) \]
          6. Simplified73.8%

            \[\leadsto \left(b + a\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right)}\right) \]

          if 1.0000000000000001e128 < (/.f64 angle #s(literal 180 binary64))

          1. Initial program 28.5%

            \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
          2. Add Preprocessing
          3. Taylor expanded in angle around 0

            \[\leadsto \color{blue}{\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)} \]
          4. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}} \]
            2. associate-*r*N/A

              \[\leadsto \color{blue}{angle \cdot \left(\left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \frac{1}{90}\right)} \]
            3. *-commutativeN/A

              \[\leadsto angle \cdot \color{blue}{\left(\frac{1}{90} \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)} \]
            4. associate-*r*N/A

              \[\leadsto angle \cdot \color{blue}{\left(\left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \]
            5. associate-*r*N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)} \]
            6. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)} \]
            7. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right)} \cdot \left({b}^{2} - {a}^{2}\right) \]
            8. *-commutativeN/A

              \[\leadsto \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)}\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            9. lower-*.f64N/A

              \[\leadsto \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)}\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            10. lower-PI.f64N/A

              \[\leadsto \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{1}{90}\right)\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            11. unpow2N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right) \]
            12. unpow2N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right) \]
            13. difference-of-squaresN/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
            14. lower-*.f64N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
            15. lower-+.f64N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{\left(b + a\right)} \cdot \left(b - a\right)\right) \]
            16. lower--.f6420.5

              \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
          5. Simplified20.5%

            \[\leadsto \color{blue}{\left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
          6. Taylor expanded in b around 0

            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(-1 \cdot a\right)}\right) \]
          7. Step-by-step derivation
            1. mul-1-negN/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(\mathsf{neg}\left(a\right)\right)}\right) \]
            2. lower-neg.f6422.5

              \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(-a\right)}\right) \]
          8. Simplified22.5%

            \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(-a\right)}\right) \]
        3. Recombined 2 regimes into one program.
        4. Final simplification65.3%

          \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq 10^{+128}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(-a \cdot \left(b + a\right)\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 21: 62.8% accurate, 10.3× speedup?

        \[\begin{array}{l} b_m = \left|b\right| \\ 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 10^{+128}:\\ \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(angle\_m \cdot 0.011111111111111112\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \pi\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(-a\_m \cdot \left(b\_m + a\_m\right)\right)\\ \end{array} \end{array} \]
        b_m = (fabs.f64 b)
        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_m angle_m)
         :precision binary64
         (*
          angle_s
          (if (<= (/ angle_m 180.0) 1e+128)
            (* (+ b_m a_m) (* (* angle_m 0.011111111111111112) (* (- b_m a_m) PI)))
            (* (* angle_m (* PI 0.011111111111111112)) (- (* a_m (+ b_m a_m)))))))
        b_m = fabs(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_m, double angle_m) {
        	double tmp;
        	if ((angle_m / 180.0) <= 1e+128) {
        		tmp = (b_m + a_m) * ((angle_m * 0.011111111111111112) * ((b_m - a_m) * ((double) M_PI)));
        	} else {
        		tmp = (angle_m * (((double) M_PI) * 0.011111111111111112)) * -(a_m * (b_m + a_m));
        	}
        	return angle_s * tmp;
        }
        
        b_m = Math.abs(b);
        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_m, double angle_m) {
        	double tmp;
        	if ((angle_m / 180.0) <= 1e+128) {
        		tmp = (b_m + a_m) * ((angle_m * 0.011111111111111112) * ((b_m - a_m) * Math.PI));
        	} else {
        		tmp = (angle_m * (Math.PI * 0.011111111111111112)) * -(a_m * (b_m + a_m));
        	}
        	return angle_s * tmp;
        }
        
        b_m = math.fabs(b)
        a_m = math.fabs(a)
        angle\_m = math.fabs(angle)
        angle\_s = math.copysign(1.0, angle)
        def code(angle_s, a_m, b_m, angle_m):
        	tmp = 0
        	if (angle_m / 180.0) <= 1e+128:
        		tmp = (b_m + a_m) * ((angle_m * 0.011111111111111112) * ((b_m - a_m) * math.pi))
        	else:
        		tmp = (angle_m * (math.pi * 0.011111111111111112)) * -(a_m * (b_m + a_m))
        	return angle_s * tmp
        
        b_m = abs(b)
        a_m = abs(a)
        angle\_m = abs(angle)
        angle\_s = copysign(1.0, angle)
        function code(angle_s, a_m, b_m, angle_m)
        	tmp = 0.0
        	if (Float64(angle_m / 180.0) <= 1e+128)
        		tmp = Float64(Float64(b_m + a_m) * Float64(Float64(angle_m * 0.011111111111111112) * Float64(Float64(b_m - a_m) * pi)));
        	else
        		tmp = Float64(Float64(angle_m * Float64(pi * 0.011111111111111112)) * Float64(-Float64(a_m * Float64(b_m + a_m))));
        	end
        	return Float64(angle_s * tmp)
        end
        
        b_m = abs(b);
        a_m = abs(a);
        angle\_m = abs(angle);
        angle\_s = sign(angle) * abs(1.0);
        function tmp_2 = code(angle_s, a_m, b_m, angle_m)
        	tmp = 0.0;
        	if ((angle_m / 180.0) <= 1e+128)
        		tmp = (b_m + a_m) * ((angle_m * 0.011111111111111112) * ((b_m - a_m) * pi));
        	else
        		tmp = (angle_m * (pi * 0.011111111111111112)) * -(a_m * (b_m + a_m));
        	end
        	tmp_2 = angle_s * tmp;
        end
        
        b_m = N[Abs[b], $MachinePrecision]
        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$95$m_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 1e+128], N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(N[(angle$95$m * 0.011111111111111112), $MachinePrecision] * N[(N[(b$95$m - a$95$m), $MachinePrecision] * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(angle$95$m * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision] * (-N[(a$95$m * N[(b$95$m + a$95$m), $MachinePrecision]), $MachinePrecision])), $MachinePrecision]]), $MachinePrecision]
        
        \begin{array}{l}
        b_m = \left|b\right|
        \\
        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 10^{+128}:\\
        \;\;\;\;\left(b\_m + a\_m\right) \cdot \left(\left(angle\_m \cdot 0.011111111111111112\right) \cdot \left(\left(b\_m - a\_m\right) \cdot \pi\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(-a\_m \cdot \left(b\_m + a\_m\right)\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if (/.f64 angle #s(literal 180 binary64)) < 1.0000000000000001e128

          1. Initial program 58.5%

            \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
          2. Add Preprocessing
          3. Applied egg-rr77.6%

            \[\leadsto \color{blue}{\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \left(\left(\pi \cdot angle\right) \cdot 0.011111111111111112\right)\right)} \]
          4. Taylor expanded in angle around 0

            \[\leadsto \left(b + a\right) \cdot \color{blue}{\left(\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left(b - a\right)\right)\right)\right)} \]
          5. Step-by-step derivation
            1. associate-*r*N/A

              \[\leadsto \left(b + a\right) \cdot \color{blue}{\left(\left(\frac{1}{90} \cdot angle\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \left(b - a\right)\right)\right)} \]
            2. lower-*.f64N/A

              \[\leadsto \left(b + a\right) \cdot \color{blue}{\left(\left(\frac{1}{90} \cdot angle\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \left(b - a\right)\right)\right)} \]
            3. lower-*.f64N/A

              \[\leadsto \left(b + a\right) \cdot \left(\color{blue}{\left(\frac{1}{90} \cdot angle\right)} \cdot \left(\mathsf{PI}\left(\right) \cdot \left(b - a\right)\right)\right) \]
            4. lower-*.f64N/A

              \[\leadsto \left(b + a\right) \cdot \left(\left(\frac{1}{90} \cdot angle\right) \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(b - a\right)\right)}\right) \]
            5. lower-PI.f64N/A

              \[\leadsto \left(b + a\right) \cdot \left(\left(\frac{1}{90} \cdot angle\right) \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(b - a\right)\right)\right) \]
            6. lower--.f6473.8

              \[\leadsto \left(b + a\right) \cdot \left(\left(0.011111111111111112 \cdot angle\right) \cdot \left(\pi \cdot \color{blue}{\left(b - a\right)}\right)\right) \]
          6. Simplified73.8%

            \[\leadsto \left(b + a\right) \cdot \color{blue}{\left(\left(0.011111111111111112 \cdot angle\right) \cdot \left(\pi \cdot \left(b - a\right)\right)\right)} \]

          if 1.0000000000000001e128 < (/.f64 angle #s(literal 180 binary64))

          1. Initial program 28.5%

            \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
          2. Add Preprocessing
          3. Taylor expanded in angle around 0

            \[\leadsto \color{blue}{\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)} \]
          4. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}} \]
            2. associate-*r*N/A

              \[\leadsto \color{blue}{angle \cdot \left(\left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \frac{1}{90}\right)} \]
            3. *-commutativeN/A

              \[\leadsto angle \cdot \color{blue}{\left(\frac{1}{90} \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)} \]
            4. associate-*r*N/A

              \[\leadsto angle \cdot \color{blue}{\left(\left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \]
            5. associate-*r*N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)} \]
            6. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)} \]
            7. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right)} \cdot \left({b}^{2} - {a}^{2}\right) \]
            8. *-commutativeN/A

              \[\leadsto \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)}\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            9. lower-*.f64N/A

              \[\leadsto \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)}\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            10. lower-PI.f64N/A

              \[\leadsto \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{1}{90}\right)\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            11. unpow2N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right) \]
            12. unpow2N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right) \]
            13. difference-of-squaresN/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
            14. lower-*.f64N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
            15. lower-+.f64N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{\left(b + a\right)} \cdot \left(b - a\right)\right) \]
            16. lower--.f6420.5

              \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
          5. Simplified20.5%

            \[\leadsto \color{blue}{\left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
          6. Taylor expanded in b around 0

            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(-1 \cdot a\right)}\right) \]
          7. Step-by-step derivation
            1. mul-1-negN/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(\mathsf{neg}\left(a\right)\right)}\right) \]
            2. lower-neg.f6422.5

              \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(-a\right)}\right) \]
          8. Simplified22.5%

            \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(-a\right)}\right) \]
        3. Recombined 2 regimes into one program.
        4. Final simplification65.3%

          \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq 10^{+128}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(angle \cdot 0.011111111111111112\right) \cdot \left(\left(b - a\right) \cdot \pi\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(-a \cdot \left(b + a\right)\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 22: 57.8% accurate, 13.7× speedup?

        \[\begin{array}{l} b_m = \left|b\right| \\ 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\_m \leq 1.52 \cdot 10^{+143}:\\ \;\;\;\;\left(\left(b\_m + a\_m\right) \cdot \left(b\_m - a\_m\right)\right) \cdot \left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b\_m \cdot \left(\left(angle\_m \cdot 0.011111111111111112\right) \cdot \left(b\_m \cdot \pi\right)\right)\\ \end{array} \end{array} \]
        b_m = (fabs.f64 b)
        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_m angle_m)
         :precision binary64
         (*
          angle_s
          (if (<= b_m 1.52e+143)
            (* (* (+ b_m a_m) (- b_m a_m)) (* angle_m (* PI 0.011111111111111112)))
            (* b_m (* (* angle_m 0.011111111111111112) (* b_m PI))))))
        b_m = fabs(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_m, double angle_m) {
        	double tmp;
        	if (b_m <= 1.52e+143) {
        		tmp = ((b_m + a_m) * (b_m - a_m)) * (angle_m * (((double) M_PI) * 0.011111111111111112));
        	} else {
        		tmp = b_m * ((angle_m * 0.011111111111111112) * (b_m * ((double) M_PI)));
        	}
        	return angle_s * tmp;
        }
        
        b_m = Math.abs(b);
        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_m, double angle_m) {
        	double tmp;
        	if (b_m <= 1.52e+143) {
        		tmp = ((b_m + a_m) * (b_m - a_m)) * (angle_m * (Math.PI * 0.011111111111111112));
        	} else {
        		tmp = b_m * ((angle_m * 0.011111111111111112) * (b_m * Math.PI));
        	}
        	return angle_s * tmp;
        }
        
        b_m = math.fabs(b)
        a_m = math.fabs(a)
        angle\_m = math.fabs(angle)
        angle\_s = math.copysign(1.0, angle)
        def code(angle_s, a_m, b_m, angle_m):
        	tmp = 0
        	if b_m <= 1.52e+143:
        		tmp = ((b_m + a_m) * (b_m - a_m)) * (angle_m * (math.pi * 0.011111111111111112))
        	else:
        		tmp = b_m * ((angle_m * 0.011111111111111112) * (b_m * math.pi))
        	return angle_s * tmp
        
        b_m = abs(b)
        a_m = abs(a)
        angle\_m = abs(angle)
        angle\_s = copysign(1.0, angle)
        function code(angle_s, a_m, b_m, angle_m)
        	tmp = 0.0
        	if (b_m <= 1.52e+143)
        		tmp = Float64(Float64(Float64(b_m + a_m) * Float64(b_m - a_m)) * Float64(angle_m * Float64(pi * 0.011111111111111112)));
        	else
        		tmp = Float64(b_m * Float64(Float64(angle_m * 0.011111111111111112) * Float64(b_m * pi)));
        	end
        	return Float64(angle_s * tmp)
        end
        
        b_m = abs(b);
        a_m = abs(a);
        angle\_m = abs(angle);
        angle\_s = sign(angle) * abs(1.0);
        function tmp_2 = code(angle_s, a_m, b_m, angle_m)
        	tmp = 0.0;
        	if (b_m <= 1.52e+143)
        		tmp = ((b_m + a_m) * (b_m - a_m)) * (angle_m * (pi * 0.011111111111111112));
        	else
        		tmp = b_m * ((angle_m * 0.011111111111111112) * (b_m * pi));
        	end
        	tmp_2 = angle_s * tmp;
        end
        
        b_m = N[Abs[b], $MachinePrecision]
        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$95$m_, angle$95$m_] := N[(angle$95$s * If[LessEqual[b$95$m, 1.52e+143], N[(N[(N[(b$95$m + a$95$m), $MachinePrecision] * N[(b$95$m - a$95$m), $MachinePrecision]), $MachinePrecision] * N[(angle$95$m * N[(Pi * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b$95$m * N[(N[(angle$95$m * 0.011111111111111112), $MachinePrecision] * N[(b$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
        
        \begin{array}{l}
        b_m = \left|b\right|
        \\
        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\_m \leq 1.52 \cdot 10^{+143}:\\
        \;\;\;\;\left(\left(b\_m + a\_m\right) \cdot \left(b\_m - a\_m\right)\right) \cdot \left(angle\_m \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;b\_m \cdot \left(\left(angle\_m \cdot 0.011111111111111112\right) \cdot \left(b\_m \cdot \pi\right)\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if b < 1.51999999999999996e143

          1. Initial program 56.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}{\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)} \]
          4. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}} \]
            2. associate-*r*N/A

              \[\leadsto \color{blue}{angle \cdot \left(\left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \frac{1}{90}\right)} \]
            3. *-commutativeN/A

              \[\leadsto angle \cdot \color{blue}{\left(\frac{1}{90} \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)} \]
            4. associate-*r*N/A

              \[\leadsto angle \cdot \color{blue}{\left(\left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \]
            5. associate-*r*N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)} \]
            6. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)} \]
            7. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right)} \cdot \left({b}^{2} - {a}^{2}\right) \]
            8. *-commutativeN/A

              \[\leadsto \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)}\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            9. lower-*.f64N/A

              \[\leadsto \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)}\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            10. lower-PI.f64N/A

              \[\leadsto \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{1}{90}\right)\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            11. unpow2N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right) \]
            12. unpow2N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right) \]
            13. difference-of-squaresN/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
            14. lower-*.f64N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
            15. lower-+.f64N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{\left(b + a\right)} \cdot \left(b - a\right)\right) \]
            16. lower--.f6455.3

              \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
          5. Simplified55.3%

            \[\leadsto \color{blue}{\left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]

          if 1.51999999999999996e143 < b

          1. Initial program 33.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. Taylor expanded in angle around 0

            \[\leadsto \color{blue}{\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)} \]
          4. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}} \]
            2. associate-*r*N/A

              \[\leadsto \color{blue}{angle \cdot \left(\left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \frac{1}{90}\right)} \]
            3. *-commutativeN/A

              \[\leadsto angle \cdot \color{blue}{\left(\frac{1}{90} \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)} \]
            4. associate-*r*N/A

              \[\leadsto angle \cdot \color{blue}{\left(\left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \]
            5. associate-*r*N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)} \]
            6. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)} \]
            7. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right)} \cdot \left({b}^{2} - {a}^{2}\right) \]
            8. *-commutativeN/A

              \[\leadsto \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)}\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            9. lower-*.f64N/A

              \[\leadsto \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)}\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            10. lower-PI.f64N/A

              \[\leadsto \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{1}{90}\right)\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            11. unpow2N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right) \]
            12. unpow2N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right) \]
            13. difference-of-squaresN/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
            14. lower-*.f64N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
            15. lower-+.f64N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{\left(b + a\right)} \cdot \left(b - a\right)\right) \]
            16. lower--.f6449.5

              \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
          5. Simplified49.5%

            \[\leadsto \color{blue}{\left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
          6. Taylor expanded in b around inf

            \[\leadsto \color{blue}{\frac{1}{90} \cdot \left(angle \cdot \left({b}^{2} \cdot \mathsf{PI}\left(\right)\right)\right)} \]
          7. Step-by-step derivation
            1. lower-*.f64N/A

              \[\leadsto \color{blue}{\frac{1}{90} \cdot \left(angle \cdot \left({b}^{2} \cdot \mathsf{PI}\left(\right)\right)\right)} \]
            2. lower-*.f64N/A

              \[\leadsto \frac{1}{90} \cdot \color{blue}{\left(angle \cdot \left({b}^{2} \cdot \mathsf{PI}\left(\right)\right)\right)} \]
            3. *-commutativeN/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot {b}^{2}\right)}\right) \]
            4. lower-*.f64N/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot {b}^{2}\right)}\right) \]
            5. lower-PI.f64N/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot {b}^{2}\right)\right) \]
            6. unpow2N/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \]
            7. lower-*.f6443.2

              \[\leadsto 0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \]
          8. Simplified43.2%

            \[\leadsto \color{blue}{0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(b \cdot b\right)\right)\right)} \]
          9. Step-by-step derivation
            1. lift-PI.f64N/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(b \cdot b\right)\right)\right) \]
            2. lift-*.f64N/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \]
            3. lift-*.f64N/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(b \cdot b\right)\right)}\right) \]
            4. associate-*r*N/A

              \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot angle\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \left(b \cdot b\right)\right)} \]
            5. *-commutativeN/A

              \[\leadsto \color{blue}{\left(angle \cdot \frac{1}{90}\right)} \cdot \left(\mathsf{PI}\left(\right) \cdot \left(b \cdot b\right)\right) \]
            6. lift-*.f64N/A

              \[\leadsto \color{blue}{\left(angle \cdot \frac{1}{90}\right)} \cdot \left(\mathsf{PI}\left(\right) \cdot \left(b \cdot b\right)\right) \]
            7. lift-*.f64N/A

              \[\leadsto \left(angle \cdot \frac{1}{90}\right) \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(b \cdot b\right)\right)} \]
            8. lift-*.f64N/A

              \[\leadsto \left(angle \cdot \frac{1}{90}\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(b \cdot b\right)}\right) \]
            9. associate-*r*N/A

              \[\leadsto \left(angle \cdot \frac{1}{90}\right) \cdot \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot b\right) \cdot b\right)} \]
            10. associate-*r*N/A

              \[\leadsto \color{blue}{\left(\left(angle \cdot \frac{1}{90}\right) \cdot \left(\mathsf{PI}\left(\right) \cdot b\right)\right) \cdot b} \]
            11. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(\left(angle \cdot \frac{1}{90}\right) \cdot \left(\mathsf{PI}\left(\right) \cdot b\right)\right) \cdot b} \]
            12. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(\left(angle \cdot \frac{1}{90}\right) \cdot \left(\mathsf{PI}\left(\right) \cdot b\right)\right)} \cdot b \]
            13. lift-*.f64N/A

              \[\leadsto \left(\color{blue}{\left(angle \cdot \frac{1}{90}\right)} \cdot \left(\mathsf{PI}\left(\right) \cdot b\right)\right) \cdot b \]
            14. *-commutativeN/A

              \[\leadsto \left(\color{blue}{\left(\frac{1}{90} \cdot angle\right)} \cdot \left(\mathsf{PI}\left(\right) \cdot b\right)\right) \cdot b \]
            15. lower-*.f64N/A

              \[\leadsto \left(\color{blue}{\left(\frac{1}{90} \cdot angle\right)} \cdot \left(\mathsf{PI}\left(\right) \cdot b\right)\right) \cdot b \]
            16. *-commutativeN/A

              \[\leadsto \left(\left(\frac{1}{90} \cdot angle\right) \cdot \color{blue}{\left(b \cdot \mathsf{PI}\left(\right)\right)}\right) \cdot b \]
            17. lower-*.f6476.4

              \[\leadsto \left(\left(0.011111111111111112 \cdot angle\right) \cdot \color{blue}{\left(b \cdot \pi\right)}\right) \cdot b \]
          10. Applied egg-rr76.4%

            \[\leadsto \color{blue}{\left(\left(0.011111111111111112 \cdot angle\right) \cdot \left(b \cdot \pi\right)\right) \cdot b} \]
        3. Recombined 2 regimes into one program.
        4. Final simplification57.9%

          \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 1.52 \cdot 10^{+143}:\\ \;\;\;\;\left(\left(b + a\right) \cdot \left(b - a\right)\right) \cdot \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(\left(angle \cdot 0.011111111111111112\right) \cdot \left(b \cdot \pi\right)\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 23: 57.8% accurate, 13.7× speedup?

        \[\begin{array}{l} b_m = \left|b\right| \\ 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\_m \leq 1.52 \cdot 10^{+143}:\\ \;\;\;\;0.011111111111111112 \cdot \left(angle\_m \cdot \left(\left(b\_m - a\_m\right) \cdot \left(\left(b\_m + a\_m\right) \cdot \pi\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b\_m \cdot \left(\left(angle\_m \cdot 0.011111111111111112\right) \cdot \left(b\_m \cdot \pi\right)\right)\\ \end{array} \end{array} \]
        b_m = (fabs.f64 b)
        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_m angle_m)
         :precision binary64
         (*
          angle_s
          (if (<= b_m 1.52e+143)
            (* 0.011111111111111112 (* angle_m (* (- b_m a_m) (* (+ b_m a_m) PI))))
            (* b_m (* (* angle_m 0.011111111111111112) (* b_m PI))))))
        b_m = fabs(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_m, double angle_m) {
        	double tmp;
        	if (b_m <= 1.52e+143) {
        		tmp = 0.011111111111111112 * (angle_m * ((b_m - a_m) * ((b_m + a_m) * ((double) M_PI))));
        	} else {
        		tmp = b_m * ((angle_m * 0.011111111111111112) * (b_m * ((double) M_PI)));
        	}
        	return angle_s * tmp;
        }
        
        b_m = Math.abs(b);
        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_m, double angle_m) {
        	double tmp;
        	if (b_m <= 1.52e+143) {
        		tmp = 0.011111111111111112 * (angle_m * ((b_m - a_m) * ((b_m + a_m) * Math.PI)));
        	} else {
        		tmp = b_m * ((angle_m * 0.011111111111111112) * (b_m * Math.PI));
        	}
        	return angle_s * tmp;
        }
        
        b_m = math.fabs(b)
        a_m = math.fabs(a)
        angle\_m = math.fabs(angle)
        angle\_s = math.copysign(1.0, angle)
        def code(angle_s, a_m, b_m, angle_m):
        	tmp = 0
        	if b_m <= 1.52e+143:
        		tmp = 0.011111111111111112 * (angle_m * ((b_m - a_m) * ((b_m + a_m) * math.pi)))
        	else:
        		tmp = b_m * ((angle_m * 0.011111111111111112) * (b_m * math.pi))
        	return angle_s * tmp
        
        b_m = abs(b)
        a_m = abs(a)
        angle\_m = abs(angle)
        angle\_s = copysign(1.0, angle)
        function code(angle_s, a_m, b_m, angle_m)
        	tmp = 0.0
        	if (b_m <= 1.52e+143)
        		tmp = Float64(0.011111111111111112 * Float64(angle_m * Float64(Float64(b_m - a_m) * Float64(Float64(b_m + a_m) * pi))));
        	else
        		tmp = Float64(b_m * Float64(Float64(angle_m * 0.011111111111111112) * Float64(b_m * pi)));
        	end
        	return Float64(angle_s * tmp)
        end
        
        b_m = abs(b);
        a_m = abs(a);
        angle\_m = abs(angle);
        angle\_s = sign(angle) * abs(1.0);
        function tmp_2 = code(angle_s, a_m, b_m, angle_m)
        	tmp = 0.0;
        	if (b_m <= 1.52e+143)
        		tmp = 0.011111111111111112 * (angle_m * ((b_m - a_m) * ((b_m + a_m) * pi)));
        	else
        		tmp = b_m * ((angle_m * 0.011111111111111112) * (b_m * pi));
        	end
        	tmp_2 = angle_s * tmp;
        end
        
        b_m = N[Abs[b], $MachinePrecision]
        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$95$m_, angle$95$m_] := N[(angle$95$s * If[LessEqual[b$95$m, 1.52e+143], N[(0.011111111111111112 * N[(angle$95$m * N[(N[(b$95$m - a$95$m), $MachinePrecision] * N[(N[(b$95$m + a$95$m), $MachinePrecision] * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b$95$m * N[(N[(angle$95$m * 0.011111111111111112), $MachinePrecision] * N[(b$95$m * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
        
        \begin{array}{l}
        b_m = \left|b\right|
        \\
        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\_m \leq 1.52 \cdot 10^{+143}:\\
        \;\;\;\;0.011111111111111112 \cdot \left(angle\_m \cdot \left(\left(b\_m - a\_m\right) \cdot \left(\left(b\_m + a\_m\right) \cdot \pi\right)\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;b\_m \cdot \left(\left(angle\_m \cdot 0.011111111111111112\right) \cdot \left(b\_m \cdot \pi\right)\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if b < 1.51999999999999996e143

          1. Initial program 56.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. Applied egg-rr68.9%

            \[\leadsto \color{blue}{\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \left(\left(\pi \cdot angle\right) \cdot 0.011111111111111112\right)\right)} \]
          4. Taylor expanded in angle around 0

            \[\leadsto \color{blue}{\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \]
          5. Step-by-step derivation
            1. lower-*.f64N/A

              \[\leadsto \color{blue}{\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \]
            2. lower-*.f64N/A

              \[\leadsto \frac{1}{90} \cdot \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\left(a + b\right) \cdot \left(b - a\right)\right)\right)\right)} \]
            3. associate-*r*N/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \left(a + b\right)\right) \cdot \left(b - a\right)\right)}\right) \]
            4. lower-*.f64N/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \left(a + b\right)\right) \cdot \left(b - a\right)\right)}\right) \]
            5. lower-*.f64N/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(a + b\right)\right)} \cdot \left(b - a\right)\right)\right) \]
            6. lower-PI.f64N/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \left(\left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(a + b\right)\right) \cdot \left(b - a\right)\right)\right) \]
            7. lower-+.f64N/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \left(\left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(a + b\right)}\right) \cdot \left(b - a\right)\right)\right) \]
            8. lower--.f6455.3

              \[\leadsto 0.011111111111111112 \cdot \left(angle \cdot \left(\left(\pi \cdot \left(a + b\right)\right) \cdot \color{blue}{\left(b - a\right)}\right)\right) \]
          6. Simplified55.3%

            \[\leadsto \color{blue}{0.011111111111111112 \cdot \left(angle \cdot \left(\left(\pi \cdot \left(a + b\right)\right) \cdot \left(b - a\right)\right)\right)} \]

          if 1.51999999999999996e143 < b

          1. Initial program 33.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. Taylor expanded in angle around 0

            \[\leadsto \color{blue}{\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)} \]
          4. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}} \]
            2. associate-*r*N/A

              \[\leadsto \color{blue}{angle \cdot \left(\left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \frac{1}{90}\right)} \]
            3. *-commutativeN/A

              \[\leadsto angle \cdot \color{blue}{\left(\frac{1}{90} \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)} \]
            4. associate-*r*N/A

              \[\leadsto angle \cdot \color{blue}{\left(\left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \]
            5. associate-*r*N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)} \]
            6. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)} \]
            7. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right)} \cdot \left({b}^{2} - {a}^{2}\right) \]
            8. *-commutativeN/A

              \[\leadsto \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)}\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            9. lower-*.f64N/A

              \[\leadsto \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)}\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            10. lower-PI.f64N/A

              \[\leadsto \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{1}{90}\right)\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
            11. unpow2N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right) \]
            12. unpow2N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right) \]
            13. difference-of-squaresN/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
            14. lower-*.f64N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
            15. lower-+.f64N/A

              \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{\left(b + a\right)} \cdot \left(b - a\right)\right) \]
            16. lower--.f6449.5

              \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
          5. Simplified49.5%

            \[\leadsto \color{blue}{\left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
          6. Taylor expanded in b around inf

            \[\leadsto \color{blue}{\frac{1}{90} \cdot \left(angle \cdot \left({b}^{2} \cdot \mathsf{PI}\left(\right)\right)\right)} \]
          7. Step-by-step derivation
            1. lower-*.f64N/A

              \[\leadsto \color{blue}{\frac{1}{90} \cdot \left(angle \cdot \left({b}^{2} \cdot \mathsf{PI}\left(\right)\right)\right)} \]
            2. lower-*.f64N/A

              \[\leadsto \frac{1}{90} \cdot \color{blue}{\left(angle \cdot \left({b}^{2} \cdot \mathsf{PI}\left(\right)\right)\right)} \]
            3. *-commutativeN/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot {b}^{2}\right)}\right) \]
            4. lower-*.f64N/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot {b}^{2}\right)}\right) \]
            5. lower-PI.f64N/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot {b}^{2}\right)\right) \]
            6. unpow2N/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \]
            7. lower-*.f6443.2

              \[\leadsto 0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \]
          8. Simplified43.2%

            \[\leadsto \color{blue}{0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(b \cdot b\right)\right)\right)} \]
          9. Step-by-step derivation
            1. lift-PI.f64N/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(b \cdot b\right)\right)\right) \]
            2. lift-*.f64N/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \]
            3. lift-*.f64N/A

              \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(b \cdot b\right)\right)}\right) \]
            4. associate-*r*N/A

              \[\leadsto \color{blue}{\left(\frac{1}{90} \cdot angle\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \left(b \cdot b\right)\right)} \]
            5. *-commutativeN/A

              \[\leadsto \color{blue}{\left(angle \cdot \frac{1}{90}\right)} \cdot \left(\mathsf{PI}\left(\right) \cdot \left(b \cdot b\right)\right) \]
            6. lift-*.f64N/A

              \[\leadsto \color{blue}{\left(angle \cdot \frac{1}{90}\right)} \cdot \left(\mathsf{PI}\left(\right) \cdot \left(b \cdot b\right)\right) \]
            7. lift-*.f64N/A

              \[\leadsto \left(angle \cdot \frac{1}{90}\right) \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(b \cdot b\right)\right)} \]
            8. lift-*.f64N/A

              \[\leadsto \left(angle \cdot \frac{1}{90}\right) \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(b \cdot b\right)}\right) \]
            9. associate-*r*N/A

              \[\leadsto \left(angle \cdot \frac{1}{90}\right) \cdot \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot b\right) \cdot b\right)} \]
            10. associate-*r*N/A

              \[\leadsto \color{blue}{\left(\left(angle \cdot \frac{1}{90}\right) \cdot \left(\mathsf{PI}\left(\right) \cdot b\right)\right) \cdot b} \]
            11. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(\left(angle \cdot \frac{1}{90}\right) \cdot \left(\mathsf{PI}\left(\right) \cdot b\right)\right) \cdot b} \]
            12. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(\left(angle \cdot \frac{1}{90}\right) \cdot \left(\mathsf{PI}\left(\right) \cdot b\right)\right)} \cdot b \]
            13. lift-*.f64N/A

              \[\leadsto \left(\color{blue}{\left(angle \cdot \frac{1}{90}\right)} \cdot \left(\mathsf{PI}\left(\right) \cdot b\right)\right) \cdot b \]
            14. *-commutativeN/A

              \[\leadsto \left(\color{blue}{\left(\frac{1}{90} \cdot angle\right)} \cdot \left(\mathsf{PI}\left(\right) \cdot b\right)\right) \cdot b \]
            15. lower-*.f64N/A

              \[\leadsto \left(\color{blue}{\left(\frac{1}{90} \cdot angle\right)} \cdot \left(\mathsf{PI}\left(\right) \cdot b\right)\right) \cdot b \]
            16. *-commutativeN/A

              \[\leadsto \left(\left(\frac{1}{90} \cdot angle\right) \cdot \color{blue}{\left(b \cdot \mathsf{PI}\left(\right)\right)}\right) \cdot b \]
            17. lower-*.f6476.4

              \[\leadsto \left(\left(0.011111111111111112 \cdot angle\right) \cdot \color{blue}{\left(b \cdot \pi\right)}\right) \cdot b \]
          10. Applied egg-rr76.4%

            \[\leadsto \color{blue}{\left(\left(0.011111111111111112 \cdot angle\right) \cdot \left(b \cdot \pi\right)\right) \cdot b} \]
        3. Recombined 2 regimes into one program.
        4. Final simplification57.9%

          \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 1.52 \cdot 10^{+143}:\\ \;\;\;\;0.011111111111111112 \cdot \left(angle \cdot \left(\left(b - a\right) \cdot \left(\left(b + a\right) \cdot \pi\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(\left(angle \cdot 0.011111111111111112\right) \cdot \left(b \cdot \pi\right)\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 24: 38.5% accurate, 21.6× speedup?

        \[\begin{array}{l} b_m = \left|b\right| \\ 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(\left(b\_m \cdot \pi\right) \cdot \left(angle\_m \cdot b\_m\right)\right)\right) \end{array} \]
        b_m = (fabs.f64 b)
        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_m angle_m)
         :precision binary64
         (* angle_s (* 0.011111111111111112 (* (* b_m PI) (* angle_m b_m)))))
        b_m = fabs(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_m, double angle_m) {
        	return angle_s * (0.011111111111111112 * ((b_m * ((double) M_PI)) * (angle_m * b_m)));
        }
        
        b_m = Math.abs(b);
        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_m, double angle_m) {
        	return angle_s * (0.011111111111111112 * ((b_m * Math.PI) * (angle_m * b_m)));
        }
        
        b_m = math.fabs(b)
        a_m = math.fabs(a)
        angle\_m = math.fabs(angle)
        angle\_s = math.copysign(1.0, angle)
        def code(angle_s, a_m, b_m, angle_m):
        	return angle_s * (0.011111111111111112 * ((b_m * math.pi) * (angle_m * b_m)))
        
        b_m = abs(b)
        a_m = abs(a)
        angle\_m = abs(angle)
        angle\_s = copysign(1.0, angle)
        function code(angle_s, a_m, b_m, angle_m)
        	return Float64(angle_s * Float64(0.011111111111111112 * Float64(Float64(b_m * pi) * Float64(angle_m * b_m))))
        end
        
        b_m = abs(b);
        a_m = abs(a);
        angle\_m = abs(angle);
        angle\_s = sign(angle) * abs(1.0);
        function tmp = code(angle_s, a_m, b_m, angle_m)
        	tmp = angle_s * (0.011111111111111112 * ((b_m * pi) * (angle_m * b_m)));
        end
        
        b_m = N[Abs[b], $MachinePrecision]
        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$95$m_, angle$95$m_] := N[(angle$95$s * N[(0.011111111111111112 * N[(N[(b$95$m * Pi), $MachinePrecision] * N[(angle$95$m * b$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
        
        \begin{array}{l}
        b_m = \left|b\right|
        \\
        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(\left(b\_m \cdot \pi\right) \cdot \left(angle\_m \cdot b\_m\right)\right)\right)
        \end{array}
        
        Derivation
        1. Initial program 53.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. Taylor expanded in angle around 0

          \[\leadsto \color{blue}{\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)} \]
        4. Step-by-step derivation
          1. *-commutativeN/A

            \[\leadsto \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}} \]
          2. associate-*r*N/A

            \[\leadsto \color{blue}{angle \cdot \left(\left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \frac{1}{90}\right)} \]
          3. *-commutativeN/A

            \[\leadsto angle \cdot \color{blue}{\left(\frac{1}{90} \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)} \]
          4. associate-*r*N/A

            \[\leadsto angle \cdot \color{blue}{\left(\left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \]
          5. associate-*r*N/A

            \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)} \]
          6. lower-*.f64N/A

            \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)} \]
          7. lower-*.f64N/A

            \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right)} \cdot \left({b}^{2} - {a}^{2}\right) \]
          8. *-commutativeN/A

            \[\leadsto \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)}\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
          9. lower-*.f64N/A

            \[\leadsto \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)}\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
          10. lower-PI.f64N/A

            \[\leadsto \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{1}{90}\right)\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
          11. unpow2N/A

            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right) \]
          12. unpow2N/A

            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right) \]
          13. difference-of-squaresN/A

            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
          14. lower-*.f64N/A

            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
          15. lower-+.f64N/A

            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{\left(b + a\right)} \cdot \left(b - a\right)\right) \]
          16. lower--.f6454.5

            \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
        5. Simplified54.5%

          \[\leadsto \color{blue}{\left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
        6. Taylor expanded in b around inf

          \[\leadsto \color{blue}{\frac{1}{90} \cdot \left(angle \cdot \left({b}^{2} \cdot \mathsf{PI}\left(\right)\right)\right)} \]
        7. Step-by-step derivation
          1. lower-*.f64N/A

            \[\leadsto \color{blue}{\frac{1}{90} \cdot \left(angle \cdot \left({b}^{2} \cdot \mathsf{PI}\left(\right)\right)\right)} \]
          2. lower-*.f64N/A

            \[\leadsto \frac{1}{90} \cdot \color{blue}{\left(angle \cdot \left({b}^{2} \cdot \mathsf{PI}\left(\right)\right)\right)} \]
          3. *-commutativeN/A

            \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot {b}^{2}\right)}\right) \]
          4. lower-*.f64N/A

            \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot {b}^{2}\right)}\right) \]
          5. lower-PI.f64N/A

            \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot {b}^{2}\right)\right) \]
          6. unpow2N/A

            \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \]
          7. lower-*.f6434.3

            \[\leadsto 0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \]
        8. Simplified34.3%

          \[\leadsto \color{blue}{0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(b \cdot b\right)\right)\right)} \]
        9. Step-by-step derivation
          1. lift-PI.f64N/A

            \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \left(b \cdot b\right)\right)\right) \]
          2. lift-*.f64N/A

            \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \]
          3. lift-*.f64N/A

            \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(b \cdot b\right)\right)}\right) \]
          4. *-commutativeN/A

            \[\leadsto \frac{1}{90} \cdot \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot \left(b \cdot b\right)\right) \cdot angle\right)} \]
          5. lift-*.f64N/A

            \[\leadsto \frac{1}{90} \cdot \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot \left(b \cdot b\right)\right)} \cdot angle\right) \]
          6. lift-*.f64N/A

            \[\leadsto \frac{1}{90} \cdot \left(\left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(b \cdot b\right)}\right) \cdot angle\right) \]
          7. associate-*r*N/A

            \[\leadsto \frac{1}{90} \cdot \left(\color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot b\right) \cdot b\right)} \cdot angle\right) \]
          8. associate-*l*N/A

            \[\leadsto \frac{1}{90} \cdot \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot b\right) \cdot \left(b \cdot angle\right)\right)} \]
          9. lower-*.f64N/A

            \[\leadsto \frac{1}{90} \cdot \color{blue}{\left(\left(\mathsf{PI}\left(\right) \cdot b\right) \cdot \left(b \cdot angle\right)\right)} \]
          10. *-commutativeN/A

            \[\leadsto \frac{1}{90} \cdot \left(\color{blue}{\left(b \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(b \cdot angle\right)\right) \]
          11. lower-*.f64N/A

            \[\leadsto \frac{1}{90} \cdot \left(\color{blue}{\left(b \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(b \cdot angle\right)\right) \]
          12. lower-*.f6438.1

            \[\leadsto 0.011111111111111112 \cdot \left(\left(b \cdot \pi\right) \cdot \color{blue}{\left(b \cdot angle\right)}\right) \]
        10. Applied egg-rr38.1%

          \[\leadsto 0.011111111111111112 \cdot \color{blue}{\left(\left(b \cdot \pi\right) \cdot \left(b \cdot angle\right)\right)} \]
        11. Final simplification38.1%

          \[\leadsto 0.011111111111111112 \cdot \left(\left(b \cdot \pi\right) \cdot \left(angle \cdot b\right)\right) \]
        12. Add Preprocessing

        Alternative 25: 35.2% accurate, 21.6× speedup?

        \[\begin{array}{l} b_m = \left|b\right| \\ 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(b\_m \cdot b\_m\right)\right)\right)\right) \end{array} \]
        b_m = (fabs.f64 b)
        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_m angle_m)
         :precision binary64
         (* angle_s (* 0.011111111111111112 (* angle_m (* PI (* b_m b_m))))))
        b_m = fabs(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_m, double angle_m) {
        	return angle_s * (0.011111111111111112 * (angle_m * (((double) M_PI) * (b_m * b_m))));
        }
        
        b_m = Math.abs(b);
        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_m, double angle_m) {
        	return angle_s * (0.011111111111111112 * (angle_m * (Math.PI * (b_m * b_m))));
        }
        
        b_m = math.fabs(b)
        a_m = math.fabs(a)
        angle\_m = math.fabs(angle)
        angle\_s = math.copysign(1.0, angle)
        def code(angle_s, a_m, b_m, angle_m):
        	return angle_s * (0.011111111111111112 * (angle_m * (math.pi * (b_m * b_m))))
        
        b_m = abs(b)
        a_m = abs(a)
        angle\_m = abs(angle)
        angle\_s = copysign(1.0, angle)
        function code(angle_s, a_m, b_m, angle_m)
        	return Float64(angle_s * Float64(0.011111111111111112 * Float64(angle_m * Float64(pi * Float64(b_m * b_m)))))
        end
        
        b_m = abs(b);
        a_m = abs(a);
        angle\_m = abs(angle);
        angle\_s = sign(angle) * abs(1.0);
        function tmp = code(angle_s, a_m, b_m, angle_m)
        	tmp = angle_s * (0.011111111111111112 * (angle_m * (pi * (b_m * b_m))));
        end
        
        b_m = N[Abs[b], $MachinePrecision]
        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$95$m_, angle$95$m_] := N[(angle$95$s * N[(0.011111111111111112 * N[(angle$95$m * N[(Pi * N[(b$95$m * b$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
        
        \begin{array}{l}
        b_m = \left|b\right|
        \\
        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(b\_m \cdot b\_m\right)\right)\right)\right)
        \end{array}
        
        Derivation
        1. Initial program 53.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. Taylor expanded in angle around 0

          \[\leadsto \color{blue}{\frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)} \]
        4. Step-by-step derivation
          1. *-commutativeN/A

            \[\leadsto \color{blue}{\left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right) \cdot \frac{1}{90}} \]
          2. associate-*r*N/A

            \[\leadsto \color{blue}{angle \cdot \left(\left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \frac{1}{90}\right)} \]
          3. *-commutativeN/A

            \[\leadsto angle \cdot \color{blue}{\left(\frac{1}{90} \cdot \left(\mathsf{PI}\left(\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)\right)} \]
          4. associate-*r*N/A

            \[\leadsto angle \cdot \color{blue}{\left(\left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)\right)} \]
          5. associate-*r*N/A

            \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)} \]
          6. lower-*.f64N/A

            \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)} \]
          7. lower-*.f64N/A

            \[\leadsto \color{blue}{\left(angle \cdot \left(\frac{1}{90} \cdot \mathsf{PI}\left(\right)\right)\right)} \cdot \left({b}^{2} - {a}^{2}\right) \]
          8. *-commutativeN/A

            \[\leadsto \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)}\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
          9. lower-*.f64N/A

            \[\leadsto \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)}\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
          10. lower-PI.f64N/A

            \[\leadsto \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot \frac{1}{90}\right)\right) \cdot \left({b}^{2} - {a}^{2}\right) \]
          11. unpow2N/A

            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{b \cdot b} - {a}^{2}\right) \]
          12. unpow2N/A

            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(b \cdot b - \color{blue}{a \cdot a}\right) \]
          13. difference-of-squaresN/A

            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
          14. lower-*.f64N/A

            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \color{blue}{\left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
          15. lower-+.f64N/A

            \[\leadsto \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \frac{1}{90}\right)\right) \cdot \left(\color{blue}{\left(b + a\right)} \cdot \left(b - a\right)\right) \]
          16. lower--.f6454.5

            \[\leadsto \left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \color{blue}{\left(b - a\right)}\right) \]
        5. Simplified54.5%

          \[\leadsto \color{blue}{\left(angle \cdot \left(\pi \cdot 0.011111111111111112\right)\right) \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
        6. Taylor expanded in b around inf

          \[\leadsto \color{blue}{\frac{1}{90} \cdot \left(angle \cdot \left({b}^{2} \cdot \mathsf{PI}\left(\right)\right)\right)} \]
        7. Step-by-step derivation
          1. lower-*.f64N/A

            \[\leadsto \color{blue}{\frac{1}{90} \cdot \left(angle \cdot \left({b}^{2} \cdot \mathsf{PI}\left(\right)\right)\right)} \]
          2. lower-*.f64N/A

            \[\leadsto \frac{1}{90} \cdot \color{blue}{\left(angle \cdot \left({b}^{2} \cdot \mathsf{PI}\left(\right)\right)\right)} \]
          3. *-commutativeN/A

            \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot {b}^{2}\right)}\right) \]
          4. lower-*.f64N/A

            \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot {b}^{2}\right)}\right) \]
          5. lower-PI.f64N/A

            \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \left(\color{blue}{\mathsf{PI}\left(\right)} \cdot {b}^{2}\right)\right) \]
          6. unpow2N/A

            \[\leadsto \frac{1}{90} \cdot \left(angle \cdot \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \]
          7. lower-*.f6434.3

            \[\leadsto 0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \color{blue}{\left(b \cdot b\right)}\right)\right) \]
        8. Simplified34.3%

          \[\leadsto \color{blue}{0.011111111111111112 \cdot \left(angle \cdot \left(\pi \cdot \left(b \cdot b\right)\right)\right)} \]
        9. Add Preprocessing

        Reproduce

        ?
        herbie shell --seed 2024208 
        (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)))))