ab-angle->ABCF C

Percentage Accurate: 80.2% → 80.2%
Time: 39.1s
Alternatives: 14
Speedup: 0.5×

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.2% 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.2% accurate, 0.5× speedup?

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

\\
\begin{array}{l}
t_0 := {\left(angle\_m \cdot 0.005555555555555556\right)}^{0.16666666666666666}\\
{\left(a \cdot \cos \left(\pi \cdot \left(t\_0 \cdot \left(t\_0 \cdot {\left(\sqrt[3]{angle\_m \cdot 0.005555555555555556}\right)}^{2}\right)\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right)\right)}^{2}
\end{array}
\end{array}
Derivation
  1. Initial program 78.3%

    \[{\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. Simplified78.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-eval78.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-inv78.3%

        \[\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-cube-cbrt78.4%

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

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

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

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

      \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \color{blue}{{\left(\sqrt[3]{angle \cdot 0.005555555555555556}\right)}^{3}}\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. cube-mult78.5%

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

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

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

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

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

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

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

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

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

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

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

    Alternative 2: 80.2% accurate, 0.6× speedup?

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

      \[{\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. Simplified78.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-eval78.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-inv78.3%

          \[\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-cube-cbrt78.4%

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

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

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

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

        \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \color{blue}{{\left(\sqrt[3]{angle \cdot 0.005555555555555556}\right)}^{3}}\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. unpow378.5%

          \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \color{blue}{\left(\left(\sqrt[3]{angle \cdot 0.005555555555555556} \cdot \sqrt[3]{angle \cdot 0.005555555555555556}\right) \cdot \sqrt[3]{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. pow278.5%

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

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

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

      Alternative 3: 80.2% accurate, 0.7× speedup?

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

        \[{\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. Simplified78.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-eval78.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-inv78.3%

            \[\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-cube-cbrt78.4%

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

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

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

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

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

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

        Alternative 4: 80.1% accurate, 0.7× speedup?

        \[\begin{array}{l} angle_m = \left|angle\right| \\ {\left(a \cdot \cos \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\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 (* angle_m 0.005555555555555556)))) 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) * (angle_m * 0.005555555555555556)))), 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 * (angle_m * 0.005555555555555556)))), 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 * (angle_m * 0.005555555555555556)))), 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(angle_m * 0.005555555555555556)))) ^ 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[(angle$95$m * 0.005555555555555556), $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(angle\_m \cdot 0.005555555555555556\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 78.3%

          \[{\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. Simplified78.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.2%

              \[\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.2%

              \[\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.2%

              \[\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.2%

            \[\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. Add Preprocessing

          Alternative 5: 80.2% accurate, 1.0× speedup?

          \[\begin{array}{l} angle_m = \left|angle\right| \\ \begin{array}{l} t_0 := \pi \cdot \left(angle\_m \cdot 0.005555555555555556\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 (* angle_m 0.005555555555555556))))
             (+ (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) * (angle_m * 0.005555555555555556);
          	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 * (angle_m * 0.005555555555555556);
          	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 * (angle_m * 0.005555555555555556)
          	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(angle_m * 0.005555555555555556))
          	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 * (angle_m * 0.005555555555555556);
          	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[(angle$95$m * 0.005555555555555556), $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(angle\_m \cdot 0.005555555555555556\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 78.3%

            \[{\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. Simplified78.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 simplification78.4%

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

            Alternative 6: 80.2% accurate, 1.0× speedup?

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

              \[{\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. Simplified78.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-eval78.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-inv78.3%

                  \[\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-cube-cbrt78.4%

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

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

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

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

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

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

              Alternative 7: 80.2% accurate, 1.0× speedup?

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

                \[{\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. Simplified78.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-eval78.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-inv78.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. add-cbrt-cube54.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(\sqrt[3]{\left(\left(\pi \cdot \frac{angle}{180}\right) \cdot \left(\pi \cdot \frac{angle}{180}\right)\right) \cdot \left(\pi \cdot \frac{angle}{180}\right)}\right)}\right)}^{2} \]
                  4. pow1/342.1%

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

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

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

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

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

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

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

                    \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \color{blue}{\left(\sqrt[3]{{\left(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)}^{3}}\right)}\right)}^{2} \]
                  2. rem-cbrt-cube78.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(0.005555555555555556 \cdot \left(\pi \cdot angle\right)\right)}\right)}^{2} \]
                  3. *-commutative78.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(\left(\pi \cdot angle\right) \cdot 0.005555555555555556\right)}\right)}^{2} \]
                  4. metadata-eval78.3%

                    \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\left(\pi \cdot angle\right) \cdot \color{blue}{\frac{1}{180}}\right)\right)}^{2} \]
                  5. div-inv78.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(\frac{\pi \cdot angle}{180}\right)}\right)}^{2} \]
                  6. add-cube-cbrt78.1%

                    \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\frac{\color{blue}{\left(\sqrt[3]{\pi \cdot angle} \cdot \sqrt[3]{\pi \cdot angle}\right) \cdot \sqrt[3]{\pi \cdot angle}}}{180}\right)\right)}^{2} \]
                  7. associate-/l*78.0%

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

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

                  \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} + {\left(b \cdot \sin \color{blue}{\left({\left(\sqrt[3]{\pi \cdot angle}\right)}^{2} \cdot \frac{\sqrt[3]{\pi \cdot angle}}{180}\right)}\right)}^{2} \]
                7. Step-by-step derivation
                  1. *-un-lft-identity78.0%

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

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

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

                  \[\leadsto \color{blue}{1 \cdot {\left(\mathsf{hypot}\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right), b \cdot \sin \left(\frac{\pi \cdot angle}{180}\right)\right)\right)}^{2}} \]
                9. Step-by-step derivation
                  1. *-lft-identity78.3%

                    \[\leadsto \color{blue}{{\left(\mathsf{hypot}\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right), b \cdot \sin \left(\frac{\pi \cdot angle}{180}\right)\right)\right)}^{2}} \]
                  2. *-commutative78.3%

                    \[\leadsto {\left(\mathsf{hypot}\left(a \cdot \cos \color{blue}{\left(\left(angle \cdot 0.005555555555555556\right) \cdot \pi\right)}, b \cdot \sin \left(\frac{\pi \cdot angle}{180}\right)\right)\right)}^{2} \]
                  3. *-commutative78.3%

                    \[\leadsto {\left(\mathsf{hypot}\left(a \cdot \cos \left(\color{blue}{\left(0.005555555555555556 \cdot angle\right)} \cdot \pi\right), b \cdot \sin \left(\frac{\pi \cdot angle}{180}\right)\right)\right)}^{2} \]
                  4. associate-*r*78.2%

                    \[\leadsto {\left(\mathsf{hypot}\left(a \cdot \cos \color{blue}{\left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}, b \cdot \sin \left(\frac{\pi \cdot angle}{180}\right)\right)\right)}^{2} \]
                  5. associate-/l*78.3%

                    \[\leadsto {\left(\mathsf{hypot}\left(a \cdot \cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right), b \cdot \sin \color{blue}{\left(\pi \cdot \frac{angle}{180}\right)}\right)\right)}^{2} \]
                10. Simplified78.3%

                  \[\leadsto \color{blue}{{\left(\mathsf{hypot}\left(a \cdot \cos \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right), b \cdot \sin \left(\pi \cdot \frac{angle}{180}\right)\right)\right)}^{2}} \]
                11. Final simplification78.3%

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

                Alternative 8: 80.1% accurate, 1.3× speedup?

                \[\begin{array}{l} angle_m = \left|angle\right| \\ {\left(b \cdot \sin \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right)\right)}^{2} + {a}^{2} \end{array} \]
                angle_m = (fabs.f64 angle)
                (FPCore (a b angle_m)
                 :precision binary64
                 (+ (pow (* b (sin (* PI (* angle_m 0.005555555555555556)))) 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) * (angle_m * 0.005555555555555556)))), 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 * (angle_m * 0.005555555555555556)))), 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 * (angle_m * 0.005555555555555556)))), 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(angle_m * 0.005555555555555556)))) ^ 2.0) + (a ^ 2.0))
                end
                
                angle_m = abs(angle);
                function tmp = code(a, b, angle_m)
                	tmp = ((b * sin((pi * (angle_m * 0.005555555555555556)))) ^ 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[(angle$95$m * 0.005555555555555556), $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(angle\_m \cdot 0.005555555555555556\right)\right)\right)}^{2} + {a}^{2}
                \end{array}
                
                Derivation
                1. Initial program 78.3%

                  \[{\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. Simplified78.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.2%

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

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

                  Alternative 9: 58.4% accurate, 1.9× speedup?

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

                    1. Initial program 81.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. Simplified81.0%

                        \[\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-eval81.0%

                          \[\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-inv81.0%

                          \[\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-cube-cbrt81.2%

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

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

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

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

                        \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \color{blue}{{\left(\sqrt[3]{angle \cdot 0.005555555555555556}\right)}^{3}}\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. cube-mult81.2%

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

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

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

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

                          \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \left(\color{blue}{{\left(angle \cdot 0.005555555555555556\right)}^{\left(\frac{0.3333333333333333}{2}\right)}} \cdot \left(\sqrt{\sqrt[3]{angle \cdot 0.005555555555555556}} \cdot \left(\sqrt[3]{angle \cdot 0.005555555555555556} \cdot \sqrt[3]{angle \cdot 0.005555555555555556}\right)\right)\right)\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(\pi \cdot \left({\left(angle \cdot 0.005555555555555556\right)}^{\color{blue}{0.16666666666666666}} \cdot \left(\sqrt{\sqrt[3]{angle \cdot 0.005555555555555556}} \cdot \left(\sqrt[3]{angle \cdot 0.005555555555555556} \cdot \sqrt[3]{angle \cdot 0.005555555555555556}\right)\right)\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                        7. pow1/340.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if 1.8500000000000001e-153 < a

                      1. Initial program 72.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. Simplified73.0%

                          \[\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-eval73.0%

                            \[\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-inv73.0%

                            \[\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-cube-cbrt72.8%

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

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

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

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

                          \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \color{blue}{{\left(\sqrt[3]{angle \cdot 0.005555555555555556}\right)}^{3}}\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. cube-mult73.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      Alternative 10: 62.8% accurate, 2.0× speedup?

                      \[\begin{array}{l} angle_m = \left|angle\right| \\ \begin{array}{l} \mathbf{if}\;b \leq 4.8 \cdot 10^{+157}:\\ \;\;\;\;{\left(a \cdot \cos \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right)\right)}^{2}\\ \mathbf{else}:\\ \;\;\;\;{\left(b \cdot \sin \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 (<= b 4.8e+157)
                         (pow (* a (cos (* PI (* angle_m 0.005555555555555556)))) 2.0)
                         (pow (* b (sin (* angle_m (* PI 0.005555555555555556)))) 2.0)))
                      angle_m = fabs(angle);
                      double code(double a, double b, double angle_m) {
                      	double tmp;
                      	if (b <= 4.8e+157) {
                      		tmp = pow((a * cos((((double) M_PI) * (angle_m * 0.005555555555555556)))), 2.0);
                      	} else {
                      		tmp = pow((b * sin((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 (b <= 4.8e+157) {
                      		tmp = Math.pow((a * Math.cos((Math.PI * (angle_m * 0.005555555555555556)))), 2.0);
                      	} else {
                      		tmp = Math.pow((b * Math.sin((angle_m * (Math.PI * 0.005555555555555556)))), 2.0);
                      	}
                      	return tmp;
                      }
                      
                      angle_m = math.fabs(angle)
                      def code(a, b, angle_m):
                      	tmp = 0
                      	if b <= 4.8e+157:
                      		tmp = math.pow((a * math.cos((math.pi * (angle_m * 0.005555555555555556)))), 2.0)
                      	else:
                      		tmp = math.pow((b * math.sin((angle_m * (math.pi * 0.005555555555555556)))), 2.0)
                      	return tmp
                      
                      angle_m = abs(angle)
                      function code(a, b, angle_m)
                      	tmp = 0.0
                      	if (b <= 4.8e+157)
                      		tmp = Float64(a * cos(Float64(pi * Float64(angle_m * 0.005555555555555556)))) ^ 2.0;
                      	else
                      		tmp = Float64(b * sin(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 (b <= 4.8e+157)
                      		tmp = (a * cos((pi * (angle_m * 0.005555555555555556)))) ^ 2.0;
                      	else
                      		tmp = (b * sin((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[b, 4.8e+157], N[Power[N[(a * N[Cos[N[(Pi * N[(angle$95$m * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision], N[Power[N[(b * N[Sin[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}\;b \leq 4.8 \cdot 10^{+157}:\\
                      \;\;\;\;{\left(a \cdot \cos \left(\pi \cdot \left(angle\_m \cdot 0.005555555555555556\right)\right)\right)}^{2}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;{\left(b \cdot \sin \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 b < 4.7999999999999999e157

                        1. Initial program 74.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. Simplified74.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-eval74.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-inv74.8%

                              \[\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-cube-cbrt74.9%

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

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

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

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

                            \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \color{blue}{{\left(\sqrt[3]{angle \cdot 0.005555555555555556}\right)}^{3}}\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 59.4%

                            \[\leadsto \color{blue}{{a}^{2} \cdot {\cos \left(angle \cdot \left(\pi \cdot {\left(\sqrt[3]{0.005555555555555556}\right)}^{3}\right)\right)}^{2}} \]
                          6. Step-by-step derivation
                            1. pow-prod-down59.4%

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

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

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

                              \[\leadsto {\left(a \cdot \cos \color{blue}{\left(\pi \cdot \left(angle \cdot {\left(\sqrt[3]{0.005555555555555556}\right)}^{3}\right)\right)}\right)}^{2} \]
                            5. rem-cube-cbrt59.5%

                              \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot \color{blue}{0.005555555555555556}\right)\right)\right)}^{2} \]
                          7. Applied egg-rr59.5%

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

                          if 4.7999999999999999e157 < b

                          1. Initial program 99.6%

                            \[{\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.6%

                              \[\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-eval99.6%

                                \[\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-inv99.6%

                                \[\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-cube-cbrt99.6%

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

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

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

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

                              \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \color{blue}{{\left(\sqrt[3]{angle \cdot 0.005555555555555556}\right)}^{3}}\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. cube-mult99.6%

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

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

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

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

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

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

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

                                \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \left({\left(angle \cdot 0.005555555555555556\right)}^{0.16666666666666666} \cdot \left(\color{blue}{{\left(angle \cdot 0.005555555555555556\right)}^{\left(\frac{0.3333333333333333}{2}\right)}} \cdot \left(\sqrt[3]{angle \cdot 0.005555555555555556} \cdot \sqrt[3]{angle \cdot 0.005555555555555556}\right)\right)\right)\right)\right)}^{2} + {\left(b \cdot \sin \left(\pi \cdot \left(angle \cdot 0.005555555555555556\right)\right)\right)}^{2} \]
                              9. metadata-eval54.0%

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

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

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

                              \[\leadsto \color{blue}{{b}^{2} \cdot {\sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)}^{2}} \]
                            8. Step-by-step derivation
                              1. unpow263.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*63.0%

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

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

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

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

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

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

                              \[\leadsto \color{blue}{{\left(b \cdot \sin \left(angle \cdot \left(0.005555555555555556 \cdot \pi\right)\right)\right)}^{2}} \]
                          3. Recombined 2 regimes into one program.
                          4. Final simplification64.2%

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

                          Alternative 11: 62.8% accurate, 2.0× speedup?

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

                            1. Initial program 74.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. Simplified74.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-eval74.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-inv74.8%

                                  \[\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-cube-cbrt74.9%

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

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

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

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

                                \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \color{blue}{{\left(\sqrt[3]{angle \cdot 0.005555555555555556}\right)}^{3}}\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 59.4%

                                \[\leadsto \color{blue}{{a}^{2} \cdot {\cos \left(angle \cdot \left(\pi \cdot {\left(\sqrt[3]{0.005555555555555556}\right)}^{3}\right)\right)}^{2}} \]
                              6. Step-by-step derivation
                                1. pow-prod-down59.4%

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

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

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

                                  \[\leadsto {\left(a \cdot \cos \color{blue}{\left(\pi \cdot \left(angle \cdot {\left(\sqrt[3]{0.005555555555555556}\right)}^{3}\right)\right)}\right)}^{2} \]
                                5. rem-cube-cbrt59.5%

                                  \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot \color{blue}{0.005555555555555556}\right)\right)\right)}^{2} \]
                              7. Applied egg-rr59.5%

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

                              if 7.79999999999999941e157 < b

                              1. Initial program 99.6%

                                \[{\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.6%

                                  \[\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 63.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. unpow263.0%

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

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

                                    \[\leadsto \left(b \cdot b\right) \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)} \]
                                  4. swap-sqr91.8%

                                    \[\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. unpow291.8%

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

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

                                  \[\leadsto \color{blue}{{\left(b \cdot \sin \left(0.005555555555555556 \cdot \left(angle \cdot \pi\right)\right)\right)}^{2}} \]
                              3. Recombined 2 regimes into one program.
                              4. Final simplification64.2%

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

                              Alternative 12: 57.6% accurate, 2.0× speedup?

                              \[\begin{array}{l} angle_m = \left|angle\right| \\ \begin{array}{l} \mathbf{if}\;b \leq 1.3 \cdot 10^{+169}:\\ \;\;\;\;{\left(a \cdot \cos \left(\pi \cdot \left(angle\_m \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 1.3e+169)
                                 (pow (* a (cos (* PI (* angle_m 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 <= 1.3e+169) {
                              		tmp = pow((a * cos((((double) M_PI) * (angle_m * 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 <= 1.3e+169) {
                              		tmp = Math.pow((a * Math.cos((Math.PI * (angle_m * 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 <= 1.3e+169)
                              		tmp = Float64(a * cos(Float64(pi * Float64(angle_m * 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, 1.3e+169], N[Power[N[(a * N[Cos[N[(Pi * N[(angle$95$m * 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 1.3 \cdot 10^{+169}:\\
                              \;\;\;\;{\left(a \cdot \cos \left(\pi \cdot \left(angle\_m \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 < 1.3e169

                                1. Initial program 75.1%

                                  \[{\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.1%

                                    \[\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.1%

                                      \[\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.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-cube-cbrt75.2%

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

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

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

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

                                    \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \color{blue}{{\left(\sqrt[3]{angle \cdot 0.005555555555555556}\right)}^{3}}\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 58.6%

                                    \[\leadsto \color{blue}{{a}^{2} \cdot {\cos \left(angle \cdot \left(\pi \cdot {\left(\sqrt[3]{0.005555555555555556}\right)}^{3}\right)\right)}^{2}} \]
                                  6. Step-by-step derivation
                                    1. pow-prod-down58.6%

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

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

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

                                      \[\leadsto {\left(a \cdot \cos \color{blue}{\left(\pi \cdot \left(angle \cdot {\left(\sqrt[3]{0.005555555555555556}\right)}^{3}\right)\right)}\right)}^{2} \]
                                    5. rem-cube-cbrt58.7%

                                      \[\leadsto {\left(a \cdot \cos \left(\pi \cdot \left(angle \cdot \color{blue}{0.005555555555555556}\right)\right)\right)}^{2} \]
                                  7. Applied egg-rr58.7%

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

                                  if 1.3e169 < b

                                  1. Initial program 99.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. Simplified99.7%

                                      \[\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 31.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 13: 57.8% accurate, 2.0× speedup?

                                  \[\begin{array}{l} angle_m = \left|angle\right| \\ \begin{array}{l} \mathbf{if}\;b \leq 1.45 \cdot 10^{+169}:\\ \;\;\;\;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.45e+169) (* 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.45e+169) {
                                  		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.45e+169) {
                                  		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.45e+169)
                                  		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.45e+169], 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.45 \cdot 10^{+169}:\\
                                  \;\;\;\;a \cdot a\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\sqrt[3]{{a}^{6}}\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if b < 1.45e169

                                    1. Initial program 75.1%

                                      \[{\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.1%

                                        \[\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 59.1%

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

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

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

                                      if 1.45e169 < b

                                      1. Initial program 99.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. Simplified99.7%

                                          \[\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 31.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      Alternative 14: 57.2% 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 78.3%

                                        \[{\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. Simplified78.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 55.4%

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

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

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

                                        Reproduce

                                        ?
                                        herbie shell --seed 2024143 
                                        (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)))