ab-angle->ABCF C

Percentage Accurate: 80.0% → 80.0%
Time: 15.8s
Alternatives: 14
Speedup: 1.0×

Specification

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

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

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

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

Alternative 1: 80.0% accurate, 0.5× speedup?

\[\begin{array}{l} angle_m = \left|angle\right| \\ {\left(a \cdot \cos \left({\left(\sqrt{0.005555555555555556 \cdot \left(\sqrt[3]{e^{3 \cdot \log \pi}} \cdot angle\_m\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\_m\right)\right)\right)}^{2} \end{array} \]
angle_m = (fabs.f64 angle)
(FPCore (a b angle_m)
 :precision binary64
 (+
  (pow
   (*
    a
    (cos
     (pow
      (sqrt (* 0.005555555555555556 (* (cbrt (exp (* 3.0 (log PI)))) angle_m)))
      2.0)))
   2.0)
  (pow (* b (sin (* PI (* 0.005555555555555556 angle_m)))) 2.0)))
angle_m = fabs(angle);
double code(double a, double b, double angle_m) {
	return pow((a * cos(pow(sqrt((0.005555555555555556 * (cbrt(exp((3.0 * log(((double) M_PI))))) * angle_m))), 2.0))), 2.0) + pow((b * sin((((double) M_PI) * (0.005555555555555556 * angle_m)))), 2.0);
}
angle_m = Math.abs(angle);
public static double code(double a, double b, double angle_m) {
	return Math.pow((a * Math.cos(Math.pow(Math.sqrt((0.005555555555555556 * (Math.cbrt(Math.exp((3.0 * Math.log(Math.PI)))) * angle_m))), 2.0))), 2.0) + Math.pow((b * Math.sin((Math.PI * (0.005555555555555556 * angle_m)))), 2.0);
}
angle_m = abs(angle)
function code(a, b, angle_m)
	return Float64((Float64(a * cos((sqrt(Float64(0.005555555555555556 * Float64(cbrt(exp(Float64(3.0 * log(pi)))) * angle_m))) ^ 2.0))) ^ 2.0) + (Float64(b * sin(Float64(pi * Float64(0.005555555555555556 * angle_m)))) ^ 2.0))
end
angle_m = N[Abs[angle], $MachinePrecision]
code[a_, b_, angle$95$m_] := N[(N[Power[N[(a * N[Cos[N[Power[N[Sqrt[N[(0.005555555555555556 * N[(N[Power[N[Exp[N[(3.0 * N[Log[Pi], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], 1/3], $MachinePrecision] * angle$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], 2.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(b * N[Sin[N[(Pi * N[(0.005555555555555556 * angle$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
angle_m = \left|angle\right|

\\
{\left(a \cdot \cos \left({\left(\sqrt{0.005555555555555556 \cdot \left(\sqrt[3]{e^{3 \cdot \log \pi}} \cdot angle\_m\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\_m\right)\right)\right)}^{2}
\end{array}
Derivation
  1. Initial program 79.4%

    \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
  2. Step-by-step derivation
    1. Simplified79.4%

      \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. metadata-eval79.4%

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

        \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \color{blue}{\frac{angle}{180}}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
      3. add-sqr-sqrt43.9%

        \[\leadsto {\left(a \cdot \cos \color{blue}{\left(\sqrt{\pi \cdot \frac{angle}{180}} \cdot \sqrt{\pi \cdot \frac{angle}{180}}\right)}\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
      4. pow243.9%

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

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

        \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{\pi \cdot \left(angle \cdot \color{blue}{0.005555555555555556}\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
      7. associate-*r*43.9%

        \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{\color{blue}{\left(\pi \cdot angle\right) \cdot 0.005555555555555556}}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
      8. *-commutative43.9%

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

      \[\leadsto {\left(a \cdot \cos \color{blue}{\left({\left(\sqrt{0.005555555555555556 \cdot \left(\pi \cdot angle\right)}\right)}^{2}\right)}\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
    5. Step-by-step derivation
      1. add-cbrt-cube43.9%

        \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{0.005555555555555556 \cdot \left(\color{blue}{\sqrt[3]{\left(\pi \cdot \pi\right) \cdot \pi}} \cdot angle\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
      2. pow343.9%

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

      \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{0.005555555555555556 \cdot \left(\color{blue}{\sqrt[3]{{\pi}^{3}}} \cdot angle\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
    7. Step-by-step derivation
      1. add-exp-log43.9%

        \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{0.005555555555555556 \cdot \left(\sqrt[3]{\color{blue}{e^{\log \left({\pi}^{3}\right)}}} \cdot angle\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
      2. log-pow43.9%

        \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{0.005555555555555556 \cdot \left(\sqrt[3]{e^{\color{blue}{3 \cdot \log \pi}}} \cdot angle\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
    8. Applied egg-rr43.9%

      \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{0.005555555555555556 \cdot \left(\sqrt[3]{\color{blue}{e^{3 \cdot \log \pi}}} \cdot angle\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
    9. Final simplification43.9%

      \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{0.005555555555555556 \cdot \left(\sqrt[3]{e^{3 \cdot \log \pi}} \cdot angle\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)}^{2} \]
    10. Add Preprocessing

    Alternative 2: 80.0% accurate, 0.5× speedup?

    \[\begin{array}{l} angle_m = \left|angle\right| \\ {\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\_m\right)\right)\right)}^{2} + {\left(a \cdot \cos \left({\left(\sqrt{0.005555555555555556 \cdot \left(angle\_m \cdot \sqrt[3]{{\pi}^{3}}\right)}\right)}^{2}\right)\right)}^{2} \end{array} \]
    angle_m = (fabs.f64 angle)
    (FPCore (a b angle_m)
     :precision binary64
     (+
      (pow (* b (sin (* PI (* 0.005555555555555556 angle_m)))) 2.0)
      (pow
       (*
        a
        (cos
         (pow
          (sqrt (* 0.005555555555555556 (* angle_m (cbrt (pow PI 3.0)))))
          2.0)))
       2.0)))
    angle_m = fabs(angle);
    double code(double a, double b, double angle_m) {
    	return pow((b * sin((((double) M_PI) * (0.005555555555555556 * angle_m)))), 2.0) + pow((a * cos(pow(sqrt((0.005555555555555556 * (angle_m * cbrt(pow(((double) M_PI), 3.0))))), 2.0))), 2.0);
    }
    
    angle_m = Math.abs(angle);
    public static double code(double a, double b, double angle_m) {
    	return Math.pow((b * Math.sin((Math.PI * (0.005555555555555556 * angle_m)))), 2.0) + Math.pow((a * Math.cos(Math.pow(Math.sqrt((0.005555555555555556 * (angle_m * Math.cbrt(Math.pow(Math.PI, 3.0))))), 2.0))), 2.0);
    }
    
    angle_m = abs(angle)
    function code(a, b, angle_m)
    	return Float64((Float64(b * sin(Float64(pi * Float64(0.005555555555555556 * angle_m)))) ^ 2.0) + (Float64(a * cos((sqrt(Float64(0.005555555555555556 * Float64(angle_m * cbrt((pi ^ 3.0))))) ^ 2.0))) ^ 2.0))
    end
    
    angle_m = N[Abs[angle], $MachinePrecision]
    code[a_, b_, angle$95$m_] := N[(N[Power[N[(b * N[Sin[N[(Pi * N[(0.005555555555555556 * angle$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(a * N[Cos[N[Power[N[Sqrt[N[(0.005555555555555556 * N[(angle$95$m * N[Power[N[Power[Pi, 3.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], 2.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]
    
    \begin{array}{l}
    angle_m = \left|angle\right|
    
    \\
    {\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\_m\right)\right)\right)}^{2} + {\left(a \cdot \cos \left({\left(\sqrt{0.005555555555555556 \cdot \left(angle\_m \cdot \sqrt[3]{{\pi}^{3}}\right)}\right)}^{2}\right)\right)}^{2}
    \end{array}
    
    Derivation
    1. Initial program 79.4%

      \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
    2. Step-by-step derivation
      1. Simplified79.4%

        \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. metadata-eval79.4%

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

          \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \color{blue}{\frac{angle}{180}}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
        3. add-sqr-sqrt43.9%

          \[\leadsto {\left(a \cdot \cos \color{blue}{\left(\sqrt{\pi \cdot \frac{angle}{180}} \cdot \sqrt{\pi \cdot \frac{angle}{180}}\right)}\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
        4. pow243.9%

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

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

          \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{\pi \cdot \left(angle \cdot \color{blue}{0.005555555555555556}\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
        7. associate-*r*43.9%

          \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{\color{blue}{\left(\pi \cdot angle\right) \cdot 0.005555555555555556}}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
        8. *-commutative43.9%

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

        \[\leadsto {\left(a \cdot \cos \color{blue}{\left({\left(\sqrt{0.005555555555555556 \cdot \left(\pi \cdot angle\right)}\right)}^{2}\right)}\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
      5. Step-by-step derivation
        1. add-cbrt-cube43.9%

          \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{0.005555555555555556 \cdot \left(\color{blue}{\sqrt[3]{\left(\pi \cdot \pi\right) \cdot \pi}} \cdot angle\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
        2. pow343.9%

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

        \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{0.005555555555555556 \cdot \left(\color{blue}{\sqrt[3]{{\pi}^{3}}} \cdot angle\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
      7. Final simplification43.9%

        \[\leadsto {\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)}^{2} + {\left(a \cdot \cos \left({\left(\sqrt{0.005555555555555556 \cdot \left(angle \cdot \sqrt[3]{{\pi}^{3}}\right)}\right)}^{2}\right)\right)}^{2} \]
      8. Add Preprocessing

      Alternative 3: 80.0% accurate, 0.7× speedup?

      \[\begin{array}{l} angle_m = \left|angle\right| \\ {\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\_m\right)\right)\right)}^{2} + {\left(a \cdot \cos \left({\left(\sqrt{0.005555555555555556 \cdot \left(\pi \cdot angle\_m\right)}\right)}^{2}\right)\right)}^{2} \end{array} \]
      angle_m = (fabs.f64 angle)
      (FPCore (a b angle_m)
       :precision binary64
       (+
        (pow (* b (sin (* PI (* 0.005555555555555556 angle_m)))) 2.0)
        (pow
         (* a (cos (pow (sqrt (* 0.005555555555555556 (* PI angle_m))) 2.0)))
         2.0)))
      angle_m = fabs(angle);
      double code(double a, double b, double angle_m) {
      	return pow((b * sin((((double) M_PI) * (0.005555555555555556 * angle_m)))), 2.0) + pow((a * cos(pow(sqrt((0.005555555555555556 * (((double) M_PI) * angle_m))), 2.0))), 2.0);
      }
      
      angle_m = Math.abs(angle);
      public static double code(double a, double b, double angle_m) {
      	return Math.pow((b * Math.sin((Math.PI * (0.005555555555555556 * angle_m)))), 2.0) + Math.pow((a * Math.cos(Math.pow(Math.sqrt((0.005555555555555556 * (Math.PI * angle_m))), 2.0))), 2.0);
      }
      
      angle_m = math.fabs(angle)
      def code(a, b, angle_m):
      	return math.pow((b * math.sin((math.pi * (0.005555555555555556 * angle_m)))), 2.0) + math.pow((a * math.cos(math.pow(math.sqrt((0.005555555555555556 * (math.pi * angle_m))), 2.0))), 2.0)
      
      angle_m = abs(angle)
      function code(a, b, angle_m)
      	return Float64((Float64(b * sin(Float64(pi * Float64(0.005555555555555556 * angle_m)))) ^ 2.0) + (Float64(a * cos((sqrt(Float64(0.005555555555555556 * Float64(pi * angle_m))) ^ 2.0))) ^ 2.0))
      end
      
      angle_m = abs(angle);
      function tmp = code(a, b, angle_m)
      	tmp = ((b * sin((pi * (0.005555555555555556 * angle_m)))) ^ 2.0) + ((a * cos((sqrt((0.005555555555555556 * (pi * angle_m))) ^ 2.0))) ^ 2.0);
      end
      
      angle_m = N[Abs[angle], $MachinePrecision]
      code[a_, b_, angle$95$m_] := N[(N[Power[N[(b * N[Sin[N[(Pi * N[(0.005555555555555556 * angle$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(a * N[Cos[N[Power[N[Sqrt[N[(0.005555555555555556 * N[(Pi * angle$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], 2.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]
      
      \begin{array}{l}
      angle_m = \left|angle\right|
      
      \\
      {\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\_m\right)\right)\right)}^{2} + {\left(a \cdot \cos \left({\left(\sqrt{0.005555555555555556 \cdot \left(\pi \cdot angle\_m\right)}\right)}^{2}\right)\right)}^{2}
      \end{array}
      
      Derivation
      1. Initial program 79.4%

        \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
      2. Step-by-step derivation
        1. Simplified79.4%

          \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
        2. Add Preprocessing
        3. Step-by-step derivation
          1. metadata-eval79.4%

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

            \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \color{blue}{\frac{angle}{180}}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
          3. add-sqr-sqrt43.9%

            \[\leadsto {\left(a \cdot \cos \color{blue}{\left(\sqrt{\pi \cdot \frac{angle}{180}} \cdot \sqrt{\pi \cdot \frac{angle}{180}}\right)}\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
          4. pow243.9%

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

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

            \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{\pi \cdot \left(angle \cdot \color{blue}{0.005555555555555556}\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
          7. associate-*r*43.9%

            \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{\color{blue}{\left(\pi \cdot angle\right) \cdot 0.005555555555555556}}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
          8. *-commutative43.9%

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

          \[\leadsto {\left(a \cdot \cos \color{blue}{\left({\left(\sqrt{0.005555555555555556 \cdot \left(\pi \cdot angle\right)}\right)}^{2}\right)}\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
        5. Final simplification43.9%

          \[\leadsto {\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)}^{2} + {\left(a \cdot \cos \left({\left(\sqrt{0.005555555555555556 \cdot \left(\pi \cdot angle\right)}\right)}^{2}\right)\right)}^{2} \]
        6. Add Preprocessing

        Alternative 4: 80.0% accurate, 0.7× speedup?

        \[\begin{array}{l} angle_m = \left|angle\right| \\ {\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\_m\right)\right)\right)}^{2} + {\left(a \cdot \cos \left(\left(0.005555555555555556 \cdot angle\_m\right) \cdot \sqrt[3]{{\pi}^{3}}\right)\right)}^{2} \end{array} \]
        angle_m = (fabs.f64 angle)
        (FPCore (a b angle_m)
         :precision binary64
         (+
          (pow (* b (sin (* PI (* 0.005555555555555556 angle_m)))) 2.0)
          (pow
           (* a (cos (* (* 0.005555555555555556 angle_m) (cbrt (pow PI 3.0)))))
           2.0)))
        angle_m = fabs(angle);
        double code(double a, double b, double angle_m) {
        	return pow((b * sin((((double) M_PI) * (0.005555555555555556 * angle_m)))), 2.0) + pow((a * cos(((0.005555555555555556 * angle_m) * cbrt(pow(((double) M_PI), 3.0))))), 2.0);
        }
        
        angle_m = Math.abs(angle);
        public static double code(double a, double b, double angle_m) {
        	return Math.pow((b * Math.sin((Math.PI * (0.005555555555555556 * angle_m)))), 2.0) + Math.pow((a * Math.cos(((0.005555555555555556 * angle_m) * Math.cbrt(Math.pow(Math.PI, 3.0))))), 2.0);
        }
        
        angle_m = abs(angle)
        function code(a, b, angle_m)
        	return Float64((Float64(b * sin(Float64(pi * Float64(0.005555555555555556 * angle_m)))) ^ 2.0) + (Float64(a * cos(Float64(Float64(0.005555555555555556 * angle_m) * cbrt((pi ^ 3.0))))) ^ 2.0))
        end
        
        angle_m = N[Abs[angle], $MachinePrecision]
        code[a_, b_, angle$95$m_] := N[(N[Power[N[(b * N[Sin[N[(Pi * N[(0.005555555555555556 * angle$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(a * N[Cos[N[(N[(0.005555555555555556 * angle$95$m), $MachinePrecision] * N[Power[N[Power[Pi, 3.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]
        
        \begin{array}{l}
        angle_m = \left|angle\right|
        
        \\
        {\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\_m\right)\right)\right)}^{2} + {\left(a \cdot \cos \left(\left(0.005555555555555556 \cdot angle\_m\right) \cdot \sqrt[3]{{\pi}^{3}}\right)\right)}^{2}
        \end{array}
        
        Derivation
        1. Initial program 79.4%

          \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
        2. Step-by-step derivation
          1. Simplified79.4%

            \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. metadata-eval79.4%

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

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

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

              \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + \left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \color{blue}{\left(\sin \left(\pi \cdot \frac{angle}{180}\right) \cdot b\right)} \]
            5. associate-*r*77.8%

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

            \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + \color{blue}{\left(\left(b \cdot \sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right) \cdot \sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right) \cdot b} \]
          5. Step-by-step derivation
            1. add-cbrt-cube43.9%

              \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{0.005555555555555556 \cdot \left(\color{blue}{\sqrt[3]{\left(\pi \cdot \pi\right) \cdot \pi}} \cdot angle\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
            2. pow343.9%

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

            \[\leadsto {\left(a \cdot \cos \left(\color{blue}{\sqrt[3]{{\pi}^{3}}} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + \left(\left(b \cdot \sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right) \cdot \sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right) \cdot b \]
          7. Step-by-step derivation
            1. associate-*l*79.4%

              \[\leadsto {\left(a \cdot \cos \left(\sqrt[3]{{\pi}^{3}} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + \color{blue}{\left(b \cdot \sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right) \cdot \left(\sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right) \cdot b\right)} \]
            2. *-commutative79.4%

              \[\leadsto {\left(a \cdot \cos \left(\sqrt[3]{{\pi}^{3}} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + \left(b \cdot \sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right) \cdot \color{blue}{\left(b \cdot \sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right)} \]
            3. pow279.4%

              \[\leadsto {\left(a \cdot \cos \left(\sqrt[3]{{\pi}^{3}} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + \color{blue}{{\left(b \cdot \sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right)}^{2}} \]
            4. unpow-prod-down70.4%

              \[\leadsto {\left(a \cdot \cos \left(\sqrt[3]{{\pi}^{3}} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + \color{blue}{{b}^{2} \cdot {\sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)}^{2}} \]
            5. *-commutative70.4%

              \[\leadsto {\left(a \cdot \cos \left(\sqrt[3]{{\pi}^{3}} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {b}^{2} \cdot {\sin \color{blue}{\left(\left(\pi \cdot angle\right) \cdot 0.005555555555555556\right)}}^{2} \]
            6. associate-*r*70.5%

              \[\leadsto {\left(a \cdot \cos \left(\sqrt[3]{{\pi}^{3}} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {b}^{2} \cdot {\sin \color{blue}{\left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)}}^{2} \]
            7. unpow-prod-down79.5%

              \[\leadsto {\left(a \cdot \cos \left(\sqrt[3]{{\pi}^{3}} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + \color{blue}{{\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
            8. add-sqr-sqrt79.5%

              \[\leadsto {\left(a \cdot \cos \left(\sqrt[3]{{\pi}^{3}} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + \color{blue}{\sqrt{{\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \cdot \sqrt{{\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}}} \]
            9. pow279.5%

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

            \[\leadsto {\left(a \cdot \cos \left(\sqrt[3]{{\pi}^{3}} \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + \color{blue}{{\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)}^{2}} \]
          9. Final simplification79.5%

            \[\leadsto {\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)}^{2} + {\left(a \cdot \cos \left(\left(0.005555555555555556 \cdot angle\right) \cdot \sqrt[3]{{\pi}^{3}}\right)\right)}^{2} \]
          10. Add Preprocessing

          Alternative 5: 80.0% accurate, 0.7× speedup?

          \[\begin{array}{l} angle_m = \left|angle\right| \\ {\left(a \cdot \cos \left(\pi \cdot \left(0.005555555555555556 \cdot angle\_m\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\mathsf{expm1}\left(\mathsf{log1p}\left(0.005555555555555556 \cdot \left(\pi \cdot angle\_m\right)\right)\right)\right)\right)}^{2} \end{array} \]
          angle_m = (fabs.f64 angle)
          (FPCore (a b angle_m)
           :precision binary64
           (+
            (pow (* a (cos (* PI (* 0.005555555555555556 angle_m)))) 2.0)
            (pow
             (* b (sin (expm1 (log1p (* 0.005555555555555556 (* PI angle_m))))))
             2.0)))
          angle_m = fabs(angle);
          double code(double a, double b, double angle_m) {
          	return pow((a * cos((((double) M_PI) * (0.005555555555555556 * angle_m)))), 2.0) + pow((b * sin(expm1(log1p((0.005555555555555556 * (((double) M_PI) * angle_m)))))), 2.0);
          }
          
          angle_m = Math.abs(angle);
          public static double code(double a, double b, double angle_m) {
          	return Math.pow((a * Math.cos((Math.PI * (0.005555555555555556 * angle_m)))), 2.0) + Math.pow((b * Math.sin(Math.expm1(Math.log1p((0.005555555555555556 * (Math.PI * angle_m)))))), 2.0);
          }
          
          angle_m = math.fabs(angle)
          def code(a, b, angle_m):
          	return math.pow((a * math.cos((math.pi * (0.005555555555555556 * angle_m)))), 2.0) + math.pow((b * math.sin(math.expm1(math.log1p((0.005555555555555556 * (math.pi * angle_m)))))), 2.0)
          
          angle_m = abs(angle)
          function code(a, b, angle_m)
          	return Float64((Float64(a * cos(Float64(pi * Float64(0.005555555555555556 * angle_m)))) ^ 2.0) + (Float64(b * sin(expm1(log1p(Float64(0.005555555555555556 * Float64(pi * angle_m)))))) ^ 2.0))
          end
          
          angle_m = N[Abs[angle], $MachinePrecision]
          code[a_, b_, angle$95$m_] := N[(N[Power[N[(a * N[Cos[N[(Pi * N[(0.005555555555555556 * angle$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(b * N[Sin[N[(Exp[N[Log[1 + N[(0.005555555555555556 * N[(Pi * angle$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]] - 1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]
          
          \begin{array}{l}
          angle_m = \left|angle\right|
          
          \\
          {\left(a \cdot \cos \left(\pi \cdot \left(0.005555555555555556 \cdot angle\_m\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\mathsf{expm1}\left(\mathsf{log1p}\left(0.005555555555555556 \cdot \left(\pi \cdot angle\_m\right)\right)\right)\right)\right)}^{2}
          \end{array}
          
          Derivation
          1. Initial program 79.4%

            \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
          2. Step-by-step derivation
            1. Simplified79.4%

              \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
            2. Add Preprocessing
            3. Step-by-step derivation
              1. expm1-log1p-u65.3%

                \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \color{blue}{\left(\mathsf{expm1}\left(\mathsf{log1p}\left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)\right)}\right)}^{2} \]
              2. associate-*r*65.3%

                \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\mathsf{expm1}\left(\mathsf{log1p}\left(\color{blue}{\left(\pi \cdot angle\right) \cdot 0.005555555555555556}\right)\right)\right)\right)}^{2} \]
              3. *-commutative65.3%

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

              \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \color{blue}{\left(\mathsf{expm1}\left(\mathsf{log1p}\left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right)\right)}\right)}^{2} \]
            5. Final simplification65.3%

              \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\mathsf{expm1}\left(\mathsf{log1p}\left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right)\right)\right)}^{2} \]
            6. Add Preprocessing

            Alternative 6: 80.0% accurate, 1.0× speedup?

            \[\begin{array}{l} angle_m = \left|angle\right| \\ \begin{array}{l} t_0 := \pi \cdot \left(0.005555555555555556 \cdot angle\_m\right)\\ {\left(b \cdot \sin t\_0\right)}^{2} + {\left(a \cdot \cos t\_0\right)}^{2} \end{array} \end{array} \]
            angle_m = (fabs.f64 angle)
            (FPCore (a b angle_m)
             :precision binary64
             (let* ((t_0 (* PI (* 0.005555555555555556 angle_m))))
               (+ (pow (* b (sin t_0)) 2.0) (pow (* a (cos t_0)) 2.0))))
            angle_m = fabs(angle);
            double code(double a, double b, double angle_m) {
            	double t_0 = ((double) M_PI) * (0.005555555555555556 * angle_m);
            	return pow((b * sin(t_0)), 2.0) + pow((a * cos(t_0)), 2.0);
            }
            
            angle_m = Math.abs(angle);
            public static double code(double a, double b, double angle_m) {
            	double t_0 = Math.PI * (0.005555555555555556 * angle_m);
            	return Math.pow((b * Math.sin(t_0)), 2.0) + Math.pow((a * Math.cos(t_0)), 2.0);
            }
            
            angle_m = math.fabs(angle)
            def code(a, b, angle_m):
            	t_0 = math.pi * (0.005555555555555556 * angle_m)
            	return math.pow((b * math.sin(t_0)), 2.0) + math.pow((a * math.cos(t_0)), 2.0)
            
            angle_m = abs(angle)
            function code(a, b, angle_m)
            	t_0 = Float64(pi * Float64(0.005555555555555556 * angle_m))
            	return Float64((Float64(b * sin(t_0)) ^ 2.0) + (Float64(a * cos(t_0)) ^ 2.0))
            end
            
            angle_m = abs(angle);
            function tmp = code(a, b, angle_m)
            	t_0 = pi * (0.005555555555555556 * angle_m);
            	tmp = ((b * sin(t_0)) ^ 2.0) + ((a * cos(t_0)) ^ 2.0);
            end
            
            angle_m = N[Abs[angle], $MachinePrecision]
            code[a_, b_, angle$95$m_] := Block[{t$95$0 = N[(Pi * N[(0.005555555555555556 * angle$95$m), $MachinePrecision]), $MachinePrecision]}, N[(N[Power[N[(b * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(a * N[Cos[t$95$0], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]
            
            \begin{array}{l}
            angle_m = \left|angle\right|
            
            \\
            \begin{array}{l}
            t_0 := \pi \cdot \left(0.005555555555555556 \cdot angle\_m\right)\\
            {\left(b \cdot \sin t\_0\right)}^{2} + {\left(a \cdot \cos t\_0\right)}^{2}
            \end{array}
            \end{array}
            
            Derivation
            1. Initial program 79.4%

              \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
            2. Step-by-step derivation
              1. Simplified79.4%

                \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
              2. Add Preprocessing
              3. Final simplification79.4%

                \[\leadsto {\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)}^{2} + {\left(a \cdot \cos \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)}^{2} \]
              4. Add Preprocessing

              Alternative 7: 80.0% accurate, 1.0× speedup?

              \[\begin{array}{l} angle_m = \left|angle\right| \\ \begin{array}{l} t_0 := \pi \cdot \left(0.005555555555555556 \cdot angle\_m\right)\\ {\left(\mathsf{hypot}\left(b \cdot \sin t\_0, a \cdot \cos t\_0\right)\right)}^{2} \end{array} \end{array} \]
              angle_m = (fabs.f64 angle)
              (FPCore (a b angle_m)
               :precision binary64
               (let* ((t_0 (* PI (* 0.005555555555555556 angle_m))))
                 (pow (hypot (* b (sin t_0)) (* a (cos t_0))) 2.0)))
              angle_m = fabs(angle);
              double code(double a, double b, double angle_m) {
              	double t_0 = ((double) M_PI) * (0.005555555555555556 * angle_m);
              	return pow(hypot((b * sin(t_0)), (a * cos(t_0))), 2.0);
              }
              
              angle_m = Math.abs(angle);
              public static double code(double a, double b, double angle_m) {
              	double t_0 = Math.PI * (0.005555555555555556 * angle_m);
              	return Math.pow(Math.hypot((b * Math.sin(t_0)), (a * Math.cos(t_0))), 2.0);
              }
              
              angle_m = math.fabs(angle)
              def code(a, b, angle_m):
              	t_0 = math.pi * (0.005555555555555556 * angle_m)
              	return math.pow(math.hypot((b * math.sin(t_0)), (a * math.cos(t_0))), 2.0)
              
              angle_m = abs(angle)
              function code(a, b, angle_m)
              	t_0 = Float64(pi * Float64(0.005555555555555556 * angle_m))
              	return hypot(Float64(b * sin(t_0)), Float64(a * cos(t_0))) ^ 2.0
              end
              
              angle_m = abs(angle);
              function tmp = code(a, b, angle_m)
              	t_0 = pi * (0.005555555555555556 * angle_m);
              	tmp = hypot((b * sin(t_0)), (a * cos(t_0))) ^ 2.0;
              end
              
              angle_m = N[Abs[angle], $MachinePrecision]
              code[a_, b_, angle$95$m_] := Block[{t$95$0 = N[(Pi * N[(0.005555555555555556 * angle$95$m), $MachinePrecision]), $MachinePrecision]}, N[Power[N[Sqrt[N[(b * N[Sin[t$95$0], $MachinePrecision]), $MachinePrecision] ^ 2 + N[(a * N[Cos[t$95$0], $MachinePrecision]), $MachinePrecision] ^ 2], $MachinePrecision], 2.0], $MachinePrecision]]
              
              \begin{array}{l}
              angle_m = \left|angle\right|
              
              \\
              \begin{array}{l}
              t_0 := \pi \cdot \left(0.005555555555555556 \cdot angle\_m\right)\\
              {\left(\mathsf{hypot}\left(b \cdot \sin t\_0, a \cdot \cos t\_0\right)\right)}^{2}
              \end{array}
              \end{array}
              
              Derivation
              1. Initial program 79.4%

                \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
              2. Step-by-step derivation
                1. Simplified79.4%

                  \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
                2. Add Preprocessing
                3. Step-by-step derivation
                  1. metadata-eval79.4%

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

                    \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \color{blue}{\frac{angle}{180}}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                  3. add-sqr-sqrt43.9%

                    \[\leadsto {\left(a \cdot \cos \color{blue}{\left(\sqrt{\pi \cdot \frac{angle}{180}} \cdot \sqrt{\pi \cdot \frac{angle}{180}}\right)}\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                  4. pow243.9%

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

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

                    \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{\pi \cdot \left(angle \cdot \color{blue}{0.005555555555555556}\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                  7. associate-*r*43.9%

                    \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{\color{blue}{\left(\pi \cdot angle\right) \cdot 0.005555555555555556}}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                  8. *-commutative43.9%

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

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

                  \[\leadsto \color{blue}{{\left(\mathsf{hypot}\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right), a \cdot \cos \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)\right)}^{2}} \]
                6. Add Preprocessing

                Alternative 8: 79.9% accurate, 1.3× speedup?

                \[\begin{array}{l} angle_m = \left|angle\right| \\ {\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\_m\right)\right)\right)}^{2} + {a}^{2} \end{array} \]
                angle_m = (fabs.f64 angle)
                (FPCore (a b angle_m)
                 :precision binary64
                 (+ (pow (* b (sin (* PI (* 0.005555555555555556 angle_m)))) 2.0) (pow a 2.0)))
                angle_m = fabs(angle);
                double code(double a, double b, double angle_m) {
                	return pow((b * sin((((double) M_PI) * (0.005555555555555556 * angle_m)))), 2.0) + pow(a, 2.0);
                }
                
                angle_m = Math.abs(angle);
                public static double code(double a, double b, double angle_m) {
                	return Math.pow((b * Math.sin((Math.PI * (0.005555555555555556 * angle_m)))), 2.0) + Math.pow(a, 2.0);
                }
                
                angle_m = math.fabs(angle)
                def code(a, b, angle_m):
                	return math.pow((b * math.sin((math.pi * (0.005555555555555556 * angle_m)))), 2.0) + math.pow(a, 2.0)
                
                angle_m = abs(angle)
                function code(a, b, angle_m)
                	return Float64((Float64(b * sin(Float64(pi * Float64(0.005555555555555556 * angle_m)))) ^ 2.0) + (a ^ 2.0))
                end
                
                angle_m = abs(angle);
                function tmp = code(a, b, angle_m)
                	tmp = ((b * sin((pi * (0.005555555555555556 * angle_m)))) ^ 2.0) + (a ^ 2.0);
                end
                
                angle_m = N[Abs[angle], $MachinePrecision]
                code[a_, b_, angle$95$m_] := N[(N[Power[N[(b * N[Sin[N[(Pi * N[(0.005555555555555556 * angle$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[a, 2.0], $MachinePrecision]), $MachinePrecision]
                
                \begin{array}{l}
                angle_m = \left|angle\right|
                
                \\
                {\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\_m\right)\right)\right)}^{2} + {a}^{2}
                \end{array}
                
                Derivation
                1. Initial program 79.4%

                  \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
                2. Step-by-step derivation
                  1. Simplified79.4%

                    \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
                  2. Add Preprocessing
                  3. Taylor expanded in angle around 0 78.6%

                    \[\leadsto {\color{blue}{a}}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                  4. Final simplification78.6%

                    \[\leadsto {\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)}^{2} + {a}^{2} \]
                  5. Add Preprocessing

                  Alternative 9: 53.1% accurate, 2.0× speedup?

                  \[\begin{array}{l} angle_m = \left|angle\right| \\ \begin{array}{l} \mathbf{if}\;a \leq 1.55 \cdot 10^{-32}:\\ \;\;\;\;{\left(b \cdot \sin \left(angle\_m \cdot \left(0.005555555555555556 \cdot \pi\right)\right)\right)}^{2}\\ \mathbf{else}:\\ \;\;\;\;{\left(a \cdot \cos \left(angle\_m \cdot \left(\pi \cdot -0.005555555555555556\right)\right)\right)}^{2}\\ \end{array} \end{array} \]
                  angle_m = (fabs.f64 angle)
                  (FPCore (a b angle_m)
                   :precision binary64
                   (if (<= a 1.55e-32)
                     (pow (* b (sin (* angle_m (* 0.005555555555555556 PI)))) 2.0)
                     (pow (* a (cos (* angle_m (* PI -0.005555555555555556)))) 2.0)))
                  angle_m = fabs(angle);
                  double code(double a, double b, double angle_m) {
                  	double tmp;
                  	if (a <= 1.55e-32) {
                  		tmp = pow((b * sin((angle_m * (0.005555555555555556 * ((double) M_PI))))), 2.0);
                  	} else {
                  		tmp = pow((a * cos((angle_m * (((double) M_PI) * -0.005555555555555556)))), 2.0);
                  	}
                  	return tmp;
                  }
                  
                  angle_m = Math.abs(angle);
                  public static double code(double a, double b, double angle_m) {
                  	double tmp;
                  	if (a <= 1.55e-32) {
                  		tmp = Math.pow((b * Math.sin((angle_m * (0.005555555555555556 * Math.PI)))), 2.0);
                  	} else {
                  		tmp = Math.pow((a * Math.cos((angle_m * (Math.PI * -0.005555555555555556)))), 2.0);
                  	}
                  	return tmp;
                  }
                  
                  angle_m = math.fabs(angle)
                  def code(a, b, angle_m):
                  	tmp = 0
                  	if a <= 1.55e-32:
                  		tmp = math.pow((b * math.sin((angle_m * (0.005555555555555556 * math.pi)))), 2.0)
                  	else:
                  		tmp = math.pow((a * math.cos((angle_m * (math.pi * -0.005555555555555556)))), 2.0)
                  	return tmp
                  
                  angle_m = abs(angle)
                  function code(a, b, angle_m)
                  	tmp = 0.0
                  	if (a <= 1.55e-32)
                  		tmp = Float64(b * sin(Float64(angle_m * Float64(0.005555555555555556 * pi)))) ^ 2.0;
                  	else
                  		tmp = Float64(a * cos(Float64(angle_m * Float64(pi * -0.005555555555555556)))) ^ 2.0;
                  	end
                  	return tmp
                  end
                  
                  angle_m = abs(angle);
                  function tmp_2 = code(a, b, angle_m)
                  	tmp = 0.0;
                  	if (a <= 1.55e-32)
                  		tmp = (b * sin((angle_m * (0.005555555555555556 * pi)))) ^ 2.0;
                  	else
                  		tmp = (a * cos((angle_m * (pi * -0.005555555555555556)))) ^ 2.0;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  angle_m = N[Abs[angle], $MachinePrecision]
                  code[a_, b_, angle$95$m_] := If[LessEqual[a, 1.55e-32], N[Power[N[(b * N[Sin[N[(angle$95$m * N[(0.005555555555555556 * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], N[Power[N[(a * N[Cos[N[(angle$95$m * N[(Pi * -0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]]
                  
                  \begin{array}{l}
                  angle_m = \left|angle\right|
                  
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;a \leq 1.55 \cdot 10^{-32}:\\
                  \;\;\;\;{\left(b \cdot \sin \left(angle\_m \cdot \left(0.005555555555555556 \cdot \pi\right)\right)\right)}^{2}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;{\left(a \cdot \cos \left(angle\_m \cdot \left(\pi \cdot -0.005555555555555556\right)\right)\right)}^{2}\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if a < 1.55000000000000005e-32

                    1. Initial program 75.7%

                      \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
                    2. Step-by-step derivation
                      1. Simplified75.8%

                        \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
                      2. Add Preprocessing
                      3. Step-by-step derivation
                        1. metadata-eval75.8%

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

                          \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \color{blue}{\frac{angle}{180}}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                        3. add-sqr-sqrt40.0%

                          \[\leadsto {\left(a \cdot \cos \color{blue}{\left(\sqrt{\pi \cdot \frac{angle}{180}} \cdot \sqrt{\pi \cdot \frac{angle}{180}}\right)}\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                        4. pow240.0%

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

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

                          \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{\pi \cdot \left(angle \cdot \color{blue}{0.005555555555555556}\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                        7. associate-*r*40.0%

                          \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{\color{blue}{\left(\pi \cdot angle\right) \cdot 0.005555555555555556}}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                        8. *-commutative40.0%

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

                        \[\leadsto {\left(a \cdot \cos \color{blue}{\left({\left(\sqrt{0.005555555555555556 \cdot \left(\pi \cdot angle\right)}\right)}^{2}\right)}\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                      5. Taylor expanded in a around 0 45.0%

                        \[\leadsto \color{blue}{{b}^{2} \cdot {\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}} \]
                      6. Step-by-step derivation
                        1. unpow245.0%

                          \[\leadsto \color{blue}{\left(b \cdot b\right)} \cdot {\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2} \]
                        2. associate-*r*45.1%

                          \[\leadsto \left(b \cdot b\right) \cdot {\sin \color{blue}{\left(\left(0.005555555555555556 \cdot angle\right) \cdot \pi\right)}}^{2} \]
                        3. *-commutative45.1%

                          \[\leadsto \left(b \cdot b\right) \cdot {\sin \color{blue}{\left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)}}^{2} \]
                        4. unpow245.1%

                          \[\leadsto \left(b \cdot b\right) \cdot \color{blue}{\left(\sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right) \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)} \]
                        5. swap-sqr49.5%

                          \[\leadsto \color{blue}{\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right) \cdot \left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)} \]
                        6. unpow249.5%

                          \[\leadsto \color{blue}{{\left(b \cdot \sin \left(\pi \cdot \left(0.005555555555555556 \cdot angle\right)\right)\right)}^{2}} \]
                        7. *-commutative49.5%

                          \[\leadsto {\left(b \cdot \sin \color{blue}{\left(\left(0.005555555555555556 \cdot angle\right) \cdot \pi\right)}\right)}^{2} \]
                        8. *-commutative49.5%

                          \[\leadsto {\left(b \cdot \sin \left(\color{blue}{\left(angle \cdot 0.005555555555555556\right)} \cdot \pi\right)\right)}^{2} \]
                        9. associate-*r*49.5%

                          \[\leadsto {\left(b \cdot \sin \color{blue}{\left(angle \cdot \left(0.005555555555555556 \cdot \pi\right)\right)}\right)}^{2} \]
                      7. Simplified49.5%

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

                      if 1.55000000000000005e-32 < a

                      1. Initial program 88.0%

                        \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
                      2. Step-by-step derivation
                        1. Simplified87.9%

                          \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
                        2. Add Preprocessing
                        3. Step-by-step derivation
                          1. metadata-eval87.9%

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

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

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

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

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

                            \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{\pi \cdot \left(angle \cdot \color{blue}{0.005555555555555556}\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                          7. associate-*r*53.1%

                            \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{\color{blue}{\left(\pi \cdot angle\right) \cdot 0.005555555555555556}}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                          8. *-commutative53.1%

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

                          \[\leadsto {\left(a \cdot \cos \color{blue}{\left({\left(\sqrt{0.005555555555555556 \cdot \left(\pi \cdot angle\right)}\right)}^{2}\right)}\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                        5. Taylor expanded in a around inf 74.7%

                          \[\leadsto \color{blue}{{a}^{2} \cdot {\cos \left(angle \cdot \left(\pi \cdot {\left(\sqrt{0.005555555555555556}\right)}^{2}\right)\right)}^{2}} \]
                        6. Simplified74.7%

                          \[\leadsto \color{blue}{{\left(a \cdot \cos \left(angle \cdot \left(\pi \cdot -0.005555555555555556\right)\right)\right)}^{2}} \]
                      3. Recombined 2 regimes into one program.
                      4. Add Preprocessing

                      Alternative 10: 53.1% accurate, 2.0× speedup?

                      \[\begin{array}{l} angle_m = \left|angle\right| \\ \begin{array}{l} \mathbf{if}\;a \leq 1.4 \cdot 10^{-32}:\\ \;\;\;\;{\left(b \cdot \sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\_m\right)\right)\right)}^{2}\\ \mathbf{else}:\\ \;\;\;\;{\left(a \cdot \cos \left(angle\_m \cdot \left(\pi \cdot -0.005555555555555556\right)\right)\right)}^{2}\\ \end{array} \end{array} \]
                      angle_m = (fabs.f64 angle)
                      (FPCore (a b angle_m)
                       :precision binary64
                       (if (<= a 1.4e-32)
                         (pow (* b (sin (* 0.005555555555555556 (* PI angle_m)))) 2.0)
                         (pow (* a (cos (* angle_m (* PI -0.005555555555555556)))) 2.0)))
                      angle_m = fabs(angle);
                      double code(double a, double b, double angle_m) {
                      	double tmp;
                      	if (a <= 1.4e-32) {
                      		tmp = pow((b * sin((0.005555555555555556 * (((double) M_PI) * angle_m)))), 2.0);
                      	} else {
                      		tmp = pow((a * cos((angle_m * (((double) M_PI) * -0.005555555555555556)))), 2.0);
                      	}
                      	return tmp;
                      }
                      
                      angle_m = Math.abs(angle);
                      public static double code(double a, double b, double angle_m) {
                      	double tmp;
                      	if (a <= 1.4e-32) {
                      		tmp = Math.pow((b * Math.sin((0.005555555555555556 * (Math.PI * angle_m)))), 2.0);
                      	} else {
                      		tmp = Math.pow((a * Math.cos((angle_m * (Math.PI * -0.005555555555555556)))), 2.0);
                      	}
                      	return tmp;
                      }
                      
                      angle_m = math.fabs(angle)
                      def code(a, b, angle_m):
                      	tmp = 0
                      	if a <= 1.4e-32:
                      		tmp = math.pow((b * math.sin((0.005555555555555556 * (math.pi * angle_m)))), 2.0)
                      	else:
                      		tmp = math.pow((a * math.cos((angle_m * (math.pi * -0.005555555555555556)))), 2.0)
                      	return tmp
                      
                      angle_m = abs(angle)
                      function code(a, b, angle_m)
                      	tmp = 0.0
                      	if (a <= 1.4e-32)
                      		tmp = Float64(b * sin(Float64(0.005555555555555556 * Float64(pi * angle_m)))) ^ 2.0;
                      	else
                      		tmp = Float64(a * cos(Float64(angle_m * Float64(pi * -0.005555555555555556)))) ^ 2.0;
                      	end
                      	return tmp
                      end
                      
                      angle_m = abs(angle);
                      function tmp_2 = code(a, b, angle_m)
                      	tmp = 0.0;
                      	if (a <= 1.4e-32)
                      		tmp = (b * sin((0.005555555555555556 * (pi * angle_m)))) ^ 2.0;
                      	else
                      		tmp = (a * cos((angle_m * (pi * -0.005555555555555556)))) ^ 2.0;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      angle_m = N[Abs[angle], $MachinePrecision]
                      code[a_, b_, angle$95$m_] := If[LessEqual[a, 1.4e-32], N[Power[N[(b * N[Sin[N[(0.005555555555555556 * N[(Pi * angle$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], N[Power[N[(a * N[Cos[N[(angle$95$m * N[(Pi * -0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]]
                      
                      \begin{array}{l}
                      angle_m = \left|angle\right|
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;a \leq 1.4 \cdot 10^{-32}:\\
                      \;\;\;\;{\left(b \cdot \sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\_m\right)\right)\right)}^{2}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;{\left(a \cdot \cos \left(angle\_m \cdot \left(\pi \cdot -0.005555555555555556\right)\right)\right)}^{2}\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if a < 1.3999999999999999e-32

                        1. Initial program 75.7%

                          \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
                        2. Step-by-step derivation
                          1. Simplified75.8%

                            \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
                          2. Add Preprocessing
                          3. Taylor expanded in a around 0 45.0%

                            \[\leadsto \color{blue}{{b}^{2} \cdot {\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}} \]
                          4. Step-by-step derivation
                            1. *-commutative45.0%

                              \[\leadsto {b}^{2} \cdot {\sin \left(0.005555555555555556 \cdot \color{blue}{\left(\pi \cdot angle\right)}\right)}^{2} \]
                            2. unpow245.0%

                              \[\leadsto {b}^{2} \cdot \color{blue}{\left(\sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right) \cdot \sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right)} \]
                            3. unpow245.0%

                              \[\leadsto \color{blue}{\left(b \cdot b\right)} \cdot \left(\sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right) \cdot \sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right) \]
                            4. swap-sqr49.4%

                              \[\leadsto \color{blue}{\left(b \cdot \sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right) \cdot \left(b \cdot \sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right)} \]
                            5. unpow249.4%

                              \[\leadsto \color{blue}{{\left(b \cdot \sin \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right)}^{2}} \]
                            6. *-commutative49.4%

                              \[\leadsto {\left(b \cdot \sin \left(0.005555555555555556 \cdot \color{blue}{\left(angle \cdot \pi\right)}\right)\right)}^{2} \]
                          5. Simplified49.4%

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

                          if 1.3999999999999999e-32 < a

                          1. Initial program 88.0%

                            \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
                          2. Step-by-step derivation
                            1. Simplified87.9%

                              \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
                            2. Add Preprocessing
                            3. Step-by-step derivation
                              1. metadata-eval87.9%

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

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

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

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

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

                                \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{\pi \cdot \left(angle \cdot \color{blue}{0.005555555555555556}\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                              7. associate-*r*53.1%

                                \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{\color{blue}{\left(\pi \cdot angle\right) \cdot 0.005555555555555556}}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                              8. *-commutative53.1%

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

                              \[\leadsto {\left(a \cdot \cos \color{blue}{\left({\left(\sqrt{0.005555555555555556 \cdot \left(\pi \cdot angle\right)}\right)}^{2}\right)}\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                            5. Taylor expanded in a around inf 74.7%

                              \[\leadsto \color{blue}{{a}^{2} \cdot {\cos \left(angle \cdot \left(\pi \cdot {\left(\sqrt{0.005555555555555556}\right)}^{2}\right)\right)}^{2}} \]
                            6. Simplified74.7%

                              \[\leadsto \color{blue}{{\left(a \cdot \cos \left(angle \cdot \left(\pi \cdot -0.005555555555555556\right)\right)\right)}^{2}} \]
                          3. Recombined 2 regimes into one program.
                          4. Final simplification57.0%

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

                          Alternative 11: 57.4% accurate, 2.0× speedup?

                          \[\begin{array}{l} angle_m = \left|angle\right| \\ \begin{array}{l} \mathbf{if}\;b \leq 2.7 \cdot 10^{+164}:\\ \;\;\;\;{\left(a \cdot \cos \left(angle\_m \cdot \left(\pi \cdot -0.005555555555555556\right)\right)\right)}^{2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt[3]{{a}^{6}}\\ \end{array} \end{array} \]
                          angle_m = (fabs.f64 angle)
                          (FPCore (a b angle_m)
                           :precision binary64
                           (if (<= b 2.7e+164)
                             (pow (* a (cos (* angle_m (* PI -0.005555555555555556)))) 2.0)
                             (cbrt (pow a 6.0))))
                          angle_m = fabs(angle);
                          double code(double a, double b, double angle_m) {
                          	double tmp;
                          	if (b <= 2.7e+164) {
                          		tmp = pow((a * cos((angle_m * (((double) M_PI) * -0.005555555555555556)))), 2.0);
                          	} else {
                          		tmp = cbrt(pow(a, 6.0));
                          	}
                          	return tmp;
                          }
                          
                          angle_m = Math.abs(angle);
                          public static double code(double a, double b, double angle_m) {
                          	double tmp;
                          	if (b <= 2.7e+164) {
                          		tmp = Math.pow((a * Math.cos((angle_m * (Math.PI * -0.005555555555555556)))), 2.0);
                          	} else {
                          		tmp = Math.cbrt(Math.pow(a, 6.0));
                          	}
                          	return tmp;
                          }
                          
                          angle_m = abs(angle)
                          function code(a, b, angle_m)
                          	tmp = 0.0
                          	if (b <= 2.7e+164)
                          		tmp = Float64(a * cos(Float64(angle_m * Float64(pi * -0.005555555555555556)))) ^ 2.0;
                          	else
                          		tmp = cbrt((a ^ 6.0));
                          	end
                          	return tmp
                          end
                          
                          angle_m = N[Abs[angle], $MachinePrecision]
                          code[a_, b_, angle$95$m_] := If[LessEqual[b, 2.7e+164], N[Power[N[(a * N[Cos[N[(angle$95$m * N[(Pi * -0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], N[Power[N[Power[a, 6.0], $MachinePrecision], 1/3], $MachinePrecision]]
                          
                          \begin{array}{l}
                          angle_m = \left|angle\right|
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;b \leq 2.7 \cdot 10^{+164}:\\
                          \;\;\;\;{\left(a \cdot \cos \left(angle\_m \cdot \left(\pi \cdot -0.005555555555555556\right)\right)\right)}^{2}\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\sqrt[3]{{a}^{6}}\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if b < 2.70000000000000006e164

                            1. Initial program 76.5%

                              \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
                            2. Step-by-step derivation
                              1. Simplified76.5%

                                \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
                              2. Add Preprocessing
                              3. Step-by-step derivation
                                1. metadata-eval76.5%

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

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

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

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

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

                                  \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{\pi \cdot \left(angle \cdot \color{blue}{0.005555555555555556}\right)}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                                7. associate-*r*43.1%

                                  \[\leadsto {\left(a \cdot \cos \left({\left(\sqrt{\color{blue}{\left(\pi \cdot angle\right) \cdot 0.005555555555555556}}\right)}^{2}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                                8. *-commutative43.1%

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

                                \[\leadsto {\left(a \cdot \cos \color{blue}{\left({\left(\sqrt{0.005555555555555556 \cdot \left(\pi \cdot angle\right)}\right)}^{2}\right)}\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                              5. Taylor expanded in a around inf 55.8%

                                \[\leadsto \color{blue}{{a}^{2} \cdot {\cos \left(angle \cdot \left(\pi \cdot {\left(\sqrt{0.005555555555555556}\right)}^{2}\right)\right)}^{2}} \]
                              6. Simplified55.8%

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

                              if 2.70000000000000006e164 < b

                              1. Initial program 99.9%

                                \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
                              2. Step-by-step derivation
                                1. Simplified99.9%

                                  \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
                                2. Add Preprocessing
                                3. Taylor expanded in angle around 0 35.4%

                                  \[\leadsto \color{blue}{{a}^{2}} \]
                                4. Step-by-step derivation
                                  1. add-sqr-sqrt35.4%

                                    \[\leadsto \color{blue}{\sqrt{{a}^{2}} \cdot \sqrt{{a}^{2}}} \]
                                  2. sqrt-unprod49.8%

                                    \[\leadsto \color{blue}{\sqrt{{a}^{2} \cdot {a}^{2}}} \]
                                  3. pow-prod-up49.8%

                                    \[\leadsto \sqrt{\color{blue}{{a}^{\left(2 + 2\right)}}} \]
                                  4. metadata-eval49.8%

                                    \[\leadsto \sqrt{{a}^{\color{blue}{4}}} \]
                                5. Applied egg-rr49.8%

                                  \[\leadsto \color{blue}{\sqrt{{a}^{4}}} \]
                                6. Step-by-step derivation
                                  1. add-cbrt-cube51.1%

                                    \[\leadsto \color{blue}{\sqrt[3]{\left(\sqrt{{a}^{4}} \cdot \sqrt{{a}^{4}}\right) \cdot \sqrt{{a}^{4}}}} \]
                                  2. pow1/351.1%

                                    \[\leadsto \color{blue}{{\left(\left(\sqrt{{a}^{4}} \cdot \sqrt{{a}^{4}}\right) \cdot \sqrt{{a}^{4}}\right)}^{0.3333333333333333}} \]
                                  3. add-sqr-sqrt51.1%

                                    \[\leadsto {\left(\color{blue}{{a}^{4}} \cdot \sqrt{{a}^{4}}\right)}^{0.3333333333333333} \]
                                  4. sqrt-pow151.1%

                                    \[\leadsto {\left({a}^{4} \cdot \color{blue}{{a}^{\left(\frac{4}{2}\right)}}\right)}^{0.3333333333333333} \]
                                  5. metadata-eval51.1%

                                    \[\leadsto {\left({a}^{4} \cdot {a}^{\color{blue}{2}}\right)}^{0.3333333333333333} \]
                                  6. pow-prod-up51.1%

                                    \[\leadsto {\color{blue}{\left({a}^{\left(4 + 2\right)}\right)}}^{0.3333333333333333} \]
                                  7. metadata-eval51.1%

                                    \[\leadsto {\left({a}^{\color{blue}{6}}\right)}^{0.3333333333333333} \]
                                7. Applied egg-rr51.1%

                                  \[\leadsto \color{blue}{{\left({a}^{6}\right)}^{0.3333333333333333}} \]
                                8. Step-by-step derivation
                                  1. unpow1/351.1%

                                    \[\leadsto \color{blue}{\sqrt[3]{{a}^{6}}} \]
                                9. Simplified51.1%

                                  \[\leadsto \color{blue}{\sqrt[3]{{a}^{6}}} \]
                              3. Recombined 2 regimes into one program.
                              4. Add Preprocessing

                              Alternative 12: 57.4% accurate, 2.0× speedup?

                              \[\begin{array}{l} angle_m = \left|angle\right| \\ \begin{array}{l} \mathbf{if}\;b \leq 9.5 \cdot 10^{+163}:\\ \;\;\;\;{\left(a \cdot \cos \left(0.005555555555555556 \cdot \left(\pi \cdot angle\_m\right)\right)\right)}^{2}\\ \mathbf{else}:\\ \;\;\;\;\sqrt[3]{{a}^{6}}\\ \end{array} \end{array} \]
                              angle_m = (fabs.f64 angle)
                              (FPCore (a b angle_m)
                               :precision binary64
                               (if (<= b 9.5e+163)
                                 (pow (* a (cos (* 0.005555555555555556 (* PI angle_m)))) 2.0)
                                 (cbrt (pow a 6.0))))
                              angle_m = fabs(angle);
                              double code(double a, double b, double angle_m) {
                              	double tmp;
                              	if (b <= 9.5e+163) {
                              		tmp = pow((a * cos((0.005555555555555556 * (((double) M_PI) * angle_m)))), 2.0);
                              	} else {
                              		tmp = cbrt(pow(a, 6.0));
                              	}
                              	return tmp;
                              }
                              
                              angle_m = Math.abs(angle);
                              public static double code(double a, double b, double angle_m) {
                              	double tmp;
                              	if (b <= 9.5e+163) {
                              		tmp = Math.pow((a * Math.cos((0.005555555555555556 * (Math.PI * angle_m)))), 2.0);
                              	} else {
                              		tmp = Math.cbrt(Math.pow(a, 6.0));
                              	}
                              	return tmp;
                              }
                              
                              angle_m = abs(angle)
                              function code(a, b, angle_m)
                              	tmp = 0.0
                              	if (b <= 9.5e+163)
                              		tmp = Float64(a * cos(Float64(0.005555555555555556 * Float64(pi * angle_m)))) ^ 2.0;
                              	else
                              		tmp = cbrt((a ^ 6.0));
                              	end
                              	return tmp
                              end
                              
                              angle_m = N[Abs[angle], $MachinePrecision]
                              code[a_, b_, angle$95$m_] := If[LessEqual[b, 9.5e+163], N[Power[N[(a * N[Cos[N[(0.005555555555555556 * N[(Pi * angle$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], N[Power[N[Power[a, 6.0], $MachinePrecision], 1/3], $MachinePrecision]]
                              
                              \begin{array}{l}
                              angle_m = \left|angle\right|
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;b \leq 9.5 \cdot 10^{+163}:\\
                              \;\;\;\;{\left(a \cdot \cos \left(0.005555555555555556 \cdot \left(\pi \cdot angle\_m\right)\right)\right)}^{2}\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\sqrt[3]{{a}^{6}}\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if b < 9.50000000000000053e163

                                1. Initial program 76.5%

                                  \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
                                2. Step-by-step derivation
                                  1. Simplified76.5%

                                    \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
                                  2. Add Preprocessing
                                  3. Taylor expanded in a around inf 55.8%

                                    \[\leadsto \color{blue}{{a}^{2} \cdot {\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}} \]
                                  4. Step-by-step derivation
                                    1. unpow255.8%

                                      \[\leadsto \color{blue}{\left(a \cdot a\right)} \cdot {\cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2} \]
                                    2. *-commutative55.8%

                                      \[\leadsto \left(a \cdot a\right) \cdot {\cos \left(0.005555555555555556 \cdot \color{blue}{\left(\pi \cdot angle\right)}\right)}^{2} \]
                                    3. unpow255.8%

                                      \[\leadsto \left(a \cdot a\right) \cdot \color{blue}{\left(\cos \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right) \cdot \cos \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right)} \]
                                    4. swap-sqr55.8%

                                      \[\leadsto \color{blue}{\left(a \cdot \cos \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right) \cdot \left(a \cdot \cos \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right)} \]
                                    5. unpow255.8%

                                      \[\leadsto \color{blue}{{\left(a \cdot \cos \left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)\right)}^{2}} \]
                                    6. *-commutative55.8%

                                      \[\leadsto {\left(a \cdot \cos \left(0.005555555555555556 \cdot \color{blue}{\left(angle \cdot \pi\right)}\right)\right)}^{2} \]
                                  5. Simplified55.8%

                                    \[\leadsto \color{blue}{{\left(a \cdot \cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)}^{2}} \]

                                  if 9.50000000000000053e163 < b

                                  1. Initial program 99.9%

                                    \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
                                  2. Step-by-step derivation
                                    1. Simplified99.9%

                                      \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
                                    2. Add Preprocessing
                                    3. Taylor expanded in angle around 0 35.4%

                                      \[\leadsto \color{blue}{{a}^{2}} \]
                                    4. Step-by-step derivation
                                      1. add-sqr-sqrt35.4%

                                        \[\leadsto \color{blue}{\sqrt{{a}^{2}} \cdot \sqrt{{a}^{2}}} \]
                                      2. sqrt-unprod49.8%

                                        \[\leadsto \color{blue}{\sqrt{{a}^{2} \cdot {a}^{2}}} \]
                                      3. pow-prod-up49.8%

                                        \[\leadsto \sqrt{\color{blue}{{a}^{\left(2 + 2\right)}}} \]
                                      4. metadata-eval49.8%

                                        \[\leadsto \sqrt{{a}^{\color{blue}{4}}} \]
                                    5. Applied egg-rr49.8%

                                      \[\leadsto \color{blue}{\sqrt{{a}^{4}}} \]
                                    6. Step-by-step derivation
                                      1. add-cbrt-cube51.1%

                                        \[\leadsto \color{blue}{\sqrt[3]{\left(\sqrt{{a}^{4}} \cdot \sqrt{{a}^{4}}\right) \cdot \sqrt{{a}^{4}}}} \]
                                      2. pow1/351.1%

                                        \[\leadsto \color{blue}{{\left(\left(\sqrt{{a}^{4}} \cdot \sqrt{{a}^{4}}\right) \cdot \sqrt{{a}^{4}}\right)}^{0.3333333333333333}} \]
                                      3. add-sqr-sqrt51.1%

                                        \[\leadsto {\left(\color{blue}{{a}^{4}} \cdot \sqrt{{a}^{4}}\right)}^{0.3333333333333333} \]
                                      4. sqrt-pow151.1%

                                        \[\leadsto {\left({a}^{4} \cdot \color{blue}{{a}^{\left(\frac{4}{2}\right)}}\right)}^{0.3333333333333333} \]
                                      5. metadata-eval51.1%

                                        \[\leadsto {\left({a}^{4} \cdot {a}^{\color{blue}{2}}\right)}^{0.3333333333333333} \]
                                      6. pow-prod-up51.1%

                                        \[\leadsto {\color{blue}{\left({a}^{\left(4 + 2\right)}\right)}}^{0.3333333333333333} \]
                                      7. metadata-eval51.1%

                                        \[\leadsto {\left({a}^{\color{blue}{6}}\right)}^{0.3333333333333333} \]
                                    7. Applied egg-rr51.1%

                                      \[\leadsto \color{blue}{{\left({a}^{6}\right)}^{0.3333333333333333}} \]
                                    8. Step-by-step derivation
                                      1. unpow1/351.1%

                                        \[\leadsto \color{blue}{\sqrt[3]{{a}^{6}}} \]
                                    9. Simplified51.1%

                                      \[\leadsto \color{blue}{\sqrt[3]{{a}^{6}}} \]
                                  3. Recombined 2 regimes into one program.
                                  4. Final simplification55.2%

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

                                  Alternative 13: 57.5% accurate, 2.0× speedup?

                                  \[\begin{array}{l} angle_m = \left|angle\right| \\ \begin{array}{l} \mathbf{if}\;b \leq 1.85 \cdot 10^{+164}:\\ \;\;\;\;a \cdot a\\ \mathbf{else}:\\ \;\;\;\;\sqrt[3]{{a}^{6}}\\ \end{array} \end{array} \]
                                  angle_m = (fabs.f64 angle)
                                  (FPCore (a b angle_m)
                                   :precision binary64
                                   (if (<= b 1.85e+164) (* a a) (cbrt (pow a 6.0))))
                                  angle_m = fabs(angle);
                                  double code(double a, double b, double angle_m) {
                                  	double tmp;
                                  	if (b <= 1.85e+164) {
                                  		tmp = a * a;
                                  	} else {
                                  		tmp = cbrt(pow(a, 6.0));
                                  	}
                                  	return tmp;
                                  }
                                  
                                  angle_m = Math.abs(angle);
                                  public static double code(double a, double b, double angle_m) {
                                  	double tmp;
                                  	if (b <= 1.85e+164) {
                                  		tmp = a * a;
                                  	} else {
                                  		tmp = Math.cbrt(Math.pow(a, 6.0));
                                  	}
                                  	return tmp;
                                  }
                                  
                                  angle_m = abs(angle)
                                  function code(a, b, angle_m)
                                  	tmp = 0.0
                                  	if (b <= 1.85e+164)
                                  		tmp = Float64(a * a);
                                  	else
                                  		tmp = cbrt((a ^ 6.0));
                                  	end
                                  	return tmp
                                  end
                                  
                                  angle_m = N[Abs[angle], $MachinePrecision]
                                  code[a_, b_, angle$95$m_] := If[LessEqual[b, 1.85e+164], N[(a * a), $MachinePrecision], N[Power[N[Power[a, 6.0], $MachinePrecision], 1/3], $MachinePrecision]]
                                  
                                  \begin{array}{l}
                                  angle_m = \left|angle\right|
                                  
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;b \leq 1.85 \cdot 10^{+164}:\\
                                  \;\;\;\;a \cdot a\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\sqrt[3]{{a}^{6}}\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if b < 1.85e164

                                    1. Initial program 76.5%

                                      \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
                                    2. Step-by-step derivation
                                      1. Simplified76.5%

                                        \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in angle around 0 54.9%

                                        \[\leadsto \color{blue}{{a}^{2}} \]
                                      4. Step-by-step derivation
                                        1. unpow254.9%

                                          \[\leadsto \color{blue}{a \cdot a} \]
                                      5. Applied egg-rr54.9%

                                        \[\leadsto \color{blue}{a \cdot a} \]

                                      if 1.85e164 < b

                                      1. Initial program 99.9%

                                        \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
                                      2. Step-by-step derivation
                                        1. Simplified99.9%

                                          \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
                                        2. Add Preprocessing
                                        3. Taylor expanded in angle around 0 35.4%

                                          \[\leadsto \color{blue}{{a}^{2}} \]
                                        4. Step-by-step derivation
                                          1. add-sqr-sqrt35.4%

                                            \[\leadsto \color{blue}{\sqrt{{a}^{2}} \cdot \sqrt{{a}^{2}}} \]
                                          2. sqrt-unprod49.8%

                                            \[\leadsto \color{blue}{\sqrt{{a}^{2} \cdot {a}^{2}}} \]
                                          3. pow-prod-up49.8%

                                            \[\leadsto \sqrt{\color{blue}{{a}^{\left(2 + 2\right)}}} \]
                                          4. metadata-eval49.8%

                                            \[\leadsto \sqrt{{a}^{\color{blue}{4}}} \]
                                        5. Applied egg-rr49.8%

                                          \[\leadsto \color{blue}{\sqrt{{a}^{4}}} \]
                                        6. Step-by-step derivation
                                          1. add-cbrt-cube51.1%

                                            \[\leadsto \color{blue}{\sqrt[3]{\left(\sqrt{{a}^{4}} \cdot \sqrt{{a}^{4}}\right) \cdot \sqrt{{a}^{4}}}} \]
                                          2. pow1/351.1%

                                            \[\leadsto \color{blue}{{\left(\left(\sqrt{{a}^{4}} \cdot \sqrt{{a}^{4}}\right) \cdot \sqrt{{a}^{4}}\right)}^{0.3333333333333333}} \]
                                          3. add-sqr-sqrt51.1%

                                            \[\leadsto {\left(\color{blue}{{a}^{4}} \cdot \sqrt{{a}^{4}}\right)}^{0.3333333333333333} \]
                                          4. sqrt-pow151.1%

                                            \[\leadsto {\left({a}^{4} \cdot \color{blue}{{a}^{\left(\frac{4}{2}\right)}}\right)}^{0.3333333333333333} \]
                                          5. metadata-eval51.1%

                                            \[\leadsto {\left({a}^{4} \cdot {a}^{\color{blue}{2}}\right)}^{0.3333333333333333} \]
                                          6. pow-prod-up51.1%

                                            \[\leadsto {\color{blue}{\left({a}^{\left(4 + 2\right)}\right)}}^{0.3333333333333333} \]
                                          7. metadata-eval51.1%

                                            \[\leadsto {\left({a}^{\color{blue}{6}}\right)}^{0.3333333333333333} \]
                                        7. Applied egg-rr51.1%

                                          \[\leadsto \color{blue}{{\left({a}^{6}\right)}^{0.3333333333333333}} \]
                                        8. Step-by-step derivation
                                          1. unpow1/351.1%

                                            \[\leadsto \color{blue}{\sqrt[3]{{a}^{6}}} \]
                                        9. Simplified51.1%

                                          \[\leadsto \color{blue}{\sqrt[3]{{a}^{6}}} \]
                                      3. Recombined 2 regimes into one program.
                                      4. Add Preprocessing

                                      Alternative 14: 56.9% accurate, 139.0× speedup?

                                      \[\begin{array}{l} angle_m = \left|angle\right| \\ a \cdot a \end{array} \]
                                      angle_m = (fabs.f64 angle)
                                      (FPCore (a b angle_m) :precision binary64 (* a a))
                                      angle_m = fabs(angle);
                                      double code(double a, double b, double angle_m) {
                                      	return a * a;
                                      }
                                      
                                      angle_m = abs(angle)
                                      real(8) function code(a, b, angle_m)
                                          real(8), intent (in) :: a
                                          real(8), intent (in) :: b
                                          real(8), intent (in) :: angle_m
                                          code = a * a
                                      end function
                                      
                                      angle_m = Math.abs(angle);
                                      public static double code(double a, double b, double angle_m) {
                                      	return a * a;
                                      }
                                      
                                      angle_m = math.fabs(angle)
                                      def code(a, b, angle_m):
                                      	return a * a
                                      
                                      angle_m = abs(angle)
                                      function code(a, b, angle_m)
                                      	return Float64(a * a)
                                      end
                                      
                                      angle_m = abs(angle);
                                      function tmp = code(a, b, angle_m)
                                      	tmp = a * a;
                                      end
                                      
                                      angle_m = N[Abs[angle], $MachinePrecision]
                                      code[a_, b_, angle$95$m_] := N[(a * a), $MachinePrecision]
                                      
                                      \begin{array}{l}
                                      angle_m = \left|angle\right|
                                      
                                      \\
                                      a \cdot a
                                      \end{array}
                                      
                                      Derivation
                                      1. Initial program 79.4%

                                        \[{\left(a \cdot \cos \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)}^{2} \]
                                      2. Step-by-step derivation
                                        1. Simplified79.4%

                                          \[\leadsto \color{blue}{{\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2}} \]
                                        2. Add Preprocessing
                                        3. Taylor expanded in angle around 0 52.4%

                                          \[\leadsto \color{blue}{{a}^{2}} \]
                                        4. Step-by-step derivation
                                          1. unpow252.4%

                                            \[\leadsto \color{blue}{a \cdot a} \]
                                        5. Applied egg-rr52.4%

                                          \[\leadsto \color{blue}{a \cdot a} \]
                                        6. Add Preprocessing

                                        Reproduce

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