ab-angle->ABCF B

Percentage Accurate: 52.8% → 66.1%
Time: 16.5s
Alternatives: 18
Speedup: 10.3×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 18 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: 52.8% accurate, 1.0× speedup?

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

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

Alternative 1: 66.1% accurate, 1.1× speedup?

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

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

\mathbf{elif}\;\frac{angle\_m}{180} \leq 10^{+223}:\\
\;\;\;\;\frac{1}{\frac{\frac{{\left(t\_0 \cdot t\_0\right)}^{-0.5}}{b - a}}{b + a}}\\

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


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

    1. Initial program 57.8%

      \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift-*.f64N/A

        \[\leadsto \color{blue}{\left(\left(2 \cdot \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)} \]
      2. lift-*.f64N/A

        \[\leadsto \color{blue}{\left(\left(2 \cdot \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) \]
      3. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \]
    4. Applied rewrites70.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)} \]
    5. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{1}{\frac{b - a}{\color{blue}{\left(\left(b - a\right) \cdot \sin \left(\left(\pi \cdot angle\right) \cdot 0.011111111111111112\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)}}} \]
    6. Applied rewrites57.3%

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

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

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

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

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

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

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

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

      \[\leadsto \frac{1}{\color{blue}{\frac{\frac{\frac{1}{\sin \left(0.011111111111111112 \cdot \left(\pi \cdot angle\right)\right)}}{b - a}}{b + a}}} \]
    9. Step-by-step derivation
      1. rem-square-sqrtN/A

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

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

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

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

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

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

        \[\leadsto \frac{1}{\frac{\frac{\frac{1}{\sin \left(\frac{1}{90} \cdot \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)\right)}}{b - a}}{b + a}} \]
      8. lift-sqrt.f64N/A

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

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

        \[\leadsto \frac{1}{\frac{\frac{\frac{1}{\sin \left(\frac{1}{90} \cdot \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)\right)}}{b - a}}{b + a}} \]
      11. sqrt-prodN/A

        \[\leadsto \frac{1}{\frac{\frac{\frac{1}{\sin \left(\frac{1}{90} \cdot \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)\right)}}{b - a}}{b + a}} \]
      12. pow1/2N/A

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

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

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

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

        \[\leadsto \frac{1}{\frac{\frac{\frac{1}{\sin \left(\frac{1}{90} \cdot \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)\right)}}{b - a}}{b + a}} \]
      17. lower-sqrt.f6474.4

        \[\leadsto \frac{1}{\frac{\frac{\frac{1}{\sin \left(0.011111111111111112 \cdot \left(\left(\sqrt{\pi \cdot \sqrt{\pi}} \cdot \color{blue}{\sqrt{\sqrt{\pi}}}\right) \cdot angle\right)\right)}}{b - a}}{b + a}} \]
    10. Applied rewrites74.4%

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

    if 1.99999999999999997e73 < (/.f64 angle #s(literal 180 binary64)) < 1.00000000000000005e223

    1. Initial program 34.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. Step-by-step derivation
      1. lift-*.f64N/A

        \[\leadsto \color{blue}{\left(\left(2 \cdot \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)} \]
      2. lift-*.f64N/A

        \[\leadsto \color{blue}{\left(\left(2 \cdot \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) \]
      3. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

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

      \[\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)} \]
    5. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{1}{\frac{b - a}{\color{blue}{\left(\left(b - a\right) \cdot \sin \left(\left(\pi \cdot angle\right) \cdot 0.011111111111111112\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)}}} \]
    6. Applied rewrites41.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{1}{\frac{\frac{{\color{blue}{\left(\sin \left(\frac{1}{90} \cdot \left(\mathsf{PI}\left(\right) \cdot angle\right)\right) \cdot \sin \left(\frac{1}{90} \cdot \left(\mathsf{PI}\left(\right) \cdot angle\right)\right)\right)}}^{\left(\frac{-1}{2}\right)}}{b - a}}{b + a}} \]
      7. metadata-eval54.0

        \[\leadsto \frac{1}{\frac{\frac{{\left(\sin \left(0.011111111111111112 \cdot \left(\pi \cdot angle\right)\right) \cdot \sin \left(0.011111111111111112 \cdot \left(\pi \cdot angle\right)\right)\right)}^{\color{blue}{-0.5}}}{b - a}}{b + a}} \]
    10. Applied rewrites54.0%

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

    if 1.00000000000000005e223 < (/.f64 angle #s(literal 180 binary64))

    1. Initial program 29.2%

      \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift-*.f64N/A

        \[\leadsto \color{blue}{\left(\left(2 \cdot \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)} \]
      2. lift-*.f64N/A

        \[\leadsto \color{blue}{\left(\left(2 \cdot \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) \]
      3. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \]
    4. Applied rewrites37.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)} \]
    5. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{1}{\frac{b - a}{\color{blue}{\left(\left(b - a\right) \cdot \sin \left(\left(\pi \cdot angle\right) \cdot 0.011111111111111112\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)}}} \]
    6. Applied rewrites27.7%

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

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

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

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

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

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

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

        \[\leadsto \frac{1}{\frac{b - a}{\left(\left(b - a\right) \cdot \sin \left(\left(\sqrt{\pi} \cdot \color{blue}{\sqrt{\pi}}\right) \cdot \left(angle \cdot 0.011111111111111112\right)\right)\right) \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)}} \]
    8. Applied rewrites44.0%

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

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

Alternative 2: 65.6% accurate, 0.8× speedup?

\[\begin{array}{l} angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ \begin{array}{l} t_0 := {b}^{2} - {a}^{2}\\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;t\_0 \leq -\infty:\\ \;\;\;\;-0.011111111111111112 \cdot \left(a \cdot \left(a \cdot \left(angle \cdot \pi\right)\right)\right)\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+284}:\\ \;\;\;\;\left(\left(b - a\right) \cdot \left(b + a\right)\right) \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\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} \end{array} \end{array} \]
angle\_m = (fabs.f64 angle)
angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
(FPCore (angle_s a b angle_m)
 :precision binary64
 (let* ((t_0 (- (pow b 2.0) (pow a 2.0))))
   (*
    angle_s
    (if (<= t_0 (- INFINITY))
      (* -0.011111111111111112 (* a (* a (* angle PI))))
      (if (<= t_0 5e+284)
        (* (* (- b a) (+ b a)) (sin (* PI (* angle_m 0.011111111111111112))))
        (/
         (* (+ b a) (* PI (* angle 0.011111111111111112)))
         (/ 1.0 (- b a))))))))
angle\_m = fabs(angle);
angle\_s = copysign(1.0, angle);
double code(double angle_s, double a, double b, double angle_m) {
	double t_0 = pow(b, 2.0) - pow(a, 2.0);
	double tmp;
	if (t_0 <= -((double) INFINITY)) {
		tmp = -0.011111111111111112 * (a * (a * (angle * ((double) M_PI))));
	} else if (t_0 <= 5e+284) {
		tmp = ((b - a) * (b + a)) * sin((((double) M_PI) * (angle_m * 0.011111111111111112)));
	} else {
		tmp = ((b + a) * (((double) M_PI) * (angle * 0.011111111111111112))) / (1.0 / (b - a));
	}
	return angle_s * tmp;
}
angle\_m = Math.abs(angle);
angle\_s = Math.copySign(1.0, angle);
public static double code(double angle_s, double a, double b, double angle_m) {
	double t_0 = Math.pow(b, 2.0) - Math.pow(a, 2.0);
	double tmp;
	if (t_0 <= -Double.POSITIVE_INFINITY) {
		tmp = -0.011111111111111112 * (a * (a * (angle * Math.PI)));
	} else if (t_0 <= 5e+284) {
		tmp = ((b - a) * (b + a)) * Math.sin((Math.PI * (angle_m * 0.011111111111111112)));
	} else {
		tmp = ((b + a) * (Math.PI * (angle * 0.011111111111111112))) / (1.0 / (b - a));
	}
	return angle_s * tmp;
}
angle\_m = math.fabs(angle)
angle\_s = math.copysign(1.0, angle)
def code(angle_s, a, b, angle_m):
	t_0 = math.pow(b, 2.0) - math.pow(a, 2.0)
	tmp = 0
	if t_0 <= -math.inf:
		tmp = -0.011111111111111112 * (a * (a * (angle * math.pi)))
	elif t_0 <= 5e+284:
		tmp = ((b - a) * (b + a)) * math.sin((math.pi * (angle_m * 0.011111111111111112)))
	else:
		tmp = ((b + a) * (math.pi * (angle * 0.011111111111111112))) / (1.0 / (b - a))
	return angle_s * tmp
angle\_m = abs(angle)
angle\_s = copysign(1.0, angle)
function code(angle_s, a, b, angle_m)
	t_0 = Float64((b ^ 2.0) - (a ^ 2.0))
	tmp = 0.0
	if (t_0 <= Float64(-Inf))
		tmp = Float64(-0.011111111111111112 * Float64(a * Float64(a * Float64(angle * pi))));
	elseif (t_0 <= 5e+284)
		tmp = Float64(Float64(Float64(b - a) * Float64(b + a)) * sin(Float64(pi * Float64(angle_m * 0.011111111111111112))));
	else
		tmp = Float64(Float64(Float64(b + a) * Float64(pi * Float64(angle * 0.011111111111111112))) / Float64(1.0 / Float64(b - a)));
	end
	return Float64(angle_s * tmp)
end
angle\_m = abs(angle);
angle\_s = sign(angle) * abs(1.0);
function tmp_2 = code(angle_s, a, b, angle_m)
	t_0 = (b ^ 2.0) - (a ^ 2.0);
	tmp = 0.0;
	if (t_0 <= -Inf)
		tmp = -0.011111111111111112 * (a * (a * (angle * pi)));
	elseif (t_0 <= 5e+284)
		tmp = ((b - a) * (b + a)) * sin((pi * (angle_m * 0.011111111111111112)));
	else
		tmp = ((b + a) * (pi * (angle * 0.011111111111111112))) / (1.0 / (b - a));
	end
	tmp_2 = angle_s * tmp;
end
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_, b_, angle$95$m_] := Block[{t$95$0 = N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a, 2.0], $MachinePrecision]), $MachinePrecision]}, N[(angle$95$s * If[LessEqual[t$95$0, (-Infinity)], N[(-0.011111111111111112 * N[(a * N[(a * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e+284], N[(N[(N[(b - a), $MachinePrecision] * N[(b + a), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(Pi * N[(angle$95$m * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[(N[(b + a), $MachinePrecision] * N[(Pi * N[(angle * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 / N[(b - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
angle\_m = \left|angle\right|
\\
angle\_s = \mathsf{copysign}\left(1, angle\right)

\\
\begin{array}{l}
t_0 := {b}^{2} - {a}^{2}\\
angle\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_0 \leq -\infty:\\
\;\;\;\;-0.011111111111111112 \cdot \left(a \cdot \left(a \cdot \left(angle \cdot \pi\right)\right)\right)\\

\mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+284}:\\
\;\;\;\;\left(\left(b - a\right) \cdot \left(b + a\right)\right) \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.011111111111111112\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}
\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64))) < -inf.0

    1. Initial program 49.9%

      \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
    2. Add Preprocessing
    3. Taylor expanded in angle around 0

      \[\leadsto \color{blue}{\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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{-1}{90} \cdot \color{blue}{\left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)} \]
    7. Step-by-step derivation
      1. Applied rewrites64.8%

        \[\leadsto -0.011111111111111112 \cdot \color{blue}{\left(\left(\left(a \cdot a\right) \cdot angle\right) \cdot \pi\right)} \]
      2. Step-by-step derivation
        1. Applied rewrites82.9%

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

        if -inf.0 < (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64))) < 4.9999999999999999e284

        1. Initial program 58.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-*.f64N/A

            \[\leadsto \color{blue}{\left(\left(2 \cdot \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)} \]
          2. lift-*.f64N/A

            \[\leadsto \color{blue}{\left(\left(2 \cdot \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) \]
          3. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

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

          \[\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)} \]
        5. 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 \color{blue}{\left(\left(b - a\right) \cdot \sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}\right)\right)} \]
          3. 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)} \]
          4. lift-+.f64N/A

            \[\leadsto \left(\color{blue}{\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) \]
          5. lift--.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(\color{blue}{b \cdot b} - a \cdot a\right) \cdot \sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}\right) \]
          18. difference-of-squaresN/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) \]
          19. lift-+.f64N/A

            \[\leadsto \left(\color{blue}{\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) \]
          20. lift--.f64N/A

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

            \[\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) \]
          22. 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)} \]
          23. 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) \]
          24. 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)} \]
        6. Applied rewrites58.2%

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

        if 4.9999999999999999e284 < (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))

        1. Initial program 39.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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \color{blue}{\left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
        6. Step-by-step derivation
          1. Applied rewrites72.6%

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

          \[\leadsto \begin{array}{l} \mathbf{if}\;{b}^{2} - {a}^{2} \leq -\infty:\\ \;\;\;\;-0.011111111111111112 \cdot \left(a \cdot \left(a \cdot \left(angle \cdot \pi\right)\right)\right)\\ \mathbf{elif}\;{b}^{2} - {a}^{2} \leq 5 \cdot 10^{+284}:\\ \;\;\;\;\left(\left(b - a\right) \cdot \left(b + a\right)\right) \cdot \sin \left(\pi \cdot \left(angle \cdot 0.011111111111111112\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} \]
        9. Add Preprocessing

        Alternative 3: 56.8% accurate, 1.9× speedup?

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

          1. Initial program 49.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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{-1}{90} \cdot \color{blue}{\left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)} \]
          7. Step-by-step derivation
            1. Applied rewrites56.1%

              \[\leadsto -0.011111111111111112 \cdot \color{blue}{\left(\left(\left(a \cdot a\right) \cdot angle\right) \cdot \pi\right)} \]
            2. Step-by-step derivation
              1. Applied rewrites67.5%

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

              if -9.99999999999999972e58 < (-.f64 (pow.f64 b #s(literal 2 binary64)) (pow.f64 a #s(literal 2 binary64)))

              1. Initial program 53.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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Alternative 4: 55.7% accurate, 2.0× speedup?

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

              1. Initial program 53.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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \frac{-1}{90} \cdot \color{blue}{\left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)} \]
              7. Step-by-step derivation
                1. Applied rewrites56.1%

                  \[\leadsto -0.011111111111111112 \cdot \color{blue}{\left(\left(\left(a \cdot a\right) \cdot angle\right) \cdot \pi\right)} \]
                2. Step-by-step derivation
                  1. Applied rewrites64.1%

                    \[\leadsto \left(-0.011111111111111112 \cdot \left(a \cdot \left(a \cdot angle\right)\right)\right) \cdot \pi \]

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

                  1. Initial program 51.6%

                    \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                  2. Add Preprocessing
                  3. 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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 5: 66.2% accurate, 2.0× speedup?

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

                    1. Initial program 53.9%

                      \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                    2. Add Preprocessing
                    3. Step-by-step derivation
                      1. lift-*.f64N/A

                        \[\leadsto \color{blue}{\left(\left(2 \cdot \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)} \]
                      2. lift-*.f64N/A

                        \[\leadsto \color{blue}{\left(\left(2 \cdot \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) \]
                      3. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \color{blue}{\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \]
                    4. Applied rewrites65.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)} \]
                    5. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \frac{1}{\frac{b - a}{\color{blue}{\left(\left(b - a\right) \cdot \sin \left(\left(\pi \cdot angle\right) \cdot 0.011111111111111112\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)}}} \]
                    6. Applied rewrites54.6%

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

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

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

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

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

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

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

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

                      \[\leadsto \frac{1}{\color{blue}{\frac{\frac{\frac{1}{\sin \left(0.011111111111111112 \cdot \left(\pi \cdot angle\right)\right)}}{b - a}}{b + a}}} \]
                    9. Step-by-step derivation
                      1. rem-square-sqrtN/A

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

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

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

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

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

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

                        \[\leadsto \frac{1}{\frac{\frac{\frac{1}{\sin \left(\frac{1}{90} \cdot \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)\right)}}{b - a}}{b + a}} \]
                      8. lift-sqrt.f64N/A

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

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

                        \[\leadsto \frac{1}{\frac{\frac{\frac{1}{\sin \left(\frac{1}{90} \cdot \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)\right)}}{b - a}}{b + a}} \]
                      11. sqrt-prodN/A

                        \[\leadsto \frac{1}{\frac{\frac{\frac{1}{\sin \left(\frac{1}{90} \cdot \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)\right)}}{b - a}}{b + a}} \]
                      12. pow1/2N/A

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

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

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

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

                        \[\leadsto \frac{1}{\frac{\frac{\frac{1}{\sin \left(\frac{1}{90} \cdot \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)\right)}}{b - a}}{b + a}} \]
                      17. lower-sqrt.f6468.7

                        \[\leadsto \frac{1}{\frac{\frac{\frac{1}{\sin \left(0.011111111111111112 \cdot \left(\left(\sqrt{\pi \cdot \sqrt{\pi}} \cdot \color{blue}{\sqrt{\sqrt{\pi}}}\right) \cdot angle\right)\right)}}{b - a}}{b + a}} \]
                    10. Applied rewrites68.7%

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

                    if 1.00000000000000005e223 < (/.f64 angle #s(literal 180 binary64))

                    1. Initial program 29.2%

                      \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                    2. Add Preprocessing
                    3. Step-by-step derivation
                      1. lift-*.f64N/A

                        \[\leadsto \color{blue}{\left(\left(2 \cdot \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)} \]
                      2. lift-*.f64N/A

                        \[\leadsto \color{blue}{\left(\left(2 \cdot \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) \]
                      3. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \color{blue}{\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \]
                    4. Applied rewrites37.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)} \]
                    5. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \frac{1}{\frac{b - a}{\color{blue}{\left(\left(b - a\right) \cdot \sin \left(\left(\pi \cdot angle\right) \cdot 0.011111111111111112\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)}}} \]
                    6. Applied rewrites27.7%

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

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

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

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

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

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

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

                        \[\leadsto \frac{1}{\frac{b - a}{\left(\left(b - a\right) \cdot \sin \left(\left(\sqrt{\pi} \cdot \color{blue}{\sqrt{\pi}}\right) \cdot \left(angle \cdot 0.011111111111111112\right)\right)\right) \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)}} \]
                    8. Applied rewrites44.0%

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

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

                  Alternative 6: 67.2% accurate, 3.4× speedup?

                  \[\begin{array}{l} angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;a \leq 4 \cdot 10^{+191}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \left(angle\_m \cdot \left(0.011111111111111112 \cdot \pi\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} \end{array} \]
                  angle\_m = (fabs.f64 angle)
                  angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                  (FPCore (angle_s a b angle_m)
                   :precision binary64
                   (*
                    angle_s
                    (if (<= a 4e+191)
                      (* (+ b a) (* (- b a) (sin (* angle_m (* 0.011111111111111112 PI)))))
                      (/ (* (+ b a) (* PI (* angle 0.011111111111111112))) (/ 1.0 (- b a))))))
                  angle\_m = fabs(angle);
                  angle\_s = copysign(1.0, angle);
                  double code(double angle_s, double a, double b, double angle_m) {
                  	double tmp;
                  	if (a <= 4e+191) {
                  		tmp = (b + a) * ((b - a) * sin((angle_m * (0.011111111111111112 * ((double) M_PI)))));
                  	} else {
                  		tmp = ((b + a) * (((double) M_PI) * (angle * 0.011111111111111112))) / (1.0 / (b - a));
                  	}
                  	return angle_s * tmp;
                  }
                  
                  angle\_m = Math.abs(angle);
                  angle\_s = Math.copySign(1.0, angle);
                  public static double code(double angle_s, double a, double b, double angle_m) {
                  	double tmp;
                  	if (a <= 4e+191) {
                  		tmp = (b + a) * ((b - a) * Math.sin((angle_m * (0.011111111111111112 * Math.PI))));
                  	} else {
                  		tmp = ((b + a) * (Math.PI * (angle * 0.011111111111111112))) / (1.0 / (b - a));
                  	}
                  	return angle_s * tmp;
                  }
                  
                  angle\_m = math.fabs(angle)
                  angle\_s = math.copysign(1.0, angle)
                  def code(angle_s, a, b, angle_m):
                  	tmp = 0
                  	if a <= 4e+191:
                  		tmp = (b + a) * ((b - a) * math.sin((angle_m * (0.011111111111111112 * math.pi))))
                  	else:
                  		tmp = ((b + a) * (math.pi * (angle * 0.011111111111111112))) / (1.0 / (b - a))
                  	return angle_s * tmp
                  
                  angle\_m = abs(angle)
                  angle\_s = copysign(1.0, angle)
                  function code(angle_s, a, b, angle_m)
                  	tmp = 0.0
                  	if (a <= 4e+191)
                  		tmp = Float64(Float64(b + a) * Float64(Float64(b - a) * sin(Float64(angle_m * Float64(0.011111111111111112 * pi)))));
                  	else
                  		tmp = Float64(Float64(Float64(b + a) * Float64(pi * Float64(angle * 0.011111111111111112))) / Float64(1.0 / Float64(b - a)));
                  	end
                  	return Float64(angle_s * tmp)
                  end
                  
                  angle\_m = abs(angle);
                  angle\_s = sign(angle) * abs(1.0);
                  function tmp_2 = code(angle_s, a, b, angle_m)
                  	tmp = 0.0;
                  	if (a <= 4e+191)
                  		tmp = (b + a) * ((b - a) * sin((angle_m * (0.011111111111111112 * pi))));
                  	else
                  		tmp = ((b + a) * (pi * (angle * 0.011111111111111112))) / (1.0 / (b - a));
                  	end
                  	tmp_2 = angle_s * tmp;
                  end
                  
                  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_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[a, 4e+191], N[(N[(b + a), $MachinePrecision] * N[(N[(b - a), $MachinePrecision] * N[Sin[N[(angle$95$m * N[(0.011111111111111112 * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(b + a), $MachinePrecision] * N[(Pi * N[(angle * 0.011111111111111112), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 / N[(b - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                  
                  \begin{array}{l}
                  angle\_m = \left|angle\right|
                  \\
                  angle\_s = \mathsf{copysign}\left(1, angle\right)
                  
                  \\
                  angle\_s \cdot \begin{array}{l}
                  \mathbf{if}\;a \leq 4 \cdot 10^{+191}:\\
                  \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \left(angle\_m \cdot \left(0.011111111111111112 \cdot \pi\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}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if a < 4.00000000000000029e191

                    1. Initial program 52.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. Step-by-step derivation
                      1. lift-*.f64N/A

                        \[\leadsto \color{blue}{\left(\left(2 \cdot \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)} \]
                      2. lift-*.f64N/A

                        \[\leadsto \color{blue}{\left(\left(2 \cdot \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) \]
                      3. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \color{blue}{\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \]
                    4. Applied rewrites62.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)} \]
                    5. Step-by-step derivation
                      1. 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) \]
                      2. *-commutativeN/A

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

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

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

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

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

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

                    if 4.00000000000000029e191 < a

                    1. Initial program 50.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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \color{blue}{\left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
                    6. Step-by-step derivation
                      1. Applied rewrites87.5%

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq 4 \cdot 10^{+191}:\\ \;\;\;\;\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \sin \left(angle \cdot \left(0.011111111111111112 \cdot \pi\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} \]
                    9. Add Preprocessing

                    Alternative 7: 61.7% accurate, 5.4× speedup?

                    \[\begin{array}{l} angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 4 \cdot 10^{+173}:\\ \;\;\;\;\frac{1}{\frac{\frac{90}{angle \cdot \left(\pi \cdot \left(b - a\right)\right)}}{b + a}}\\ \mathbf{else}:\\ \;\;\;\;\left(a \cdot a\right) \cdot \left(-0.011111111111111112 \cdot \left(angle \cdot \pi\right) - \frac{\mathsf{fma}\left(angle \cdot \left(\pi \cdot \left(b \cdot b\right)\right), \frac{-0.011111111111111112}{a}, 0\right)}{a}\right)\\ \end{array} \end{array} \]
                    angle\_m = (fabs.f64 angle)
                    angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                    (FPCore (angle_s a b angle_m)
                     :precision binary64
                     (*
                      angle_s
                      (if (<= (/ angle_m 180.0) 4e+173)
                        (/ 1.0 (/ (/ 90.0 (* angle (* PI (- b a)))) (+ b a)))
                        (*
                         (* a a)
                         (-
                          (* -0.011111111111111112 (* angle PI))
                          (/ (fma (* angle (* PI (* b b))) (/ -0.011111111111111112 a) 0.0) a))))))
                    angle\_m = fabs(angle);
                    angle\_s = copysign(1.0, angle);
                    double code(double angle_s, double a, double b, double angle_m) {
                    	double tmp;
                    	if ((angle_m / 180.0) <= 4e+173) {
                    		tmp = 1.0 / ((90.0 / (angle * (((double) M_PI) * (b - a)))) / (b + a));
                    	} else {
                    		tmp = (a * a) * ((-0.011111111111111112 * (angle * ((double) M_PI))) - (fma((angle * (((double) M_PI) * (b * b))), (-0.011111111111111112 / a), 0.0) / a));
                    	}
                    	return angle_s * tmp;
                    }
                    
                    angle\_m = abs(angle)
                    angle\_s = copysign(1.0, angle)
                    function code(angle_s, a, b, angle_m)
                    	tmp = 0.0
                    	if (Float64(angle_m / 180.0) <= 4e+173)
                    		tmp = Float64(1.0 / Float64(Float64(90.0 / Float64(angle * Float64(pi * Float64(b - a)))) / Float64(b + a)));
                    	else
                    		tmp = Float64(Float64(a * a) * Float64(Float64(-0.011111111111111112 * Float64(angle * pi)) - Float64(fma(Float64(angle * Float64(pi * Float64(b * b))), Float64(-0.011111111111111112 / a), 0.0) / a)));
                    	end
                    	return Float64(angle_s * tmp)
                    end
                    
                    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_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 4e+173], N[(1.0 / N[(N[(90.0 / N[(angle * N[(Pi * N[(b - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(b + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * a), $MachinePrecision] * N[(N[(-0.011111111111111112 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(angle * N[(Pi * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(-0.011111111111111112 / a), $MachinePrecision] + 0.0), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                    
                    \begin{array}{l}
                    angle\_m = \left|angle\right|
                    \\
                    angle\_s = \mathsf{copysign}\left(1, angle\right)
                    
                    \\
                    angle\_s \cdot \begin{array}{l}
                    \mathbf{if}\;\frac{angle\_m}{180} \leq 4 \cdot 10^{+173}:\\
                    \;\;\;\;\frac{1}{\frac{\frac{90}{angle \cdot \left(\pi \cdot \left(b - a\right)\right)}}{b + a}}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\left(a \cdot a\right) \cdot \left(-0.011111111111111112 \cdot \left(angle \cdot \pi\right) - \frac{\mathsf{fma}\left(angle \cdot \left(\pi \cdot \left(b \cdot b\right)\right), \frac{-0.011111111111111112}{a}, 0\right)}{a}\right)\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if (/.f64 angle #s(literal 180 binary64)) < 4.0000000000000001e173

                      1. Initial program 53.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. Step-by-step derivation
                        1. lift-*.f64N/A

                          \[\leadsto \color{blue}{\left(\left(2 \cdot \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)} \]
                        2. lift-*.f64N/A

                          \[\leadsto \color{blue}{\left(\left(2 \cdot \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) \]
                        3. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \color{blue}{\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \]
                      4. Applied rewrites65.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)} \]
                      5. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \frac{1}{\color{blue}{\frac{b - a}{\left(\left(b - a\right) \cdot \sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)}}} \]
                        15. lower-*.f6450.0

                          \[\leadsto \frac{1}{\frac{b - a}{\color{blue}{\left(\left(b - a\right) \cdot \sin \left(\left(\pi \cdot angle\right) \cdot 0.011111111111111112\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)}}} \]
                      6. Applied rewrites54.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \frac{1}{\frac{\frac{90}{angle \cdot \left(\pi \cdot \color{blue}{\left(b - a\right)}\right)}}{b + a}} \]
                      11. Applied rewrites64.3%

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

                      if 4.0000000000000001e173 < (/.f64 angle #s(literal 180 binary64))

                      1. Initial program 41.3%

                        \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                      2. Add Preprocessing
                      3. Taylor expanded in angle around 0

                        \[\leadsto \color{blue}{\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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \left(a \cdot a\right) \cdot \color{blue}{\left(\left(angle \cdot \pi\right) \cdot -0.011111111111111112 - \frac{\mathsf{fma}\left(angle \cdot \left(\pi \cdot \left(b \cdot b\right)\right), \frac{-0.011111111111111112}{a}, 0\right)}{a}\right)} \]
                      8. Recombined 2 regimes into one program.
                      9. Final simplification62.7%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq 4 \cdot 10^{+173}:\\ \;\;\;\;\frac{1}{\frac{\frac{90}{angle \cdot \left(\pi \cdot \left(b - a\right)\right)}}{b + a}}\\ \mathbf{else}:\\ \;\;\;\;\left(a \cdot a\right) \cdot \left(-0.011111111111111112 \cdot \left(angle \cdot \pi\right) - \frac{\mathsf{fma}\left(angle \cdot \left(\pi \cdot \left(b \cdot b\right)\right), \frac{-0.011111111111111112}{a}, 0\right)}{a}\right)\\ \end{array} \]
                      10. Add Preprocessing

                      Alternative 8: 61.6% accurate, 5.5× speedup?

                      \[\begin{array}{l} angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{angle\_m}{180} \leq 4 \cdot 10^{+173}:\\ \;\;\;\;\frac{1}{\frac{\frac{90}{angle \cdot \left(\pi \cdot \left(b - a\right)\right)}}{b + a}}\\ \mathbf{else}:\\ \;\;\;\;\left(a \cdot a\right) \cdot \left(-0.011111111111111112 \cdot \left(angle \cdot \pi\right) - \frac{\frac{\pi \cdot \left(angle \cdot \left(b \cdot b\right)\right)}{a \cdot -90}}{a}\right)\\ \end{array} \end{array} \]
                      angle\_m = (fabs.f64 angle)
                      angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                      (FPCore (angle_s a b angle_m)
                       :precision binary64
                       (*
                        angle_s
                        (if (<= (/ angle_m 180.0) 4e+173)
                          (/ 1.0 (/ (/ 90.0 (* angle (* PI (- b a)))) (+ b a)))
                          (*
                           (* a a)
                           (-
                            (* -0.011111111111111112 (* angle PI))
                            (/ (/ (* PI (* angle (* b b))) (* a -90.0)) a))))))
                      angle\_m = fabs(angle);
                      angle\_s = copysign(1.0, angle);
                      double code(double angle_s, double a, double b, double angle_m) {
                      	double tmp;
                      	if ((angle_m / 180.0) <= 4e+173) {
                      		tmp = 1.0 / ((90.0 / (angle * (((double) M_PI) * (b - a)))) / (b + a));
                      	} else {
                      		tmp = (a * a) * ((-0.011111111111111112 * (angle * ((double) M_PI))) - (((((double) M_PI) * (angle * (b * b))) / (a * -90.0)) / a));
                      	}
                      	return angle_s * tmp;
                      }
                      
                      angle\_m = Math.abs(angle);
                      angle\_s = Math.copySign(1.0, angle);
                      public static double code(double angle_s, double a, double b, double angle_m) {
                      	double tmp;
                      	if ((angle_m / 180.0) <= 4e+173) {
                      		tmp = 1.0 / ((90.0 / (angle * (Math.PI * (b - a)))) / (b + a));
                      	} else {
                      		tmp = (a * a) * ((-0.011111111111111112 * (angle * Math.PI)) - (((Math.PI * (angle * (b * b))) / (a * -90.0)) / a));
                      	}
                      	return angle_s * tmp;
                      }
                      
                      angle\_m = math.fabs(angle)
                      angle\_s = math.copysign(1.0, angle)
                      def code(angle_s, a, b, angle_m):
                      	tmp = 0
                      	if (angle_m / 180.0) <= 4e+173:
                      		tmp = 1.0 / ((90.0 / (angle * (math.pi * (b - a)))) / (b + a))
                      	else:
                      		tmp = (a * a) * ((-0.011111111111111112 * (angle * math.pi)) - (((math.pi * (angle * (b * b))) / (a * -90.0)) / a))
                      	return angle_s * tmp
                      
                      angle\_m = abs(angle)
                      angle\_s = copysign(1.0, angle)
                      function code(angle_s, a, b, angle_m)
                      	tmp = 0.0
                      	if (Float64(angle_m / 180.0) <= 4e+173)
                      		tmp = Float64(1.0 / Float64(Float64(90.0 / Float64(angle * Float64(pi * Float64(b - a)))) / Float64(b + a)));
                      	else
                      		tmp = Float64(Float64(a * a) * Float64(Float64(-0.011111111111111112 * Float64(angle * pi)) - Float64(Float64(Float64(pi * Float64(angle * Float64(b * b))) / Float64(a * -90.0)) / a)));
                      	end
                      	return Float64(angle_s * tmp)
                      end
                      
                      angle\_m = abs(angle);
                      angle\_s = sign(angle) * abs(1.0);
                      function tmp_2 = code(angle_s, a, b, angle_m)
                      	tmp = 0.0;
                      	if ((angle_m / 180.0) <= 4e+173)
                      		tmp = 1.0 / ((90.0 / (angle * (pi * (b - a)))) / (b + a));
                      	else
                      		tmp = (a * a) * ((-0.011111111111111112 * (angle * pi)) - (((pi * (angle * (b * b))) / (a * -90.0)) / a));
                      	end
                      	tmp_2 = angle_s * tmp;
                      end
                      
                      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_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 4e+173], N[(1.0 / N[(N[(90.0 / N[(angle * N[(Pi * N[(b - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(b + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * a), $MachinePrecision] * N[(N[(-0.011111111111111112 * N[(angle * Pi), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(Pi * N[(angle * N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a * -90.0), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                      
                      \begin{array}{l}
                      angle\_m = \left|angle\right|
                      \\
                      angle\_s = \mathsf{copysign}\left(1, angle\right)
                      
                      \\
                      angle\_s \cdot \begin{array}{l}
                      \mathbf{if}\;\frac{angle\_m}{180} \leq 4 \cdot 10^{+173}:\\
                      \;\;\;\;\frac{1}{\frac{\frac{90}{angle \cdot \left(\pi \cdot \left(b - a\right)\right)}}{b + a}}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\left(a \cdot a\right) \cdot \left(-0.011111111111111112 \cdot \left(angle \cdot \pi\right) - \frac{\frac{\pi \cdot \left(angle \cdot \left(b \cdot b\right)\right)}{a \cdot -90}}{a}\right)\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if (/.f64 angle #s(literal 180 binary64)) < 4.0000000000000001e173

                        1. Initial program 53.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. Step-by-step derivation
                          1. lift-*.f64N/A

                            \[\leadsto \color{blue}{\left(\left(2 \cdot \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)} \]
                          2. lift-*.f64N/A

                            \[\leadsto \color{blue}{\left(\left(2 \cdot \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) \]
                          3. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \color{blue}{\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \]
                        4. Applied rewrites65.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)} \]
                        5. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \frac{1}{\color{blue}{\frac{b - a}{\left(\left(b - a\right) \cdot \sin \left(\left(\mathsf{PI}\left(\right) \cdot angle\right) \cdot \frac{1}{90}\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)}}} \]
                          15. lower-*.f6450.0

                            \[\leadsto \frac{1}{\frac{b - a}{\color{blue}{\left(\left(b - a\right) \cdot \sin \left(\left(\pi \cdot angle\right) \cdot 0.011111111111111112\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)}}} \]
                        6. Applied rewrites54.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \frac{1}{\frac{\frac{90}{angle \cdot \left(\pi \cdot \color{blue}{\left(b - a\right)}\right)}}{b + a}} \]
                        11. Applied rewrites64.3%

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

                        if 4.0000000000000001e173 < (/.f64 angle #s(literal 180 binary64))

                        1. Initial program 41.3%

                          \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                        2. Add Preprocessing
                        3. Taylor expanded in angle around 0

                          \[\leadsto \color{blue}{\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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \left(a \cdot a\right) \cdot \color{blue}{\left(\left(angle \cdot \pi\right) \cdot -0.011111111111111112 - \frac{\mathsf{fma}\left(angle \cdot \left(\pi \cdot \left(b \cdot b\right)\right), \frac{-0.011111111111111112}{a}, 0\right)}{a}\right)} \]
                          2. Step-by-step derivation
                            1. Applied rewrites49.6%

                              \[\leadsto \left(a \cdot a\right) \cdot \left(\left(angle \cdot \pi\right) \cdot -0.011111111111111112 - \frac{\frac{\pi \cdot \left(angle \cdot \left(b \cdot b\right)\right)}{a \cdot -90}}{a}\right) \]
                          3. Recombined 2 regimes into one program.
                          4. Final simplification62.7%

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

                          Alternative 9: 63.2% accurate, 5.9× speedup?

                          \[\begin{array}{l} 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 500000:\\ \;\;\;\;\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 \pi\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{b - a}{\left(angle \cdot 0.011111111111111112\right) \cdot \left(\left(\pi \cdot \left(b + a\right)\right) \cdot \left(\left(b - a\right) \cdot \left(b - a\right)\right)\right)}}\\ \end{array} \end{array} \]
                          angle\_m = (fabs.f64 angle)
                          angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                          (FPCore (angle_s a b angle_m)
                           :precision binary64
                           (*
                            angle_s
                            (if (<= (/ angle_m 180.0) 500000.0)
                              (*
                               (+ b a)
                               (*
                                (- b a)
                                (*
                                 angle
                                 (fma
                                  -2.2862368541380886e-7
                                  (* (* angle angle) (* PI (* PI PI)))
                                  (* 0.011111111111111112 PI)))))
                              (/
                               1.0
                               (/
                                (- b a)
                                (*
                                 (* angle 0.011111111111111112)
                                 (* (* PI (+ b a)) (* (- b a) (- b a)))))))))
                          angle\_m = fabs(angle);
                          angle\_s = copysign(1.0, angle);
                          double code(double angle_s, double a, double b, double angle_m) {
                          	double tmp;
                          	if ((angle_m / 180.0) <= 500000.0) {
                          		tmp = (b + a) * ((b - a) * (angle * fma(-2.2862368541380886e-7, ((angle * angle) * (((double) M_PI) * (((double) M_PI) * ((double) M_PI)))), (0.011111111111111112 * ((double) M_PI)))));
                          	} else {
                          		tmp = 1.0 / ((b - a) / ((angle * 0.011111111111111112) * ((((double) M_PI) * (b + a)) * ((b - a) * (b - a)))));
                          	}
                          	return angle_s * tmp;
                          }
                          
                          angle\_m = abs(angle)
                          angle\_s = copysign(1.0, angle)
                          function code(angle_s, a, b, angle_m)
                          	tmp = 0.0
                          	if (Float64(angle_m / 180.0) <= 500000.0)
                          		tmp = Float64(Float64(b + a) * Float64(Float64(b - a) * Float64(angle * fma(-2.2862368541380886e-7, Float64(Float64(angle * angle) * Float64(pi * Float64(pi * pi))), Float64(0.011111111111111112 * pi)))));
                          	else
                          		tmp = Float64(1.0 / Float64(Float64(b - a) / Float64(Float64(angle * 0.011111111111111112) * Float64(Float64(pi * Float64(b + a)) * Float64(Float64(b - a) * Float64(b - a))))));
                          	end
                          	return Float64(angle_s * tmp)
                          end
                          
                          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_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 500000.0], N[(N[(b + a), $MachinePrecision] * N[(N[(b - a), $MachinePrecision] * N[(angle * N[(-2.2862368541380886e-7 * N[(N[(angle * angle), $MachinePrecision] * N[(Pi * N[(Pi * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.011111111111111112 * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(b - a), $MachinePrecision] / N[(N[(angle * 0.011111111111111112), $MachinePrecision] * N[(N[(Pi * N[(b + a), $MachinePrecision]), $MachinePrecision] * N[(N[(b - a), $MachinePrecision] * N[(b - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                          
                          \begin{array}{l}
                          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 500000:\\
                          \;\;\;\;\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 \pi\right)\right)\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\frac{1}{\frac{b - a}{\left(angle \cdot 0.011111111111111112\right) \cdot \left(\left(\pi \cdot \left(b + a\right)\right) \cdot \left(\left(b - a\right) \cdot \left(b - a\right)\right)\right)}}\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if (/.f64 angle #s(literal 180 binary64)) < 5e5

                            1. Initial program 58.8%

                              \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                            2. Add Preprocessing
                            3. Step-by-step derivation
                              1. lift-*.f64N/A

                                \[\leadsto \color{blue}{\left(\left(2 \cdot \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)} \]
                              2. lift-*.f64N/A

                                \[\leadsto \color{blue}{\left(\left(2 \cdot \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) \]
                              3. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\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)} \]
                            5. 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) \]
                            6. 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.f6467.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) \]
                            7. Applied rewrites67.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 5e5 < (/.f64 angle #s(literal 180 binary64))

                            1. Initial program 35.0%

                              \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                            2. Add Preprocessing
                            3. Step-by-step derivation
                              1. lift-*.f64N/A

                                \[\leadsto \color{blue}{\left(\left(2 \cdot \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)} \]
                              2. lift-*.f64N/A

                                \[\leadsto \color{blue}{\left(\left(2 \cdot \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) \]
                              3. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \color{blue}{\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \]
                            4. Applied rewrites40.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)} \]
                            5. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \frac{1}{\frac{b - a}{\color{blue}{\left(\left(b - a\right) \cdot \sin \left(\left(\pi \cdot angle\right) \cdot 0.011111111111111112\right)\right) \cdot \left({b}^{2} - {a}^{2}\right)}}} \]
                            6. Applied rewrites40.9%

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

                              \[\leadsto \frac{1}{\frac{b - a}{\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)}^{2}\right)\right)\right)}}} \]
                            8. Step-by-step derivation
                              1. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \frac{1}{\frac{b - a}{\left(0.011111111111111112 \cdot angle\right) \cdot \left(\left(\pi \cdot \left(a + b\right)\right) \cdot \left(\left(b - a\right) \cdot \color{blue}{\left(b - a\right)}\right)\right)}} \]
                            9. Applied rewrites42.3%

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

                            \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq 500000:\\ \;\;\;\;\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 \pi\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{b - a}{\left(angle \cdot 0.011111111111111112\right) \cdot \left(\left(\pi \cdot \left(b + a\right)\right) \cdot \left(\left(b - a\right) \cdot \left(b - a\right)\right)\right)}}\\ \end{array} \]
                          5. Add Preprocessing

                          Alternative 10: 63.2% accurate, 6.5× speedup?

                          \[\begin{array}{l} 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 500000:\\ \;\;\;\;\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 \pi\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\pi \cdot \left(angle \cdot 0.011111111111111112\right)}{\frac{1}{\left(b - a\right) \cdot \left(b + a\right)}}\\ \end{array} \end{array} \]
                          angle\_m = (fabs.f64 angle)
                          angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                          (FPCore (angle_s a b angle_m)
                           :precision binary64
                           (*
                            angle_s
                            (if (<= (/ angle_m 180.0) 500000.0)
                              (*
                               (+ b a)
                               (*
                                (- b a)
                                (*
                                 angle
                                 (fma
                                  -2.2862368541380886e-7
                                  (* (* angle angle) (* PI (* PI PI)))
                                  (* 0.011111111111111112 PI)))))
                              (/ (* PI (* angle 0.011111111111111112)) (/ 1.0 (* (- b a) (+ b a)))))))
                          angle\_m = fabs(angle);
                          angle\_s = copysign(1.0, angle);
                          double code(double angle_s, double a, double b, double angle_m) {
                          	double tmp;
                          	if ((angle_m / 180.0) <= 500000.0) {
                          		tmp = (b + a) * ((b - a) * (angle * fma(-2.2862368541380886e-7, ((angle * angle) * (((double) M_PI) * (((double) M_PI) * ((double) M_PI)))), (0.011111111111111112 * ((double) M_PI)))));
                          	} else {
                          		tmp = (((double) M_PI) * (angle * 0.011111111111111112)) / (1.0 / ((b - a) * (b + a)));
                          	}
                          	return angle_s * tmp;
                          }
                          
                          angle\_m = abs(angle)
                          angle\_s = copysign(1.0, angle)
                          function code(angle_s, a, b, angle_m)
                          	tmp = 0.0
                          	if (Float64(angle_m / 180.0) <= 500000.0)
                          		tmp = Float64(Float64(b + a) * Float64(Float64(b - a) * Float64(angle * fma(-2.2862368541380886e-7, Float64(Float64(angle * angle) * Float64(pi * Float64(pi * pi))), Float64(0.011111111111111112 * pi)))));
                          	else
                          		tmp = Float64(Float64(pi * Float64(angle * 0.011111111111111112)) / Float64(1.0 / Float64(Float64(b - a) * Float64(b + a))));
                          	end
                          	return Float64(angle_s * tmp)
                          end
                          
                          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_, b_, angle$95$m_] := N[(angle$95$s * If[LessEqual[N[(angle$95$m / 180.0), $MachinePrecision], 500000.0], N[(N[(b + a), $MachinePrecision] * N[(N[(b - a), $MachinePrecision] * N[(angle * N[(-2.2862368541380886e-7 * N[(N[(angle * angle), $MachinePrecision] * N[(Pi * N[(Pi * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.011111111111111112 * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(Pi * N[(angle * 0.011111111111111112), $MachinePrecision]), $MachinePrecision] / N[(1.0 / N[(N[(b - a), $MachinePrecision] * N[(b + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                          
                          \begin{array}{l}
                          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 500000:\\
                          \;\;\;\;\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 \pi\right)\right)\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\frac{\pi \cdot \left(angle \cdot 0.011111111111111112\right)}{\frac{1}{\left(b - a\right) \cdot \left(b + a\right)}}\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if (/.f64 angle #s(literal 180 binary64)) < 5e5

                            1. Initial program 58.8%

                              \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                            2. Add Preprocessing
                            3. Step-by-step derivation
                              1. lift-*.f64N/A

                                \[\leadsto \color{blue}{\left(\left(2 \cdot \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)} \]
                              2. lift-*.f64N/A

                                \[\leadsto \color{blue}{\left(\left(2 \cdot \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) \]
                              3. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\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)} \]
                            5. 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) \]
                            6. 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.f6467.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) \]
                            7. Applied rewrites67.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 5e5 < (/.f64 angle #s(literal 180 binary64))

                            1. Initial program 35.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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \color{blue}{\left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
                            6. Step-by-step derivation
                              1. Applied rewrites42.2%

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

                              \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{angle}{180} \leq 500000:\\ \;\;\;\;\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 \pi\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\pi \cdot \left(angle \cdot 0.011111111111111112\right)}{\frac{1}{\left(b - a\right) \cdot \left(b + a\right)}}\\ \end{array} \]
                            9. Add Preprocessing

                            Alternative 11: 62.6% accurate, 7.4× speedup?

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

                              1. Initial program 55.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-*.f64N/A

                                  \[\leadsto \color{blue}{\left(\left(2 \cdot \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)} \]
                                2. lift-*.f64N/A

                                  \[\leadsto \color{blue}{\left(\left(2 \cdot \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) \]
                                3. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \color{blue}{\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \]
                              4. Applied rewrites69.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)} \]
                              5. 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)} \]
                              6. Step-by-step derivation
                                1. lower-*.f64N/A

                                  \[\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)} \]
                                2. lower-*.f64N/A

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

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

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

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

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

                              if 1.99999999999999993e-64 < (/.f64 angle #s(literal 180 binary64))

                              1. Initial program 46.3%

                                \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                              2. Add Preprocessing
                              3. Taylor expanded in angle around 0

                                \[\leadsto \color{blue}{\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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \color{blue}{\left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
                              6. Step-by-step derivation
                                1. Applied rewrites52.0%

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

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

                              Alternative 12: 62.4% accurate, 10.3× speedup?

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

                                1. Initial program 55.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-*.f64N/A

                                    \[\leadsto \color{blue}{\left(\left(2 \cdot \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)} \]
                                  2. lift-*.f64N/A

                                    \[\leadsto \color{blue}{\left(\left(2 \cdot \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) \]
                                  3. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \color{blue}{\left(b + a\right) \cdot \left(\left(b - a\right) \cdot \left(2 \cdot \left(\sin \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right) \cdot \cos \left(\mathsf{PI}\left(\right) \cdot \frac{angle}{180}\right)\right)\right)\right)} \]
                                4. Applied rewrites69.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)} \]
                                5. 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)} \]
                                6. Step-by-step derivation
                                  1. lower-*.f64N/A

                                    \[\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)} \]
                                  2. lower-*.f64N/A

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

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

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

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

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

                                if 1.99999999999999993e-64 < (/.f64 angle #s(literal 180 binary64))

                                1. Initial program 46.3%

                                  \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                2. Add Preprocessing
                                3. Taylor expanded in angle around 0

                                  \[\leadsto \color{blue}{\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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              Alternative 13: 62.3% accurate, 10.3× speedup?

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

                                1. Initial program 55.3%

                                  \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                2. Add Preprocessing
                                3. Taylor expanded in angle around 0

                                  \[\leadsto \color{blue}{\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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \color{blue}{\left(0.011111111111111112 \cdot \left(angle \cdot \pi\right)\right) \cdot \left(\left(b + a\right) \cdot \left(b - a\right)\right)} \]
                                6. Step-by-step derivation
                                  1. Applied rewrites68.8%

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

                                  if 1.99999999999999993e-64 < (/.f64 angle #s(literal 180 binary64))

                                  1. Initial program 46.3%

                                    \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                  2. Add Preprocessing
                                  3. Taylor expanded in angle around 0

                                    \[\leadsto \color{blue}{\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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                Alternative 14: 38.7% accurate, 11.9× speedup?

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

                                  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. 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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \frac{-1}{90} \cdot \color{blue}{\left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)} \]
                                  7. Step-by-step derivation
                                    1. Applied rewrites39.1%

                                      \[\leadsto -0.011111111111111112 \cdot \color{blue}{\left(\left(\left(a \cdot a\right) \cdot angle\right) \cdot \pi\right)} \]
                                    2. Step-by-step derivation
                                      1. Applied rewrites43.0%

                                        \[\leadsto \left(-0.011111111111111112 \cdot \left(a \cdot \left(a \cdot angle\right)\right)\right) \cdot \pi \]

                                      if 1.99999999999999989e34 < (/.f64 angle #s(literal 180 binary64))

                                      1. Initial program 34.8%

                                        \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in angle around 0

                                        \[\leadsto \color{blue}{\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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \frac{-1}{90} \cdot \color{blue}{\left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)} \]
                                      7. Step-by-step derivation
                                        1. Applied rewrites28.9%

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

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

                                      Alternative 15: 38.6% accurate, 11.9× speedup?

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

                                        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. 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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \frac{-1}{90} \cdot \color{blue}{\left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)} \]
                                        7. Step-by-step derivation
                                          1. Applied rewrites39.1%

                                            \[\leadsto -0.011111111111111112 \cdot \color{blue}{\left(\left(\left(a \cdot a\right) \cdot angle\right) \cdot \pi\right)} \]
                                          2. Step-by-step derivation
                                            1. Applied rewrites43.0%

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

                                            if 1.99999999999999989e34 < (/.f64 angle #s(literal 180 binary64))

                                            1. Initial program 34.8%

                                              \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                            2. Add Preprocessing
                                            3. Taylor expanded in angle around 0

                                              \[\leadsto \color{blue}{\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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                              \[\leadsto \frac{-1}{90} \cdot \color{blue}{\left({a}^{2} \cdot \left(angle \cdot \mathsf{PI}\left(\right)\right)\right)} \]
                                            7. Step-by-step derivation
                                              1. Applied rewrites28.9%

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

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

                                            Alternative 16: 37.3% accurate, 21.6× speedup?

                                            \[\begin{array}{l} angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \left(-0.011111111111111112 \cdot \left(\left(\pi \cdot a\right) \cdot \left(angle \cdot a\right)\right)\right) \end{array} \]
                                            angle\_m = (fabs.f64 angle)
                                            angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                                            (FPCore (angle_s a b angle_m)
                                             :precision binary64
                                             (* angle_s (* -0.011111111111111112 (* (* PI a) (* angle a)))))
                                            angle\_m = fabs(angle);
                                            angle\_s = copysign(1.0, angle);
                                            double code(double angle_s, double a, double b, double angle_m) {
                                            	return angle_s * (-0.011111111111111112 * ((((double) M_PI) * a) * (angle * a)));
                                            }
                                            
                                            angle\_m = Math.abs(angle);
                                            angle\_s = Math.copySign(1.0, angle);
                                            public static double code(double angle_s, double a, double b, double angle_m) {
                                            	return angle_s * (-0.011111111111111112 * ((Math.PI * a) * (angle * a)));
                                            }
                                            
                                            angle\_m = math.fabs(angle)
                                            angle\_s = math.copysign(1.0, angle)
                                            def code(angle_s, a, b, angle_m):
                                            	return angle_s * (-0.011111111111111112 * ((math.pi * a) * (angle * a)))
                                            
                                            angle\_m = abs(angle)
                                            angle\_s = copysign(1.0, angle)
                                            function code(angle_s, a, b, angle_m)
                                            	return Float64(angle_s * Float64(-0.011111111111111112 * Float64(Float64(pi * a) * Float64(angle * a))))
                                            end
                                            
                                            angle\_m = abs(angle);
                                            angle\_s = sign(angle) * abs(1.0);
                                            function tmp = code(angle_s, a, b, angle_m)
                                            	tmp = angle_s * (-0.011111111111111112 * ((pi * a) * (angle * a)));
                                            end
                                            
                                            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_, b_, angle$95$m_] := N[(angle$95$s * N[(-0.011111111111111112 * N[(N[(Pi * a), $MachinePrecision] * N[(angle * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                            
                                            \begin{array}{l}
                                            angle\_m = \left|angle\right|
                                            \\
                                            angle\_s = \mathsf{copysign}\left(1, angle\right)
                                            
                                            \\
                                            angle\_s \cdot \left(-0.011111111111111112 \cdot \left(\left(\pi \cdot a\right) \cdot \left(angle \cdot a\right)\right)\right)
                                            \end{array}
                                            
                                            Derivation
                                            1. Initial program 52.3%

                                              \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                            2. Add Preprocessing
                                            3. Taylor expanded in angle around 0

                                              \[\leadsto \color{blue}{\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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                \[\leadsto -0.011111111111111112 \cdot \color{blue}{\left(\left(\left(a \cdot a\right) \cdot angle\right) \cdot \pi\right)} \]
                                              2. Step-by-step derivation
                                                1. Applied rewrites38.1%

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

                                                  \[\leadsto -0.011111111111111112 \cdot \left(\left(\pi \cdot a\right) \cdot \left(angle \cdot a\right)\right) \]
                                                3. Add Preprocessing

                                                Alternative 17: 37.3% accurate, 21.6× speedup?

                                                \[\begin{array}{l} angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \left(-0.011111111111111112 \cdot \left(a \cdot \left(\pi \cdot \left(angle \cdot a\right)\right)\right)\right) \end{array} \]
                                                angle\_m = (fabs.f64 angle)
                                                angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                                                (FPCore (angle_s a b angle_m)
                                                 :precision binary64
                                                 (* angle_s (* -0.011111111111111112 (* a (* PI (* angle a))))))
                                                angle\_m = fabs(angle);
                                                angle\_s = copysign(1.0, angle);
                                                double code(double angle_s, double a, double b, double angle_m) {
                                                	return angle_s * (-0.011111111111111112 * (a * (((double) M_PI) * (angle * a))));
                                                }
                                                
                                                angle\_m = Math.abs(angle);
                                                angle\_s = Math.copySign(1.0, angle);
                                                public static double code(double angle_s, double a, double b, double angle_m) {
                                                	return angle_s * (-0.011111111111111112 * (a * (Math.PI * (angle * a))));
                                                }
                                                
                                                angle\_m = math.fabs(angle)
                                                angle\_s = math.copysign(1.0, angle)
                                                def code(angle_s, a, b, angle_m):
                                                	return angle_s * (-0.011111111111111112 * (a * (math.pi * (angle * a))))
                                                
                                                angle\_m = abs(angle)
                                                angle\_s = copysign(1.0, angle)
                                                function code(angle_s, a, b, angle_m)
                                                	return Float64(angle_s * Float64(-0.011111111111111112 * Float64(a * Float64(pi * Float64(angle * a)))))
                                                end
                                                
                                                angle\_m = abs(angle);
                                                angle\_s = sign(angle) * abs(1.0);
                                                function tmp = code(angle_s, a, b, angle_m)
                                                	tmp = angle_s * (-0.011111111111111112 * (a * (pi * (angle * a))));
                                                end
                                                
                                                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_, b_, angle$95$m_] := N[(angle$95$s * N[(-0.011111111111111112 * N[(a * N[(Pi * N[(angle * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                                
                                                \begin{array}{l}
                                                angle\_m = \left|angle\right|
                                                \\
                                                angle\_s = \mathsf{copysign}\left(1, angle\right)
                                                
                                                \\
                                                angle\_s \cdot \left(-0.011111111111111112 \cdot \left(a \cdot \left(\pi \cdot \left(angle \cdot a\right)\right)\right)\right)
                                                \end{array}
                                                
                                                Derivation
                                                1. Initial program 52.3%

                                                  \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                2. Add Preprocessing
                                                3. Taylor expanded in angle around 0

                                                  \[\leadsto \color{blue}{\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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto -0.011111111111111112 \cdot \color{blue}{\left(\left(\left(a \cdot a\right) \cdot angle\right) \cdot \pi\right)} \]
                                                  2. Step-by-step derivation
                                                    1. Applied rewrites38.1%

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

                                                      \[\leadsto -0.011111111111111112 \cdot \left(a \cdot \left(\pi \cdot \left(angle \cdot a\right)\right)\right) \]
                                                    3. Add Preprocessing

                                                    Alternative 18: 37.3% accurate, 21.6× speedup?

                                                    \[\begin{array}{l} angle\_m = \left|angle\right| \\ angle\_s = \mathsf{copysign}\left(1, angle\right) \\ angle\_s \cdot \left(-0.011111111111111112 \cdot \left(a \cdot \left(a \cdot \left(angle \cdot \pi\right)\right)\right)\right) \end{array} \]
                                                    angle\_m = (fabs.f64 angle)
                                                    angle\_s = (copysign.f64 #s(literal 1 binary64) angle)
                                                    (FPCore (angle_s a b angle_m)
                                                     :precision binary64
                                                     (* angle_s (* -0.011111111111111112 (* a (* a (* angle PI))))))
                                                    angle\_m = fabs(angle);
                                                    angle\_s = copysign(1.0, angle);
                                                    double code(double angle_s, double a, double b, double angle_m) {
                                                    	return angle_s * (-0.011111111111111112 * (a * (a * (angle * ((double) M_PI)))));
                                                    }
                                                    
                                                    angle\_m = Math.abs(angle);
                                                    angle\_s = Math.copySign(1.0, angle);
                                                    public static double code(double angle_s, double a, double b, double angle_m) {
                                                    	return angle_s * (-0.011111111111111112 * (a * (a * (angle * Math.PI))));
                                                    }
                                                    
                                                    angle\_m = math.fabs(angle)
                                                    angle\_s = math.copysign(1.0, angle)
                                                    def code(angle_s, a, b, angle_m):
                                                    	return angle_s * (-0.011111111111111112 * (a * (a * (angle * math.pi))))
                                                    
                                                    angle\_m = abs(angle)
                                                    angle\_s = copysign(1.0, angle)
                                                    function code(angle_s, a, b, angle_m)
                                                    	return Float64(angle_s * Float64(-0.011111111111111112 * Float64(a * Float64(a * Float64(angle * pi)))))
                                                    end
                                                    
                                                    angle\_m = abs(angle);
                                                    angle\_s = sign(angle) * abs(1.0);
                                                    function tmp = code(angle_s, a, b, angle_m)
                                                    	tmp = angle_s * (-0.011111111111111112 * (a * (a * (angle * pi))));
                                                    end
                                                    
                                                    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_, b_, angle$95$m_] := N[(angle$95$s * N[(-0.011111111111111112 * N[(a * N[(a * N[(angle * Pi), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                                    
                                                    \begin{array}{l}
                                                    angle\_m = \left|angle\right|
                                                    \\
                                                    angle\_s = \mathsf{copysign}\left(1, angle\right)
                                                    
                                                    \\
                                                    angle\_s \cdot \left(-0.011111111111111112 \cdot \left(a \cdot \left(a \cdot \left(angle \cdot \pi\right)\right)\right)\right)
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Initial program 52.3%

                                                      \[\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \cos \left(\pi \cdot \frac{angle}{180}\right) \]
                                                    2. Add Preprocessing
                                                    3. Taylor expanded in angle around 0

                                                      \[\leadsto \color{blue}{\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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        \[\leadsto -0.011111111111111112 \cdot \color{blue}{\left(\left(\left(a \cdot a\right) \cdot angle\right) \cdot \pi\right)} \]
                                                      2. Step-by-step derivation
                                                        1. Applied rewrites38.1%

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

                                                          \[\leadsto -0.011111111111111112 \cdot \left(a \cdot \left(a \cdot \left(angle \cdot \pi\right)\right)\right) \]
                                                        3. Add Preprocessing

                                                        Reproduce

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