Linear.Quaternion:$csin from linear-1.19.1.3

Percentage Accurate: 100.0% → 100.0%
Time: 14.7s
Alternatives: 22
Speedup: 1.0×

Specification

?
\[\begin{array}{l} \\ \cos x \cdot \frac{\sinh y}{y} \end{array} \]
(FPCore (x y) :precision binary64 (* (cos x) (/ (sinh y) y)))
double code(double x, double y) {
	return cos(x) * (sinh(y) / y);
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = cos(x) * (sinh(y) / y)
end function
public static double code(double x, double y) {
	return Math.cos(x) * (Math.sinh(y) / y);
}
def code(x, y):
	return math.cos(x) * (math.sinh(y) / y)
function code(x, y)
	return Float64(cos(x) * Float64(sinh(y) / y))
end
function tmp = code(x, y)
	tmp = cos(x) * (sinh(y) / y);
end
code[x_, y_] := N[(N[Cos[x], $MachinePrecision] * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\cos x \cdot \frac{\sinh y}{y}
\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 22 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: 100.0% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \cos x \cdot \frac{\sinh y}{y} \end{array} \]
(FPCore (x y) :precision binary64 (* (cos x) (/ (sinh y) y)))
double code(double x, double y) {
	return cos(x) * (sinh(y) / y);
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = cos(x) * (sinh(y) / y)
end function
public static double code(double x, double y) {
	return Math.cos(x) * (Math.sinh(y) / y);
}
def code(x, y):
	return math.cos(x) * (math.sinh(y) / y)
function code(x, y)
	return Float64(cos(x) * Float64(sinh(y) / y))
end
function tmp = code(x, y)
	tmp = cos(x) * (sinh(y) / y);
end
code[x_, y_] := N[(N[Cos[x], $MachinePrecision] * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\cos x \cdot \frac{\sinh y}{y}
\end{array}

Alternative 1: 100.0% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \cos x \cdot \frac{\sinh y}{y} \end{array} \]
(FPCore (x y) :precision binary64 (* (cos x) (/ (sinh y) y)))
double code(double x, double y) {
	return cos(x) * (sinh(y) / y);
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = cos(x) * (sinh(y) / y)
end function
public static double code(double x, double y) {
	return Math.cos(x) * (Math.sinh(y) / y);
}
def code(x, y):
	return math.cos(x) * (math.sinh(y) / y)
function code(x, y)
	return Float64(cos(x) * Float64(sinh(y) / y))
end
function tmp = code(x, y)
	tmp = cos(x) * (sinh(y) / y);
end
code[x_, y_] := N[(N[Cos[x], $MachinePrecision] * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\cos x \cdot \frac{\sinh y}{y}
\end{array}
Derivation
  1. Initial program 100.0%

    \[\cos x \cdot \frac{\sinh y}{y} \]
  2. Add Preprocessing
  3. Add Preprocessing

Alternative 2: 72.3% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 1.6 \cdot 10^{-6}:\\ \;\;\;\;\cos x\\ \mathbf{elif}\;y \leq 1.35 \cdot 10^{+154}:\\ \;\;\;\;\frac{\sinh y}{y}\\ \mathbf{else}:\\ \;\;\;\;\cos x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y)
 :precision binary64
 (if (<= y 1.6e-6)
   (cos x)
   (if (<= y 1.35e+154)
     (/ (sinh y) y)
     (* (cos x) (+ 1.0 (* 0.16666666666666666 (* y y)))))))
double code(double x, double y) {
	double tmp;
	if (y <= 1.6e-6) {
		tmp = cos(x);
	} else if (y <= 1.35e+154) {
		tmp = sinh(y) / y;
	} else {
		tmp = cos(x) * (1.0 + (0.16666666666666666 * (y * y)));
	}
	return tmp;
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8) :: tmp
    if (y <= 1.6d-6) then
        tmp = cos(x)
    else if (y <= 1.35d+154) then
        tmp = sinh(y) / y
    else
        tmp = cos(x) * (1.0d0 + (0.16666666666666666d0 * (y * y)))
    end if
    code = tmp
end function
public static double code(double x, double y) {
	double tmp;
	if (y <= 1.6e-6) {
		tmp = Math.cos(x);
	} else if (y <= 1.35e+154) {
		tmp = Math.sinh(y) / y;
	} else {
		tmp = Math.cos(x) * (1.0 + (0.16666666666666666 * (y * y)));
	}
	return tmp;
}
def code(x, y):
	tmp = 0
	if y <= 1.6e-6:
		tmp = math.cos(x)
	elif y <= 1.35e+154:
		tmp = math.sinh(y) / y
	else:
		tmp = math.cos(x) * (1.0 + (0.16666666666666666 * (y * y)))
	return tmp
function code(x, y)
	tmp = 0.0
	if (y <= 1.6e-6)
		tmp = cos(x);
	elseif (y <= 1.35e+154)
		tmp = Float64(sinh(y) / y);
	else
		tmp = Float64(cos(x) * Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y))));
	end
	return tmp
end
function tmp_2 = code(x, y)
	tmp = 0.0;
	if (y <= 1.6e-6)
		tmp = cos(x);
	elseif (y <= 1.35e+154)
		tmp = sinh(y) / y;
	else
		tmp = cos(x) * (1.0 + (0.16666666666666666 * (y * y)));
	end
	tmp_2 = tmp;
end
code[x_, y_] := If[LessEqual[y, 1.6e-6], N[Cos[x], $MachinePrecision], If[LessEqual[y, 1.35e+154], N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision], N[(N[Cos[x], $MachinePrecision] * N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.6 \cdot 10^{-6}:\\
\;\;\;\;\cos x\\

\mathbf{elif}\;y \leq 1.35 \cdot 10^{+154}:\\
\;\;\;\;\frac{\sinh y}{y}\\

\mathbf{else}:\\
\;\;\;\;\cos x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < 1.5999999999999999e-6

    1. Initial program 100.0%

      \[\cos x \cdot \frac{\sinh y}{y} \]
    2. Add Preprocessing
    3. Taylor expanded in y around 0

      \[\leadsto \color{blue}{\cos x} \]
    4. Step-by-step derivation
      1. cos-lowering-cos.f6474.0%

        \[\leadsto \mathsf{cos.f64}\left(x\right) \]
    5. Simplified74.0%

      \[\leadsto \color{blue}{\cos x} \]

    if 1.5999999999999999e-6 < y < 1.35000000000000003e154

    1. Initial program 100.0%

      \[\cos x \cdot \frac{\sinh y}{y} \]
    2. Add Preprocessing
    3. Taylor expanded in x around 0

      \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
    4. Step-by-step derivation
      1. Simplified76.1%

        \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
      2. Step-by-step derivation
        1. *-lft-identityN/A

          \[\leadsto \frac{\sinh y}{\color{blue}{y}} \]
        2. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(\sinh y, \color{blue}{y}\right) \]
        3. sinh-lowering-sinh.f6476.1%

          \[\leadsto \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right) \]
      3. Applied egg-rr76.1%

        \[\leadsto \color{blue}{\frac{\sinh y}{y}} \]

      if 1.35000000000000003e154 < y

      1. Initial program 100.0%

        \[\cos x \cdot \frac{\sinh y}{y} \]
      2. Add Preprocessing
      3. Taylor expanded in y around 0

        \[\leadsto \color{blue}{\cos x + \frac{1}{6} \cdot \left({y}^{2} \cdot \cos x\right)} \]
      4. Step-by-step derivation
        1. *-lft-identityN/A

          \[\leadsto 1 \cdot \cos x + \color{blue}{\frac{1}{6}} \cdot \left({y}^{2} \cdot \cos x\right) \]
        2. associate-*r*N/A

          \[\leadsto 1 \cdot \cos x + \left(\frac{1}{6} \cdot {y}^{2}\right) \cdot \color{blue}{\cos x} \]
        3. distribute-rgt-inN/A

          \[\leadsto \cos x \cdot \color{blue}{\left(1 + \frac{1}{6} \cdot {y}^{2}\right)} \]
        4. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(\cos x, \color{blue}{\left(1 + \frac{1}{6} \cdot {y}^{2}\right)}\right) \]
        5. cos-lowering-cos.f64N/A

          \[\leadsto \mathsf{*.f64}\left(\mathsf{cos.f64}\left(x\right), \left(\color{blue}{1} + \frac{1}{6} \cdot {y}^{2}\right)\right) \]
        6. +-lowering-+.f64N/A

          \[\leadsto \mathsf{*.f64}\left(\mathsf{cos.f64}\left(x\right), \mathsf{+.f64}\left(1, \color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right)}\right)\right) \]
        7. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(\mathsf{cos.f64}\left(x\right), \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \color{blue}{\left({y}^{2}\right)}\right)\right)\right) \]
        8. unpow2N/A

          \[\leadsto \mathsf{*.f64}\left(\mathsf{cos.f64}\left(x\right), \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \left(y \cdot \color{blue}{y}\right)\right)\right)\right) \]
        9. *-lowering-*.f64100.0%

          \[\leadsto \mathsf{*.f64}\left(\mathsf{cos.f64}\left(x\right), \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right)\right) \]
      5. Simplified100.0%

        \[\leadsto \color{blue}{\cos x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)} \]
    5. Recombined 3 regimes into one program.
    6. Add Preprocessing

    Alternative 3: 69.3% accurate, 1.8× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 7.2 \cdot 10^{-5}:\\ \;\;\;\;\cos x\\ \mathbf{elif}\;y \leq 2.2 \cdot 10^{+157}:\\ \;\;\;\;\frac{\sinh y}{y}\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\ \end{array} \end{array} \]
    (FPCore (x y)
     :precision binary64
     (if (<= y 7.2e-5)
       (cos x)
       (if (<= y 2.2e+157)
         (/ (sinh y) y)
         (* (* y y) (+ 0.16666666666666666 (* (* x x) -0.08333333333333333))))))
    double code(double x, double y) {
    	double tmp;
    	if (y <= 7.2e-5) {
    		tmp = cos(x);
    	} else if (y <= 2.2e+157) {
    		tmp = sinh(y) / y;
    	} else {
    		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
    	}
    	return tmp;
    }
    
    real(8) function code(x, y)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8) :: tmp
        if (y <= 7.2d-5) then
            tmp = cos(x)
        else if (y <= 2.2d+157) then
            tmp = sinh(y) / y
        else
            tmp = (y * y) * (0.16666666666666666d0 + ((x * x) * (-0.08333333333333333d0)))
        end if
        code = tmp
    end function
    
    public static double code(double x, double y) {
    	double tmp;
    	if (y <= 7.2e-5) {
    		tmp = Math.cos(x);
    	} else if (y <= 2.2e+157) {
    		tmp = Math.sinh(y) / y;
    	} else {
    		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
    	}
    	return tmp;
    }
    
    def code(x, y):
    	tmp = 0
    	if y <= 7.2e-5:
    		tmp = math.cos(x)
    	elif y <= 2.2e+157:
    		tmp = math.sinh(y) / y
    	else:
    		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333))
    	return tmp
    
    function code(x, y)
    	tmp = 0.0
    	if (y <= 7.2e-5)
    		tmp = cos(x);
    	elseif (y <= 2.2e+157)
    		tmp = Float64(sinh(y) / y);
    	else
    		tmp = Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.08333333333333333)));
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y)
    	tmp = 0.0;
    	if (y <= 7.2e-5)
    		tmp = cos(x);
    	elseif (y <= 2.2e+157)
    		tmp = sinh(y) / y;
    	else
    		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_] := If[LessEqual[y, 7.2e-5], N[Cos[x], $MachinePrecision], If[LessEqual[y, 2.2e+157], N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision], N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.08333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;y \leq 7.2 \cdot 10^{-5}:\\
    \;\;\;\;\cos x\\
    
    \mathbf{elif}\;y \leq 2.2 \cdot 10^{+157}:\\
    \;\;\;\;\frac{\sinh y}{y}\\
    
    \mathbf{else}:\\
    \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if y < 7.20000000000000018e-5

      1. Initial program 100.0%

        \[\cos x \cdot \frac{\sinh y}{y} \]
      2. Add Preprocessing
      3. Taylor expanded in y around 0

        \[\leadsto \color{blue}{\cos x} \]
      4. Step-by-step derivation
        1. cos-lowering-cos.f6474.0%

          \[\leadsto \mathsf{cos.f64}\left(x\right) \]
      5. Simplified74.0%

        \[\leadsto \color{blue}{\cos x} \]

      if 7.20000000000000018e-5 < y < 2.2000000000000001e157

      1. Initial program 100.0%

        \[\cos x \cdot \frac{\sinh y}{y} \]
      2. Add Preprocessing
      3. Taylor expanded in x around 0

        \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
      4. Step-by-step derivation
        1. Simplified76.7%

          \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
        2. Step-by-step derivation
          1. *-lft-identityN/A

            \[\leadsto \frac{\sinh y}{\color{blue}{y}} \]
          2. /-lowering-/.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\sinh y, \color{blue}{y}\right) \]
          3. sinh-lowering-sinh.f6476.7%

            \[\leadsto \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right) \]
        3. Applied egg-rr76.7%

          \[\leadsto \color{blue}{\frac{\sinh y}{y}} \]

        if 2.2000000000000001e157 < y

        1. Initial program 100.0%

          \[\cos x \cdot \frac{\sinh y}{y} \]
        2. Add Preprocessing
        3. Taylor expanded in x around 0

          \[\leadsto \mathsf{*.f64}\left(\color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
        4. Step-by-step derivation
          1. +-lowering-+.f64N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left(\frac{-1}{2} \cdot {x}^{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\mathsf{sinh.f64}\left(y\right)}, y\right)\right) \]
          2. *-commutativeN/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left({x}^{2} \cdot \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
          3. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({x}^{2}\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
          4. unpow2N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
          5. *-lowering-*.f6492.3%

            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
        5. Simplified92.3%

          \[\leadsto \color{blue}{\left(1 + \left(x \cdot x\right) \cdot -0.5\right)} \cdot \frac{\sinh y}{y} \]
        6. Taylor expanded in y around 0

          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)}, y\right)\right) \]
        7. Step-by-step derivation
          1. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right), y\right)\right) \]
          2. +-lowering-+.f64N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\frac{1}{6} \cdot {y}^{2}\right)\right)\right), y\right)\right) \]
          3. *-commutativeN/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
          4. unpow2N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
          5. associate-*l*N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
          6. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
          7. *-lowering-*.f6492.3%

            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
        8. Simplified92.3%

          \[\leadsto \left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{\color{blue}{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}}{y} \]
        9. Taylor expanded in y around inf

          \[\leadsto \color{blue}{\frac{1}{6} \cdot \left({y}^{2} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
        10. Step-by-step derivation
          1. associate-*r*N/A

            \[\leadsto \left(\frac{1}{6} \cdot {y}^{2}\right) \cdot \color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)} \]
          2. *-commutativeN/A

            \[\leadsto \left({y}^{2} \cdot \frac{1}{6}\right) \cdot \left(\color{blue}{1} + \frac{-1}{2} \cdot {x}^{2}\right) \]
          3. associate-*l*N/A

            \[\leadsto {y}^{2} \cdot \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
          4. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)}\right) \]
          5. unpow2N/A

            \[\leadsto \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
          6. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
          7. distribute-lft-inN/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} \cdot 1 + \color{blue}{\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)}\right)\right) \]
          8. metadata-evalN/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + \color{blue}{\frac{1}{6}} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
          9. +-lowering-+.f64N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)}\right)\right) \]
          10. *-commutativeN/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(\frac{-1}{2} \cdot {x}^{2}\right) \cdot \color{blue}{\frac{1}{6}}\right)\right)\right) \]
          11. *-commutativeN/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left({x}^{2} \cdot \frac{-1}{2}\right) \cdot \frac{1}{6}\right)\right)\right) \]
          12. associate-*l*N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({x}^{2} \cdot \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
          13. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
          14. unpow2N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(x \cdot x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
          15. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
          16. metadata-eval92.3%

            \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{12}\right)\right)\right) \]
        11. Simplified92.3%

          \[\leadsto \color{blue}{\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)} \]
      5. Recombined 3 regimes into one program.
      6. Add Preprocessing

      Alternative 4: 68.1% accurate, 1.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_0 := \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\\ \mathbf{if}\;y \leq 2.5 \cdot 10^{-5}:\\ \;\;\;\;\cos x\\ \mathbf{elif}\;y \leq 5 \cdot 10^{+44}:\\ \;\;\;\;\frac{t\_0 \cdot t\_0 + -1}{t\_0 + -1}\\ \mathbf{elif}\;y \leq 2.7 \cdot 10^{+145}:\\ \;\;\;\;\frac{1}{y} \cdot \left(y \cdot \left(1 + y \cdot \left(\left(\left(0.0001984126984126984 + \frac{0.008333333333333333}{y \cdot y}\right) + \frac{\frac{0.16666666666666666}{y \cdot y}}{y \cdot y}\right) \cdot \left(y \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}{y}\\ \end{array} \end{array} \]
      (FPCore (x y)
       :precision binary64
       (let* ((t_0
               (*
                (* y y)
                (+
                 0.16666666666666666
                 (*
                  y
                  (*
                   y
                   (+ 0.008333333333333333 (* (* y y) 0.0001984126984126984))))))))
         (if (<= y 2.5e-5)
           (cos x)
           (if (<= y 5e+44)
             (/ (+ (* t_0 t_0) -1.0) (+ t_0 -1.0))
             (if (<= y 2.7e+145)
               (*
                (/ 1.0 y)
                (*
                 y
                 (+
                  1.0
                  (*
                   y
                   (*
                    (+
                     (+ 0.0001984126984126984 (/ 0.008333333333333333 (* y y)))
                     (/ (/ 0.16666666666666666 (* y y)) (* y y)))
                    (* y (* y (* y (* y y)))))))))
               (*
                (+ 1.0 (* (* x x) -0.5))
                (/ (* y (+ 1.0 (* y (* y 0.16666666666666666)))) y)))))))
      double code(double x, double y) {
      	double t_0 = (y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))));
      	double tmp;
      	if (y <= 2.5e-5) {
      		tmp = cos(x);
      	} else if (y <= 5e+44) {
      		tmp = ((t_0 * t_0) + -1.0) / (t_0 + -1.0);
      	} else if (y <= 2.7e+145) {
      		tmp = (1.0 / y) * (y * (1.0 + (y * (((0.0001984126984126984 + (0.008333333333333333 / (y * y))) + ((0.16666666666666666 / (y * y)) / (y * y))) * (y * (y * (y * (y * y))))))));
      	} else {
      		tmp = (1.0 + ((x * x) * -0.5)) * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / y);
      	}
      	return tmp;
      }
      
      real(8) function code(x, y)
          real(8), intent (in) :: x
          real(8), intent (in) :: y
          real(8) :: t_0
          real(8) :: tmp
          t_0 = (y * y) * (0.16666666666666666d0 + (y * (y * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)))))
          if (y <= 2.5d-5) then
              tmp = cos(x)
          else if (y <= 5d+44) then
              tmp = ((t_0 * t_0) + (-1.0d0)) / (t_0 + (-1.0d0))
          else if (y <= 2.7d+145) then
              tmp = (1.0d0 / y) * (y * (1.0d0 + (y * (((0.0001984126984126984d0 + (0.008333333333333333d0 / (y * y))) + ((0.16666666666666666d0 / (y * y)) / (y * y))) * (y * (y * (y * (y * y))))))))
          else
              tmp = (1.0d0 + ((x * x) * (-0.5d0))) * ((y * (1.0d0 + (y * (y * 0.16666666666666666d0)))) / y)
          end if
          code = tmp
      end function
      
      public static double code(double x, double y) {
      	double t_0 = (y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))));
      	double tmp;
      	if (y <= 2.5e-5) {
      		tmp = Math.cos(x);
      	} else if (y <= 5e+44) {
      		tmp = ((t_0 * t_0) + -1.0) / (t_0 + -1.0);
      	} else if (y <= 2.7e+145) {
      		tmp = (1.0 / y) * (y * (1.0 + (y * (((0.0001984126984126984 + (0.008333333333333333 / (y * y))) + ((0.16666666666666666 / (y * y)) / (y * y))) * (y * (y * (y * (y * y))))))));
      	} else {
      		tmp = (1.0 + ((x * x) * -0.5)) * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / y);
      	}
      	return tmp;
      }
      
      def code(x, y):
      	t_0 = (y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))
      	tmp = 0
      	if y <= 2.5e-5:
      		tmp = math.cos(x)
      	elif y <= 5e+44:
      		tmp = ((t_0 * t_0) + -1.0) / (t_0 + -1.0)
      	elif y <= 2.7e+145:
      		tmp = (1.0 / y) * (y * (1.0 + (y * (((0.0001984126984126984 + (0.008333333333333333 / (y * y))) + ((0.16666666666666666 / (y * y)) / (y * y))) * (y * (y * (y * (y * y))))))))
      	else:
      		tmp = (1.0 + ((x * x) * -0.5)) * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / y)
      	return tmp
      
      function code(x, y)
      	t_0 = Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(y * Float64(y * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984))))))
      	tmp = 0.0
      	if (y <= 2.5e-5)
      		tmp = cos(x);
      	elseif (y <= 5e+44)
      		tmp = Float64(Float64(Float64(t_0 * t_0) + -1.0) / Float64(t_0 + -1.0));
      	elseif (y <= 2.7e+145)
      		tmp = Float64(Float64(1.0 / y) * Float64(y * Float64(1.0 + Float64(y * Float64(Float64(Float64(0.0001984126984126984 + Float64(0.008333333333333333 / Float64(y * y))) + Float64(Float64(0.16666666666666666 / Float64(y * y)) / Float64(y * y))) * Float64(y * Float64(y * Float64(y * Float64(y * y)))))))));
      	else
      		tmp = Float64(Float64(1.0 + Float64(Float64(x * x) * -0.5)) * Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666)))) / y));
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y)
      	t_0 = (y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))));
      	tmp = 0.0;
      	if (y <= 2.5e-5)
      		tmp = cos(x);
      	elseif (y <= 5e+44)
      		tmp = ((t_0 * t_0) + -1.0) / (t_0 + -1.0);
      	elseif (y <= 2.7e+145)
      		tmp = (1.0 / y) * (y * (1.0 + (y * (((0.0001984126984126984 + (0.008333333333333333 / (y * y))) + ((0.16666666666666666 / (y * y)) / (y * y))) * (y * (y * (y * (y * y))))))));
      	else
      		tmp = (1.0 + ((x * x) * -0.5)) * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / y);
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_] := Block[{t$95$0 = N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(y * N[(y * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 2.5e-5], N[Cos[x], $MachinePrecision], If[LessEqual[y, 5e+44], N[(N[(N[(t$95$0 * t$95$0), $MachinePrecision] + -1.0), $MachinePrecision] / N[(t$95$0 + -1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.7e+145], N[(N[(1.0 / y), $MachinePrecision] * N[(y * N[(1.0 + N[(y * N[(N[(N[(0.0001984126984126984 + N[(0.008333333333333333 / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(0.16666666666666666 / N[(y * y), $MachinePrecision]), $MachinePrecision] / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y * N[(y * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 + N[(N[(x * x), $MachinePrecision] * -0.5), $MachinePrecision]), $MachinePrecision] * N[(N[(y * N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_0 := \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\\
      \mathbf{if}\;y \leq 2.5 \cdot 10^{-5}:\\
      \;\;\;\;\cos x\\
      
      \mathbf{elif}\;y \leq 5 \cdot 10^{+44}:\\
      \;\;\;\;\frac{t\_0 \cdot t\_0 + -1}{t\_0 + -1}\\
      
      \mathbf{elif}\;y \leq 2.7 \cdot 10^{+145}:\\
      \;\;\;\;\frac{1}{y} \cdot \left(y \cdot \left(1 + y \cdot \left(\left(\left(0.0001984126984126984 + \frac{0.008333333333333333}{y \cdot y}\right) + \frac{\frac{0.16666666666666666}{y \cdot y}}{y \cdot y}\right) \cdot \left(y \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\right)\right)\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;\left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}{y}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 4 regimes
      2. if y < 2.50000000000000012e-5

        1. Initial program 100.0%

          \[\cos x \cdot \frac{\sinh y}{y} \]
        2. Add Preprocessing
        3. Taylor expanded in y around 0

          \[\leadsto \color{blue}{\cos x} \]
        4. Step-by-step derivation
          1. cos-lowering-cos.f6474.0%

            \[\leadsto \mathsf{cos.f64}\left(x\right) \]
        5. Simplified74.0%

          \[\leadsto \color{blue}{\cos x} \]

        if 2.50000000000000012e-5 < y < 4.9999999999999996e44

        1. Initial program 100.0%

          \[\cos x \cdot \frac{\sinh y}{y} \]
        2. Add Preprocessing
        3. Taylor expanded in x around 0

          \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
        4. Step-by-step derivation
          1. Simplified81.5%

            \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
          2. Taylor expanded in y around 0

            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
          3. Step-by-step derivation
            1. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
            2. +-lowering-+.f64N/A

              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
            3. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
            4. unpow2N/A

              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
            5. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
            6. +-lowering-+.f64N/A

              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
            7. unpow2N/A

              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
            8. associate-*l*N/A

              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
            9. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
            10. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
            11. +-lowering-+.f64N/A

              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
            12. *-commutativeN/A

              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
            13. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
            14. unpow2N/A

              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
            15. *-lowering-*.f647.5%

              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
          4. Simplified7.5%

            \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
          5. Step-by-step derivation
            1. *-lft-identityN/A

              \[\leadsto \frac{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}{\color{blue}{y}} \]
            2. clear-numN/A

              \[\leadsto \frac{1}{\color{blue}{\frac{y}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}}} \]
            3. associate-/r/N/A

              \[\leadsto \frac{1}{y} \cdot \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)} \]
            4. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\left(\frac{1}{y}\right), \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)}\right) \]
            5. /-lowering-/.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \left(\color{blue}{y} \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right) \]
            6. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \color{blue}{\left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right) \]
            7. +-lowering-+.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \color{blue}{\left(\left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right) \]
            8. associate-*l*N/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
            9. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
            10. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right) \]
            11. +-lowering-+.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right)\right) \]
            12. associate-*r*N/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
            13. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(y \cdot y\right), \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
            14. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{120}} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right) \]
            15. +-lowering-+.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \color{blue}{\left(\left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right) \]
            16. associate-*l*N/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \left(y \cdot \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
            17. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
          6. Applied egg-rr7.5%

            \[\leadsto \color{blue}{\frac{1}{y} \cdot \left(y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\right)} \]
          7. Applied egg-rr39.0%

            \[\leadsto \color{blue}{\frac{\left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right) \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right) - 1}{\left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right) - 1}} \]

          if 4.9999999999999996e44 < y < 2.70000000000000022e145

          1. Initial program 100.0%

            \[\cos x \cdot \frac{\sinh y}{y} \]
          2. Add Preprocessing
          3. Taylor expanded in x around 0

            \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
          4. Step-by-step derivation
            1. Simplified73.7%

              \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
            2. Taylor expanded in y around 0

              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
            3. Step-by-step derivation
              1. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
              2. +-lowering-+.f64N/A

                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
              3. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
              4. unpow2N/A

                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
              5. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
              6. +-lowering-+.f64N/A

                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
              7. unpow2N/A

                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
              8. associate-*l*N/A

                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
              9. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
              10. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
              11. +-lowering-+.f64N/A

                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
              12. *-commutativeN/A

                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
              13. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
              14. unpow2N/A

                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
              15. *-lowering-*.f6473.7%

                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
            4. Simplified73.7%

              \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
            5. Step-by-step derivation
              1. *-lft-identityN/A

                \[\leadsto \frac{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}{\color{blue}{y}} \]
              2. clear-numN/A

                \[\leadsto \frac{1}{\color{blue}{\frac{y}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}}} \]
              3. associate-/r/N/A

                \[\leadsto \frac{1}{y} \cdot \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)} \]
              4. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\left(\frac{1}{y}\right), \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)}\right) \]
              5. /-lowering-/.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \left(\color{blue}{y} \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right) \]
              6. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \color{blue}{\left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right) \]
              7. +-lowering-+.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \color{blue}{\left(\left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right) \]
              8. associate-*l*N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
              9. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
              10. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right) \]
              11. +-lowering-+.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right)\right) \]
              12. associate-*r*N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
              13. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(y \cdot y\right), \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
              14. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{120}} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right) \]
              15. +-lowering-+.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \color{blue}{\left(\left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right) \]
              16. associate-*l*N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \left(y \cdot \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
              17. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
            6. Applied egg-rr73.7%

              \[\leadsto \color{blue}{\frac{1}{y} \cdot \left(y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\right)} \]
            7. Taylor expanded in y around inf

              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \color{blue}{\left({y}^{5} \cdot \left(\frac{1}{5040} + \left(\frac{\frac{1}{6}}{{y}^{4}} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right)\right)}\right)\right)\right)\right) \]
            8. Simplified73.7%

              \[\leadsto \frac{1}{y} \cdot \left(y \cdot \left(1 + y \cdot \color{blue}{\left(\left(\left(0.0001984126984126984 + \frac{0.008333333333333333}{y \cdot y}\right) + \frac{\frac{0.16666666666666666}{y \cdot y}}{y \cdot y}\right) \cdot \left(\left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right) \cdot y\right)\right)}\right)\right) \]

            if 2.70000000000000022e145 < y

            1. Initial program 100.0%

              \[\cos x \cdot \frac{\sinh y}{y} \]
            2. Add Preprocessing
            3. Taylor expanded in x around 0

              \[\leadsto \mathsf{*.f64}\left(\color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
            4. Step-by-step derivation
              1. +-lowering-+.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left(\frac{-1}{2} \cdot {x}^{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\mathsf{sinh.f64}\left(y\right)}, y\right)\right) \]
              2. *-commutativeN/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left({x}^{2} \cdot \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
              3. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({x}^{2}\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
              4. unpow2N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
              5. *-lowering-*.f6493.1%

                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
            5. Simplified93.1%

              \[\leadsto \color{blue}{\left(1 + \left(x \cdot x\right) \cdot -0.5\right)} \cdot \frac{\sinh y}{y} \]
            6. Taylor expanded in y around 0

              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)}, y\right)\right) \]
            7. Step-by-step derivation
              1. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right), y\right)\right) \]
              2. +-lowering-+.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\frac{1}{6} \cdot {y}^{2}\right)\right)\right), y\right)\right) \]
              3. *-commutativeN/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
              4. unpow2N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
              5. associate-*l*N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
              6. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
              7. *-lowering-*.f6493.1%

                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
            8. Simplified93.1%

              \[\leadsto \left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{\color{blue}{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}}{y} \]
          5. Recombined 4 regimes into one program.
          6. Final simplification73.7%

            \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 2.5 \cdot 10^{-5}:\\ \;\;\;\;\cos x\\ \mathbf{elif}\;y \leq 5 \cdot 10^{+44}:\\ \;\;\;\;\frac{\left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right) \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right) + -1}{\left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right) + -1}\\ \mathbf{elif}\;y \leq 2.7 \cdot 10^{+145}:\\ \;\;\;\;\frac{1}{y} \cdot \left(y \cdot \left(1 + y \cdot \left(\left(\left(0.0001984126984126984 + \frac{0.008333333333333333}{y \cdot y}\right) + \frac{\frac{0.16666666666666666}{y \cdot y}}{y \cdot y}\right) \cdot \left(y \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}{y}\\ \end{array} \]
          7. Add Preprocessing

          Alternative 5: 46.8% accurate, 3.3× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_0 := \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\\ \mathbf{if}\;y \leq 5 \cdot 10^{+44}:\\ \;\;\;\;\frac{t\_0 \cdot t\_0 + -1}{t\_0 + -1}\\ \mathbf{elif}\;y \leq 4 \cdot 10^{+144}:\\ \;\;\;\;\frac{1}{y} \cdot \left(y \cdot \left(1 + y \cdot \left(\left(\left(0.0001984126984126984 + \frac{0.008333333333333333}{y \cdot y}\right) + \frac{\frac{0.16666666666666666}{y \cdot y}}{y \cdot y}\right) \cdot \left(y \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}{y}\\ \end{array} \end{array} \]
          (FPCore (x y)
           :precision binary64
           (let* ((t_0
                   (*
                    (* y y)
                    (+
                     0.16666666666666666
                     (*
                      y
                      (*
                       y
                       (+ 0.008333333333333333 (* (* y y) 0.0001984126984126984))))))))
             (if (<= y 5e+44)
               (/ (+ (* t_0 t_0) -1.0) (+ t_0 -1.0))
               (if (<= y 4e+144)
                 (*
                  (/ 1.0 y)
                  (*
                   y
                   (+
                    1.0
                    (*
                     y
                     (*
                      (+
                       (+ 0.0001984126984126984 (/ 0.008333333333333333 (* y y)))
                       (/ (/ 0.16666666666666666 (* y y)) (* y y)))
                      (* y (* y (* y (* y y)))))))))
                 (*
                  (+ 1.0 (* (* x x) -0.5))
                  (/ (* y (+ 1.0 (* y (* y 0.16666666666666666)))) y))))))
          double code(double x, double y) {
          	double t_0 = (y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))));
          	double tmp;
          	if (y <= 5e+44) {
          		tmp = ((t_0 * t_0) + -1.0) / (t_0 + -1.0);
          	} else if (y <= 4e+144) {
          		tmp = (1.0 / y) * (y * (1.0 + (y * (((0.0001984126984126984 + (0.008333333333333333 / (y * y))) + ((0.16666666666666666 / (y * y)) / (y * y))) * (y * (y * (y * (y * y))))))));
          	} else {
          		tmp = (1.0 + ((x * x) * -0.5)) * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / y);
          	}
          	return tmp;
          }
          
          real(8) function code(x, y)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              real(8) :: t_0
              real(8) :: tmp
              t_0 = (y * y) * (0.16666666666666666d0 + (y * (y * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)))))
              if (y <= 5d+44) then
                  tmp = ((t_0 * t_0) + (-1.0d0)) / (t_0 + (-1.0d0))
              else if (y <= 4d+144) then
                  tmp = (1.0d0 / y) * (y * (1.0d0 + (y * (((0.0001984126984126984d0 + (0.008333333333333333d0 / (y * y))) + ((0.16666666666666666d0 / (y * y)) / (y * y))) * (y * (y * (y * (y * y))))))))
              else
                  tmp = (1.0d0 + ((x * x) * (-0.5d0))) * ((y * (1.0d0 + (y * (y * 0.16666666666666666d0)))) / y)
              end if
              code = tmp
          end function
          
          public static double code(double x, double y) {
          	double t_0 = (y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))));
          	double tmp;
          	if (y <= 5e+44) {
          		tmp = ((t_0 * t_0) + -1.0) / (t_0 + -1.0);
          	} else if (y <= 4e+144) {
          		tmp = (1.0 / y) * (y * (1.0 + (y * (((0.0001984126984126984 + (0.008333333333333333 / (y * y))) + ((0.16666666666666666 / (y * y)) / (y * y))) * (y * (y * (y * (y * y))))))));
          	} else {
          		tmp = (1.0 + ((x * x) * -0.5)) * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / y);
          	}
          	return tmp;
          }
          
          def code(x, y):
          	t_0 = (y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))
          	tmp = 0
          	if y <= 5e+44:
          		tmp = ((t_0 * t_0) + -1.0) / (t_0 + -1.0)
          	elif y <= 4e+144:
          		tmp = (1.0 / y) * (y * (1.0 + (y * (((0.0001984126984126984 + (0.008333333333333333 / (y * y))) + ((0.16666666666666666 / (y * y)) / (y * y))) * (y * (y * (y * (y * y))))))))
          	else:
          		tmp = (1.0 + ((x * x) * -0.5)) * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / y)
          	return tmp
          
          function code(x, y)
          	t_0 = Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(y * Float64(y * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984))))))
          	tmp = 0.0
          	if (y <= 5e+44)
          		tmp = Float64(Float64(Float64(t_0 * t_0) + -1.0) / Float64(t_0 + -1.0));
          	elseif (y <= 4e+144)
          		tmp = Float64(Float64(1.0 / y) * Float64(y * Float64(1.0 + Float64(y * Float64(Float64(Float64(0.0001984126984126984 + Float64(0.008333333333333333 / Float64(y * y))) + Float64(Float64(0.16666666666666666 / Float64(y * y)) / Float64(y * y))) * Float64(y * Float64(y * Float64(y * Float64(y * y)))))))));
          	else
          		tmp = Float64(Float64(1.0 + Float64(Float64(x * x) * -0.5)) * Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666)))) / y));
          	end
          	return tmp
          end
          
          function tmp_2 = code(x, y)
          	t_0 = (y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))));
          	tmp = 0.0;
          	if (y <= 5e+44)
          		tmp = ((t_0 * t_0) + -1.0) / (t_0 + -1.0);
          	elseif (y <= 4e+144)
          		tmp = (1.0 / y) * (y * (1.0 + (y * (((0.0001984126984126984 + (0.008333333333333333 / (y * y))) + ((0.16666666666666666 / (y * y)) / (y * y))) * (y * (y * (y * (y * y))))))));
          	else
          		tmp = (1.0 + ((x * x) * -0.5)) * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / y);
          	end
          	tmp_2 = tmp;
          end
          
          code[x_, y_] := Block[{t$95$0 = N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(y * N[(y * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 5e+44], N[(N[(N[(t$95$0 * t$95$0), $MachinePrecision] + -1.0), $MachinePrecision] / N[(t$95$0 + -1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4e+144], N[(N[(1.0 / y), $MachinePrecision] * N[(y * N[(1.0 + N[(y * N[(N[(N[(0.0001984126984126984 + N[(0.008333333333333333 / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(0.16666666666666666 / N[(y * y), $MachinePrecision]), $MachinePrecision] / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y * N[(y * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 + N[(N[(x * x), $MachinePrecision] * -0.5), $MachinePrecision]), $MachinePrecision] * N[(N[(y * N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_0 := \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\\
          \mathbf{if}\;y \leq 5 \cdot 10^{+44}:\\
          \;\;\;\;\frac{t\_0 \cdot t\_0 + -1}{t\_0 + -1}\\
          
          \mathbf{elif}\;y \leq 4 \cdot 10^{+144}:\\
          \;\;\;\;\frac{1}{y} \cdot \left(y \cdot \left(1 + y \cdot \left(\left(\left(0.0001984126984126984 + \frac{0.008333333333333333}{y \cdot y}\right) + \frac{\frac{0.16666666666666666}{y \cdot y}}{y \cdot y}\right) \cdot \left(y \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\right)\right)\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}{y}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if y < 4.9999999999999996e44

            1. Initial program 100.0%

              \[\cos x \cdot \frac{\sinh y}{y} \]
            2. Add Preprocessing
            3. Taylor expanded in x around 0

              \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
            4. Step-by-step derivation
              1. Simplified65.5%

                \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
              2. Taylor expanded in y around 0

                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
              3. Step-by-step derivation
                1. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                2. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                3. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                4. unpow2N/A

                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                5. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                6. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                7. unpow2N/A

                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                8. associate-*l*N/A

                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                9. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                10. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                11. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                12. *-commutativeN/A

                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                13. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                14. unpow2N/A

                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                15. *-lowering-*.f6455.0%

                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
              4. Simplified55.0%

                \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
              5. Step-by-step derivation
                1. *-lft-identityN/A

                  \[\leadsto \frac{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}{\color{blue}{y}} \]
                2. clear-numN/A

                  \[\leadsto \frac{1}{\color{blue}{\frac{y}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}}} \]
                3. associate-/r/N/A

                  \[\leadsto \frac{1}{y} \cdot \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)} \]
                4. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(\left(\frac{1}{y}\right), \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)}\right) \]
                5. /-lowering-/.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \left(\color{blue}{y} \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right) \]
                6. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \color{blue}{\left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right) \]
                7. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \color{blue}{\left(\left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right) \]
                8. associate-*l*N/A

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
                9. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
                10. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right) \]
                11. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right)\right) \]
                12. associate-*r*N/A

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                13. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(y \cdot y\right), \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                14. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{120}} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right) \]
                15. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \color{blue}{\left(\left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right) \]
                16. associate-*l*N/A

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \left(y \cdot \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
                17. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
              6. Applied egg-rr54.8%

                \[\leadsto \color{blue}{\frac{1}{y} \cdot \left(y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\right)} \]
              7. Applied egg-rr47.5%

                \[\leadsto \color{blue}{\frac{\left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right) \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right) - 1}{\left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right) - 1}} \]

              if 4.9999999999999996e44 < y < 4.00000000000000009e144

              1. Initial program 100.0%

                \[\cos x \cdot \frac{\sinh y}{y} \]
              2. Add Preprocessing
              3. Taylor expanded in x around 0

                \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
              4. Step-by-step derivation
                1. Simplified73.7%

                  \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                2. Taylor expanded in y around 0

                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
                3. Step-by-step derivation
                  1. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                  2. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                  3. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                  4. unpow2N/A

                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                  5. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                  6. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                  7. unpow2N/A

                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                  8. associate-*l*N/A

                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                  9. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                  10. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                  11. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                  12. *-commutativeN/A

                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                  13. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                  14. unpow2N/A

                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                  15. *-lowering-*.f6473.7%

                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                4. Simplified73.7%

                  \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
                5. Step-by-step derivation
                  1. *-lft-identityN/A

                    \[\leadsto \frac{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}{\color{blue}{y}} \]
                  2. clear-numN/A

                    \[\leadsto \frac{1}{\color{blue}{\frac{y}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}}} \]
                  3. associate-/r/N/A

                    \[\leadsto \frac{1}{y} \cdot \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)} \]
                  4. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\left(\frac{1}{y}\right), \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)}\right) \]
                  5. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \left(\color{blue}{y} \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right) \]
                  6. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \color{blue}{\left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right) \]
                  7. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \color{blue}{\left(\left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right) \]
                  8. associate-*l*N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
                  9. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
                  10. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right) \]
                  11. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right)\right) \]
                  12. associate-*r*N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                  13. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(y \cdot y\right), \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                  14. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{120}} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right) \]
                  15. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \color{blue}{\left(\left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right) \]
                  16. associate-*l*N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \left(y \cdot \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
                  17. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
                6. Applied egg-rr73.7%

                  \[\leadsto \color{blue}{\frac{1}{y} \cdot \left(y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\right)} \]
                7. Taylor expanded in y around inf

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \color{blue}{\left({y}^{5} \cdot \left(\frac{1}{5040} + \left(\frac{\frac{1}{6}}{{y}^{4}} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right)\right)}\right)\right)\right)\right) \]
                8. Simplified73.7%

                  \[\leadsto \frac{1}{y} \cdot \left(y \cdot \left(1 + y \cdot \color{blue}{\left(\left(\left(0.0001984126984126984 + \frac{0.008333333333333333}{y \cdot y}\right) + \frac{\frac{0.16666666666666666}{y \cdot y}}{y \cdot y}\right) \cdot \left(\left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right) \cdot y\right)\right)}\right)\right) \]

                if 4.00000000000000009e144 < y

                1. Initial program 100.0%

                  \[\cos x \cdot \frac{\sinh y}{y} \]
                2. Add Preprocessing
                3. Taylor expanded in x around 0

                  \[\leadsto \mathsf{*.f64}\left(\color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                4. Step-by-step derivation
                  1. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left(\frac{-1}{2} \cdot {x}^{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\mathsf{sinh.f64}\left(y\right)}, y\right)\right) \]
                  2. *-commutativeN/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left({x}^{2} \cdot \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                  3. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({x}^{2}\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                  4. unpow2N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                  5. *-lowering-*.f6493.1%

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                5. Simplified93.1%

                  \[\leadsto \color{blue}{\left(1 + \left(x \cdot x\right) \cdot -0.5\right)} \cdot \frac{\sinh y}{y} \]
                6. Taylor expanded in y around 0

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)}, y\right)\right) \]
                7. Step-by-step derivation
                  1. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right), y\right)\right) \]
                  2. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\frac{1}{6} \cdot {y}^{2}\right)\right)\right), y\right)\right) \]
                  3. *-commutativeN/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                  4. unpow2N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                  5. associate-*l*N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                  6. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                  7. *-lowering-*.f6493.1%

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                8. Simplified93.1%

                  \[\leadsto \left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{\color{blue}{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}}{y} \]
              5. Recombined 3 regimes into one program.
              6. Final simplification54.6%

                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 5 \cdot 10^{+44}:\\ \;\;\;\;\frac{\left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right) \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right) + -1}{\left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right) + -1}\\ \mathbf{elif}\;y \leq 4 \cdot 10^{+144}:\\ \;\;\;\;\frac{1}{y} \cdot \left(y \cdot \left(1 + y \cdot \left(\left(\left(0.0001984126984126984 + \frac{0.008333333333333333}{y \cdot y}\right) + \frac{\frac{0.16666666666666666}{y \cdot y}}{y \cdot y}\right) \cdot \left(y \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}{y}\\ \end{array} \]
              7. Add Preprocessing

              Alternative 6: 47.7% accurate, 3.8× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_0 := 0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\\ \mathbf{if}\;y \leq 4.2 \cdot 10^{+77}:\\ \;\;\;\;\frac{y \cdot \left(1 + \frac{\left(y \cdot y\right) \cdot \left(0.027777777777777776 - \left(\left(y \cdot y\right) \cdot \left(y \cdot y\right)\right) \cdot \left(t\_0 \cdot t\_0\right)\right)}{0.16666666666666666 - \left(y \cdot y\right) \cdot t\_0}\right)}{y}\\ \mathbf{else}:\\ \;\;\;\;\left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\right)\\ \end{array} \end{array} \]
              (FPCore (x y)
               :precision binary64
               (let* ((t_0 (+ 0.008333333333333333 (* y (* y 0.0001984126984126984)))))
                 (if (<= y 4.2e+77)
                   (/
                    (*
                     y
                     (+
                      1.0
                      (/
                       (*
                        (* y y)
                        (- 0.027777777777777776 (* (* (* y y) (* y y)) (* t_0 t_0))))
                       (- 0.16666666666666666 (* (* y y) t_0)))))
                    y)
                   (*
                    (+ 1.0 (* (* x x) -0.5))
                    (+
                     1.0
                     (*
                      y
                      (* y (+ 0.16666666666666666 (* (* y y) 0.008333333333333333)))))))))
              double code(double x, double y) {
              	double t_0 = 0.008333333333333333 + (y * (y * 0.0001984126984126984));
              	double tmp;
              	if (y <= 4.2e+77) {
              		tmp = (y * (1.0 + (((y * y) * (0.027777777777777776 - (((y * y) * (y * y)) * (t_0 * t_0)))) / (0.16666666666666666 - ((y * y) * t_0))))) / y;
              	} else {
              		tmp = (1.0 + ((x * x) * -0.5)) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))));
              	}
              	return tmp;
              }
              
              real(8) function code(x, y)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  real(8) :: t_0
                  real(8) :: tmp
                  t_0 = 0.008333333333333333d0 + (y * (y * 0.0001984126984126984d0))
                  if (y <= 4.2d+77) then
                      tmp = (y * (1.0d0 + (((y * y) * (0.027777777777777776d0 - (((y * y) * (y * y)) * (t_0 * t_0)))) / (0.16666666666666666d0 - ((y * y) * t_0))))) / y
                  else
                      tmp = (1.0d0 + ((x * x) * (-0.5d0))) * (1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * 0.008333333333333333d0)))))
                  end if
                  code = tmp
              end function
              
              public static double code(double x, double y) {
              	double t_0 = 0.008333333333333333 + (y * (y * 0.0001984126984126984));
              	double tmp;
              	if (y <= 4.2e+77) {
              		tmp = (y * (1.0 + (((y * y) * (0.027777777777777776 - (((y * y) * (y * y)) * (t_0 * t_0)))) / (0.16666666666666666 - ((y * y) * t_0))))) / y;
              	} else {
              		tmp = (1.0 + ((x * x) * -0.5)) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))));
              	}
              	return tmp;
              }
              
              def code(x, y):
              	t_0 = 0.008333333333333333 + (y * (y * 0.0001984126984126984))
              	tmp = 0
              	if y <= 4.2e+77:
              		tmp = (y * (1.0 + (((y * y) * (0.027777777777777776 - (((y * y) * (y * y)) * (t_0 * t_0)))) / (0.16666666666666666 - ((y * y) * t_0))))) / y
              	else:
              		tmp = (1.0 + ((x * x) * -0.5)) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))))
              	return tmp
              
              function code(x, y)
              	t_0 = Float64(0.008333333333333333 + Float64(y * Float64(y * 0.0001984126984126984)))
              	tmp = 0.0
              	if (y <= 4.2e+77)
              		tmp = Float64(Float64(y * Float64(1.0 + Float64(Float64(Float64(y * y) * Float64(0.027777777777777776 - Float64(Float64(Float64(y * y) * Float64(y * y)) * Float64(t_0 * t_0)))) / Float64(0.16666666666666666 - Float64(Float64(y * y) * t_0))))) / y);
              	else
              		tmp = Float64(Float64(1.0 + Float64(Float64(x * x) * -0.5)) * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * 0.008333333333333333))))));
              	end
              	return tmp
              end
              
              function tmp_2 = code(x, y)
              	t_0 = 0.008333333333333333 + (y * (y * 0.0001984126984126984));
              	tmp = 0.0;
              	if (y <= 4.2e+77)
              		tmp = (y * (1.0 + (((y * y) * (0.027777777777777776 - (((y * y) * (y * y)) * (t_0 * t_0)))) / (0.16666666666666666 - ((y * y) * t_0))))) / y;
              	else
              		tmp = (1.0 + ((x * x) * -0.5)) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))));
              	end
              	tmp_2 = tmp;
              end
              
              code[x_, y_] := Block[{t$95$0 = N[(0.008333333333333333 + N[(y * N[(y * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 4.2e+77], N[(N[(y * N[(1.0 + N[(N[(N[(y * y), $MachinePrecision] * N[(0.027777777777777776 - N[(N[(N[(y * y), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision] * N[(t$95$0 * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.16666666666666666 - N[(N[(y * y), $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(1.0 + N[(N[(x * x), $MachinePrecision] * -0.5), $MachinePrecision]), $MachinePrecision] * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_0 := 0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\\
              \mathbf{if}\;y \leq 4.2 \cdot 10^{+77}:\\
              \;\;\;\;\frac{y \cdot \left(1 + \frac{\left(y \cdot y\right) \cdot \left(0.027777777777777776 - \left(\left(y \cdot y\right) \cdot \left(y \cdot y\right)\right) \cdot \left(t\_0 \cdot t\_0\right)\right)}{0.16666666666666666 - \left(y \cdot y\right) \cdot t\_0}\right)}{y}\\
              
              \mathbf{else}:\\
              \;\;\;\;\left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\right)\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if y < 4.1999999999999997e77

                1. Initial program 100.0%

                  \[\cos x \cdot \frac{\sinh y}{y} \]
                2. Add Preprocessing
                3. Taylor expanded in x around 0

                  \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                4. Step-by-step derivation
                  1. Simplified65.5%

                    \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                  2. Taylor expanded in y around 0

                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
                  3. Step-by-step derivation
                    1. *-lowering-*.f64N/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                    2. +-lowering-+.f64N/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                    3. *-lowering-*.f64N/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                    4. unpow2N/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                    5. *-lowering-*.f64N/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                    6. +-lowering-+.f64N/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                    7. unpow2N/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                    8. associate-*l*N/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                    9. *-lowering-*.f64N/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                    10. *-lowering-*.f64N/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                    11. +-lowering-+.f64N/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                    12. *-commutativeN/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                    13. *-lowering-*.f64N/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                    14. unpow2N/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                    15. *-lowering-*.f6455.5%

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                  4. Simplified55.5%

                    \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
                  5. Step-by-step derivation
                    1. *-commutativeN/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right) \cdot \left(y \cdot y\right)\right)\right)\right), y\right)\right) \]
                    2. flip-+N/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\frac{\frac{1}{6} \cdot \frac{1}{6} - \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right) \cdot \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}{\frac{1}{6} - y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)} \cdot \left(y \cdot y\right)\right)\right)\right), y\right)\right) \]
                    3. associate-*l/N/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\frac{\left(\frac{1}{6} \cdot \frac{1}{6} - \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right) \cdot \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right) \cdot \left(y \cdot y\right)}{\frac{1}{6} - y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)}\right)\right)\right), y\right)\right) \]
                    4. /-lowering-/.f64N/A

                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{/.f64}\left(\left(\left(\frac{1}{6} \cdot \frac{1}{6} - \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right) \cdot \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right) \cdot \left(y \cdot y\right)\right), \left(\frac{1}{6} - y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                  6. Applied egg-rr48.8%

                    \[\leadsto 1 \cdot \frac{y \cdot \left(1 + \color{blue}{\frac{\left(0.027777777777777776 - \left(\left(y \cdot y\right) \cdot \left(y \cdot y\right)\right) \cdot \left(\left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right) \cdot \left(y \cdot y\right)}{0.16666666666666666 - \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)}}\right)}{y} \]

                  if 4.1999999999999997e77 < y

                  1. Initial program 100.0%

                    \[\cos x \cdot \frac{\sinh y}{y} \]
                  2. Add Preprocessing
                  3. Taylor expanded in x around 0

                    \[\leadsto \mathsf{*.f64}\left(\color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                  4. Step-by-step derivation
                    1. +-lowering-+.f64N/A

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left(\frac{-1}{2} \cdot {x}^{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\mathsf{sinh.f64}\left(y\right)}, y\right)\right) \]
                    2. *-commutativeN/A

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left({x}^{2} \cdot \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                    3. *-lowering-*.f64N/A

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({x}^{2}\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                    4. unpow2N/A

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                    5. *-lowering-*.f6487.2%

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                  5. Simplified87.2%

                    \[\leadsto \color{blue}{\left(1 + \left(x \cdot x\right) \cdot -0.5\right)} \cdot \frac{\sinh y}{y} \]
                  6. Taylor expanded in y around 0

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \color{blue}{\left(1 + {y}^{2} \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)}\right) \]
                  7. Step-by-step derivation
                    1. +-lowering-+.f64N/A

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{+.f64}\left(1, \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)}\right)\right) \]
                    2. unpow2N/A

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \left(\color{blue}{\frac{1}{6}} + \frac{1}{120} \cdot {y}^{2}\right)\right)\right)\right) \]
                    3. associate-*l*N/A

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{+.f64}\left(1, \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)}\right)\right)\right) \]
                    4. *-lowering-*.f64N/A

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)}\right)\right)\right) \]
                    5. *-lowering-*.f64N/A

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)}\right)\right)\right)\right) \]
                    6. +-lowering-+.f64N/A

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(\frac{1}{120} \cdot {y}^{2}\right)}\right)\right)\right)\right)\right) \]
                    7. *-commutativeN/A

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \color{blue}{\frac{1}{120}}\right)\right)\right)\right)\right)\right) \]
                    8. *-lowering-*.f64N/A

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\frac{1}{120}}\right)\right)\right)\right)\right)\right) \]
                    9. unpow2N/A

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{120}\right)\right)\right)\right)\right)\right) \]
                    10. *-lowering-*.f6487.2%

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{120}\right)\right)\right)\right)\right)\right) \]
                  8. Simplified87.2%

                    \[\leadsto \left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \color{blue}{\left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\right)} \]
                5. Recombined 2 regimes into one program.
                6. Final simplification54.6%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 4.2 \cdot 10^{+77}:\\ \;\;\;\;\frac{y \cdot \left(1 + \frac{\left(y \cdot y\right) \cdot \left(0.027777777777777776 - \left(\left(y \cdot y\right) \cdot \left(y \cdot y\right)\right) \cdot \left(\left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)}{0.16666666666666666 - \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)}\right)}{y}\\ \mathbf{else}:\\ \;\;\;\;\left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\right)\\ \end{array} \]
                7. Add Preprocessing

                Alternative 7: 58.3% accurate, 6.0× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 10000:\\ \;\;\;\;1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\\ \mathbf{elif}\;y \leq 2.26 \cdot 10^{+45}:\\ \;\;\;\;1 + x \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot -0.001388888888888889\right)\right)\right)\right)\\ \mathbf{elif}\;y \leq 2 \cdot 10^{+157}:\\ \;\;\;\;\frac{1}{y} \cdot \left(y \cdot \left(\left(y \cdot y\right) \cdot \left(y \cdot \left(0.0001984126984126984 \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\ \end{array} \end{array} \]
                (FPCore (x y)
                 :precision binary64
                 (if (<= y 10000.0)
                   (+ 1.0 (* y (* y (+ 0.16666666666666666 (* (* y y) 0.008333333333333333)))))
                   (if (<= y 2.26e+45)
                     (+ 1.0 (* x (* x (* x (* x (* (* x x) -0.001388888888888889))))))
                     (if (<= y 2e+157)
                       (*
                        (/ 1.0 y)
                        (* y (* (* y y) (* y (* 0.0001984126984126984 (* y (* y y)))))))
                       (* (* y y) (+ 0.16666666666666666 (* (* x x) -0.08333333333333333)))))))
                double code(double x, double y) {
                	double tmp;
                	if (y <= 10000.0) {
                		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
                	} else if (y <= 2.26e+45) {
                		tmp = 1.0 + (x * (x * (x * (x * ((x * x) * -0.001388888888888889)))));
                	} else if (y <= 2e+157) {
                		tmp = (1.0 / y) * (y * ((y * y) * (y * (0.0001984126984126984 * (y * (y * y))))));
                	} else {
                		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                	}
                	return tmp;
                }
                
                real(8) function code(x, y)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    real(8) :: tmp
                    if (y <= 10000.0d0) then
                        tmp = 1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * 0.008333333333333333d0))))
                    else if (y <= 2.26d+45) then
                        tmp = 1.0d0 + (x * (x * (x * (x * ((x * x) * (-0.001388888888888889d0))))))
                    else if (y <= 2d+157) then
                        tmp = (1.0d0 / y) * (y * ((y * y) * (y * (0.0001984126984126984d0 * (y * (y * y))))))
                    else
                        tmp = (y * y) * (0.16666666666666666d0 + ((x * x) * (-0.08333333333333333d0)))
                    end if
                    code = tmp
                end function
                
                public static double code(double x, double y) {
                	double tmp;
                	if (y <= 10000.0) {
                		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
                	} else if (y <= 2.26e+45) {
                		tmp = 1.0 + (x * (x * (x * (x * ((x * x) * -0.001388888888888889)))));
                	} else if (y <= 2e+157) {
                		tmp = (1.0 / y) * (y * ((y * y) * (y * (0.0001984126984126984 * (y * (y * y))))));
                	} else {
                		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                	}
                	return tmp;
                }
                
                def code(x, y):
                	tmp = 0
                	if y <= 10000.0:
                		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))))
                	elif y <= 2.26e+45:
                		tmp = 1.0 + (x * (x * (x * (x * ((x * x) * -0.001388888888888889)))))
                	elif y <= 2e+157:
                		tmp = (1.0 / y) * (y * ((y * y) * (y * (0.0001984126984126984 * (y * (y * y))))))
                	else:
                		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333))
                	return tmp
                
                function code(x, y)
                	tmp = 0.0
                	if (y <= 10000.0)
                		tmp = Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * 0.008333333333333333)))));
                	elseif (y <= 2.26e+45)
                		tmp = Float64(1.0 + Float64(x * Float64(x * Float64(x * Float64(x * Float64(Float64(x * x) * -0.001388888888888889))))));
                	elseif (y <= 2e+157)
                		tmp = Float64(Float64(1.0 / y) * Float64(y * Float64(Float64(y * y) * Float64(y * Float64(0.0001984126984126984 * Float64(y * Float64(y * y)))))));
                	else
                		tmp = Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.08333333333333333)));
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y)
                	tmp = 0.0;
                	if (y <= 10000.0)
                		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
                	elseif (y <= 2.26e+45)
                		tmp = 1.0 + (x * (x * (x * (x * ((x * x) * -0.001388888888888889)))));
                	elseif (y <= 2e+157)
                		tmp = (1.0 / y) * (y * ((y * y) * (y * (0.0001984126984126984 * (y * (y * y))))));
                	else
                		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_] := If[LessEqual[y, 10000.0], N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.26e+45], N[(1.0 + N[(x * N[(x * N[(x * N[(x * N[(N[(x * x), $MachinePrecision] * -0.001388888888888889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e+157], N[(N[(1.0 / y), $MachinePrecision] * N[(y * N[(N[(y * y), $MachinePrecision] * N[(y * N[(0.0001984126984126984 * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.08333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                \mathbf{if}\;y \leq 10000:\\
                \;\;\;\;1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\\
                
                \mathbf{elif}\;y \leq 2.26 \cdot 10^{+45}:\\
                \;\;\;\;1 + x \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot -0.001388888888888889\right)\right)\right)\right)\\
                
                \mathbf{elif}\;y \leq 2 \cdot 10^{+157}:\\
                \;\;\;\;\frac{1}{y} \cdot \left(y \cdot \left(\left(y \cdot y\right) \cdot \left(y \cdot \left(0.0001984126984126984 \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\right)\right)\\
                
                \mathbf{else}:\\
                \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 4 regimes
                2. if y < 1e4

                  1. Initial program 100.0%

                    \[\cos x \cdot \frac{\sinh y}{y} \]
                  2. Add Preprocessing
                  3. Taylor expanded in x around 0

                    \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                  4. Step-by-step derivation
                    1. Simplified64.4%

                      \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                    2. Taylor expanded in y around 0

                      \[\leadsto \color{blue}{1 + {y}^{2} \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)} \]
                    3. Step-by-step derivation
                      1. +-lowering-+.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)}\right) \]
                      2. unpow2N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \left(\color{blue}{\frac{1}{6}} + \frac{1}{120} \cdot {y}^{2}\right)\right)\right) \]
                      3. associate-*l*N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)}\right)\right) \]
                      4. *-lowering-*.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)}\right)\right) \]
                      5. *-lowering-*.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)}\right)\right)\right) \]
                      6. +-lowering-+.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(\frac{1}{120} \cdot {y}^{2}\right)}\right)\right)\right)\right) \]
                      7. *-commutativeN/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \color{blue}{\frac{1}{120}}\right)\right)\right)\right)\right) \]
                      8. *-lowering-*.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\frac{1}{120}}\right)\right)\right)\right)\right) \]
                      9. unpow2N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{120}\right)\right)\right)\right)\right) \]
                      10. *-lowering-*.f6457.0%

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{120}\right)\right)\right)\right)\right) \]
                    4. Simplified57.0%

                      \[\leadsto \color{blue}{1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)} \]

                    if 1e4 < y < 2.26000000000000009e45

                    1. Initial program 100.0%

                      \[\cos x \cdot \frac{\sinh y}{y} \]
                    2. Add Preprocessing
                    3. Taylor expanded in y around 0

                      \[\leadsto \color{blue}{\cos x} \]
                    4. Step-by-step derivation
                      1. cos-lowering-cos.f643.1%

                        \[\leadsto \mathsf{cos.f64}\left(x\right) \]
                    5. Simplified3.1%

                      \[\leadsto \color{blue}{\cos x} \]
                    6. Taylor expanded in x around 0

                      \[\leadsto \color{blue}{1 + {x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right)} \]
                    7. Step-by-step derivation
                      1. +-lowering-+.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left({x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right)\right)}\right) \]
                      2. unpow2N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \left(\left(x \cdot x\right) \cdot \left(\color{blue}{{x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)} - \frac{1}{2}\right)\right)\right) \]
                      3. associate-*l*N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \left(x \cdot \color{blue}{\left(x \cdot \left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right)\right)}\right)\right) \]
                      4. *-commutativeN/A

                        \[\leadsto \mathsf{+.f64}\left(1, \left(x \cdot \left(\left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right) \cdot \color{blue}{x}\right)\right)\right) \]
                      5. *-lowering-*.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \color{blue}{\left(\left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right) \cdot x\right)}\right)\right) \]
                      6. *-commutativeN/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right)}\right)\right)\right) \]
                      7. *-lowering-*.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right)}\right)\right)\right) \]
                      8. sub-negN/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) + \color{blue}{\left(\mathsf{neg}\left(\frac{1}{2}\right)\right)}\right)\right)\right)\right) \]
                      9. metadata-evalN/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) + \frac{-1}{2}\right)\right)\right)\right) \]
                      10. +-commutativeN/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{2} + \color{blue}{{x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right) \]
                      11. +-lowering-+.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \color{blue}{\left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)\right)}\right)\right)\right)\right) \]
                      12. unpow2N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \left(\left(x \cdot x\right) \cdot \left(\color{blue}{\frac{1}{24}} + \frac{-1}{720} \cdot {x}^{2}\right)\right)\right)\right)\right)\right) \]
                      13. associate-*l*N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \left(x \cdot \color{blue}{\left(x \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)\right)}\right)\right)\right)\right)\right) \]
                      14. *-lowering-*.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \color{blue}{\left(x \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)\right)}\right)\right)\right)\right)\right) \]
                      15. *-lowering-*.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right)\right)\right) \]
                      16. +-lowering-+.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{1}{24}, \color{blue}{\left(\frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                      17. *-commutativeN/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{1}{24}, \left({x}^{2} \cdot \color{blue}{\frac{-1}{720}}\right)\right)\right)\right)\right)\right)\right)\right) \]
                      18. *-lowering-*.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\frac{-1}{720}}\right)\right)\right)\right)\right)\right)\right)\right) \]
                      19. unpow2N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{720}\right)\right)\right)\right)\right)\right)\right)\right) \]
                      20. *-lowering-*.f6426.6%

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{720}\right)\right)\right)\right)\right)\right)\right)\right) \]
                    8. Simplified26.6%

                      \[\leadsto \color{blue}{1 + x \cdot \left(x \cdot \left(-0.5 + x \cdot \left(x \cdot \left(0.041666666666666664 + \left(x \cdot x\right) \cdot -0.001388888888888889\right)\right)\right)\right)} \]
                    9. Taylor expanded in x around inf

                      \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{-1}{720} \cdot {x}^{4}\right)}\right)\right)\right) \]
                    10. Step-by-step derivation
                      1. metadata-evalN/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{720} \cdot {x}^{\left(2 \cdot \color{blue}{2}\right)}\right)\right)\right)\right) \]
                      2. pow-sqrN/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{720} \cdot \left({x}^{2} \cdot \color{blue}{{x}^{2}}\right)\right)\right)\right)\right) \]
                      3. associate-*l*N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\left(\frac{-1}{720} \cdot {x}^{2}\right) \cdot \color{blue}{{x}^{2}}\right)\right)\right)\right) \]
                      4. *-commutativeN/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left({x}^{2} \cdot \color{blue}{\left(\frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right) \]
                      5. unpow2N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\left(x \cdot x\right) \cdot \left(\color{blue}{\frac{-1}{720}} \cdot {x}^{2}\right)\right)\right)\right)\right) \]
                      6. associate-*l*N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(x \cdot \left(\frac{-1}{720} \cdot {x}^{2}\right)\right)}\right)\right)\right)\right) \]
                      7. *-commutativeN/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \left(\left(\frac{-1}{720} \cdot {x}^{2}\right) \cdot \color{blue}{x}\right)\right)\right)\right)\right) \]
                      8. associate-*r*N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \left(\frac{-1}{720} \cdot \color{blue}{\left({x}^{2} \cdot x\right)}\right)\right)\right)\right)\right) \]
                      9. unpow2N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \left(\frac{-1}{720} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right)\right)\right)\right)\right) \]
                      10. unpow3N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \left(\frac{-1}{720} \cdot {x}^{\color{blue}{3}}\right)\right)\right)\right)\right) \]
                      11. *-lowering-*.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{-1}{720} \cdot {x}^{3}\right)}\right)\right)\right)\right) \]
                      12. unpow3N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{720} \cdot \left(\left(x \cdot x\right) \cdot \color{blue}{x}\right)\right)\right)\right)\right)\right) \]
                      13. unpow2N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{720} \cdot \left({x}^{2} \cdot x\right)\right)\right)\right)\right)\right) \]
                      14. associate-*r*N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\left(\frac{-1}{720} \cdot {x}^{2}\right) \cdot \color{blue}{x}\right)\right)\right)\right)\right) \]
                      15. *-commutativeN/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(\frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right)\right) \]
                      16. *-lowering-*.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right)\right) \]
                      17. *-commutativeN/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left({x}^{2} \cdot \color{blue}{\frac{-1}{720}}\right)\right)\right)\right)\right)\right) \]
                      18. *-lowering-*.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\frac{-1}{720}}\right)\right)\right)\right)\right)\right) \]
                      19. unpow2N/A

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{720}\right)\right)\right)\right)\right)\right) \]
                      20. *-lowering-*.f6426.6%

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{720}\right)\right)\right)\right)\right)\right) \]
                    11. Simplified26.6%

                      \[\leadsto 1 + x \cdot \left(x \cdot \color{blue}{\left(x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot -0.001388888888888889\right)\right)\right)}\right) \]

                    if 2.26000000000000009e45 < y < 1.99999999999999997e157

                    1. Initial program 100.0%

                      \[\cos x \cdot \frac{\sinh y}{y} \]
                    2. Add Preprocessing
                    3. Taylor expanded in x around 0

                      \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                    4. Step-by-step derivation
                      1. Simplified76.2%

                        \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                      2. Taylor expanded in y around 0

                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
                      3. Step-by-step derivation
                        1. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                        2. +-lowering-+.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                        3. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                        4. unpow2N/A

                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                        5. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                        6. +-lowering-+.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                        7. unpow2N/A

                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                        8. associate-*l*N/A

                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                        9. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                        10. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                        11. +-lowering-+.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                        12. *-commutativeN/A

                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                        13. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                        14. unpow2N/A

                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                        15. *-lowering-*.f6476.2%

                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                      4. Simplified76.2%

                        \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
                      5. Step-by-step derivation
                        1. *-lft-identityN/A

                          \[\leadsto \frac{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}{\color{blue}{y}} \]
                        2. clear-numN/A

                          \[\leadsto \frac{1}{\color{blue}{\frac{y}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}}} \]
                        3. associate-/r/N/A

                          \[\leadsto \frac{1}{y} \cdot \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)} \]
                        4. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\left(\frac{1}{y}\right), \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)}\right) \]
                        5. /-lowering-/.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \left(\color{blue}{y} \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right) \]
                        6. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \color{blue}{\left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right) \]
                        7. +-lowering-+.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \color{blue}{\left(\left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right) \]
                        8. associate-*l*N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
                        9. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
                        10. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right) \]
                        11. +-lowering-+.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right)\right) \]
                        12. associate-*r*N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                        13. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(y \cdot y\right), \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                        14. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{120}} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right) \]
                        15. +-lowering-+.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \color{blue}{\left(\left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right) \]
                        16. associate-*l*N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \left(y \cdot \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
                        17. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
                      6. Applied egg-rr76.2%

                        \[\leadsto \color{blue}{\frac{1}{y} \cdot \left(y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\right)} \]
                      7. Taylor expanded in y around inf

                        \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{1}{5040} \cdot {y}^{6}\right)}\right)\right) \]
                      8. Step-by-step derivation
                        1. metadata-evalN/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot {y}^{\left(2 \cdot \color{blue}{3}\right)}\right)\right)\right) \]
                        2. pow-sqrN/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot \left({y}^{3} \cdot \color{blue}{{y}^{3}}\right)\right)\right)\right) \]
                        3. cube-prodN/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot {\left(y \cdot y\right)}^{\color{blue}{3}}\right)\right)\right) \]
                        4. unpow2N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot {\left({y}^{2}\right)}^{3}\right)\right)\right) \]
                        5. unpow3N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot \left(\left({y}^{2} \cdot {y}^{2}\right) \cdot \color{blue}{{y}^{2}}\right)\right)\right)\right) \]
                        6. pow-sqrN/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot \left({y}^{\left(2 \cdot 2\right)} \cdot {\color{blue}{y}}^{2}\right)\right)\right)\right) \]
                        7. metadata-evalN/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot \left({y}^{4} \cdot {y}^{2}\right)\right)\right)\right) \]
                        8. associate-*l*N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \left(\left(\frac{1}{5040} \cdot {y}^{4}\right) \cdot \color{blue}{{y}^{2}}\right)\right)\right) \]
                        9. *-commutativeN/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \left(\left({y}^{4} \cdot \frac{1}{5040}\right) \cdot {\color{blue}{y}}^{2}\right)\right)\right) \]
                        10. associate-*l*N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \left({y}^{4} \cdot \color{blue}{\left(\frac{1}{5040} \cdot {y}^{2}\right)}\right)\right)\right) \]
                        11. metadata-evalN/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \left({y}^{\left(2 \cdot 2\right)} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right) \]
                        12. pow-sqrN/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \left(\left({y}^{2} \cdot {y}^{2}\right) \cdot \left(\color{blue}{\frac{1}{5040}} \cdot {y}^{2}\right)\right)\right)\right) \]
                        13. associate-*r*N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \left({y}^{2} \cdot \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)}\right)\right)\right) \]
                        14. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)}\right)\right)\right) \]
                        15. unpow2N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\color{blue}{{y}^{2}} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right) \]
                        16. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{{y}^{2}} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right) \]
                        17. unpow2N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\left(y \cdot y\right) \cdot \left(\color{blue}{\frac{1}{5040}} \cdot {y}^{2}\right)\right)\right)\right)\right) \]
                        18. associate-*l*N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)}\right)\right)\right)\right) \]
                        19. *-commutativeN/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(y \cdot \left(\left(\frac{1}{5040} \cdot {y}^{2}\right) \cdot \color{blue}{y}\right)\right)\right)\right)\right) \]
                        20. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \color{blue}{\left(\left(\frac{1}{5040} \cdot {y}^{2}\right) \cdot y\right)}\right)\right)\right)\right) \]
                        21. associate-*l*N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot \color{blue}{\left({y}^{2} \cdot y\right)}\right)\right)\right)\right)\right) \]
                        22. unpow2N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot \left(\left(y \cdot y\right) \cdot y\right)\right)\right)\right)\right)\right) \]
                        23. unpow3N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot {y}^{\color{blue}{3}}\right)\right)\right)\right)\right) \]
                        24. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\frac{1}{5040}, \color{blue}{\left({y}^{3}\right)}\right)\right)\right)\right)\right) \]
                        25. cube-multN/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\frac{1}{5040}, \left(y \cdot \color{blue}{\left(y \cdot y\right)}\right)\right)\right)\right)\right)\right) \]
                        26. unpow2N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\frac{1}{5040}, \left(y \cdot {y}^{\color{blue}{2}}\right)\right)\right)\right)\right)\right) \]
                        27. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\frac{1}{5040}, \mathsf{*.f64}\left(y, \color{blue}{\left({y}^{2}\right)}\right)\right)\right)\right)\right)\right) \]
                      9. Simplified76.2%

                        \[\leadsto \frac{1}{y} \cdot \left(y \cdot \color{blue}{\left(\left(y \cdot y\right) \cdot \left(y \cdot \left(0.0001984126984126984 \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\right)}\right) \]

                      if 1.99999999999999997e157 < y

                      1. Initial program 100.0%

                        \[\cos x \cdot \frac{\sinh y}{y} \]
                      2. Add Preprocessing
                      3. Taylor expanded in x around 0

                        \[\leadsto \mathsf{*.f64}\left(\color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                      4. Step-by-step derivation
                        1. +-lowering-+.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left(\frac{-1}{2} \cdot {x}^{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\mathsf{sinh.f64}\left(y\right)}, y\right)\right) \]
                        2. *-commutativeN/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left({x}^{2} \cdot \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                        3. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({x}^{2}\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                        4. unpow2N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                        5. *-lowering-*.f6492.3%

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                      5. Simplified92.3%

                        \[\leadsto \color{blue}{\left(1 + \left(x \cdot x\right) \cdot -0.5\right)} \cdot \frac{\sinh y}{y} \]
                      6. Taylor expanded in y around 0

                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)}, y\right)\right) \]
                      7. Step-by-step derivation
                        1. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right), y\right)\right) \]
                        2. +-lowering-+.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\frac{1}{6} \cdot {y}^{2}\right)\right)\right), y\right)\right) \]
                        3. *-commutativeN/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                        4. unpow2N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                        5. associate-*l*N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                        6. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                        7. *-lowering-*.f6492.3%

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                      8. Simplified92.3%

                        \[\leadsto \left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{\color{blue}{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}}{y} \]
                      9. Taylor expanded in y around inf

                        \[\leadsto \color{blue}{\frac{1}{6} \cdot \left({y}^{2} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                      10. Step-by-step derivation
                        1. associate-*r*N/A

                          \[\leadsto \left(\frac{1}{6} \cdot {y}^{2}\right) \cdot \color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)} \]
                        2. *-commutativeN/A

                          \[\leadsto \left({y}^{2} \cdot \frac{1}{6}\right) \cdot \left(\color{blue}{1} + \frac{-1}{2} \cdot {x}^{2}\right) \]
                        3. associate-*l*N/A

                          \[\leadsto {y}^{2} \cdot \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                        4. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)}\right) \]
                        5. unpow2N/A

                          \[\leadsto \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                        6. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                        7. distribute-lft-inN/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} \cdot 1 + \color{blue}{\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)}\right)\right) \]
                        8. metadata-evalN/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + \color{blue}{\frac{1}{6}} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                        9. +-lowering-+.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)}\right)\right) \]
                        10. *-commutativeN/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(\frac{-1}{2} \cdot {x}^{2}\right) \cdot \color{blue}{\frac{1}{6}}\right)\right)\right) \]
                        11. *-commutativeN/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left({x}^{2} \cdot \frac{-1}{2}\right) \cdot \frac{1}{6}\right)\right)\right) \]
                        12. associate-*l*N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({x}^{2} \cdot \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                        13. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                        14. unpow2N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(x \cdot x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                        15. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                        16. metadata-eval92.3%

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{12}\right)\right)\right) \]
                      11. Simplified92.3%

                        \[\leadsto \color{blue}{\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)} \]
                    5. Recombined 4 regimes into one program.
                    6. Add Preprocessing

                    Alternative 8: 58.1% accurate, 6.0× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 8600:\\ \;\;\;\;1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\\ \mathbf{elif}\;y \leq 2.26 \cdot 10^{+45}:\\ \;\;\;\;1 + x \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot -0.001388888888888889\right)\right)\right)\right)\\ \mathbf{elif}\;y \leq 10^{+142}:\\ \;\;\;\;\left(0.0001984126984126984 + \frac{0.008333333333333333}{y \cdot y}\right) \cdot \left(\left(y \cdot y\right) \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}{y}\\ \end{array} \end{array} \]
                    (FPCore (x y)
                     :precision binary64
                     (if (<= y 8600.0)
                       (+ 1.0 (* y (* y (+ 0.16666666666666666 (* (* y y) 0.008333333333333333)))))
                       (if (<= y 2.26e+45)
                         (+ 1.0 (* x (* x (* x (* x (* (* x x) -0.001388888888888889))))))
                         (if (<= y 1e+142)
                           (*
                            (+ 0.0001984126984126984 (/ 0.008333333333333333 (* y y)))
                            (* (* y y) (* y (* y (* y y)))))
                           (*
                            (+ 1.0 (* (* x x) -0.5))
                            (/ (* y (+ 1.0 (* y (* y 0.16666666666666666)))) y))))))
                    double code(double x, double y) {
                    	double tmp;
                    	if (y <= 8600.0) {
                    		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
                    	} else if (y <= 2.26e+45) {
                    		tmp = 1.0 + (x * (x * (x * (x * ((x * x) * -0.001388888888888889)))));
                    	} else if (y <= 1e+142) {
                    		tmp = (0.0001984126984126984 + (0.008333333333333333 / (y * y))) * ((y * y) * (y * (y * (y * y))));
                    	} else {
                    		tmp = (1.0 + ((x * x) * -0.5)) * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / y);
                    	}
                    	return tmp;
                    }
                    
                    real(8) function code(x, y)
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8) :: tmp
                        if (y <= 8600.0d0) then
                            tmp = 1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * 0.008333333333333333d0))))
                        else if (y <= 2.26d+45) then
                            tmp = 1.0d0 + (x * (x * (x * (x * ((x * x) * (-0.001388888888888889d0))))))
                        else if (y <= 1d+142) then
                            tmp = (0.0001984126984126984d0 + (0.008333333333333333d0 / (y * y))) * ((y * y) * (y * (y * (y * y))))
                        else
                            tmp = (1.0d0 + ((x * x) * (-0.5d0))) * ((y * (1.0d0 + (y * (y * 0.16666666666666666d0)))) / y)
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y) {
                    	double tmp;
                    	if (y <= 8600.0) {
                    		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
                    	} else if (y <= 2.26e+45) {
                    		tmp = 1.0 + (x * (x * (x * (x * ((x * x) * -0.001388888888888889)))));
                    	} else if (y <= 1e+142) {
                    		tmp = (0.0001984126984126984 + (0.008333333333333333 / (y * y))) * ((y * y) * (y * (y * (y * y))));
                    	} else {
                    		tmp = (1.0 + ((x * x) * -0.5)) * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / y);
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y):
                    	tmp = 0
                    	if y <= 8600.0:
                    		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))))
                    	elif y <= 2.26e+45:
                    		tmp = 1.0 + (x * (x * (x * (x * ((x * x) * -0.001388888888888889)))))
                    	elif y <= 1e+142:
                    		tmp = (0.0001984126984126984 + (0.008333333333333333 / (y * y))) * ((y * y) * (y * (y * (y * y))))
                    	else:
                    		tmp = (1.0 + ((x * x) * -0.5)) * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / y)
                    	return tmp
                    
                    function code(x, y)
                    	tmp = 0.0
                    	if (y <= 8600.0)
                    		tmp = Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * 0.008333333333333333)))));
                    	elseif (y <= 2.26e+45)
                    		tmp = Float64(1.0 + Float64(x * Float64(x * Float64(x * Float64(x * Float64(Float64(x * x) * -0.001388888888888889))))));
                    	elseif (y <= 1e+142)
                    		tmp = Float64(Float64(0.0001984126984126984 + Float64(0.008333333333333333 / Float64(y * y))) * Float64(Float64(y * y) * Float64(y * Float64(y * Float64(y * y)))));
                    	else
                    		tmp = Float64(Float64(1.0 + Float64(Float64(x * x) * -0.5)) * Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666)))) / y));
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y)
                    	tmp = 0.0;
                    	if (y <= 8600.0)
                    		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
                    	elseif (y <= 2.26e+45)
                    		tmp = 1.0 + (x * (x * (x * (x * ((x * x) * -0.001388888888888889)))));
                    	elseif (y <= 1e+142)
                    		tmp = (0.0001984126984126984 + (0.008333333333333333 / (y * y))) * ((y * y) * (y * (y * (y * y))));
                    	else
                    		tmp = (1.0 + ((x * x) * -0.5)) * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / y);
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_] := If[LessEqual[y, 8600.0], N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.26e+45], N[(1.0 + N[(x * N[(x * N[(x * N[(x * N[(N[(x * x), $MachinePrecision] * -0.001388888888888889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e+142], N[(N[(0.0001984126984126984 + N[(0.008333333333333333 / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * N[(y * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 + N[(N[(x * x), $MachinePrecision] * -0.5), $MachinePrecision]), $MachinePrecision] * N[(N[(y * N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;y \leq 8600:\\
                    \;\;\;\;1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\\
                    
                    \mathbf{elif}\;y \leq 2.26 \cdot 10^{+45}:\\
                    \;\;\;\;1 + x \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot -0.001388888888888889\right)\right)\right)\right)\\
                    
                    \mathbf{elif}\;y \leq 10^{+142}:\\
                    \;\;\;\;\left(0.0001984126984126984 + \frac{0.008333333333333333}{y \cdot y}\right) \cdot \left(\left(y \cdot y\right) \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}{y}\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 4 regimes
                    2. if y < 8600

                      1. Initial program 100.0%

                        \[\cos x \cdot \frac{\sinh y}{y} \]
                      2. Add Preprocessing
                      3. Taylor expanded in x around 0

                        \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                      4. Step-by-step derivation
                        1. Simplified64.4%

                          \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                        2. Taylor expanded in y around 0

                          \[\leadsto \color{blue}{1 + {y}^{2} \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)} \]
                        3. Step-by-step derivation
                          1. +-lowering-+.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)}\right) \]
                          2. unpow2N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \left(\color{blue}{\frac{1}{6}} + \frac{1}{120} \cdot {y}^{2}\right)\right)\right) \]
                          3. associate-*l*N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)}\right)\right) \]
                          4. *-lowering-*.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)}\right)\right) \]
                          5. *-lowering-*.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)}\right)\right)\right) \]
                          6. +-lowering-+.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(\frac{1}{120} \cdot {y}^{2}\right)}\right)\right)\right)\right) \]
                          7. *-commutativeN/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \color{blue}{\frac{1}{120}}\right)\right)\right)\right)\right) \]
                          8. *-lowering-*.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\frac{1}{120}}\right)\right)\right)\right)\right) \]
                          9. unpow2N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{120}\right)\right)\right)\right)\right) \]
                          10. *-lowering-*.f6457.0%

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{120}\right)\right)\right)\right)\right) \]
                        4. Simplified57.0%

                          \[\leadsto \color{blue}{1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)} \]

                        if 8600 < y < 2.26000000000000009e45

                        1. Initial program 100.0%

                          \[\cos x \cdot \frac{\sinh y}{y} \]
                        2. Add Preprocessing
                        3. Taylor expanded in y around 0

                          \[\leadsto \color{blue}{\cos x} \]
                        4. Step-by-step derivation
                          1. cos-lowering-cos.f643.1%

                            \[\leadsto \mathsf{cos.f64}\left(x\right) \]
                        5. Simplified3.1%

                          \[\leadsto \color{blue}{\cos x} \]
                        6. Taylor expanded in x around 0

                          \[\leadsto \color{blue}{1 + {x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right)} \]
                        7. Step-by-step derivation
                          1. +-lowering-+.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left({x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right)\right)}\right) \]
                          2. unpow2N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \left(\left(x \cdot x\right) \cdot \left(\color{blue}{{x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)} - \frac{1}{2}\right)\right)\right) \]
                          3. associate-*l*N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \left(x \cdot \color{blue}{\left(x \cdot \left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right)\right)}\right)\right) \]
                          4. *-commutativeN/A

                            \[\leadsto \mathsf{+.f64}\left(1, \left(x \cdot \left(\left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right) \cdot \color{blue}{x}\right)\right)\right) \]
                          5. *-lowering-*.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \color{blue}{\left(\left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right) \cdot x\right)}\right)\right) \]
                          6. *-commutativeN/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right)}\right)\right)\right) \]
                          7. *-lowering-*.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right)}\right)\right)\right) \]
                          8. sub-negN/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) + \color{blue}{\left(\mathsf{neg}\left(\frac{1}{2}\right)\right)}\right)\right)\right)\right) \]
                          9. metadata-evalN/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) + \frac{-1}{2}\right)\right)\right)\right) \]
                          10. +-commutativeN/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{2} + \color{blue}{{x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right) \]
                          11. +-lowering-+.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \color{blue}{\left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)\right)}\right)\right)\right)\right) \]
                          12. unpow2N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \left(\left(x \cdot x\right) \cdot \left(\color{blue}{\frac{1}{24}} + \frac{-1}{720} \cdot {x}^{2}\right)\right)\right)\right)\right)\right) \]
                          13. associate-*l*N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \left(x \cdot \color{blue}{\left(x \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)\right)}\right)\right)\right)\right)\right) \]
                          14. *-lowering-*.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \color{blue}{\left(x \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)\right)}\right)\right)\right)\right)\right) \]
                          15. *-lowering-*.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right)\right)\right) \]
                          16. +-lowering-+.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{1}{24}, \color{blue}{\left(\frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                          17. *-commutativeN/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{1}{24}, \left({x}^{2} \cdot \color{blue}{\frac{-1}{720}}\right)\right)\right)\right)\right)\right)\right)\right) \]
                          18. *-lowering-*.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\frac{-1}{720}}\right)\right)\right)\right)\right)\right)\right)\right) \]
                          19. unpow2N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{720}\right)\right)\right)\right)\right)\right)\right)\right) \]
                          20. *-lowering-*.f6426.6%

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{720}\right)\right)\right)\right)\right)\right)\right)\right) \]
                        8. Simplified26.6%

                          \[\leadsto \color{blue}{1 + x \cdot \left(x \cdot \left(-0.5 + x \cdot \left(x \cdot \left(0.041666666666666664 + \left(x \cdot x\right) \cdot -0.001388888888888889\right)\right)\right)\right)} \]
                        9. Taylor expanded in x around inf

                          \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{-1}{720} \cdot {x}^{4}\right)}\right)\right)\right) \]
                        10. Step-by-step derivation
                          1. metadata-evalN/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{720} \cdot {x}^{\left(2 \cdot \color{blue}{2}\right)}\right)\right)\right)\right) \]
                          2. pow-sqrN/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{720} \cdot \left({x}^{2} \cdot \color{blue}{{x}^{2}}\right)\right)\right)\right)\right) \]
                          3. associate-*l*N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\left(\frac{-1}{720} \cdot {x}^{2}\right) \cdot \color{blue}{{x}^{2}}\right)\right)\right)\right) \]
                          4. *-commutativeN/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left({x}^{2} \cdot \color{blue}{\left(\frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right) \]
                          5. unpow2N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\left(x \cdot x\right) \cdot \left(\color{blue}{\frac{-1}{720}} \cdot {x}^{2}\right)\right)\right)\right)\right) \]
                          6. associate-*l*N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(x \cdot \left(\frac{-1}{720} \cdot {x}^{2}\right)\right)}\right)\right)\right)\right) \]
                          7. *-commutativeN/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \left(\left(\frac{-1}{720} \cdot {x}^{2}\right) \cdot \color{blue}{x}\right)\right)\right)\right)\right) \]
                          8. associate-*r*N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \left(\frac{-1}{720} \cdot \color{blue}{\left({x}^{2} \cdot x\right)}\right)\right)\right)\right)\right) \]
                          9. unpow2N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \left(\frac{-1}{720} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right)\right)\right)\right)\right) \]
                          10. unpow3N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \left(\frac{-1}{720} \cdot {x}^{\color{blue}{3}}\right)\right)\right)\right)\right) \]
                          11. *-lowering-*.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{-1}{720} \cdot {x}^{3}\right)}\right)\right)\right)\right) \]
                          12. unpow3N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{720} \cdot \left(\left(x \cdot x\right) \cdot \color{blue}{x}\right)\right)\right)\right)\right)\right) \]
                          13. unpow2N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{720} \cdot \left({x}^{2} \cdot x\right)\right)\right)\right)\right)\right) \]
                          14. associate-*r*N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\left(\frac{-1}{720} \cdot {x}^{2}\right) \cdot \color{blue}{x}\right)\right)\right)\right)\right) \]
                          15. *-commutativeN/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(\frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right)\right) \]
                          16. *-lowering-*.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right)\right) \]
                          17. *-commutativeN/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left({x}^{2} \cdot \color{blue}{\frac{-1}{720}}\right)\right)\right)\right)\right)\right) \]
                          18. *-lowering-*.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\frac{-1}{720}}\right)\right)\right)\right)\right)\right) \]
                          19. unpow2N/A

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{720}\right)\right)\right)\right)\right)\right) \]
                          20. *-lowering-*.f6426.6%

                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{720}\right)\right)\right)\right)\right)\right) \]
                        11. Simplified26.6%

                          \[\leadsto 1 + x \cdot \left(x \cdot \color{blue}{\left(x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot -0.001388888888888889\right)\right)\right)}\right) \]

                        if 2.26000000000000009e45 < y < 1.00000000000000005e142

                        1. Initial program 100.0%

                          \[\cos x \cdot \frac{\sinh y}{y} \]
                        2. Add Preprocessing
                        3. Taylor expanded in x around 0

                          \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                        4. Step-by-step derivation
                          1. Simplified77.8%

                            \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                          2. Taylor expanded in y around 0

                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
                          3. Step-by-step derivation
                            1. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                            2. +-lowering-+.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                            3. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                            4. unpow2N/A

                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                            5. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                            6. +-lowering-+.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                            7. unpow2N/A

                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                            8. associate-*l*N/A

                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                            9. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                            10. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                            11. +-lowering-+.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                            12. *-commutativeN/A

                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                            13. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                            14. unpow2N/A

                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                            15. *-lowering-*.f6477.8%

                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                          4. Simplified77.8%

                            \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
                          5. Step-by-step derivation
                            1. *-lft-identityN/A

                              \[\leadsto \frac{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}{\color{blue}{y}} \]
                            2. clear-numN/A

                              \[\leadsto \frac{1}{\color{blue}{\frac{y}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}}} \]
                            3. associate-/r/N/A

                              \[\leadsto \frac{1}{y} \cdot \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)} \]
                            4. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\left(\frac{1}{y}\right), \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)}\right) \]
                            5. /-lowering-/.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \left(\color{blue}{y} \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right) \]
                            6. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \color{blue}{\left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right) \]
                            7. +-lowering-+.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \color{blue}{\left(\left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right) \]
                            8. associate-*l*N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
                            9. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
                            10. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right) \]
                            11. +-lowering-+.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right)\right) \]
                            12. associate-*r*N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                            13. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(y \cdot y\right), \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                            14. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{120}} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right) \]
                            15. +-lowering-+.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \color{blue}{\left(\left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right) \]
                            16. associate-*l*N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \left(y \cdot \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
                            17. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
                          6. Applied egg-rr77.8%

                            \[\leadsto \color{blue}{\frac{1}{y} \cdot \left(y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\right)} \]
                          7. Taylor expanded in y around inf

                            \[\leadsto \color{blue}{{y}^{6} \cdot \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)} \]
                          8. Step-by-step derivation
                            1. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\left({y}^{6}\right), \color{blue}{\left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)}\right) \]
                            2. metadata-evalN/A

                              \[\leadsto \mathsf{*.f64}\left(\left({y}^{\left(2 \cdot 3\right)}\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            3. pow-sqrN/A

                              \[\leadsto \mathsf{*.f64}\left(\left({y}^{3} \cdot {y}^{3}\right), \left(\color{blue}{\frac{1}{5040}} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            4. cube-prodN/A

                              \[\leadsto \mathsf{*.f64}\left(\left({\left(y \cdot y\right)}^{3}\right), \left(\color{blue}{\frac{1}{5040}} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            5. unpow2N/A

                              \[\leadsto \mathsf{*.f64}\left(\left({\left({y}^{2}\right)}^{3}\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            6. cube-unmultN/A

                              \[\leadsto \mathsf{*.f64}\left(\left({y}^{2} \cdot \left({y}^{2} \cdot {y}^{2}\right)\right), \left(\color{blue}{\frac{1}{5040}} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            7. pow-sqrN/A

                              \[\leadsto \mathsf{*.f64}\left(\left({y}^{2} \cdot {y}^{\left(2 \cdot 2\right)}\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            8. metadata-evalN/A

                              \[\leadsto \mathsf{*.f64}\left(\left({y}^{2} \cdot {y}^{4}\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            9. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\left({y}^{2}\right), \left({y}^{4}\right)\right), \left(\color{blue}{\frac{1}{5040}} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            10. unpow2N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\left(y \cdot y\right), \left({y}^{4}\right)\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            11. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left({y}^{4}\right)\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            12. metadata-evalN/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left({y}^{\left(2 \cdot 2\right)}\right)\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            13. pow-sqrN/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left({y}^{2} \cdot {y}^{2}\right)\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            14. unpow2N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\left(y \cdot y\right) \cdot {y}^{2}\right)\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            15. associate-*l*N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(y \cdot \left(y \cdot {y}^{2}\right)\right)\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            16. unpow2N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            17. cube-multN/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(y \cdot {y}^{3}\right)\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            18. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \left({y}^{3}\right)\right)\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            19. cube-multN/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \left(y \cdot \left(y \cdot y\right)\right)\right)\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            20. unpow2N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \left(y \cdot {y}^{2}\right)\right)\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            21. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left({y}^{2}\right)\right)\right)\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            22. unpow2N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(y \cdot y\right)\right)\right)\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            23. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, y\right)\right)\right)\right), \left(\frac{1}{5040} + \frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)\right) \]
                            24. +-lowering-+.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, y\right)\right)\right)\right), \mathsf{+.f64}\left(\frac{1}{5040}, \color{blue}{\left(\frac{1}{120} \cdot \frac{1}{{y}^{2}}\right)}\right)\right) \]
                            25. associate-*r/N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, y\right)\right)\right)\right), \mathsf{+.f64}\left(\frac{1}{5040}, \left(\frac{\frac{1}{120} \cdot 1}{\color{blue}{{y}^{2}}}\right)\right)\right) \]
                          9. Simplified72.7%

                            \[\leadsto \color{blue}{\left(\left(y \cdot y\right) \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right) \cdot \left(0.0001984126984126984 + \frac{0.008333333333333333}{y \cdot y}\right)} \]

                          if 1.00000000000000005e142 < y

                          1. Initial program 100.0%

                            \[\cos x \cdot \frac{\sinh y}{y} \]
                          2. Add Preprocessing
                          3. Taylor expanded in x around 0

                            \[\leadsto \mathsf{*.f64}\left(\color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                          4. Step-by-step derivation
                            1. +-lowering-+.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left(\frac{-1}{2} \cdot {x}^{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\mathsf{sinh.f64}\left(y\right)}, y\right)\right) \]
                            2. *-commutativeN/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left({x}^{2} \cdot \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                            3. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({x}^{2}\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                            4. unpow2N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                            5. *-lowering-*.f6493.1%

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                          5. Simplified93.1%

                            \[\leadsto \color{blue}{\left(1 + \left(x \cdot x\right) \cdot -0.5\right)} \cdot \frac{\sinh y}{y} \]
                          6. Taylor expanded in y around 0

                            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)}, y\right)\right) \]
                          7. Step-by-step derivation
                            1. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right), y\right)\right) \]
                            2. +-lowering-+.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\frac{1}{6} \cdot {y}^{2}\right)\right)\right), y\right)\right) \]
                            3. *-commutativeN/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                            4. unpow2N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                            5. associate-*l*N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                            6. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                            7. *-lowering-*.f6493.1%

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                          8. Simplified93.1%

                            \[\leadsto \left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{\color{blue}{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}}{y} \]
                        5. Recombined 4 regimes into one program.
                        6. Final simplification60.3%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 8600:\\ \;\;\;\;1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\\ \mathbf{elif}\;y \leq 2.26 \cdot 10^{+45}:\\ \;\;\;\;1 + x \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot -0.001388888888888889\right)\right)\right)\right)\\ \mathbf{elif}\;y \leq 10^{+142}:\\ \;\;\;\;\left(0.0001984126984126984 + \frac{0.008333333333333333}{y \cdot y}\right) \cdot \left(\left(y \cdot y\right) \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}{y}\\ \end{array} \]
                        7. Add Preprocessing

                        Alternative 9: 57.9% accurate, 7.3× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 8600:\\ \;\;\;\;1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\\ \mathbf{elif}\;y \leq 2.26 \cdot 10^{+45}:\\ \;\;\;\;1 + x \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot -0.001388888888888889\right)\right)\right)\right)\\ \mathbf{elif}\;y \leq 5.1 \cdot 10^{+160}:\\ \;\;\;\;\left(y \cdot y\right) \cdot \left(y \cdot \left(0.0001984126984126984 \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\ \end{array} \end{array} \]
                        (FPCore (x y)
                         :precision binary64
                         (if (<= y 8600.0)
                           (+ 1.0 (* y (* y (+ 0.16666666666666666 (* (* y y) 0.008333333333333333)))))
                           (if (<= y 2.26e+45)
                             (+ 1.0 (* x (* x (* x (* x (* (* x x) -0.001388888888888889))))))
                             (if (<= y 5.1e+160)
                               (* (* y y) (* y (* 0.0001984126984126984 (* y (* y y)))))
                               (* (* y y) (+ 0.16666666666666666 (* (* x x) -0.08333333333333333)))))))
                        double code(double x, double y) {
                        	double tmp;
                        	if (y <= 8600.0) {
                        		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
                        	} else if (y <= 2.26e+45) {
                        		tmp = 1.0 + (x * (x * (x * (x * ((x * x) * -0.001388888888888889)))));
                        	} else if (y <= 5.1e+160) {
                        		tmp = (y * y) * (y * (0.0001984126984126984 * (y * (y * y))));
                        	} else {
                        		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                        	}
                        	return tmp;
                        }
                        
                        real(8) function code(x, y)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            real(8) :: tmp
                            if (y <= 8600.0d0) then
                                tmp = 1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * 0.008333333333333333d0))))
                            else if (y <= 2.26d+45) then
                                tmp = 1.0d0 + (x * (x * (x * (x * ((x * x) * (-0.001388888888888889d0))))))
                            else if (y <= 5.1d+160) then
                                tmp = (y * y) * (y * (0.0001984126984126984d0 * (y * (y * y))))
                            else
                                tmp = (y * y) * (0.16666666666666666d0 + ((x * x) * (-0.08333333333333333d0)))
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double x, double y) {
                        	double tmp;
                        	if (y <= 8600.0) {
                        		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
                        	} else if (y <= 2.26e+45) {
                        		tmp = 1.0 + (x * (x * (x * (x * ((x * x) * -0.001388888888888889)))));
                        	} else if (y <= 5.1e+160) {
                        		tmp = (y * y) * (y * (0.0001984126984126984 * (y * (y * y))));
                        	} else {
                        		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y):
                        	tmp = 0
                        	if y <= 8600.0:
                        		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))))
                        	elif y <= 2.26e+45:
                        		tmp = 1.0 + (x * (x * (x * (x * ((x * x) * -0.001388888888888889)))))
                        	elif y <= 5.1e+160:
                        		tmp = (y * y) * (y * (0.0001984126984126984 * (y * (y * y))))
                        	else:
                        		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333))
                        	return tmp
                        
                        function code(x, y)
                        	tmp = 0.0
                        	if (y <= 8600.0)
                        		tmp = Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * 0.008333333333333333)))));
                        	elseif (y <= 2.26e+45)
                        		tmp = Float64(1.0 + Float64(x * Float64(x * Float64(x * Float64(x * Float64(Float64(x * x) * -0.001388888888888889))))));
                        	elseif (y <= 5.1e+160)
                        		tmp = Float64(Float64(y * y) * Float64(y * Float64(0.0001984126984126984 * Float64(y * Float64(y * y)))));
                        	else
                        		tmp = Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.08333333333333333)));
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y)
                        	tmp = 0.0;
                        	if (y <= 8600.0)
                        		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
                        	elseif (y <= 2.26e+45)
                        		tmp = 1.0 + (x * (x * (x * (x * ((x * x) * -0.001388888888888889)))));
                        	elseif (y <= 5.1e+160)
                        		tmp = (y * y) * (y * (0.0001984126984126984 * (y * (y * y))));
                        	else
                        		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_] := If[LessEqual[y, 8600.0], N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.26e+45], N[(1.0 + N[(x * N[(x * N[(x * N[(x * N[(N[(x * x), $MachinePrecision] * -0.001388888888888889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.1e+160], N[(N[(y * y), $MachinePrecision] * N[(y * N[(0.0001984126984126984 * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.08333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;y \leq 8600:\\
                        \;\;\;\;1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\\
                        
                        \mathbf{elif}\;y \leq 2.26 \cdot 10^{+45}:\\
                        \;\;\;\;1 + x \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot -0.001388888888888889\right)\right)\right)\right)\\
                        
                        \mathbf{elif}\;y \leq 5.1 \cdot 10^{+160}:\\
                        \;\;\;\;\left(y \cdot y\right) \cdot \left(y \cdot \left(0.0001984126984126984 \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 4 regimes
                        2. if y < 8600

                          1. Initial program 100.0%

                            \[\cos x \cdot \frac{\sinh y}{y} \]
                          2. Add Preprocessing
                          3. Taylor expanded in x around 0

                            \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                          4. Step-by-step derivation
                            1. Simplified64.4%

                              \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                            2. Taylor expanded in y around 0

                              \[\leadsto \color{blue}{1 + {y}^{2} \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)} \]
                            3. Step-by-step derivation
                              1. +-lowering-+.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)}\right) \]
                              2. unpow2N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \left(\color{blue}{\frac{1}{6}} + \frac{1}{120} \cdot {y}^{2}\right)\right)\right) \]
                              3. associate-*l*N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)}\right)\right) \]
                              4. *-lowering-*.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)}\right)\right) \]
                              5. *-lowering-*.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)}\right)\right)\right) \]
                              6. +-lowering-+.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(\frac{1}{120} \cdot {y}^{2}\right)}\right)\right)\right)\right) \]
                              7. *-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \color{blue}{\frac{1}{120}}\right)\right)\right)\right)\right) \]
                              8. *-lowering-*.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\frac{1}{120}}\right)\right)\right)\right)\right) \]
                              9. unpow2N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{120}\right)\right)\right)\right)\right) \]
                              10. *-lowering-*.f6457.0%

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{120}\right)\right)\right)\right)\right) \]
                            4. Simplified57.0%

                              \[\leadsto \color{blue}{1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)} \]

                            if 8600 < y < 2.26000000000000009e45

                            1. Initial program 100.0%

                              \[\cos x \cdot \frac{\sinh y}{y} \]
                            2. Add Preprocessing
                            3. Taylor expanded in y around 0

                              \[\leadsto \color{blue}{\cos x} \]
                            4. Step-by-step derivation
                              1. cos-lowering-cos.f643.1%

                                \[\leadsto \mathsf{cos.f64}\left(x\right) \]
                            5. Simplified3.1%

                              \[\leadsto \color{blue}{\cos x} \]
                            6. Taylor expanded in x around 0

                              \[\leadsto \color{blue}{1 + {x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right)} \]
                            7. Step-by-step derivation
                              1. +-lowering-+.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left({x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right)\right)}\right) \]
                              2. unpow2N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \left(\left(x \cdot x\right) \cdot \left(\color{blue}{{x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)} - \frac{1}{2}\right)\right)\right) \]
                              3. associate-*l*N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \left(x \cdot \color{blue}{\left(x \cdot \left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right)\right)}\right)\right) \]
                              4. *-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(1, \left(x \cdot \left(\left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right) \cdot \color{blue}{x}\right)\right)\right) \]
                              5. *-lowering-*.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \color{blue}{\left(\left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right) \cdot x\right)}\right)\right) \]
                              6. *-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right)}\right)\right)\right) \]
                              7. *-lowering-*.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) - \frac{1}{2}\right)}\right)\right)\right) \]
                              8. sub-negN/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) + \color{blue}{\left(\mathsf{neg}\left(\frac{1}{2}\right)\right)}\right)\right)\right)\right) \]
                              9. metadata-evalN/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right) + \frac{-1}{2}\right)\right)\right)\right) \]
                              10. +-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{2} + \color{blue}{{x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right) \]
                              11. +-lowering-+.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \color{blue}{\left({x}^{2} \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)\right)}\right)\right)\right)\right) \]
                              12. unpow2N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \left(\left(x \cdot x\right) \cdot \left(\color{blue}{\frac{1}{24}} + \frac{-1}{720} \cdot {x}^{2}\right)\right)\right)\right)\right)\right) \]
                              13. associate-*l*N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \left(x \cdot \color{blue}{\left(x \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)\right)}\right)\right)\right)\right)\right) \]
                              14. *-lowering-*.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \color{blue}{\left(x \cdot \left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)\right)}\right)\right)\right)\right)\right) \]
                              15. *-lowering-*.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{1}{24} + \frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right)\right)\right) \]
                              16. +-lowering-+.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{1}{24}, \color{blue}{\left(\frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                              17. *-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{1}{24}, \left({x}^{2} \cdot \color{blue}{\frac{-1}{720}}\right)\right)\right)\right)\right)\right)\right)\right) \]
                              18. *-lowering-*.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\frac{-1}{720}}\right)\right)\right)\right)\right)\right)\right)\right) \]
                              19. unpow2N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{720}\right)\right)\right)\right)\right)\right)\right)\right) \]
                              20. *-lowering-*.f6426.6%

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{720}\right)\right)\right)\right)\right)\right)\right)\right) \]
                            8. Simplified26.6%

                              \[\leadsto \color{blue}{1 + x \cdot \left(x \cdot \left(-0.5 + x \cdot \left(x \cdot \left(0.041666666666666664 + \left(x \cdot x\right) \cdot -0.001388888888888889\right)\right)\right)\right)} \]
                            9. Taylor expanded in x around inf

                              \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{-1}{720} \cdot {x}^{4}\right)}\right)\right)\right) \]
                            10. Step-by-step derivation
                              1. metadata-evalN/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{720} \cdot {x}^{\left(2 \cdot \color{blue}{2}\right)}\right)\right)\right)\right) \]
                              2. pow-sqrN/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{720} \cdot \left({x}^{2} \cdot \color{blue}{{x}^{2}}\right)\right)\right)\right)\right) \]
                              3. associate-*l*N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\left(\frac{-1}{720} \cdot {x}^{2}\right) \cdot \color{blue}{{x}^{2}}\right)\right)\right)\right) \]
                              4. *-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left({x}^{2} \cdot \color{blue}{\left(\frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right) \]
                              5. unpow2N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\left(x \cdot x\right) \cdot \left(\color{blue}{\frac{-1}{720}} \cdot {x}^{2}\right)\right)\right)\right)\right) \]
                              6. associate-*l*N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(x \cdot \left(\frac{-1}{720} \cdot {x}^{2}\right)\right)}\right)\right)\right)\right) \]
                              7. *-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \left(\left(\frac{-1}{720} \cdot {x}^{2}\right) \cdot \color{blue}{x}\right)\right)\right)\right)\right) \]
                              8. associate-*r*N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \left(\frac{-1}{720} \cdot \color{blue}{\left({x}^{2} \cdot x\right)}\right)\right)\right)\right)\right) \]
                              9. unpow2N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \left(\frac{-1}{720} \cdot \left(\left(x \cdot x\right) \cdot x\right)\right)\right)\right)\right)\right) \]
                              10. unpow3N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \left(\frac{-1}{720} \cdot {x}^{\color{blue}{3}}\right)\right)\right)\right)\right) \]
                              11. *-lowering-*.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{-1}{720} \cdot {x}^{3}\right)}\right)\right)\right)\right) \]
                              12. unpow3N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{720} \cdot \left(\left(x \cdot x\right) \cdot \color{blue}{x}\right)\right)\right)\right)\right)\right) \]
                              13. unpow2N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{720} \cdot \left({x}^{2} \cdot x\right)\right)\right)\right)\right)\right) \]
                              14. associate-*r*N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\left(\frac{-1}{720} \cdot {x}^{2}\right) \cdot \color{blue}{x}\right)\right)\right)\right)\right) \]
                              15. *-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(\frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right)\right) \]
                              16. *-lowering-*.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{-1}{720} \cdot {x}^{2}\right)}\right)\right)\right)\right)\right) \]
                              17. *-commutativeN/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left({x}^{2} \cdot \color{blue}{\frac{-1}{720}}\right)\right)\right)\right)\right)\right) \]
                              18. *-lowering-*.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\frac{-1}{720}}\right)\right)\right)\right)\right)\right) \]
                              19. unpow2N/A

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{720}\right)\right)\right)\right)\right)\right) \]
                              20. *-lowering-*.f6426.6%

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{720}\right)\right)\right)\right)\right)\right) \]
                            11. Simplified26.6%

                              \[\leadsto 1 + x \cdot \left(x \cdot \color{blue}{\left(x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot -0.001388888888888889\right)\right)\right)}\right) \]

                            if 2.26000000000000009e45 < y < 5.1000000000000001e160

                            1. Initial program 100.0%

                              \[\cos x \cdot \frac{\sinh y}{y} \]
                            2. Add Preprocessing
                            3. Taylor expanded in x around 0

                              \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                            4. Step-by-step derivation
                              1. Simplified76.2%

                                \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                              2. Taylor expanded in y around 0

                                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
                              3. Step-by-step derivation
                                1. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                                2. +-lowering-+.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                3. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                4. unpow2N/A

                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                5. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                6. +-lowering-+.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                7. unpow2N/A

                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                8. associate-*l*N/A

                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                9. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                10. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                11. +-lowering-+.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                12. *-commutativeN/A

                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                13. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                14. unpow2N/A

                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                15. *-lowering-*.f6476.2%

                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                              4. Simplified76.2%

                                \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
                              5. Step-by-step derivation
                                1. *-lft-identityN/A

                                  \[\leadsto \frac{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}{\color{blue}{y}} \]
                                2. clear-numN/A

                                  \[\leadsto \frac{1}{\color{blue}{\frac{y}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}}} \]
                                3. associate-/r/N/A

                                  \[\leadsto \frac{1}{y} \cdot \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)} \]
                                4. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\left(\frac{1}{y}\right), \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)}\right) \]
                                5. /-lowering-/.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \left(\color{blue}{y} \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right) \]
                                6. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \color{blue}{\left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right) \]
                                7. +-lowering-+.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \color{blue}{\left(\left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right) \]
                                8. associate-*l*N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
                                9. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
                                10. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right) \]
                                11. +-lowering-+.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right)\right) \]
                                12. associate-*r*N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                                13. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(y \cdot y\right), \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                                14. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{120}} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right) \]
                                15. +-lowering-+.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \color{blue}{\left(\left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right) \]
                                16. associate-*l*N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \left(y \cdot \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
                                17. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
                              6. Applied egg-rr76.2%

                                \[\leadsto \color{blue}{\frac{1}{y} \cdot \left(y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\right)} \]
                              7. Taylor expanded in y around inf

                                \[\leadsto \color{blue}{\frac{1}{5040} \cdot {y}^{6}} \]
                              8. Step-by-step derivation
                                1. metadata-evalN/A

                                  \[\leadsto \frac{1}{5040} \cdot {y}^{\left(2 \cdot \color{blue}{3}\right)} \]
                                2. pow-sqrN/A

                                  \[\leadsto \frac{1}{5040} \cdot \left({y}^{3} \cdot \color{blue}{{y}^{3}}\right) \]
                                3. cube-prodN/A

                                  \[\leadsto \frac{1}{5040} \cdot {\left(y \cdot y\right)}^{\color{blue}{3}} \]
                                4. unpow2N/A

                                  \[\leadsto \frac{1}{5040} \cdot {\left({y}^{2}\right)}^{3} \]
                                5. unpow3N/A

                                  \[\leadsto \frac{1}{5040} \cdot \left(\left({y}^{2} \cdot {y}^{2}\right) \cdot \color{blue}{{y}^{2}}\right) \]
                                6. pow-sqrN/A

                                  \[\leadsto \frac{1}{5040} \cdot \left({y}^{\left(2 \cdot 2\right)} \cdot {\color{blue}{y}}^{2}\right) \]
                                7. metadata-evalN/A

                                  \[\leadsto \frac{1}{5040} \cdot \left({y}^{4} \cdot {y}^{2}\right) \]
                                8. associate-*l*N/A

                                  \[\leadsto \left(\frac{1}{5040} \cdot {y}^{4}\right) \cdot \color{blue}{{y}^{2}} \]
                                9. *-commutativeN/A

                                  \[\leadsto \left({y}^{4} \cdot \frac{1}{5040}\right) \cdot {\color{blue}{y}}^{2} \]
                                10. associate-*l*N/A

                                  \[\leadsto {y}^{4} \cdot \color{blue}{\left(\frac{1}{5040} \cdot {y}^{2}\right)} \]
                                11. metadata-evalN/A

                                  \[\leadsto {y}^{\left(2 \cdot 2\right)} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right) \]
                                12. pow-sqrN/A

                                  \[\leadsto \left({y}^{2} \cdot {y}^{2}\right) \cdot \left(\color{blue}{\frac{1}{5040}} \cdot {y}^{2}\right) \]
                                13. associate-*r*N/A

                                  \[\leadsto {y}^{2} \cdot \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)} \]
                                14. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)}\right) \]
                                15. unpow2N/A

                                  \[\leadsto \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\color{blue}{{y}^{2}} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right) \]
                                16. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{{y}^{2}} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right) \]
                                17. unpow2N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\left(y \cdot y\right) \cdot \left(\color{blue}{\frac{1}{5040}} \cdot {y}^{2}\right)\right)\right) \]
                                18. associate-*l*N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)}\right)\right) \]
                                19. *-commutativeN/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(y \cdot \left(\left(\frac{1}{5040} \cdot {y}^{2}\right) \cdot \color{blue}{y}\right)\right)\right) \]
                                20. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \color{blue}{\left(\left(\frac{1}{5040} \cdot {y}^{2}\right) \cdot y\right)}\right)\right) \]
                                21. associate-*l*N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot \color{blue}{\left({y}^{2} \cdot y\right)}\right)\right)\right) \]
                                22. unpow2N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot \left(\left(y \cdot y\right) \cdot y\right)\right)\right)\right) \]
                                23. unpow3N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot {y}^{\color{blue}{3}}\right)\right)\right) \]
                                24. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\frac{1}{5040}, \color{blue}{\left({y}^{3}\right)}\right)\right)\right) \]
                                25. cube-multN/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\frac{1}{5040}, \left(y \cdot \color{blue}{\left(y \cdot y\right)}\right)\right)\right)\right) \]
                                26. unpow2N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\frac{1}{5040}, \left(y \cdot {y}^{\color{blue}{2}}\right)\right)\right)\right) \]
                                27. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\frac{1}{5040}, \mathsf{*.f64}\left(y, \color{blue}{\left({y}^{2}\right)}\right)\right)\right)\right) \]
                              9. Simplified71.8%

                                \[\leadsto \color{blue}{\left(y \cdot y\right) \cdot \left(y \cdot \left(0.0001984126984126984 \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)} \]

                              if 5.1000000000000001e160 < y

                              1. Initial program 100.0%

                                \[\cos x \cdot \frac{\sinh y}{y} \]
                              2. Add Preprocessing
                              3. Taylor expanded in x around 0

                                \[\leadsto \mathsf{*.f64}\left(\color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                              4. Step-by-step derivation
                                1. +-lowering-+.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left(\frac{-1}{2} \cdot {x}^{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\mathsf{sinh.f64}\left(y\right)}, y\right)\right) \]
                                2. *-commutativeN/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left({x}^{2} \cdot \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                3. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({x}^{2}\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                4. unpow2N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                5. *-lowering-*.f6492.3%

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                              5. Simplified92.3%

                                \[\leadsto \color{blue}{\left(1 + \left(x \cdot x\right) \cdot -0.5\right)} \cdot \frac{\sinh y}{y} \]
                              6. Taylor expanded in y around 0

                                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)}, y\right)\right) \]
                              7. Step-by-step derivation
                                1. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right), y\right)\right) \]
                                2. +-lowering-+.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\frac{1}{6} \cdot {y}^{2}\right)\right)\right), y\right)\right) \]
                                3. *-commutativeN/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                4. unpow2N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                5. associate-*l*N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                6. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                7. *-lowering-*.f6492.3%

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                              8. Simplified92.3%

                                \[\leadsto \left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{\color{blue}{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}}{y} \]
                              9. Taylor expanded in y around inf

                                \[\leadsto \color{blue}{\frac{1}{6} \cdot \left({y}^{2} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                              10. Step-by-step derivation
                                1. associate-*r*N/A

                                  \[\leadsto \left(\frac{1}{6} \cdot {y}^{2}\right) \cdot \color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)} \]
                                2. *-commutativeN/A

                                  \[\leadsto \left({y}^{2} \cdot \frac{1}{6}\right) \cdot \left(\color{blue}{1} + \frac{-1}{2} \cdot {x}^{2}\right) \]
                                3. associate-*l*N/A

                                  \[\leadsto {y}^{2} \cdot \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                                4. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)}\right) \]
                                5. unpow2N/A

                                  \[\leadsto \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                6. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                7. distribute-lft-inN/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} \cdot 1 + \color{blue}{\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)}\right)\right) \]
                                8. metadata-evalN/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + \color{blue}{\frac{1}{6}} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                9. +-lowering-+.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)}\right)\right) \]
                                10. *-commutativeN/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(\frac{-1}{2} \cdot {x}^{2}\right) \cdot \color{blue}{\frac{1}{6}}\right)\right)\right) \]
                                11. *-commutativeN/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left({x}^{2} \cdot \frac{-1}{2}\right) \cdot \frac{1}{6}\right)\right)\right) \]
                                12. associate-*l*N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({x}^{2} \cdot \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                                13. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                                14. unpow2N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(x \cdot x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                                15. *-lowering-*.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                                16. metadata-eval92.3%

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{12}\right)\right)\right) \]
                              11. Simplified92.3%

                                \[\leadsto \color{blue}{\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)} \]
                            5. Recombined 4 regimes into one program.
                            6. Add Preprocessing

                            Alternative 10: 59.6% accurate, 7.3× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 4 \cdot 10^{+160}:\\ \;\;\;\;\frac{y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right)}{y}\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\ \end{array} \end{array} \]
                            (FPCore (x y)
                             :precision binary64
                             (if (<= y 4e+160)
                               (/
                                (*
                                 y
                                 (+
                                  1.0
                                  (*
                                   y
                                   (*
                                    y
                                    (+
                                     0.16666666666666666
                                     (*
                                      (* y y)
                                      (+ 0.008333333333333333 (* y (* y 0.0001984126984126984)))))))))
                                y)
                               (* (* y y) (+ 0.16666666666666666 (* (* x x) -0.08333333333333333)))))
                            double code(double x, double y) {
                            	double tmp;
                            	if (y <= 4e+160) {
                            		tmp = (y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984))))))))) / y;
                            	} else {
                            		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                            	}
                            	return tmp;
                            }
                            
                            real(8) function code(x, y)
                                real(8), intent (in) :: x
                                real(8), intent (in) :: y
                                real(8) :: tmp
                                if (y <= 4d+160) then
                                    tmp = (y * (1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * (0.008333333333333333d0 + (y * (y * 0.0001984126984126984d0))))))))) / y
                                else
                                    tmp = (y * y) * (0.16666666666666666d0 + ((x * x) * (-0.08333333333333333d0)))
                                end if
                                code = tmp
                            end function
                            
                            public static double code(double x, double y) {
                            	double tmp;
                            	if (y <= 4e+160) {
                            		tmp = (y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984))))))))) / y;
                            	} else {
                            		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y):
                            	tmp = 0
                            	if y <= 4e+160:
                            		tmp = (y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984))))))))) / y
                            	else:
                            		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333))
                            	return tmp
                            
                            function code(x, y)
                            	tmp = 0.0
                            	if (y <= 4e+160)
                            		tmp = Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * Float64(0.008333333333333333 + Float64(y * Float64(y * 0.0001984126984126984))))))))) / y);
                            	else
                            		tmp = Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.08333333333333333)));
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y)
                            	tmp = 0.0;
                            	if (y <= 4e+160)
                            		tmp = (y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984))))))))) / y;
                            	else
                            		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_] := If[LessEqual[y, 4e+160], N[(N[(y * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * N[(0.008333333333333333 + N[(y * N[(y * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.08333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;y \leq 4 \cdot 10^{+160}:\\
                            \;\;\;\;\frac{y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right)}{y}\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if y < 4.00000000000000003e160

                              1. Initial program 100.0%

                                \[\cos x \cdot \frac{\sinh y}{y} \]
                              2. Add Preprocessing
                              3. Taylor expanded in x around 0

                                \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                              4. Step-by-step derivation
                                1. Simplified66.2%

                                  \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                                2. Taylor expanded in y around 0

                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
                                3. Step-by-step derivation
                                  1. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                                  2. +-lowering-+.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                  3. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                  4. unpow2N/A

                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                  5. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                  6. +-lowering-+.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                  7. unpow2N/A

                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                  8. associate-*l*N/A

                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                  9. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                  10. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                  11. +-lowering-+.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                  12. *-commutativeN/A

                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                  13. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                  14. unpow2N/A

                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                  15. *-lowering-*.f6456.7%

                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                4. Simplified56.7%

                                  \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
                                5. Step-by-step derivation
                                  1. *-lft-identityN/A

                                    \[\leadsto \frac{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}{\color{blue}{y}} \]
                                  2. /-lowering-/.f64N/A

                                    \[\leadsto \mathsf{/.f64}\left(\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right), \color{blue}{y}\right) \]
                                6. Applied egg-rr56.7%

                                  \[\leadsto \color{blue}{\frac{y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right)}{y}} \]

                                if 4.00000000000000003e160 < y

                                1. Initial program 100.0%

                                  \[\cos x \cdot \frac{\sinh y}{y} \]
                                2. Add Preprocessing
                                3. Taylor expanded in x around 0

                                  \[\leadsto \mathsf{*.f64}\left(\color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                4. Step-by-step derivation
                                  1. +-lowering-+.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left(\frac{-1}{2} \cdot {x}^{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\mathsf{sinh.f64}\left(y\right)}, y\right)\right) \]
                                  2. *-commutativeN/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left({x}^{2} \cdot \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                  3. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({x}^{2}\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                  4. unpow2N/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                  5. *-lowering-*.f6492.3%

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                5. Simplified92.3%

                                  \[\leadsto \color{blue}{\left(1 + \left(x \cdot x\right) \cdot -0.5\right)} \cdot \frac{\sinh y}{y} \]
                                6. Taylor expanded in y around 0

                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)}, y\right)\right) \]
                                7. Step-by-step derivation
                                  1. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right), y\right)\right) \]
                                  2. +-lowering-+.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\frac{1}{6} \cdot {y}^{2}\right)\right)\right), y\right)\right) \]
                                  3. *-commutativeN/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                  4. unpow2N/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                  5. associate-*l*N/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                  6. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                  7. *-lowering-*.f6492.3%

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                8. Simplified92.3%

                                  \[\leadsto \left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{\color{blue}{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}}{y} \]
                                9. Taylor expanded in y around inf

                                  \[\leadsto \color{blue}{\frac{1}{6} \cdot \left({y}^{2} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                                10. Step-by-step derivation
                                  1. associate-*r*N/A

                                    \[\leadsto \left(\frac{1}{6} \cdot {y}^{2}\right) \cdot \color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)} \]
                                  2. *-commutativeN/A

                                    \[\leadsto \left({y}^{2} \cdot \frac{1}{6}\right) \cdot \left(\color{blue}{1} + \frac{-1}{2} \cdot {x}^{2}\right) \]
                                  3. associate-*l*N/A

                                    \[\leadsto {y}^{2} \cdot \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                                  4. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)}\right) \]
                                  5. unpow2N/A

                                    \[\leadsto \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                  6. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                  7. distribute-lft-inN/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} \cdot 1 + \color{blue}{\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)}\right)\right) \]
                                  8. metadata-evalN/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + \color{blue}{\frac{1}{6}} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                  9. +-lowering-+.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)}\right)\right) \]
                                  10. *-commutativeN/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(\frac{-1}{2} \cdot {x}^{2}\right) \cdot \color{blue}{\frac{1}{6}}\right)\right)\right) \]
                                  11. *-commutativeN/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left({x}^{2} \cdot \frac{-1}{2}\right) \cdot \frac{1}{6}\right)\right)\right) \]
                                  12. associate-*l*N/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({x}^{2} \cdot \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                                  13. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                                  14. unpow2N/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(x \cdot x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                                  15. *-lowering-*.f64N/A

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                                  16. metadata-eval92.3%

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{12}\right)\right)\right) \]
                                11. Simplified92.3%

                                  \[\leadsto \color{blue}{\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)} \]
                              5. Recombined 2 regimes into one program.
                              6. Add Preprocessing

                              Alternative 11: 58.8% accurate, 8.5× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 2 \cdot 10^{+157}:\\ \;\;\;\;1 + y \cdot \left(y \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\ \end{array} \end{array} \]
                              (FPCore (x y)
                               :precision binary64
                               (if (<= y 2e+157)
                                 (+
                                  1.0
                                  (*
                                   y
                                   (*
                                    y
                                    (+
                                     0.16666666666666666
                                     (*
                                      y
                                      (* y (+ 0.008333333333333333 (* (* y y) 0.0001984126984126984))))))))
                                 (* (* y y) (+ 0.16666666666666666 (* (* x x) -0.08333333333333333)))))
                              double code(double x, double y) {
                              	double tmp;
                              	if (y <= 2e+157) {
                              		tmp = 1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
                              	} else {
                              		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                              	}
                              	return tmp;
                              }
                              
                              real(8) function code(x, y)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  real(8) :: tmp
                                  if (y <= 2d+157) then
                                      tmp = 1.0d0 + (y * (y * (0.16666666666666666d0 + (y * (y * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)))))))
                                  else
                                      tmp = (y * y) * (0.16666666666666666d0 + ((x * x) * (-0.08333333333333333d0)))
                                  end if
                                  code = tmp
                              end function
                              
                              public static double code(double x, double y) {
                              	double tmp;
                              	if (y <= 2e+157) {
                              		tmp = 1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
                              	} else {
                              		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                              	}
                              	return tmp;
                              }
                              
                              def code(x, y):
                              	tmp = 0
                              	if y <= 2e+157:
                              		tmp = 1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))))
                              	else:
                              		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333))
                              	return tmp
                              
                              function code(x, y)
                              	tmp = 0.0
                              	if (y <= 2e+157)
                              		tmp = Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(y * Float64(y * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984))))))));
                              	else
                              		tmp = Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.08333333333333333)));
                              	end
                              	return tmp
                              end
                              
                              function tmp_2 = code(x, y)
                              	tmp = 0.0;
                              	if (y <= 2e+157)
                              		tmp = 1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
                              	else
                              		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                              	end
                              	tmp_2 = tmp;
                              end
                              
                              code[x_, y_] := If[LessEqual[y, 2e+157], N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(y * N[(y * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.08333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;y \leq 2 \cdot 10^{+157}:\\
                              \;\;\;\;1 + y \cdot \left(y \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if y < 1.99999999999999997e157

                                1. Initial program 100.0%

                                  \[\cos x \cdot \frac{\sinh y}{y} \]
                                2. Add Preprocessing
                                3. Taylor expanded in x around 0

                                  \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                4. Step-by-step derivation
                                  1. Simplified66.2%

                                    \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                                  2. Taylor expanded in y around 0

                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
                                  3. Step-by-step derivation
                                    1. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                                    2. +-lowering-+.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                    3. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                    4. unpow2N/A

                                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                    5. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                    6. +-lowering-+.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                    7. unpow2N/A

                                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                    8. associate-*l*N/A

                                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                    9. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                    10. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                    11. +-lowering-+.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                    12. *-commutativeN/A

                                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                    13. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                    14. unpow2N/A

                                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                    15. *-lowering-*.f6456.7%

                                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                  4. Simplified56.7%

                                    \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
                                  5. Taylor expanded in y around 0

                                    \[\leadsto \color{blue}{1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)} \]
                                  6. Step-by-step derivation
                                    1. +-lowering-+.f64N/A

                                      \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)}\right) \]
                                    2. unpow2N/A

                                      \[\leadsto \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \left(\color{blue}{\frac{1}{6}} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right) \]
                                    3. associate-*l*N/A

                                      \[\leadsto \mathsf{+.f64}\left(1, \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)}\right)\right) \]
                                    4. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)}\right)\right) \]
                                    5. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)}\right)\right)\right) \]
                                    6. +-lowering-+.f64N/A

                                      \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)}\right)\right)\right)\right) \]
                                    7. unpow2N/A

                                      \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\color{blue}{\frac{1}{120}} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right) \]
                                    8. associate-*l*N/A

                                      \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)}\right)\right)\right)\right)\right) \]
                                    9. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)}\right)\right)\right)\right)\right) \]
                                    10. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)}\right)\right)\right)\right)\right)\right) \]
                                    11. +-lowering-+.f64N/A

                                      \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \color{blue}{\left(\frac{1}{5040} \cdot {y}^{2}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                                    12. *-commutativeN/A

                                      \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \color{blue}{\frac{1}{5040}}\right)\right)\right)\right)\right)\right)\right)\right) \]
                                    13. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\frac{1}{5040}}\right)\right)\right)\right)\right)\right)\right)\right) \]
                                    14. unpow2N/A

                                      \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right) \]
                                    15. *-lowering-*.f6456.3%

                                      \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right) \]
                                  7. Simplified56.3%

                                    \[\leadsto \color{blue}{1 + y \cdot \left(y \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)} \]

                                  if 1.99999999999999997e157 < y

                                  1. Initial program 100.0%

                                    \[\cos x \cdot \frac{\sinh y}{y} \]
                                  2. Add Preprocessing
                                  3. Taylor expanded in x around 0

                                    \[\leadsto \mathsf{*.f64}\left(\color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                  4. Step-by-step derivation
                                    1. +-lowering-+.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left(\frac{-1}{2} \cdot {x}^{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\mathsf{sinh.f64}\left(y\right)}, y\right)\right) \]
                                    2. *-commutativeN/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left({x}^{2} \cdot \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                    3. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({x}^{2}\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                    4. unpow2N/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                    5. *-lowering-*.f6492.3%

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                  5. Simplified92.3%

                                    \[\leadsto \color{blue}{\left(1 + \left(x \cdot x\right) \cdot -0.5\right)} \cdot \frac{\sinh y}{y} \]
                                  6. Taylor expanded in y around 0

                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)}, y\right)\right) \]
                                  7. Step-by-step derivation
                                    1. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right), y\right)\right) \]
                                    2. +-lowering-+.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\frac{1}{6} \cdot {y}^{2}\right)\right)\right), y\right)\right) \]
                                    3. *-commutativeN/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                    4. unpow2N/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                    5. associate-*l*N/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                    6. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                    7. *-lowering-*.f6492.3%

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                  8. Simplified92.3%

                                    \[\leadsto \left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{\color{blue}{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}}{y} \]
                                  9. Taylor expanded in y around inf

                                    \[\leadsto \color{blue}{\frac{1}{6} \cdot \left({y}^{2} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                                  10. Step-by-step derivation
                                    1. associate-*r*N/A

                                      \[\leadsto \left(\frac{1}{6} \cdot {y}^{2}\right) \cdot \color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)} \]
                                    2. *-commutativeN/A

                                      \[\leadsto \left({y}^{2} \cdot \frac{1}{6}\right) \cdot \left(\color{blue}{1} + \frac{-1}{2} \cdot {x}^{2}\right) \]
                                    3. associate-*l*N/A

                                      \[\leadsto {y}^{2} \cdot \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                                    4. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)}\right) \]
                                    5. unpow2N/A

                                      \[\leadsto \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                    6. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                    7. distribute-lft-inN/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} \cdot 1 + \color{blue}{\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)}\right)\right) \]
                                    8. metadata-evalN/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + \color{blue}{\frac{1}{6}} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                    9. +-lowering-+.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)}\right)\right) \]
                                    10. *-commutativeN/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(\frac{-1}{2} \cdot {x}^{2}\right) \cdot \color{blue}{\frac{1}{6}}\right)\right)\right) \]
                                    11. *-commutativeN/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left({x}^{2} \cdot \frac{-1}{2}\right) \cdot \frac{1}{6}\right)\right)\right) \]
                                    12. associate-*l*N/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({x}^{2} \cdot \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                                    13. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                                    14. unpow2N/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(x \cdot x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                                    15. *-lowering-*.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                                    16. metadata-eval92.3%

                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{12}\right)\right)\right) \]
                                  11. Simplified92.3%

                                    \[\leadsto \color{blue}{\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)} \]
                                5. Recombined 2 regimes into one program.
                                6. Add Preprocessing

                                Alternative 12: 57.3% accurate, 8.9× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 7.5:\\ \;\;\;\;1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\\ \mathbf{elif}\;y \leq 2 \cdot 10^{+157}:\\ \;\;\;\;\left(y \cdot y\right) \cdot \left(y \cdot \left(0.0001984126984126984 \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\ \end{array} \end{array} \]
                                (FPCore (x y)
                                 :precision binary64
                                 (if (<= y 7.5)
                                   (+ 1.0 (* y (* y (+ 0.16666666666666666 (* (* y y) 0.008333333333333333)))))
                                   (if (<= y 2e+157)
                                     (* (* y y) (* y (* 0.0001984126984126984 (* y (* y y)))))
                                     (* (* y y) (+ 0.16666666666666666 (* (* x x) -0.08333333333333333))))))
                                double code(double x, double y) {
                                	double tmp;
                                	if (y <= 7.5) {
                                		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
                                	} else if (y <= 2e+157) {
                                		tmp = (y * y) * (y * (0.0001984126984126984 * (y * (y * y))));
                                	} else {
                                		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                                	}
                                	return tmp;
                                }
                                
                                real(8) function code(x, y)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    real(8) :: tmp
                                    if (y <= 7.5d0) then
                                        tmp = 1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * 0.008333333333333333d0))))
                                    else if (y <= 2d+157) then
                                        tmp = (y * y) * (y * (0.0001984126984126984d0 * (y * (y * y))))
                                    else
                                        tmp = (y * y) * (0.16666666666666666d0 + ((x * x) * (-0.08333333333333333d0)))
                                    end if
                                    code = tmp
                                end function
                                
                                public static double code(double x, double y) {
                                	double tmp;
                                	if (y <= 7.5) {
                                		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
                                	} else if (y <= 2e+157) {
                                		tmp = (y * y) * (y * (0.0001984126984126984 * (y * (y * y))));
                                	} else {
                                		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y):
                                	tmp = 0
                                	if y <= 7.5:
                                		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))))
                                	elif y <= 2e+157:
                                		tmp = (y * y) * (y * (0.0001984126984126984 * (y * (y * y))))
                                	else:
                                		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333))
                                	return tmp
                                
                                function code(x, y)
                                	tmp = 0.0
                                	if (y <= 7.5)
                                		tmp = Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * 0.008333333333333333)))));
                                	elseif (y <= 2e+157)
                                		tmp = Float64(Float64(y * y) * Float64(y * Float64(0.0001984126984126984 * Float64(y * Float64(y * y)))));
                                	else
                                		tmp = Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.08333333333333333)));
                                	end
                                	return tmp
                                end
                                
                                function tmp_2 = code(x, y)
                                	tmp = 0.0;
                                	if (y <= 7.5)
                                		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
                                	elseif (y <= 2e+157)
                                		tmp = (y * y) * (y * (0.0001984126984126984 * (y * (y * y))));
                                	else
                                		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                                	end
                                	tmp_2 = tmp;
                                end
                                
                                code[x_, y_] := If[LessEqual[y, 7.5], N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e+157], N[(N[(y * y), $MachinePrecision] * N[(y * N[(0.0001984126984126984 * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.08333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                \mathbf{if}\;y \leq 7.5:\\
                                \;\;\;\;1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\\
                                
                                \mathbf{elif}\;y \leq 2 \cdot 10^{+157}:\\
                                \;\;\;\;\left(y \cdot y\right) \cdot \left(y \cdot \left(0.0001984126984126984 \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 3 regimes
                                2. if y < 7.5

                                  1. Initial program 100.0%

                                    \[\cos x \cdot \frac{\sinh y}{y} \]
                                  2. Add Preprocessing
                                  3. Taylor expanded in x around 0

                                    \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                  4. Step-by-step derivation
                                    1. Simplified64.0%

                                      \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                                    2. Taylor expanded in y around 0

                                      \[\leadsto \color{blue}{1 + {y}^{2} \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)} \]
                                    3. Step-by-step derivation
                                      1. +-lowering-+.f64N/A

                                        \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)}\right) \]
                                      2. unpow2N/A

                                        \[\leadsto \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \left(\color{blue}{\frac{1}{6}} + \frac{1}{120} \cdot {y}^{2}\right)\right)\right) \]
                                      3. associate-*l*N/A

                                        \[\leadsto \mathsf{+.f64}\left(1, \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)}\right)\right) \]
                                      4. *-lowering-*.f64N/A

                                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)}\right)\right) \]
                                      5. *-lowering-*.f64N/A

                                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)}\right)\right)\right) \]
                                      6. +-lowering-+.f64N/A

                                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(\frac{1}{120} \cdot {y}^{2}\right)}\right)\right)\right)\right) \]
                                      7. *-commutativeN/A

                                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \color{blue}{\frac{1}{120}}\right)\right)\right)\right)\right) \]
                                      8. *-lowering-*.f64N/A

                                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\frac{1}{120}}\right)\right)\right)\right)\right) \]
                                      9. unpow2N/A

                                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{120}\right)\right)\right)\right)\right) \]
                                      10. *-lowering-*.f6457.5%

                                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{120}\right)\right)\right)\right)\right) \]
                                    4. Simplified57.5%

                                      \[\leadsto \color{blue}{1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)} \]

                                    if 7.5 < y < 1.99999999999999997e157

                                    1. Initial program 100.0%

                                      \[\cos x \cdot \frac{\sinh y}{y} \]
                                    2. Add Preprocessing
                                    3. Taylor expanded in x around 0

                                      \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                    4. Step-by-step derivation
                                      1. Simplified76.9%

                                        \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                                      2. Taylor expanded in y around 0

                                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
                                      3. Step-by-step derivation
                                        1. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                                        2. +-lowering-+.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                        3. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                        4. unpow2N/A

                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                        5. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                        6. +-lowering-+.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                        7. unpow2N/A

                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                        8. associate-*l*N/A

                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                        9. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                        10. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                        11. +-lowering-+.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                        12. *-commutativeN/A

                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                        13. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                        14. unpow2N/A

                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                        15. *-lowering-*.f6442.8%

                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                      4. Simplified42.8%

                                        \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
                                      5. Step-by-step derivation
                                        1. *-lft-identityN/A

                                          \[\leadsto \frac{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}{\color{blue}{y}} \]
                                        2. clear-numN/A

                                          \[\leadsto \frac{1}{\color{blue}{\frac{y}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}}} \]
                                        3. associate-/r/N/A

                                          \[\leadsto \frac{1}{y} \cdot \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)} \]
                                        4. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\left(\frac{1}{y}\right), \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)}\right) \]
                                        5. /-lowering-/.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \left(\color{blue}{y} \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right) \]
                                        6. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \color{blue}{\left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right) \]
                                        7. +-lowering-+.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \color{blue}{\left(\left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right) \]
                                        8. associate-*l*N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
                                        9. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
                                        10. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right) \]
                                        11. +-lowering-+.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right)\right) \]
                                        12. associate-*r*N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                                        13. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(y \cdot y\right), \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                                        14. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{120}} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right) \]
                                        15. +-lowering-+.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \color{blue}{\left(\left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right) \]
                                        16. associate-*l*N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \left(y \cdot \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
                                        17. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
                                      6. Applied egg-rr42.8%

                                        \[\leadsto \color{blue}{\frac{1}{y} \cdot \left(y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\right)} \]
                                      7. Taylor expanded in y around inf

                                        \[\leadsto \color{blue}{\frac{1}{5040} \cdot {y}^{6}} \]
                                      8. Step-by-step derivation
                                        1. metadata-evalN/A

                                          \[\leadsto \frac{1}{5040} \cdot {y}^{\left(2 \cdot \color{blue}{3}\right)} \]
                                        2. pow-sqrN/A

                                          \[\leadsto \frac{1}{5040} \cdot \left({y}^{3} \cdot \color{blue}{{y}^{3}}\right) \]
                                        3. cube-prodN/A

                                          \[\leadsto \frac{1}{5040} \cdot {\left(y \cdot y\right)}^{\color{blue}{3}} \]
                                        4. unpow2N/A

                                          \[\leadsto \frac{1}{5040} \cdot {\left({y}^{2}\right)}^{3} \]
                                        5. unpow3N/A

                                          \[\leadsto \frac{1}{5040} \cdot \left(\left({y}^{2} \cdot {y}^{2}\right) \cdot \color{blue}{{y}^{2}}\right) \]
                                        6. pow-sqrN/A

                                          \[\leadsto \frac{1}{5040} \cdot \left({y}^{\left(2 \cdot 2\right)} \cdot {\color{blue}{y}}^{2}\right) \]
                                        7. metadata-evalN/A

                                          \[\leadsto \frac{1}{5040} \cdot \left({y}^{4} \cdot {y}^{2}\right) \]
                                        8. associate-*l*N/A

                                          \[\leadsto \left(\frac{1}{5040} \cdot {y}^{4}\right) \cdot \color{blue}{{y}^{2}} \]
                                        9. *-commutativeN/A

                                          \[\leadsto \left({y}^{4} \cdot \frac{1}{5040}\right) \cdot {\color{blue}{y}}^{2} \]
                                        10. associate-*l*N/A

                                          \[\leadsto {y}^{4} \cdot \color{blue}{\left(\frac{1}{5040} \cdot {y}^{2}\right)} \]
                                        11. metadata-evalN/A

                                          \[\leadsto {y}^{\left(2 \cdot 2\right)} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right) \]
                                        12. pow-sqrN/A

                                          \[\leadsto \left({y}^{2} \cdot {y}^{2}\right) \cdot \left(\color{blue}{\frac{1}{5040}} \cdot {y}^{2}\right) \]
                                        13. associate-*r*N/A

                                          \[\leadsto {y}^{2} \cdot \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)} \]
                                        14. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)}\right) \]
                                        15. unpow2N/A

                                          \[\leadsto \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\color{blue}{{y}^{2}} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right) \]
                                        16. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{{y}^{2}} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right) \]
                                        17. unpow2N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\left(y \cdot y\right) \cdot \left(\color{blue}{\frac{1}{5040}} \cdot {y}^{2}\right)\right)\right) \]
                                        18. associate-*l*N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)}\right)\right) \]
                                        19. *-commutativeN/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(y \cdot \left(\left(\frac{1}{5040} \cdot {y}^{2}\right) \cdot \color{blue}{y}\right)\right)\right) \]
                                        20. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \color{blue}{\left(\left(\frac{1}{5040} \cdot {y}^{2}\right) \cdot y\right)}\right)\right) \]
                                        21. associate-*l*N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot \color{blue}{\left({y}^{2} \cdot y\right)}\right)\right)\right) \]
                                        22. unpow2N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot \left(\left(y \cdot y\right) \cdot y\right)\right)\right)\right) \]
                                        23. unpow3N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot {y}^{\color{blue}{3}}\right)\right)\right) \]
                                        24. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\frac{1}{5040}, \color{blue}{\left({y}^{3}\right)}\right)\right)\right) \]
                                        25. cube-multN/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\frac{1}{5040}, \left(y \cdot \color{blue}{\left(y \cdot y\right)}\right)\right)\right)\right) \]
                                        26. unpow2N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\frac{1}{5040}, \left(y \cdot {y}^{\color{blue}{2}}\right)\right)\right)\right) \]
                                        27. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\frac{1}{5040}, \mathsf{*.f64}\left(y, \color{blue}{\left({y}^{2}\right)}\right)\right)\right)\right) \]
                                      9. Simplified40.4%

                                        \[\leadsto \color{blue}{\left(y \cdot y\right) \cdot \left(y \cdot \left(0.0001984126984126984 \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)} \]

                                      if 1.99999999999999997e157 < y

                                      1. Initial program 100.0%

                                        \[\cos x \cdot \frac{\sinh y}{y} \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in x around 0

                                        \[\leadsto \mathsf{*.f64}\left(\color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                      4. Step-by-step derivation
                                        1. +-lowering-+.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left(\frac{-1}{2} \cdot {x}^{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\mathsf{sinh.f64}\left(y\right)}, y\right)\right) \]
                                        2. *-commutativeN/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left({x}^{2} \cdot \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                        3. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({x}^{2}\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                        4. unpow2N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                        5. *-lowering-*.f6492.3%

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                      5. Simplified92.3%

                                        \[\leadsto \color{blue}{\left(1 + \left(x \cdot x\right) \cdot -0.5\right)} \cdot \frac{\sinh y}{y} \]
                                      6. Taylor expanded in y around 0

                                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)}, y\right)\right) \]
                                      7. Step-by-step derivation
                                        1. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right), y\right)\right) \]
                                        2. +-lowering-+.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\frac{1}{6} \cdot {y}^{2}\right)\right)\right), y\right)\right) \]
                                        3. *-commutativeN/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                        4. unpow2N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                        5. associate-*l*N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                        6. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                        7. *-lowering-*.f6492.3%

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                      8. Simplified92.3%

                                        \[\leadsto \left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{\color{blue}{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}}{y} \]
                                      9. Taylor expanded in y around inf

                                        \[\leadsto \color{blue}{\frac{1}{6} \cdot \left({y}^{2} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                                      10. Step-by-step derivation
                                        1. associate-*r*N/A

                                          \[\leadsto \left(\frac{1}{6} \cdot {y}^{2}\right) \cdot \color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)} \]
                                        2. *-commutativeN/A

                                          \[\leadsto \left({y}^{2} \cdot \frac{1}{6}\right) \cdot \left(\color{blue}{1} + \frac{-1}{2} \cdot {x}^{2}\right) \]
                                        3. associate-*l*N/A

                                          \[\leadsto {y}^{2} \cdot \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                                        4. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)}\right) \]
                                        5. unpow2N/A

                                          \[\leadsto \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                        6. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                        7. distribute-lft-inN/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} \cdot 1 + \color{blue}{\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)}\right)\right) \]
                                        8. metadata-evalN/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + \color{blue}{\frac{1}{6}} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                        9. +-lowering-+.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)}\right)\right) \]
                                        10. *-commutativeN/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(\frac{-1}{2} \cdot {x}^{2}\right) \cdot \color{blue}{\frac{1}{6}}\right)\right)\right) \]
                                        11. *-commutativeN/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left({x}^{2} \cdot \frac{-1}{2}\right) \cdot \frac{1}{6}\right)\right)\right) \]
                                        12. associate-*l*N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({x}^{2} \cdot \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                                        13. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                                        14. unpow2N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(x \cdot x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                                        15. *-lowering-*.f64N/A

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                                        16. metadata-eval92.3%

                                          \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{12}\right)\right)\right) \]
                                      11. Simplified92.3%

                                        \[\leadsto \color{blue}{\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)} \]
                                    5. Recombined 3 regimes into one program.
                                    6. Add Preprocessing

                                    Alternative 13: 53.3% accurate, 8.9× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 5.6:\\ \;\;\;\;1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\\ \mathbf{elif}\;y \leq 2.8 \cdot 10^{+157}:\\ \;\;\;\;\left(y \cdot y\right) \cdot \left(y \cdot \left(0.0001984126984126984 \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\ \end{array} \end{array} \]
                                    (FPCore (x y)
                                     :precision binary64
                                     (if (<= y 5.6)
                                       (+ 1.0 (* 0.16666666666666666 (* y y)))
                                       (if (<= y 2.8e+157)
                                         (* (* y y) (* y (* 0.0001984126984126984 (* y (* y y)))))
                                         (* (* y y) (+ 0.16666666666666666 (* (* x x) -0.08333333333333333))))))
                                    double code(double x, double y) {
                                    	double tmp;
                                    	if (y <= 5.6) {
                                    		tmp = 1.0 + (0.16666666666666666 * (y * y));
                                    	} else if (y <= 2.8e+157) {
                                    		tmp = (y * y) * (y * (0.0001984126984126984 * (y * (y * y))));
                                    	} else {
                                    		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                                    	}
                                    	return tmp;
                                    }
                                    
                                    real(8) function code(x, y)
                                        real(8), intent (in) :: x
                                        real(8), intent (in) :: y
                                        real(8) :: tmp
                                        if (y <= 5.6d0) then
                                            tmp = 1.0d0 + (0.16666666666666666d0 * (y * y))
                                        else if (y <= 2.8d+157) then
                                            tmp = (y * y) * (y * (0.0001984126984126984d0 * (y * (y * y))))
                                        else
                                            tmp = (y * y) * (0.16666666666666666d0 + ((x * x) * (-0.08333333333333333d0)))
                                        end if
                                        code = tmp
                                    end function
                                    
                                    public static double code(double x, double y) {
                                    	double tmp;
                                    	if (y <= 5.6) {
                                    		tmp = 1.0 + (0.16666666666666666 * (y * y));
                                    	} else if (y <= 2.8e+157) {
                                    		tmp = (y * y) * (y * (0.0001984126984126984 * (y * (y * y))));
                                    	} else {
                                    		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                                    	}
                                    	return tmp;
                                    }
                                    
                                    def code(x, y):
                                    	tmp = 0
                                    	if y <= 5.6:
                                    		tmp = 1.0 + (0.16666666666666666 * (y * y))
                                    	elif y <= 2.8e+157:
                                    		tmp = (y * y) * (y * (0.0001984126984126984 * (y * (y * y))))
                                    	else:
                                    		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333))
                                    	return tmp
                                    
                                    function code(x, y)
                                    	tmp = 0.0
                                    	if (y <= 5.6)
                                    		tmp = Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y)));
                                    	elseif (y <= 2.8e+157)
                                    		tmp = Float64(Float64(y * y) * Float64(y * Float64(0.0001984126984126984 * Float64(y * Float64(y * y)))));
                                    	else
                                    		tmp = Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.08333333333333333)));
                                    	end
                                    	return tmp
                                    end
                                    
                                    function tmp_2 = code(x, y)
                                    	tmp = 0.0;
                                    	if (y <= 5.6)
                                    		tmp = 1.0 + (0.16666666666666666 * (y * y));
                                    	elseif (y <= 2.8e+157)
                                    		tmp = (y * y) * (y * (0.0001984126984126984 * (y * (y * y))));
                                    	else
                                    		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                                    	end
                                    	tmp_2 = tmp;
                                    end
                                    
                                    code[x_, y_] := If[LessEqual[y, 5.6], N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.8e+157], N[(N[(y * y), $MachinePrecision] * N[(y * N[(0.0001984126984126984 * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.08333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;y \leq 5.6:\\
                                    \;\;\;\;1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\\
                                    
                                    \mathbf{elif}\;y \leq 2.8 \cdot 10^{+157}:\\
                                    \;\;\;\;\left(y \cdot y\right) \cdot \left(y \cdot \left(0.0001984126984126984 \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 3 regimes
                                    2. if y < 5.5999999999999996

                                      1. Initial program 100.0%

                                        \[\cos x \cdot \frac{\sinh y}{y} \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in x around 0

                                        \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                      4. Step-by-step derivation
                                        1. Simplified64.0%

                                          \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                                        2. Taylor expanded in y around 0

                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
                                        3. Step-by-step derivation
                                          1. *-lowering-*.f64N/A

                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                                          2. +-lowering-+.f64N/A

                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                          3. *-lowering-*.f64N/A

                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                          4. unpow2N/A

                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                          5. *-lowering-*.f64N/A

                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                          6. +-lowering-+.f64N/A

                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                          7. unpow2N/A

                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                          8. associate-*l*N/A

                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                          9. *-lowering-*.f64N/A

                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                          10. *-lowering-*.f64N/A

                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                          11. +-lowering-+.f64N/A

                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                          12. *-commutativeN/A

                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                          13. *-lowering-*.f64N/A

                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                          14. unpow2N/A

                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                          15. *-lowering-*.f6459.5%

                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                        4. Simplified59.5%

                                          \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
                                        5. Taylor expanded in y around 0

                                          \[\leadsto \color{blue}{1 + \frac{1}{6} \cdot {y}^{2}} \]
                                        6. Step-by-step derivation
                                          1. +-lowering-+.f64N/A

                                            \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right)}\right) \]
                                          2. *-lowering-*.f64N/A

                                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \color{blue}{\left({y}^{2}\right)}\right)\right) \]
                                          3. unpow2N/A

                                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \left(y \cdot \color{blue}{y}\right)\right)\right) \]
                                          4. *-lowering-*.f6452.4%

                                            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right) \]
                                        7. Simplified52.4%

                                          \[\leadsto \color{blue}{1 + 0.16666666666666666 \cdot \left(y \cdot y\right)} \]

                                        if 5.5999999999999996 < y < 2.8000000000000003e157

                                        1. Initial program 100.0%

                                          \[\cos x \cdot \frac{\sinh y}{y} \]
                                        2. Add Preprocessing
                                        3. Taylor expanded in x around 0

                                          \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                        4. Step-by-step derivation
                                          1. Simplified76.9%

                                            \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                                          2. Taylor expanded in y around 0

                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
                                          3. Step-by-step derivation
                                            1. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                                            2. +-lowering-+.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                            3. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                            4. unpow2N/A

                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                            5. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                            6. +-lowering-+.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                            7. unpow2N/A

                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                            8. associate-*l*N/A

                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                            9. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                            10. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                            11. +-lowering-+.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                            12. *-commutativeN/A

                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                            13. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                            14. unpow2N/A

                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                            15. *-lowering-*.f6442.8%

                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                          4. Simplified42.8%

                                            \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
                                          5. Step-by-step derivation
                                            1. *-lft-identityN/A

                                              \[\leadsto \frac{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}{\color{blue}{y}} \]
                                            2. clear-numN/A

                                              \[\leadsto \frac{1}{\color{blue}{\frac{y}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}}} \]
                                            3. associate-/r/N/A

                                              \[\leadsto \frac{1}{y} \cdot \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)} \]
                                            4. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\left(\frac{1}{y}\right), \color{blue}{\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)}\right) \]
                                            5. /-lowering-/.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \left(\color{blue}{y} \cdot \left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right) \]
                                            6. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \color{blue}{\left(1 + \left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right) \]
                                            7. +-lowering-+.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \color{blue}{\left(\left(y \cdot y\right) \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right) \]
                                            8. associate-*l*N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
                                            9. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)}\right)\right)\right)\right) \]
                                            10. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{1}{6} + y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right) \]
                                            11. +-lowering-+.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(y \cdot \left(y \cdot \left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)}\right)\right)\right)\right)\right)\right) \]
                                            12. associate-*r*N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                                            13. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(y \cdot y\right), \color{blue}{\left(\frac{1}{120} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                                            14. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{120}} + \left(y \cdot y\right) \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right) \]
                                            15. +-lowering-+.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \color{blue}{\left(\left(y \cdot y\right) \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right) \]
                                            16. associate-*l*N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \left(y \cdot \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
                                            17. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(1, y\right), \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(y, \color{blue}{\left(y \cdot \frac{1}{5040}\right)}\right)\right)\right)\right)\right)\right)\right)\right)\right) \]
                                          6. Applied egg-rr42.8%

                                            \[\leadsto \color{blue}{\frac{1}{y} \cdot \left(y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\right)} \]
                                          7. Taylor expanded in y around inf

                                            \[\leadsto \color{blue}{\frac{1}{5040} \cdot {y}^{6}} \]
                                          8. Step-by-step derivation
                                            1. metadata-evalN/A

                                              \[\leadsto \frac{1}{5040} \cdot {y}^{\left(2 \cdot \color{blue}{3}\right)} \]
                                            2. pow-sqrN/A

                                              \[\leadsto \frac{1}{5040} \cdot \left({y}^{3} \cdot \color{blue}{{y}^{3}}\right) \]
                                            3. cube-prodN/A

                                              \[\leadsto \frac{1}{5040} \cdot {\left(y \cdot y\right)}^{\color{blue}{3}} \]
                                            4. unpow2N/A

                                              \[\leadsto \frac{1}{5040} \cdot {\left({y}^{2}\right)}^{3} \]
                                            5. unpow3N/A

                                              \[\leadsto \frac{1}{5040} \cdot \left(\left({y}^{2} \cdot {y}^{2}\right) \cdot \color{blue}{{y}^{2}}\right) \]
                                            6. pow-sqrN/A

                                              \[\leadsto \frac{1}{5040} \cdot \left({y}^{\left(2 \cdot 2\right)} \cdot {\color{blue}{y}}^{2}\right) \]
                                            7. metadata-evalN/A

                                              \[\leadsto \frac{1}{5040} \cdot \left({y}^{4} \cdot {y}^{2}\right) \]
                                            8. associate-*l*N/A

                                              \[\leadsto \left(\frac{1}{5040} \cdot {y}^{4}\right) \cdot \color{blue}{{y}^{2}} \]
                                            9. *-commutativeN/A

                                              \[\leadsto \left({y}^{4} \cdot \frac{1}{5040}\right) \cdot {\color{blue}{y}}^{2} \]
                                            10. associate-*l*N/A

                                              \[\leadsto {y}^{4} \cdot \color{blue}{\left(\frac{1}{5040} \cdot {y}^{2}\right)} \]
                                            11. metadata-evalN/A

                                              \[\leadsto {y}^{\left(2 \cdot 2\right)} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right) \]
                                            12. pow-sqrN/A

                                              \[\leadsto \left({y}^{2} \cdot {y}^{2}\right) \cdot \left(\color{blue}{\frac{1}{5040}} \cdot {y}^{2}\right) \]
                                            13. associate-*r*N/A

                                              \[\leadsto {y}^{2} \cdot \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)} \]
                                            14. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)}\right) \]
                                            15. unpow2N/A

                                              \[\leadsto \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\color{blue}{{y}^{2}} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right) \]
                                            16. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{{y}^{2}} \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right) \]
                                            17. unpow2N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\left(y \cdot y\right) \cdot \left(\color{blue}{\frac{1}{5040}} \cdot {y}^{2}\right)\right)\right) \]
                                            18. associate-*l*N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(y \cdot \color{blue}{\left(y \cdot \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)}\right)\right) \]
                                            19. *-commutativeN/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(y \cdot \left(\left(\frac{1}{5040} \cdot {y}^{2}\right) \cdot \color{blue}{y}\right)\right)\right) \]
                                            20. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \color{blue}{\left(\left(\frac{1}{5040} \cdot {y}^{2}\right) \cdot y\right)}\right)\right) \]
                                            21. associate-*l*N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot \color{blue}{\left({y}^{2} \cdot y\right)}\right)\right)\right) \]
                                            22. unpow2N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot \left(\left(y \cdot y\right) \cdot y\right)\right)\right)\right) \]
                                            23. unpow3N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \left(\frac{1}{5040} \cdot {y}^{\color{blue}{3}}\right)\right)\right) \]
                                            24. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\frac{1}{5040}, \color{blue}{\left({y}^{3}\right)}\right)\right)\right) \]
                                            25. cube-multN/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\frac{1}{5040}, \left(y \cdot \color{blue}{\left(y \cdot y\right)}\right)\right)\right)\right) \]
                                            26. unpow2N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\frac{1}{5040}, \left(y \cdot {y}^{\color{blue}{2}}\right)\right)\right)\right) \]
                                            27. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(\frac{1}{5040}, \mathsf{*.f64}\left(y, \color{blue}{\left({y}^{2}\right)}\right)\right)\right)\right) \]
                                          9. Simplified40.4%

                                            \[\leadsto \color{blue}{\left(y \cdot y\right) \cdot \left(y \cdot \left(0.0001984126984126984 \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)} \]

                                          if 2.8000000000000003e157 < y

                                          1. Initial program 100.0%

                                            \[\cos x \cdot \frac{\sinh y}{y} \]
                                          2. Add Preprocessing
                                          3. Taylor expanded in x around 0

                                            \[\leadsto \mathsf{*.f64}\left(\color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                          4. Step-by-step derivation
                                            1. +-lowering-+.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left(\frac{-1}{2} \cdot {x}^{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\mathsf{sinh.f64}\left(y\right)}, y\right)\right) \]
                                            2. *-commutativeN/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left({x}^{2} \cdot \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                            3. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({x}^{2}\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                            4. unpow2N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                            5. *-lowering-*.f6492.3%

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                          5. Simplified92.3%

                                            \[\leadsto \color{blue}{\left(1 + \left(x \cdot x\right) \cdot -0.5\right)} \cdot \frac{\sinh y}{y} \]
                                          6. Taylor expanded in y around 0

                                            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)}, y\right)\right) \]
                                          7. Step-by-step derivation
                                            1. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right), y\right)\right) \]
                                            2. +-lowering-+.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\frac{1}{6} \cdot {y}^{2}\right)\right)\right), y\right)\right) \]
                                            3. *-commutativeN/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                            4. unpow2N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                            5. associate-*l*N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                            6. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                            7. *-lowering-*.f6492.3%

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                          8. Simplified92.3%

                                            \[\leadsto \left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{\color{blue}{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}}{y} \]
                                          9. Taylor expanded in y around inf

                                            \[\leadsto \color{blue}{\frac{1}{6} \cdot \left({y}^{2} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                                          10. Step-by-step derivation
                                            1. associate-*r*N/A

                                              \[\leadsto \left(\frac{1}{6} \cdot {y}^{2}\right) \cdot \color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)} \]
                                            2. *-commutativeN/A

                                              \[\leadsto \left({y}^{2} \cdot \frac{1}{6}\right) \cdot \left(\color{blue}{1} + \frac{-1}{2} \cdot {x}^{2}\right) \]
                                            3. associate-*l*N/A

                                              \[\leadsto {y}^{2} \cdot \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                                            4. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)}\right) \]
                                            5. unpow2N/A

                                              \[\leadsto \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                            6. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                            7. distribute-lft-inN/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} \cdot 1 + \color{blue}{\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)}\right)\right) \]
                                            8. metadata-evalN/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + \color{blue}{\frac{1}{6}} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                            9. +-lowering-+.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)}\right)\right) \]
                                            10. *-commutativeN/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(\frac{-1}{2} \cdot {x}^{2}\right) \cdot \color{blue}{\frac{1}{6}}\right)\right)\right) \]
                                            11. *-commutativeN/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left({x}^{2} \cdot \frac{-1}{2}\right) \cdot \frac{1}{6}\right)\right)\right) \]
                                            12. associate-*l*N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({x}^{2} \cdot \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                                            13. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                                            14. unpow2N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(x \cdot x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                                            15. *-lowering-*.f64N/A

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                                            16. metadata-eval92.3%

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{12}\right)\right)\right) \]
                                          11. Simplified92.3%

                                            \[\leadsto \color{blue}{\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)} \]
                                        5. Recombined 3 regimes into one program.
                                        6. Add Preprocessing

                                        Alternative 14: 49.8% accurate, 9.7× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 27500000000000:\\ \;\;\;\;1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\\ \mathbf{elif}\;y \leq 2.06 \cdot 10^{+127}:\\ \;\;\;\;1 + x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot 0.041666666666666664\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\ \end{array} \end{array} \]
                                        (FPCore (x y)
                                         :precision binary64
                                         (if (<= y 27500000000000.0)
                                           (+ 1.0 (* 0.16666666666666666 (* y y)))
                                           (if (<= y 2.06e+127)
                                             (+ 1.0 (* x (* x (* (* x x) 0.041666666666666664))))
                                             (* (* y y) (+ 0.16666666666666666 (* (* x x) -0.08333333333333333))))))
                                        double code(double x, double y) {
                                        	double tmp;
                                        	if (y <= 27500000000000.0) {
                                        		tmp = 1.0 + (0.16666666666666666 * (y * y));
                                        	} else if (y <= 2.06e+127) {
                                        		tmp = 1.0 + (x * (x * ((x * x) * 0.041666666666666664)));
                                        	} else {
                                        		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                                        	}
                                        	return tmp;
                                        }
                                        
                                        real(8) function code(x, y)
                                            real(8), intent (in) :: x
                                            real(8), intent (in) :: y
                                            real(8) :: tmp
                                            if (y <= 27500000000000.0d0) then
                                                tmp = 1.0d0 + (0.16666666666666666d0 * (y * y))
                                            else if (y <= 2.06d+127) then
                                                tmp = 1.0d0 + (x * (x * ((x * x) * 0.041666666666666664d0)))
                                            else
                                                tmp = (y * y) * (0.16666666666666666d0 + ((x * x) * (-0.08333333333333333d0)))
                                            end if
                                            code = tmp
                                        end function
                                        
                                        public static double code(double x, double y) {
                                        	double tmp;
                                        	if (y <= 27500000000000.0) {
                                        		tmp = 1.0 + (0.16666666666666666 * (y * y));
                                        	} else if (y <= 2.06e+127) {
                                        		tmp = 1.0 + (x * (x * ((x * x) * 0.041666666666666664)));
                                        	} else {
                                        		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y):
                                        	tmp = 0
                                        	if y <= 27500000000000.0:
                                        		tmp = 1.0 + (0.16666666666666666 * (y * y))
                                        	elif y <= 2.06e+127:
                                        		tmp = 1.0 + (x * (x * ((x * x) * 0.041666666666666664)))
                                        	else:
                                        		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333))
                                        	return tmp
                                        
                                        function code(x, y)
                                        	tmp = 0.0
                                        	if (y <= 27500000000000.0)
                                        		tmp = Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y)));
                                        	elseif (y <= 2.06e+127)
                                        		tmp = Float64(1.0 + Float64(x * Float64(x * Float64(Float64(x * x) * 0.041666666666666664))));
                                        	else
                                        		tmp = Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.08333333333333333)));
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y)
                                        	tmp = 0.0;
                                        	if (y <= 27500000000000.0)
                                        		tmp = 1.0 + (0.16666666666666666 * (y * y));
                                        	elseif (y <= 2.06e+127)
                                        		tmp = 1.0 + (x * (x * ((x * x) * 0.041666666666666664)));
                                        	else
                                        		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_] := If[LessEqual[y, 27500000000000.0], N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.06e+127], N[(1.0 + N[(x * N[(x * N[(N[(x * x), $MachinePrecision] * 0.041666666666666664), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.08333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        \mathbf{if}\;y \leq 27500000000000:\\
                                        \;\;\;\;1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\\
                                        
                                        \mathbf{elif}\;y \leq 2.06 \cdot 10^{+127}:\\
                                        \;\;\;\;1 + x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot 0.041666666666666664\right)\right)\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 3 regimes
                                        2. if y < 2.75e13

                                          1. Initial program 100.0%

                                            \[\cos x \cdot \frac{\sinh y}{y} \]
                                          2. Add Preprocessing
                                          3. Taylor expanded in x around 0

                                            \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                          4. Step-by-step derivation
                                            1. Simplified64.2%

                                              \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                                            2. Taylor expanded in y around 0

                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
                                            3. Step-by-step derivation
                                              1. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                                              2. +-lowering-+.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                              3. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                              4. unpow2N/A

                                                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                              5. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                              6. +-lowering-+.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                              7. unpow2N/A

                                                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                              8. associate-*l*N/A

                                                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                              9. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                              10. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                              11. +-lowering-+.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                              12. *-commutativeN/A

                                                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                              13. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                              14. unpow2N/A

                                                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                              15. *-lowering-*.f6457.5%

                                                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                            4. Simplified57.5%

                                              \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
                                            5. Taylor expanded in y around 0

                                              \[\leadsto \color{blue}{1 + \frac{1}{6} \cdot {y}^{2}} \]
                                            6. Step-by-step derivation
                                              1. +-lowering-+.f64N/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right)}\right) \]
                                              2. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \color{blue}{\left({y}^{2}\right)}\right)\right) \]
                                              3. unpow2N/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \left(y \cdot \color{blue}{y}\right)\right)\right) \]
                                              4. *-lowering-*.f6450.7%

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right) \]
                                            7. Simplified50.7%

                                              \[\leadsto \color{blue}{1 + 0.16666666666666666 \cdot \left(y \cdot y\right)} \]

                                            if 2.75e13 < y < 2.06000000000000001e127

                                            1. Initial program 100.0%

                                              \[\cos x \cdot \frac{\sinh y}{y} \]
                                            2. Add Preprocessing
                                            3. Taylor expanded in y around 0

                                              \[\leadsto \color{blue}{\cos x} \]
                                            4. Step-by-step derivation
                                              1. cos-lowering-cos.f643.1%

                                                \[\leadsto \mathsf{cos.f64}\left(x\right) \]
                                            5. Simplified3.1%

                                              \[\leadsto \color{blue}{\cos x} \]
                                            6. Taylor expanded in x around 0

                                              \[\leadsto \color{blue}{1 + {x}^{2} \cdot \left(\frac{1}{24} \cdot {x}^{2} - \frac{1}{2}\right)} \]
                                            7. Step-by-step derivation
                                              1. +-lowering-+.f64N/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left({x}^{2} \cdot \left(\frac{1}{24} \cdot {x}^{2} - \frac{1}{2}\right)\right)}\right) \]
                                              2. unpow2N/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \left(\left(x \cdot x\right) \cdot \left(\color{blue}{\frac{1}{24} \cdot {x}^{2}} - \frac{1}{2}\right)\right)\right) \]
                                              3. associate-*l*N/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \left(x \cdot \color{blue}{\left(x \cdot \left(\frac{1}{24} \cdot {x}^{2} - \frac{1}{2}\right)\right)}\right)\right) \]
                                              4. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \color{blue}{\left(x \cdot \left(\frac{1}{24} \cdot {x}^{2} - \frac{1}{2}\right)\right)}\right)\right) \]
                                              5. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{1}{24} \cdot {x}^{2} - \frac{1}{2}\right)}\right)\right)\right) \]
                                              6. sub-negN/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{1}{24} \cdot {x}^{2} + \color{blue}{\left(\mathsf{neg}\left(\frac{1}{2}\right)\right)}\right)\right)\right)\right) \]
                                              7. metadata-evalN/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{1}{24} \cdot {x}^{2} + \frac{-1}{2}\right)\right)\right)\right) \]
                                              8. +-commutativeN/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{2} + \color{blue}{\frac{1}{24} \cdot {x}^{2}}\right)\right)\right)\right) \]
                                              9. +-lowering-+.f64N/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \color{blue}{\left(\frac{1}{24} \cdot {x}^{2}\right)}\right)\right)\right)\right) \]
                                              10. *-commutativeN/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \left({x}^{2} \cdot \color{blue}{\frac{1}{24}}\right)\right)\right)\right)\right) \]
                                              11. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\frac{1}{24}}\right)\right)\right)\right)\right) \]
                                              12. unpow2N/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{1}{24}\right)\right)\right)\right)\right) \]
                                              13. *-lowering-*.f6422.0%

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{1}{24}\right)\right)\right)\right)\right) \]
                                            8. Simplified22.0%

                                              \[\leadsto \color{blue}{1 + x \cdot \left(x \cdot \left(-0.5 + \left(x \cdot x\right) \cdot 0.041666666666666664\right)\right)} \]
                                            9. Taylor expanded in x around inf

                                              \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{1}{24} \cdot {x}^{3}\right)}\right)\right) \]
                                            10. Step-by-step derivation
                                              1. *-commutativeN/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \left({x}^{3} \cdot \color{blue}{\frac{1}{24}}\right)\right)\right) \]
                                              2. cube-multN/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \left(\left(x \cdot \left(x \cdot x\right)\right) \cdot \frac{1}{24}\right)\right)\right) \]
                                              3. unpow2N/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \left(\left(x \cdot {x}^{2}\right) \cdot \frac{1}{24}\right)\right)\right) \]
                                              4. associate-*l*N/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left({x}^{2} \cdot \frac{1}{24}\right)}\right)\right)\right) \]
                                              5. *-commutativeN/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \left(x \cdot \left(\frac{1}{24} \cdot \color{blue}{{x}^{2}}\right)\right)\right)\right) \]
                                              6. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{1}{24} \cdot {x}^{2}\right)}\right)\right)\right) \]
                                              7. *-commutativeN/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left({x}^{2} \cdot \color{blue}{\frac{1}{24}}\right)\right)\right)\right) \]
                                              8. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\frac{1}{24}}\right)\right)\right)\right) \]
                                              9. unpow2N/A

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{1}{24}\right)\right)\right)\right) \]
                                              10. *-lowering-*.f6422.0%

                                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{1}{24}\right)\right)\right)\right) \]
                                            11. Simplified22.0%

                                              \[\leadsto 1 + x \cdot \color{blue}{\left(x \cdot \left(\left(x \cdot x\right) \cdot 0.041666666666666664\right)\right)} \]

                                            if 2.06000000000000001e127 < y

                                            1. Initial program 100.0%

                                              \[\cos x \cdot \frac{\sinh y}{y} \]
                                            2. Add Preprocessing
                                            3. Taylor expanded in x around 0

                                              \[\leadsto \mathsf{*.f64}\left(\color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                            4. Step-by-step derivation
                                              1. +-lowering-+.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left(\frac{-1}{2} \cdot {x}^{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\mathsf{sinh.f64}\left(y\right)}, y\right)\right) \]
                                              2. *-commutativeN/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left({x}^{2} \cdot \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                              3. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({x}^{2}\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                              4. unpow2N/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                              5. *-lowering-*.f6490.9%

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                            5. Simplified90.9%

                                              \[\leadsto \color{blue}{\left(1 + \left(x \cdot x\right) \cdot -0.5\right)} \cdot \frac{\sinh y}{y} \]
                                            6. Taylor expanded in y around 0

                                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)}, y\right)\right) \]
                                            7. Step-by-step derivation
                                              1. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right), y\right)\right) \]
                                              2. +-lowering-+.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\frac{1}{6} \cdot {y}^{2}\right)\right)\right), y\right)\right) \]
                                              3. *-commutativeN/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                              4. unpow2N/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                              5. associate-*l*N/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                              6. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                              7. *-lowering-*.f6490.9%

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                            8. Simplified90.9%

                                              \[\leadsto \left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{\color{blue}{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}}{y} \]
                                            9. Taylor expanded in y around inf

                                              \[\leadsto \color{blue}{\frac{1}{6} \cdot \left({y}^{2} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                                            10. Step-by-step derivation
                                              1. associate-*r*N/A

                                                \[\leadsto \left(\frac{1}{6} \cdot {y}^{2}\right) \cdot \color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)} \]
                                              2. *-commutativeN/A

                                                \[\leadsto \left({y}^{2} \cdot \frac{1}{6}\right) \cdot \left(\color{blue}{1} + \frac{-1}{2} \cdot {x}^{2}\right) \]
                                              3. associate-*l*N/A

                                                \[\leadsto {y}^{2} \cdot \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                                              4. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)}\right) \]
                                              5. unpow2N/A

                                                \[\leadsto \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                              6. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                              7. distribute-lft-inN/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} \cdot 1 + \color{blue}{\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)}\right)\right) \]
                                              8. metadata-evalN/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + \color{blue}{\frac{1}{6}} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                              9. +-lowering-+.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)}\right)\right) \]
                                              10. *-commutativeN/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(\frac{-1}{2} \cdot {x}^{2}\right) \cdot \color{blue}{\frac{1}{6}}\right)\right)\right) \]
                                              11. *-commutativeN/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left({x}^{2} \cdot \frac{-1}{2}\right) \cdot \frac{1}{6}\right)\right)\right) \]
                                              12. associate-*l*N/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({x}^{2} \cdot \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                                              13. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                                              14. unpow2N/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(x \cdot x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                                              15. *-lowering-*.f64N/A

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                                              16. metadata-eval77.1%

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{12}\right)\right)\right) \]
                                            11. Simplified77.1%

                                              \[\leadsto \color{blue}{\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)} \]
                                          5. Recombined 3 regimes into one program.
                                          6. Add Preprocessing

                                          Alternative 15: 49.7% accurate, 9.7× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 27500000000000:\\ \;\;\;\;1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\\ \mathbf{elif}\;y \leq 2.45 \cdot 10^{+125}:\\ \;\;\;\;0.041666666666666664 \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\ \end{array} \end{array} \]
                                          (FPCore (x y)
                                           :precision binary64
                                           (if (<= y 27500000000000.0)
                                             (+ 1.0 (* 0.16666666666666666 (* y y)))
                                             (if (<= y 2.45e+125)
                                               (* 0.041666666666666664 (* (* x x) (* x x)))
                                               (* (* y y) (+ 0.16666666666666666 (* (* x x) -0.08333333333333333))))))
                                          double code(double x, double y) {
                                          	double tmp;
                                          	if (y <= 27500000000000.0) {
                                          		tmp = 1.0 + (0.16666666666666666 * (y * y));
                                          	} else if (y <= 2.45e+125) {
                                          		tmp = 0.041666666666666664 * ((x * x) * (x * x));
                                          	} else {
                                          		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                                          	}
                                          	return tmp;
                                          }
                                          
                                          real(8) function code(x, y)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              real(8) :: tmp
                                              if (y <= 27500000000000.0d0) then
                                                  tmp = 1.0d0 + (0.16666666666666666d0 * (y * y))
                                              else if (y <= 2.45d+125) then
                                                  tmp = 0.041666666666666664d0 * ((x * x) * (x * x))
                                              else
                                                  tmp = (y * y) * (0.16666666666666666d0 + ((x * x) * (-0.08333333333333333d0)))
                                              end if
                                              code = tmp
                                          end function
                                          
                                          public static double code(double x, double y) {
                                          	double tmp;
                                          	if (y <= 27500000000000.0) {
                                          		tmp = 1.0 + (0.16666666666666666 * (y * y));
                                          	} else if (y <= 2.45e+125) {
                                          		tmp = 0.041666666666666664 * ((x * x) * (x * x));
                                          	} else {
                                          		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                                          	}
                                          	return tmp;
                                          }
                                          
                                          def code(x, y):
                                          	tmp = 0
                                          	if y <= 27500000000000.0:
                                          		tmp = 1.0 + (0.16666666666666666 * (y * y))
                                          	elif y <= 2.45e+125:
                                          		tmp = 0.041666666666666664 * ((x * x) * (x * x))
                                          	else:
                                          		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333))
                                          	return tmp
                                          
                                          function code(x, y)
                                          	tmp = 0.0
                                          	if (y <= 27500000000000.0)
                                          		tmp = Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y)));
                                          	elseif (y <= 2.45e+125)
                                          		tmp = Float64(0.041666666666666664 * Float64(Float64(x * x) * Float64(x * x)));
                                          	else
                                          		tmp = Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.08333333333333333)));
                                          	end
                                          	return tmp
                                          end
                                          
                                          function tmp_2 = code(x, y)
                                          	tmp = 0.0;
                                          	if (y <= 27500000000000.0)
                                          		tmp = 1.0 + (0.16666666666666666 * (y * y));
                                          	elseif (y <= 2.45e+125)
                                          		tmp = 0.041666666666666664 * ((x * x) * (x * x));
                                          	else
                                          		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                                          	end
                                          	tmp_2 = tmp;
                                          end
                                          
                                          code[x_, y_] := If[LessEqual[y, 27500000000000.0], N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.45e+125], N[(0.041666666666666664 * N[(N[(x * x), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.08333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \begin{array}{l}
                                          \mathbf{if}\;y \leq 27500000000000:\\
                                          \;\;\;\;1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\\
                                          
                                          \mathbf{elif}\;y \leq 2.45 \cdot 10^{+125}:\\
                                          \;\;\;\;0.041666666666666664 \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right)\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 3 regimes
                                          2. if y < 2.75e13

                                            1. Initial program 100.0%

                                              \[\cos x \cdot \frac{\sinh y}{y} \]
                                            2. Add Preprocessing
                                            3. Taylor expanded in x around 0

                                              \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                            4. Step-by-step derivation
                                              1. Simplified64.2%

                                                \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                                              2. Taylor expanded in y around 0

                                                \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
                                              3. Step-by-step derivation
                                                1. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                                                2. +-lowering-+.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                3. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                4. unpow2N/A

                                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                5. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                6. +-lowering-+.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                7. unpow2N/A

                                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                8. associate-*l*N/A

                                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                9. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                10. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                11. +-lowering-+.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                12. *-commutativeN/A

                                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                13. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                14. unpow2N/A

                                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                15. *-lowering-*.f6457.5%

                                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                              4. Simplified57.5%

                                                \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
                                              5. Taylor expanded in y around 0

                                                \[\leadsto \color{blue}{1 + \frac{1}{6} \cdot {y}^{2}} \]
                                              6. Step-by-step derivation
                                                1. +-lowering-+.f64N/A

                                                  \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right)}\right) \]
                                                2. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \color{blue}{\left({y}^{2}\right)}\right)\right) \]
                                                3. unpow2N/A

                                                  \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \left(y \cdot \color{blue}{y}\right)\right)\right) \]
                                                4. *-lowering-*.f6450.7%

                                                  \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right) \]
                                              7. Simplified50.7%

                                                \[\leadsto \color{blue}{1 + 0.16666666666666666 \cdot \left(y \cdot y\right)} \]

                                              if 2.75e13 < y < 2.45000000000000008e125

                                              1. Initial program 100.0%

                                                \[\cos x \cdot \frac{\sinh y}{y} \]
                                              2. Add Preprocessing
                                              3. Taylor expanded in y around 0

                                                \[\leadsto \color{blue}{\cos x} \]
                                              4. Step-by-step derivation
                                                1. cos-lowering-cos.f643.1%

                                                  \[\leadsto \mathsf{cos.f64}\left(x\right) \]
                                              5. Simplified3.1%

                                                \[\leadsto \color{blue}{\cos x} \]
                                              6. Taylor expanded in x around 0

                                                \[\leadsto \color{blue}{1 + {x}^{2} \cdot \left(\frac{1}{24} \cdot {x}^{2} - \frac{1}{2}\right)} \]
                                              7. Step-by-step derivation
                                                1. +-lowering-+.f64N/A

                                                  \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left({x}^{2} \cdot \left(\frac{1}{24} \cdot {x}^{2} - \frac{1}{2}\right)\right)}\right) \]
                                                2. unpow2N/A

                                                  \[\leadsto \mathsf{+.f64}\left(1, \left(\left(x \cdot x\right) \cdot \left(\color{blue}{\frac{1}{24} \cdot {x}^{2}} - \frac{1}{2}\right)\right)\right) \]
                                                3. associate-*l*N/A

                                                  \[\leadsto \mathsf{+.f64}\left(1, \left(x \cdot \color{blue}{\left(x \cdot \left(\frac{1}{24} \cdot {x}^{2} - \frac{1}{2}\right)\right)}\right)\right) \]
                                                4. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \color{blue}{\left(x \cdot \left(\frac{1}{24} \cdot {x}^{2} - \frac{1}{2}\right)\right)}\right)\right) \]
                                                5. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{1}{24} \cdot {x}^{2} - \frac{1}{2}\right)}\right)\right)\right) \]
                                                6. sub-negN/A

                                                  \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{1}{24} \cdot {x}^{2} + \color{blue}{\left(\mathsf{neg}\left(\frac{1}{2}\right)\right)}\right)\right)\right)\right) \]
                                                7. metadata-evalN/A

                                                  \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{1}{24} \cdot {x}^{2} + \frac{-1}{2}\right)\right)\right)\right) \]
                                                8. +-commutativeN/A

                                                  \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{2} + \color{blue}{\frac{1}{24} \cdot {x}^{2}}\right)\right)\right)\right) \]
                                                9. +-lowering-+.f64N/A

                                                  \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \color{blue}{\left(\frac{1}{24} \cdot {x}^{2}\right)}\right)\right)\right)\right) \]
                                                10. *-commutativeN/A

                                                  \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \left({x}^{2} \cdot \color{blue}{\frac{1}{24}}\right)\right)\right)\right)\right) \]
                                                11. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\frac{1}{24}}\right)\right)\right)\right)\right) \]
                                                12. unpow2N/A

                                                  \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{1}{24}\right)\right)\right)\right)\right) \]
                                                13. *-lowering-*.f6422.0%

                                                  \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{1}{24}\right)\right)\right)\right)\right) \]
                                              8. Simplified22.0%

                                                \[\leadsto \color{blue}{1 + x \cdot \left(x \cdot \left(-0.5 + \left(x \cdot x\right) \cdot 0.041666666666666664\right)\right)} \]
                                              9. Taylor expanded in x around inf

                                                \[\leadsto \color{blue}{\frac{1}{24} \cdot {x}^{4}} \]
                                              10. Step-by-step derivation
                                                1. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\frac{1}{24}, \color{blue}{\left({x}^{4}\right)}\right) \]
                                                2. metadata-evalN/A

                                                  \[\leadsto \mathsf{*.f64}\left(\frac{1}{24}, \left({x}^{\left(2 \cdot \color{blue}{2}\right)}\right)\right) \]
                                                3. pow-sqrN/A

                                                  \[\leadsto \mathsf{*.f64}\left(\frac{1}{24}, \left({x}^{2} \cdot \color{blue}{{x}^{2}}\right)\right) \]
                                                4. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\left({x}^{2}\right)}\right)\right) \]
                                                5. unpow2N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\left(x \cdot x\right), \left({\color{blue}{x}}^{2}\right)\right)\right) \]
                                                6. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \left({\color{blue}{x}}^{2}\right)\right)\right) \]
                                                7. unpow2N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \left(x \cdot \color{blue}{x}\right)\right)\right) \]
                                                8. *-lowering-*.f6421.4%

                                                  \[\leadsto \mathsf{*.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \mathsf{*.f64}\left(x, \color{blue}{x}\right)\right)\right) \]
                                              11. Simplified21.4%

                                                \[\leadsto \color{blue}{0.041666666666666664 \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right)} \]

                                              if 2.45000000000000008e125 < y

                                              1. Initial program 100.0%

                                                \[\cos x \cdot \frac{\sinh y}{y} \]
                                              2. Add Preprocessing
                                              3. Taylor expanded in x around 0

                                                \[\leadsto \mathsf{*.f64}\left(\color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                              4. Step-by-step derivation
                                                1. +-lowering-+.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left(\frac{-1}{2} \cdot {x}^{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\mathsf{sinh.f64}\left(y\right)}, y\right)\right) \]
                                                2. *-commutativeN/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left({x}^{2} \cdot \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                3. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({x}^{2}\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                4. unpow2N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                5. *-lowering-*.f6490.9%

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                              5. Simplified90.9%

                                                \[\leadsto \color{blue}{\left(1 + \left(x \cdot x\right) \cdot -0.5\right)} \cdot \frac{\sinh y}{y} \]
                                              6. Taylor expanded in y around 0

                                                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)}, y\right)\right) \]
                                              7. Step-by-step derivation
                                                1. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right), y\right)\right) \]
                                                2. +-lowering-+.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\frac{1}{6} \cdot {y}^{2}\right)\right)\right), y\right)\right) \]
                                                3. *-commutativeN/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                                4. unpow2N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                                5. associate-*l*N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                                6. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                                7. *-lowering-*.f6490.9%

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                              8. Simplified90.9%

                                                \[\leadsto \left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{\color{blue}{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}}{y} \]
                                              9. Taylor expanded in y around inf

                                                \[\leadsto \color{blue}{\frac{1}{6} \cdot \left({y}^{2} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                                              10. Step-by-step derivation
                                                1. associate-*r*N/A

                                                  \[\leadsto \left(\frac{1}{6} \cdot {y}^{2}\right) \cdot \color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)} \]
                                                2. *-commutativeN/A

                                                  \[\leadsto \left({y}^{2} \cdot \frac{1}{6}\right) \cdot \left(\color{blue}{1} + \frac{-1}{2} \cdot {x}^{2}\right) \]
                                                3. associate-*l*N/A

                                                  \[\leadsto {y}^{2} \cdot \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                                                4. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)}\right) \]
                                                5. unpow2N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                                6. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                                7. distribute-lft-inN/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} \cdot 1 + \color{blue}{\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)}\right)\right) \]
                                                8. metadata-evalN/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + \color{blue}{\frac{1}{6}} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                                9. +-lowering-+.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)}\right)\right) \]
                                                10. *-commutativeN/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(\frac{-1}{2} \cdot {x}^{2}\right) \cdot \color{blue}{\frac{1}{6}}\right)\right)\right) \]
                                                11. *-commutativeN/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left({x}^{2} \cdot \frac{-1}{2}\right) \cdot \frac{1}{6}\right)\right)\right) \]
                                                12. associate-*l*N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({x}^{2} \cdot \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                                                13. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                                                14. unpow2N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(x \cdot x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                                                15. *-lowering-*.f64N/A

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                                                16. metadata-eval77.1%

                                                  \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{12}\right)\right)\right) \]
                                              11. Simplified77.1%

                                                \[\leadsto \color{blue}{\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)} \]
                                            5. Recombined 3 regimes into one program.
                                            6. Add Preprocessing

                                            Alternative 16: 49.1% accurate, 10.8× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} t_0 := 1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\\ \mathbf{if}\;y \leq 27500000000000:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;y \leq 1.4 \cdot 10^{+149}:\\ \;\;\;\;0.041666666666666664 \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_0\\ \end{array} \end{array} \]
                                            (FPCore (x y)
                                             :precision binary64
                                             (let* ((t_0 (+ 1.0 (* 0.16666666666666666 (* y y)))))
                                               (if (<= y 27500000000000.0)
                                                 t_0
                                                 (if (<= y 1.4e+149) (* 0.041666666666666664 (* (* x x) (* x x))) t_0))))
                                            double code(double x, double y) {
                                            	double t_0 = 1.0 + (0.16666666666666666 * (y * y));
                                            	double tmp;
                                            	if (y <= 27500000000000.0) {
                                            		tmp = t_0;
                                            	} else if (y <= 1.4e+149) {
                                            		tmp = 0.041666666666666664 * ((x * x) * (x * x));
                                            	} else {
                                            		tmp = t_0;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            real(8) function code(x, y)
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                real(8) :: t_0
                                                real(8) :: tmp
                                                t_0 = 1.0d0 + (0.16666666666666666d0 * (y * y))
                                                if (y <= 27500000000000.0d0) then
                                                    tmp = t_0
                                                else if (y <= 1.4d+149) then
                                                    tmp = 0.041666666666666664d0 * ((x * x) * (x * x))
                                                else
                                                    tmp = t_0
                                                end if
                                                code = tmp
                                            end function
                                            
                                            public static double code(double x, double y) {
                                            	double t_0 = 1.0 + (0.16666666666666666 * (y * y));
                                            	double tmp;
                                            	if (y <= 27500000000000.0) {
                                            		tmp = t_0;
                                            	} else if (y <= 1.4e+149) {
                                            		tmp = 0.041666666666666664 * ((x * x) * (x * x));
                                            	} else {
                                            		tmp = t_0;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            def code(x, y):
                                            	t_0 = 1.0 + (0.16666666666666666 * (y * y))
                                            	tmp = 0
                                            	if y <= 27500000000000.0:
                                            		tmp = t_0
                                            	elif y <= 1.4e+149:
                                            		tmp = 0.041666666666666664 * ((x * x) * (x * x))
                                            	else:
                                            		tmp = t_0
                                            	return tmp
                                            
                                            function code(x, y)
                                            	t_0 = Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y)))
                                            	tmp = 0.0
                                            	if (y <= 27500000000000.0)
                                            		tmp = t_0;
                                            	elseif (y <= 1.4e+149)
                                            		tmp = Float64(0.041666666666666664 * Float64(Float64(x * x) * Float64(x * x)));
                                            	else
                                            		tmp = t_0;
                                            	end
                                            	return tmp
                                            end
                                            
                                            function tmp_2 = code(x, y)
                                            	t_0 = 1.0 + (0.16666666666666666 * (y * y));
                                            	tmp = 0.0;
                                            	if (y <= 27500000000000.0)
                                            		tmp = t_0;
                                            	elseif (y <= 1.4e+149)
                                            		tmp = 0.041666666666666664 * ((x * x) * (x * x));
                                            	else
                                            		tmp = t_0;
                                            	end
                                            	tmp_2 = tmp;
                                            end
                                            
                                            code[x_, y_] := Block[{t$95$0 = N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 27500000000000.0], t$95$0, If[LessEqual[y, 1.4e+149], N[(0.041666666666666664 * N[(N[(x * x), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            t_0 := 1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\\
                                            \mathbf{if}\;y \leq 27500000000000:\\
                                            \;\;\;\;t\_0\\
                                            
                                            \mathbf{elif}\;y \leq 1.4 \cdot 10^{+149}:\\
                                            \;\;\;\;0.041666666666666664 \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right)\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;t\_0\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 2 regimes
                                            2. if y < 2.75e13 or 1.4e149 < y

                                              1. Initial program 100.0%

                                                \[\cos x \cdot \frac{\sinh y}{y} \]
                                              2. Add Preprocessing
                                              3. Taylor expanded in x around 0

                                                \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                              4. Step-by-step derivation
                                                1. Simplified65.1%

                                                  \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                                                2. Taylor expanded in y around 0

                                                  \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
                                                3. Step-by-step derivation
                                                  1. *-lowering-*.f64N/A

                                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                                                  2. +-lowering-+.f64N/A

                                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                  3. *-lowering-*.f64N/A

                                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                  4. unpow2N/A

                                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                  5. *-lowering-*.f64N/A

                                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                  6. +-lowering-+.f64N/A

                                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                  7. unpow2N/A

                                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                  8. associate-*l*N/A

                                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                  9. *-lowering-*.f64N/A

                                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                  10. *-lowering-*.f64N/A

                                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                  11. +-lowering-+.f64N/A

                                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                  12. *-commutativeN/A

                                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                  13. *-lowering-*.f64N/A

                                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                  14. unpow2N/A

                                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                  15. *-lowering-*.f6459.2%

                                                    \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                4. Simplified59.2%

                                                  \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
                                                5. Taylor expanded in y around 0

                                                  \[\leadsto \color{blue}{1 + \frac{1}{6} \cdot {y}^{2}} \]
                                                6. Step-by-step derivation
                                                  1. +-lowering-+.f64N/A

                                                    \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right)}\right) \]
                                                  2. *-lowering-*.f64N/A

                                                    \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \color{blue}{\left({y}^{2}\right)}\right)\right) \]
                                                  3. unpow2N/A

                                                    \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \left(y \cdot \color{blue}{y}\right)\right)\right) \]
                                                  4. *-lowering-*.f6452.9%

                                                    \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right) \]
                                                7. Simplified52.9%

                                                  \[\leadsto \color{blue}{1 + 0.16666666666666666 \cdot \left(y \cdot y\right)} \]

                                                if 2.75e13 < y < 1.4e149

                                                1. Initial program 100.0%

                                                  \[\cos x \cdot \frac{\sinh y}{y} \]
                                                2. Add Preprocessing
                                                3. Taylor expanded in y around 0

                                                  \[\leadsto \color{blue}{\cos x} \]
                                                4. Step-by-step derivation
                                                  1. cos-lowering-cos.f643.1%

                                                    \[\leadsto \mathsf{cos.f64}\left(x\right) \]
                                                5. Simplified3.1%

                                                  \[\leadsto \color{blue}{\cos x} \]
                                                6. Taylor expanded in x around 0

                                                  \[\leadsto \color{blue}{1 + {x}^{2} \cdot \left(\frac{1}{24} \cdot {x}^{2} - \frac{1}{2}\right)} \]
                                                7. Step-by-step derivation
                                                  1. +-lowering-+.f64N/A

                                                    \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left({x}^{2} \cdot \left(\frac{1}{24} \cdot {x}^{2} - \frac{1}{2}\right)\right)}\right) \]
                                                  2. unpow2N/A

                                                    \[\leadsto \mathsf{+.f64}\left(1, \left(\left(x \cdot x\right) \cdot \left(\color{blue}{\frac{1}{24} \cdot {x}^{2}} - \frac{1}{2}\right)\right)\right) \]
                                                  3. associate-*l*N/A

                                                    \[\leadsto \mathsf{+.f64}\left(1, \left(x \cdot \color{blue}{\left(x \cdot \left(\frac{1}{24} \cdot {x}^{2} - \frac{1}{2}\right)\right)}\right)\right) \]
                                                  4. *-lowering-*.f64N/A

                                                    \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \color{blue}{\left(x \cdot \left(\frac{1}{24} \cdot {x}^{2} - \frac{1}{2}\right)\right)}\right)\right) \]
                                                  5. *-lowering-*.f64N/A

                                                    \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{1}{24} \cdot {x}^{2} - \frac{1}{2}\right)}\right)\right)\right) \]
                                                  6. sub-negN/A

                                                    \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{1}{24} \cdot {x}^{2} + \color{blue}{\left(\mathsf{neg}\left(\frac{1}{2}\right)\right)}\right)\right)\right)\right) \]
                                                  7. metadata-evalN/A

                                                    \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{1}{24} \cdot {x}^{2} + \frac{-1}{2}\right)\right)\right)\right) \]
                                                  8. +-commutativeN/A

                                                    \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{2} + \color{blue}{\frac{1}{24} \cdot {x}^{2}}\right)\right)\right)\right) \]
                                                  9. +-lowering-+.f64N/A

                                                    \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \color{blue}{\left(\frac{1}{24} \cdot {x}^{2}\right)}\right)\right)\right)\right) \]
                                                  10. *-commutativeN/A

                                                    \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \left({x}^{2} \cdot \color{blue}{\frac{1}{24}}\right)\right)\right)\right)\right) \]
                                                  11. *-lowering-*.f64N/A

                                                    \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\frac{1}{24}}\right)\right)\right)\right)\right) \]
                                                  12. unpow2N/A

                                                    \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{1}{24}\right)\right)\right)\right)\right) \]
                                                  13. *-lowering-*.f6422.0%

                                                    \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{1}{24}\right)\right)\right)\right)\right) \]
                                                8. Simplified22.0%

                                                  \[\leadsto \color{blue}{1 + x \cdot \left(x \cdot \left(-0.5 + \left(x \cdot x\right) \cdot 0.041666666666666664\right)\right)} \]
                                                9. Taylor expanded in x around inf

                                                  \[\leadsto \color{blue}{\frac{1}{24} \cdot {x}^{4}} \]
                                                10. Step-by-step derivation
                                                  1. *-lowering-*.f64N/A

                                                    \[\leadsto \mathsf{*.f64}\left(\frac{1}{24}, \color{blue}{\left({x}^{4}\right)}\right) \]
                                                  2. metadata-evalN/A

                                                    \[\leadsto \mathsf{*.f64}\left(\frac{1}{24}, \left({x}^{\left(2 \cdot \color{blue}{2}\right)}\right)\right) \]
                                                  3. pow-sqrN/A

                                                    \[\leadsto \mathsf{*.f64}\left(\frac{1}{24}, \left({x}^{2} \cdot \color{blue}{{x}^{2}}\right)\right) \]
                                                  4. *-lowering-*.f64N/A

                                                    \[\leadsto \mathsf{*.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\left({x}^{2}\right)}\right)\right) \]
                                                  5. unpow2N/A

                                                    \[\leadsto \mathsf{*.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\left(x \cdot x\right), \left({\color{blue}{x}}^{2}\right)\right)\right) \]
                                                  6. *-lowering-*.f64N/A

                                                    \[\leadsto \mathsf{*.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \left({\color{blue}{x}}^{2}\right)\right)\right) \]
                                                  7. unpow2N/A

                                                    \[\leadsto \mathsf{*.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \left(x \cdot \color{blue}{x}\right)\right)\right) \]
                                                  8. *-lowering-*.f6421.4%

                                                    \[\leadsto \mathsf{*.f64}\left(\frac{1}{24}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \mathsf{*.f64}\left(x, \color{blue}{x}\right)\right)\right) \]
                                                11. Simplified21.4%

                                                  \[\leadsto \color{blue}{0.041666666666666664 \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right)} \]
                                              5. Recombined 2 regimes into one program.
                                              6. Add Preprocessing

                                              Alternative 17: 52.8% accurate, 12.8× speedup?

                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 1.3 \cdot 10^{+160}:\\ \;\;\;\;\frac{y \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)}{y}\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\ \end{array} \end{array} \]
                                              (FPCore (x y)
                                               :precision binary64
                                               (if (<= y 1.3e+160)
                                                 (/ (* y (+ 1.0 (* 0.16666666666666666 (* y y)))) y)
                                                 (* (* y y) (+ 0.16666666666666666 (* (* x x) -0.08333333333333333)))))
                                              double code(double x, double y) {
                                              	double tmp;
                                              	if (y <= 1.3e+160) {
                                              		tmp = (y * (1.0 + (0.16666666666666666 * (y * y)))) / y;
                                              	} else {
                                              		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                                              	}
                                              	return tmp;
                                              }
                                              
                                              real(8) function code(x, y)
                                                  real(8), intent (in) :: x
                                                  real(8), intent (in) :: y
                                                  real(8) :: tmp
                                                  if (y <= 1.3d+160) then
                                                      tmp = (y * (1.0d0 + (0.16666666666666666d0 * (y * y)))) / y
                                                  else
                                                      tmp = (y * y) * (0.16666666666666666d0 + ((x * x) * (-0.08333333333333333d0)))
                                                  end if
                                                  code = tmp
                                              end function
                                              
                                              public static double code(double x, double y) {
                                              	double tmp;
                                              	if (y <= 1.3e+160) {
                                              		tmp = (y * (1.0 + (0.16666666666666666 * (y * y)))) / y;
                                              	} else {
                                              		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                                              	}
                                              	return tmp;
                                              }
                                              
                                              def code(x, y):
                                              	tmp = 0
                                              	if y <= 1.3e+160:
                                              		tmp = (y * (1.0 + (0.16666666666666666 * (y * y)))) / y
                                              	else:
                                              		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333))
                                              	return tmp
                                              
                                              function code(x, y)
                                              	tmp = 0.0
                                              	if (y <= 1.3e+160)
                                              		tmp = Float64(Float64(y * Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y)))) / y);
                                              	else
                                              		tmp = Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.08333333333333333)));
                                              	end
                                              	return tmp
                                              end
                                              
                                              function tmp_2 = code(x, y)
                                              	tmp = 0.0;
                                              	if (y <= 1.3e+160)
                                              		tmp = (y * (1.0 + (0.16666666666666666 * (y * y)))) / y;
                                              	else
                                              		tmp = (y * y) * (0.16666666666666666 + ((x * x) * -0.08333333333333333));
                                              	end
                                              	tmp_2 = tmp;
                                              end
                                              
                                              code[x_, y_] := If[LessEqual[y, 1.3e+160], N[(N[(y * N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.08333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                                              
                                              \begin{array}{l}
                                              
                                              \\
                                              \begin{array}{l}
                                              \mathbf{if}\;y \leq 1.3 \cdot 10^{+160}:\\
                                              \;\;\;\;\frac{y \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)}{y}\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 2 regimes
                                              2. if y < 1.3e160

                                                1. Initial program 100.0%

                                                  \[\cos x \cdot \frac{\sinh y}{y} \]
                                                2. Add Preprocessing
                                                3. Taylor expanded in x around 0

                                                  \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                4. Step-by-step derivation
                                                  1. Simplified66.2%

                                                    \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                                                  2. Step-by-step derivation
                                                    1. *-lft-identityN/A

                                                      \[\leadsto \frac{\sinh y}{\color{blue}{y}} \]
                                                    2. /-lowering-/.f64N/A

                                                      \[\leadsto \mathsf{/.f64}\left(\sinh y, \color{blue}{y}\right) \]
                                                    3. sinh-lowering-sinh.f6466.2%

                                                      \[\leadsto \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right) \]
                                                  3. Applied egg-rr66.2%

                                                    \[\leadsto \color{blue}{\frac{\sinh y}{y}} \]
                                                  4. Taylor expanded in y around 0

                                                    \[\leadsto \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)}, y\right) \]
                                                  5. Step-by-step derivation
                                                    1. *-lowering-*.f64N/A

                                                      \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right), y\right) \]
                                                    2. +-lowering-+.f64N/A

                                                      \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\frac{1}{6} \cdot {y}^{2}\right)\right)\right), y\right) \]
                                                    3. *-lowering-*.f64N/A

                                                      \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \left({y}^{2}\right)\right)\right)\right), y\right) \]
                                                    4. unpow2N/A

                                                      \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \left(y \cdot y\right)\right)\right)\right), y\right) \]
                                                    5. *-lowering-*.f6451.1%

                                                      \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, y\right)\right)\right)\right), y\right) \]
                                                  6. Simplified51.1%

                                                    \[\leadsto \frac{\color{blue}{y \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)}}{y} \]

                                                  if 1.3e160 < y

                                                  1. Initial program 100.0%

                                                    \[\cos x \cdot \frac{\sinh y}{y} \]
                                                  2. Add Preprocessing
                                                  3. Taylor expanded in x around 0

                                                    \[\leadsto \mathsf{*.f64}\left(\color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                  4. Step-by-step derivation
                                                    1. +-lowering-+.f64N/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left(\frac{-1}{2} \cdot {x}^{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\mathsf{sinh.f64}\left(y\right)}, y\right)\right) \]
                                                    2. *-commutativeN/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left({x}^{2} \cdot \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                    3. *-lowering-*.f64N/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({x}^{2}\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                    4. unpow2N/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                    5. *-lowering-*.f6492.3%

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                  5. Simplified92.3%

                                                    \[\leadsto \color{blue}{\left(1 + \left(x \cdot x\right) \cdot -0.5\right)} \cdot \frac{\sinh y}{y} \]
                                                  6. Taylor expanded in y around 0

                                                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)}, y\right)\right) \]
                                                  7. Step-by-step derivation
                                                    1. *-lowering-*.f64N/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right), y\right)\right) \]
                                                    2. +-lowering-+.f64N/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\frac{1}{6} \cdot {y}^{2}\right)\right)\right), y\right)\right) \]
                                                    3. *-commutativeN/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                                    4. unpow2N/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                                    5. associate-*l*N/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                                    6. *-lowering-*.f64N/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                                    7. *-lowering-*.f6492.3%

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                                  8. Simplified92.3%

                                                    \[\leadsto \left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{\color{blue}{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}}{y} \]
                                                  9. Taylor expanded in y around inf

                                                    \[\leadsto \color{blue}{\frac{1}{6} \cdot \left({y}^{2} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                                                  10. Step-by-step derivation
                                                    1. associate-*r*N/A

                                                      \[\leadsto \left(\frac{1}{6} \cdot {y}^{2}\right) \cdot \color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)} \]
                                                    2. *-commutativeN/A

                                                      \[\leadsto \left({y}^{2} \cdot \frac{1}{6}\right) \cdot \left(\color{blue}{1} + \frac{-1}{2} \cdot {x}^{2}\right) \]
                                                    3. associate-*l*N/A

                                                      \[\leadsto {y}^{2} \cdot \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)} \]
                                                    4. *-lowering-*.f64N/A

                                                      \[\leadsto \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\left(\frac{1}{6} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)}\right) \]
                                                    5. unpow2N/A

                                                      \[\leadsto \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                                    6. *-lowering-*.f64N/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{1}{6}} \cdot \left(1 + \frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                                    7. distribute-lft-inN/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} \cdot 1 + \color{blue}{\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)}\right)\right) \]
                                                    8. metadata-evalN/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + \color{blue}{\frac{1}{6}} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)\right) \]
                                                    9. +-lowering-+.f64N/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \color{blue}{\left(\frac{1}{6} \cdot \left(\frac{-1}{2} \cdot {x}^{2}\right)\right)}\right)\right) \]
                                                    10. *-commutativeN/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(\frac{-1}{2} \cdot {x}^{2}\right) \cdot \color{blue}{\frac{1}{6}}\right)\right)\right) \]
                                                    11. *-commutativeN/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left({x}^{2} \cdot \frac{-1}{2}\right) \cdot \frac{1}{6}\right)\right)\right) \]
                                                    12. associate-*l*N/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({x}^{2} \cdot \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                                                    13. *-lowering-*.f64N/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right) \]
                                                    14. unpow2N/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\left(x \cdot x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                                                    15. *-lowering-*.f64N/A

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right) \]
                                                    16. metadata-eval92.3%

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{12}\right)\right)\right) \]
                                                  11. Simplified92.3%

                                                    \[\leadsto \color{blue}{\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.08333333333333333\right)} \]
                                                5. Recombined 2 regimes into one program.
                                                6. Add Preprocessing

                                                Alternative 18: 48.5% accurate, 12.8× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 1.15 \cdot 10^{+22}:\\ \;\;\;\;1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(x \cdot \left(-0.5 + \left(y \cdot y\right) \cdot -0.08333333333333333\right)\right)\\ \end{array} \end{array} \]
                                                (FPCore (x y)
                                                 :precision binary64
                                                 (if (<= x 1.15e+22)
                                                   (+ 1.0 (* 0.16666666666666666 (* y y)))
                                                   (* x (* x (+ -0.5 (* (* y y) -0.08333333333333333))))))
                                                double code(double x, double y) {
                                                	double tmp;
                                                	if (x <= 1.15e+22) {
                                                		tmp = 1.0 + (0.16666666666666666 * (y * y));
                                                	} else {
                                                		tmp = x * (x * (-0.5 + ((y * y) * -0.08333333333333333)));
                                                	}
                                                	return tmp;
                                                }
                                                
                                                real(8) function code(x, y)
                                                    real(8), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    real(8) :: tmp
                                                    if (x <= 1.15d+22) then
                                                        tmp = 1.0d0 + (0.16666666666666666d0 * (y * y))
                                                    else
                                                        tmp = x * (x * ((-0.5d0) + ((y * y) * (-0.08333333333333333d0))))
                                                    end if
                                                    code = tmp
                                                end function
                                                
                                                public static double code(double x, double y) {
                                                	double tmp;
                                                	if (x <= 1.15e+22) {
                                                		tmp = 1.0 + (0.16666666666666666 * (y * y));
                                                	} else {
                                                		tmp = x * (x * (-0.5 + ((y * y) * -0.08333333333333333)));
                                                	}
                                                	return tmp;
                                                }
                                                
                                                def code(x, y):
                                                	tmp = 0
                                                	if x <= 1.15e+22:
                                                		tmp = 1.0 + (0.16666666666666666 * (y * y))
                                                	else:
                                                		tmp = x * (x * (-0.5 + ((y * y) * -0.08333333333333333)))
                                                	return tmp
                                                
                                                function code(x, y)
                                                	tmp = 0.0
                                                	if (x <= 1.15e+22)
                                                		tmp = Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y)));
                                                	else
                                                		tmp = Float64(x * Float64(x * Float64(-0.5 + Float64(Float64(y * y) * -0.08333333333333333))));
                                                	end
                                                	return tmp
                                                end
                                                
                                                function tmp_2 = code(x, y)
                                                	tmp = 0.0;
                                                	if (x <= 1.15e+22)
                                                		tmp = 1.0 + (0.16666666666666666 * (y * y));
                                                	else
                                                		tmp = x * (x * (-0.5 + ((y * y) * -0.08333333333333333)));
                                                	end
                                                	tmp_2 = tmp;
                                                end
                                                
                                                code[x_, y_] := If[LessEqual[x, 1.15e+22], N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(x * N[(-0.5 + N[(N[(y * y), $MachinePrecision] * -0.08333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                \mathbf{if}\;x \leq 1.15 \cdot 10^{+22}:\\
                                                \;\;\;\;1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;x \cdot \left(x \cdot \left(-0.5 + \left(y \cdot y\right) \cdot -0.08333333333333333\right)\right)\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 2 regimes
                                                2. if x < 1.1500000000000001e22

                                                  1. Initial program 100.0%

                                                    \[\cos x \cdot \frac{\sinh y}{y} \]
                                                  2. Add Preprocessing
                                                  3. Taylor expanded in x around 0

                                                    \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                  4. Step-by-step derivation
                                                    1. Simplified75.2%

                                                      \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                                                    2. Taylor expanded in y around 0

                                                      \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
                                                    3. Step-by-step derivation
                                                      1. *-lowering-*.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                                                      2. +-lowering-+.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                      3. *-lowering-*.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                      4. unpow2N/A

                                                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                      5. *-lowering-*.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                      6. +-lowering-+.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                      7. unpow2N/A

                                                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                      8. associate-*l*N/A

                                                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                      9. *-lowering-*.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                      10. *-lowering-*.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                      11. +-lowering-+.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                      12. *-commutativeN/A

                                                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                      13. *-lowering-*.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                      14. unpow2N/A

                                                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                      15. *-lowering-*.f6466.4%

                                                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                    4. Simplified66.4%

                                                      \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
                                                    5. Taylor expanded in y around 0

                                                      \[\leadsto \color{blue}{1 + \frac{1}{6} \cdot {y}^{2}} \]
                                                    6. Step-by-step derivation
                                                      1. +-lowering-+.f64N/A

                                                        \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right)}\right) \]
                                                      2. *-lowering-*.f64N/A

                                                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \color{blue}{\left({y}^{2}\right)}\right)\right) \]
                                                      3. unpow2N/A

                                                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \left(y \cdot \color{blue}{y}\right)\right)\right) \]
                                                      4. *-lowering-*.f6455.6%

                                                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right) \]
                                                    7. Simplified55.6%

                                                      \[\leadsto \color{blue}{1 + 0.16666666666666666 \cdot \left(y \cdot y\right)} \]

                                                    if 1.1500000000000001e22 < x

                                                    1. Initial program 100.0%

                                                      \[\cos x \cdot \frac{\sinh y}{y} \]
                                                    2. Add Preprocessing
                                                    3. Taylor expanded in x around 0

                                                      \[\leadsto \mathsf{*.f64}\left(\color{blue}{\left(1 + \frac{-1}{2} \cdot {x}^{2}\right)}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                    4. Step-by-step derivation
                                                      1. +-lowering-+.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left(\frac{-1}{2} \cdot {x}^{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\mathsf{sinh.f64}\left(y\right)}, y\right)\right) \]
                                                      2. *-commutativeN/A

                                                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \left({x}^{2} \cdot \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                      3. *-lowering-*.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({x}^{2}\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                      4. unpow2N/A

                                                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                      5. *-lowering-*.f6426.0%

                                                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                    5. Simplified26.0%

                                                      \[\leadsto \color{blue}{\left(1 + \left(x \cdot x\right) \cdot -0.5\right)} \cdot \frac{\sinh y}{y} \]
                                                    6. Taylor expanded in y around 0

                                                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)}, y\right)\right) \]
                                                    7. Step-by-step derivation
                                                      1. *-lowering-*.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right), y\right)\right) \]
                                                      2. +-lowering-+.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\frac{1}{6} \cdot {y}^{2}\right)\right)\right), y\right)\right) \]
                                                      3. *-commutativeN/A

                                                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                                      4. unpow2N/A

                                                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \cdot \frac{1}{6}\right)\right)\right), y\right)\right) \]
                                                      5. associate-*l*N/A

                                                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                                      6. *-lowering-*.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \left(y \cdot \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                                      7. *-lowering-*.f6424.2%

                                                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right), \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \frac{1}{6}\right)\right)\right)\right), y\right)\right) \]
                                                    8. Simplified24.2%

                                                      \[\leadsto \left(1 + \left(x \cdot x\right) \cdot -0.5\right) \cdot \frac{\color{blue}{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}}{y} \]
                                                    9. Taylor expanded in x around inf

                                                      \[\leadsto \color{blue}{\frac{-1}{2} \cdot \left({x}^{2} \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)} \]
                                                    10. Step-by-step derivation
                                                      1. *-commutativeN/A

                                                        \[\leadsto \frac{-1}{2} \cdot \left(\left(1 + \frac{1}{6} \cdot {y}^{2}\right) \cdot \color{blue}{{x}^{2}}\right) \]
                                                      2. associate-*r*N/A

                                                        \[\leadsto \left(\frac{-1}{2} \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right) \cdot \color{blue}{{x}^{2}} \]
                                                      3. unpow2N/A

                                                        \[\leadsto \left(\frac{-1}{2} \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right) \cdot \left(x \cdot \color{blue}{x}\right) \]
                                                      4. associate-*r*N/A

                                                        \[\leadsto \left(\left(\frac{-1}{2} \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right) \cdot x\right) \cdot \color{blue}{x} \]
                                                      5. *-commutativeN/A

                                                        \[\leadsto x \cdot \color{blue}{\left(\left(\frac{-1}{2} \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right) \cdot x\right)} \]
                                                      6. *-lowering-*.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(\left(\frac{-1}{2} \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right) \cdot x\right)}\right) \]
                                                      7. *-commutativeN/A

                                                        \[\leadsto \mathsf{*.f64}\left(x, \left(x \cdot \color{blue}{\left(\frac{-1}{2} \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)}\right)\right) \]
                                                      8. *-lowering-*.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \color{blue}{\left(\frac{-1}{2} \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)}\right)\right) \]
                                                      9. distribute-rgt-inN/A

                                                        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(1 \cdot \frac{-1}{2} + \color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right) \cdot \frac{-1}{2}}\right)\right)\right) \]
                                                      10. metadata-evalN/A

                                                        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \left(\frac{-1}{2} + \color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right)} \cdot \frac{-1}{2}\right)\right)\right) \]
                                                      11. +-lowering-+.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \color{blue}{\left(\left(\frac{1}{6} \cdot {y}^{2}\right) \cdot \frac{-1}{2}\right)}\right)\right)\right) \]
                                                      12. *-commutativeN/A

                                                        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \left(\frac{-1}{2} \cdot \color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right)}\right)\right)\right)\right) \]
                                                      13. associate-*r*N/A

                                                        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \left(\left(\frac{-1}{2} \cdot \frac{1}{6}\right) \cdot \color{blue}{{y}^{2}}\right)\right)\right)\right) \]
                                                      14. *-commutativeN/A

                                                        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \left({y}^{2} \cdot \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right)\right) \]
                                                      15. *-lowering-*.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(\left({y}^{2}\right), \color{blue}{\left(\frac{-1}{2} \cdot \frac{1}{6}\right)}\right)\right)\right)\right) \]
                                                      16. unpow2N/A

                                                        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right)\right) \]
                                                      17. *-lowering-*.f64N/A

                                                        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\color{blue}{\frac{-1}{2}} \cdot \frac{1}{6}\right)\right)\right)\right)\right) \]
                                                      18. metadata-eval22.6%

                                                        \[\leadsto \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{-1}{12}\right)\right)\right)\right) \]
                                                    11. Simplified22.6%

                                                      \[\leadsto \color{blue}{x \cdot \left(x \cdot \left(-0.5 + \left(y \cdot y\right) \cdot -0.08333333333333333\right)\right)} \]
                                                  5. Recombined 2 regimes into one program.
                                                  6. Add Preprocessing

                                                  Alternative 19: 48.1% accurate, 17.1× speedup?

                                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 8.6 \cdot 10^{+151}:\\ \;\;\;\;1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;1 + \left(x \cdot x\right) \cdot -0.5\\ \end{array} \end{array} \]
                                                  (FPCore (x y)
                                                   :precision binary64
                                                   (if (<= x 8.6e+151)
                                                     (+ 1.0 (* 0.16666666666666666 (* y y)))
                                                     (+ 1.0 (* (* x x) -0.5))))
                                                  double code(double x, double y) {
                                                  	double tmp;
                                                  	if (x <= 8.6e+151) {
                                                  		tmp = 1.0 + (0.16666666666666666 * (y * y));
                                                  	} else {
                                                  		tmp = 1.0 + ((x * x) * -0.5);
                                                  	}
                                                  	return tmp;
                                                  }
                                                  
                                                  real(8) function code(x, y)
                                                      real(8), intent (in) :: x
                                                      real(8), intent (in) :: y
                                                      real(8) :: tmp
                                                      if (x <= 8.6d+151) then
                                                          tmp = 1.0d0 + (0.16666666666666666d0 * (y * y))
                                                      else
                                                          tmp = 1.0d0 + ((x * x) * (-0.5d0))
                                                      end if
                                                      code = tmp
                                                  end function
                                                  
                                                  public static double code(double x, double y) {
                                                  	double tmp;
                                                  	if (x <= 8.6e+151) {
                                                  		tmp = 1.0 + (0.16666666666666666 * (y * y));
                                                  	} else {
                                                  		tmp = 1.0 + ((x * x) * -0.5);
                                                  	}
                                                  	return tmp;
                                                  }
                                                  
                                                  def code(x, y):
                                                  	tmp = 0
                                                  	if x <= 8.6e+151:
                                                  		tmp = 1.0 + (0.16666666666666666 * (y * y))
                                                  	else:
                                                  		tmp = 1.0 + ((x * x) * -0.5)
                                                  	return tmp
                                                  
                                                  function code(x, y)
                                                  	tmp = 0.0
                                                  	if (x <= 8.6e+151)
                                                  		tmp = Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y)));
                                                  	else
                                                  		tmp = Float64(1.0 + Float64(Float64(x * x) * -0.5));
                                                  	end
                                                  	return tmp
                                                  end
                                                  
                                                  function tmp_2 = code(x, y)
                                                  	tmp = 0.0;
                                                  	if (x <= 8.6e+151)
                                                  		tmp = 1.0 + (0.16666666666666666 * (y * y));
                                                  	else
                                                  		tmp = 1.0 + ((x * x) * -0.5);
                                                  	end
                                                  	tmp_2 = tmp;
                                                  end
                                                  
                                                  code[x_, y_] := If[LessEqual[x, 8.6e+151], N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(N[(x * x), $MachinePrecision] * -0.5), $MachinePrecision]), $MachinePrecision]]
                                                  
                                                  \begin{array}{l}
                                                  
                                                  \\
                                                  \begin{array}{l}
                                                  \mathbf{if}\;x \leq 8.6 \cdot 10^{+151}:\\
                                                  \;\;\;\;1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\\
                                                  
                                                  \mathbf{else}:\\
                                                  \;\;\;\;1 + \left(x \cdot x\right) \cdot -0.5\\
                                                  
                                                  
                                                  \end{array}
                                                  \end{array}
                                                  
                                                  Derivation
                                                  1. Split input into 2 regimes
                                                  2. if x < 8.59999999999999965e151

                                                    1. Initial program 100.0%

                                                      \[\cos x \cdot \frac{\sinh y}{y} \]
                                                    2. Add Preprocessing
                                                    3. Taylor expanded in x around 0

                                                      \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                    4. Step-by-step derivation
                                                      1. Simplified70.3%

                                                        \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                                                      2. Taylor expanded in y around 0

                                                        \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
                                                      3. Step-by-step derivation
                                                        1. *-lowering-*.f64N/A

                                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                                                        2. +-lowering-+.f64N/A

                                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                        3. *-lowering-*.f64N/A

                                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                        4. unpow2N/A

                                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                        5. *-lowering-*.f64N/A

                                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                        6. +-lowering-+.f64N/A

                                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                        7. unpow2N/A

                                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                        8. associate-*l*N/A

                                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                        9. *-lowering-*.f64N/A

                                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                        10. *-lowering-*.f64N/A

                                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                        11. +-lowering-+.f64N/A

                                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                        12. *-commutativeN/A

                                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                        13. *-lowering-*.f64N/A

                                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                        14. unpow2N/A

                                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                        15. *-lowering-*.f6461.2%

                                                          \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                      4. Simplified61.2%

                                                        \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
                                                      5. Taylor expanded in y around 0

                                                        \[\leadsto \color{blue}{1 + \frac{1}{6} \cdot {y}^{2}} \]
                                                      6. Step-by-step derivation
                                                        1. +-lowering-+.f64N/A

                                                          \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right)}\right) \]
                                                        2. *-lowering-*.f64N/A

                                                          \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \color{blue}{\left({y}^{2}\right)}\right)\right) \]
                                                        3. unpow2N/A

                                                          \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \left(y \cdot \color{blue}{y}\right)\right)\right) \]
                                                        4. *-lowering-*.f6450.5%

                                                          \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right) \]
                                                      7. Simplified50.5%

                                                        \[\leadsto \color{blue}{1 + 0.16666666666666666 \cdot \left(y \cdot y\right)} \]

                                                      if 8.59999999999999965e151 < x

                                                      1. Initial program 100.0%

                                                        \[\cos x \cdot \frac{\sinh y}{y} \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in y around 0

                                                        \[\leadsto \color{blue}{\cos x} \]
                                                      4. Step-by-step derivation
                                                        1. cos-lowering-cos.f6453.5%

                                                          \[\leadsto \mathsf{cos.f64}\left(x\right) \]
                                                      5. Simplified53.5%

                                                        \[\leadsto \color{blue}{\cos x} \]
                                                      6. Taylor expanded in x around 0

                                                        \[\leadsto \color{blue}{1 + \frac{-1}{2} \cdot {x}^{2}} \]
                                                      7. Step-by-step derivation
                                                        1. +-lowering-+.f64N/A

                                                          \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left(\frac{-1}{2} \cdot {x}^{2}\right)}\right) \]
                                                        2. *-commutativeN/A

                                                          \[\leadsto \mathsf{+.f64}\left(1, \left({x}^{2} \cdot \color{blue}{\frac{-1}{2}}\right)\right) \]
                                                        3. *-lowering-*.f64N/A

                                                          \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({x}^{2}\right), \color{blue}{\frac{-1}{2}}\right)\right) \]
                                                        4. unpow2N/A

                                                          \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(x \cdot x\right), \frac{-1}{2}\right)\right) \]
                                                        5. *-lowering-*.f6424.7%

                                                          \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{2}\right)\right) \]
                                                      8. Simplified24.7%

                                                        \[\leadsto \color{blue}{1 + \left(x \cdot x\right) \cdot -0.5} \]
                                                    5. Recombined 2 regimes into one program.
                                                    6. Add Preprocessing

                                                    Alternative 20: 38.0% accurate, 20.5× speedup?

                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 2.4:\\ \;\;\;\;1\\ \mathbf{else}:\\ \;\;\;\;0.16666666666666666 \cdot \left(y \cdot y\right)\\ \end{array} \end{array} \]
                                                    (FPCore (x y)
                                                     :precision binary64
                                                     (if (<= y 2.4) 1.0 (* 0.16666666666666666 (* y y))))
                                                    double code(double x, double y) {
                                                    	double tmp;
                                                    	if (y <= 2.4) {
                                                    		tmp = 1.0;
                                                    	} else {
                                                    		tmp = 0.16666666666666666 * (y * y);
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    real(8) function code(x, y)
                                                        real(8), intent (in) :: x
                                                        real(8), intent (in) :: y
                                                        real(8) :: tmp
                                                        if (y <= 2.4d0) then
                                                            tmp = 1.0d0
                                                        else
                                                            tmp = 0.16666666666666666d0 * (y * y)
                                                        end if
                                                        code = tmp
                                                    end function
                                                    
                                                    public static double code(double x, double y) {
                                                    	double tmp;
                                                    	if (y <= 2.4) {
                                                    		tmp = 1.0;
                                                    	} else {
                                                    		tmp = 0.16666666666666666 * (y * y);
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    def code(x, y):
                                                    	tmp = 0
                                                    	if y <= 2.4:
                                                    		tmp = 1.0
                                                    	else:
                                                    		tmp = 0.16666666666666666 * (y * y)
                                                    	return tmp
                                                    
                                                    function code(x, y)
                                                    	tmp = 0.0
                                                    	if (y <= 2.4)
                                                    		tmp = 1.0;
                                                    	else
                                                    		tmp = Float64(0.16666666666666666 * Float64(y * y));
                                                    	end
                                                    	return tmp
                                                    end
                                                    
                                                    function tmp_2 = code(x, y)
                                                    	tmp = 0.0;
                                                    	if (y <= 2.4)
                                                    		tmp = 1.0;
                                                    	else
                                                    		tmp = 0.16666666666666666 * (y * y);
                                                    	end
                                                    	tmp_2 = tmp;
                                                    end
                                                    
                                                    code[x_, y_] := If[LessEqual[y, 2.4], 1.0, N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]]
                                                    
                                                    \begin{array}{l}
                                                    
                                                    \\
                                                    \begin{array}{l}
                                                    \mathbf{if}\;y \leq 2.4:\\
                                                    \;\;\;\;1\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;0.16666666666666666 \cdot \left(y \cdot y\right)\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 2 regimes
                                                    2. if y < 2.39999999999999991

                                                      1. Initial program 100.0%

                                                        \[\cos x \cdot \frac{\sinh y}{y} \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in y around 0

                                                        \[\leadsto \color{blue}{\cos x} \]
                                                      4. Step-by-step derivation
                                                        1. cos-lowering-cos.f6473.9%

                                                          \[\leadsto \mathsf{cos.f64}\left(x\right) \]
                                                      5. Simplified73.9%

                                                        \[\leadsto \color{blue}{\cos x} \]
                                                      6. Taylor expanded in x around 0

                                                        \[\leadsto \color{blue}{1} \]
                                                      7. Step-by-step derivation
                                                        1. Simplified45.7%

                                                          \[\leadsto \color{blue}{1} \]

                                                        if 2.39999999999999991 < y

                                                        1. Initial program 100.0%

                                                          \[\cos x \cdot \frac{\sinh y}{y} \]
                                                        2. Add Preprocessing
                                                        3. Taylor expanded in x around 0

                                                          \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                        4. Step-by-step derivation
                                                          1. Simplified73.8%

                                                            \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                                                          2. Taylor expanded in y around 0

                                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
                                                          3. Step-by-step derivation
                                                            1. *-lowering-*.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                                                            2. +-lowering-+.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                            3. *-lowering-*.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                            4. unpow2N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                            5. *-lowering-*.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                            6. +-lowering-+.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            7. unpow2N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            8. associate-*l*N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            9. *-lowering-*.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            10. *-lowering-*.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            11. +-lowering-+.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            12. *-commutativeN/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            13. *-lowering-*.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            14. unpow2N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            15. *-lowering-*.f6453.4%

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                          4. Simplified53.4%

                                                            \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
                                                          5. Taylor expanded in y around 0

                                                            \[\leadsto \color{blue}{1 + \frac{1}{6} \cdot {y}^{2}} \]
                                                          6. Step-by-step derivation
                                                            1. +-lowering-+.f64N/A

                                                              \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right)}\right) \]
                                                            2. *-lowering-*.f64N/A

                                                              \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \color{blue}{\left({y}^{2}\right)}\right)\right) \]
                                                            3. unpow2N/A

                                                              \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \left(y \cdot \color{blue}{y}\right)\right)\right) \]
                                                            4. *-lowering-*.f6431.5%

                                                              \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right) \]
                                                          7. Simplified31.5%

                                                            \[\leadsto \color{blue}{1 + 0.16666666666666666 \cdot \left(y \cdot y\right)} \]
                                                          8. Taylor expanded in y around inf

                                                            \[\leadsto \color{blue}{\frac{1}{6} \cdot {y}^{2}} \]
                                                          9. Step-by-step derivation
                                                            1. *-lowering-*.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(\frac{1}{6}, \color{blue}{\left({y}^{2}\right)}\right) \]
                                                            2. unpow2N/A

                                                              \[\leadsto \mathsf{*.f64}\left(\frac{1}{6}, \left(y \cdot \color{blue}{y}\right)\right) \]
                                                            3. *-lowering-*.f6431.5%

                                                              \[\leadsto \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right) \]
                                                          10. Simplified31.5%

                                                            \[\leadsto \color{blue}{0.16666666666666666 \cdot \left(y \cdot y\right)} \]
                                                        5. Recombined 2 regimes into one program.
                                                        6. Add Preprocessing

                                                        Alternative 21: 47.4% accurate, 29.3× speedup?

                                                        \[\begin{array}{l} \\ 1 + 0.16666666666666666 \cdot \left(y \cdot y\right) \end{array} \]
                                                        (FPCore (x y) :precision binary64 (+ 1.0 (* 0.16666666666666666 (* y y))))
                                                        double code(double x, double y) {
                                                        	return 1.0 + (0.16666666666666666 * (y * y));
                                                        }
                                                        
                                                        real(8) function code(x, y)
                                                            real(8), intent (in) :: x
                                                            real(8), intent (in) :: y
                                                            code = 1.0d0 + (0.16666666666666666d0 * (y * y))
                                                        end function
                                                        
                                                        public static double code(double x, double y) {
                                                        	return 1.0 + (0.16666666666666666 * (y * y));
                                                        }
                                                        
                                                        def code(x, y):
                                                        	return 1.0 + (0.16666666666666666 * (y * y))
                                                        
                                                        function code(x, y)
                                                        	return Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y)))
                                                        end
                                                        
                                                        function tmp = code(x, y)
                                                        	tmp = 1.0 + (0.16666666666666666 * (y * y));
                                                        end
                                                        
                                                        code[x_, y_] := N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                                        
                                                        \begin{array}{l}
                                                        
                                                        \\
                                                        1 + 0.16666666666666666 \cdot \left(y \cdot y\right)
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Initial program 100.0%

                                                          \[\cos x \cdot \frac{\sinh y}{y} \]
                                                        2. Add Preprocessing
                                                        3. Taylor expanded in x around 0

                                                          \[\leadsto \mathsf{*.f64}\left(\color{blue}{1}, \mathsf{/.f64}\left(\mathsf{sinh.f64}\left(y\right), y\right)\right) \]
                                                        4. Step-by-step derivation
                                                          1. Simplified66.5%

                                                            \[\leadsto \color{blue}{1} \cdot \frac{\sinh y}{y} \]
                                                          2. Taylor expanded in y around 0

                                                            \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\color{blue}{\left(y \cdot \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)}, y\right)\right) \]
                                                          3. Step-by-step derivation
                                                            1. *-lowering-*.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(1 + {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right), y\right)\right) \]
                                                            2. +-lowering-+.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left({y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                            3. *-lowering-*.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left({y}^{2}\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                            4. unpow2N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\left(y \cdot y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                            5. *-lowering-*.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right), y\right)\right) \]
                                                            6. +-lowering-+.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            7. unpow2N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(\left(y \cdot y\right) \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            8. associate-*l*N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \left(y \cdot \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            9. *-lowering-*.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            10. *-lowering-*.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            11. +-lowering-+.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left(\frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            12. *-commutativeN/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \left({y}^{2} \cdot \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            13. *-lowering-*.f64N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left({y}^{2}\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            14. unpow2N/A

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\left(y \cdot y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                            15. *-lowering-*.f6457.9%

                                                              \[\leadsto \mathsf{*.f64}\left(1, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{+.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \frac{1}{5040}\right)\right)\right)\right)\right)\right)\right)\right), y\right)\right) \]
                                                          4. Simplified57.9%

                                                            \[\leadsto 1 \cdot \frac{\color{blue}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{y} \]
                                                          5. Taylor expanded in y around 0

                                                            \[\leadsto \color{blue}{1 + \frac{1}{6} \cdot {y}^{2}} \]
                                                          6. Step-by-step derivation
                                                            1. +-lowering-+.f64N/A

                                                              \[\leadsto \mathsf{+.f64}\left(1, \color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right)}\right) \]
                                                            2. *-lowering-*.f64N/A

                                                              \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \color{blue}{\left({y}^{2}\right)}\right)\right) \]
                                                            3. unpow2N/A

                                                              \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \left(y \cdot \color{blue}{y}\right)\right)\right) \]
                                                            4. *-lowering-*.f6447.1%

                                                              \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right) \]
                                                          7. Simplified47.1%

                                                            \[\leadsto \color{blue}{1 + 0.16666666666666666 \cdot \left(y \cdot y\right)} \]
                                                          8. Add Preprocessing

                                                          Alternative 22: 28.6% accurate, 205.0× speedup?

                                                          \[\begin{array}{l} \\ 1 \end{array} \]
                                                          (FPCore (x y) :precision binary64 1.0)
                                                          double code(double x, double y) {
                                                          	return 1.0;
                                                          }
                                                          
                                                          real(8) function code(x, y)
                                                              real(8), intent (in) :: x
                                                              real(8), intent (in) :: y
                                                              code = 1.0d0
                                                          end function
                                                          
                                                          public static double code(double x, double y) {
                                                          	return 1.0;
                                                          }
                                                          
                                                          def code(x, y):
                                                          	return 1.0
                                                          
                                                          function code(x, y)
                                                          	return 1.0
                                                          end
                                                          
                                                          function tmp = code(x, y)
                                                          	tmp = 1.0;
                                                          end
                                                          
                                                          code[x_, y_] := 1.0
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          1
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Initial program 100.0%

                                                            \[\cos x \cdot \frac{\sinh y}{y} \]
                                                          2. Add Preprocessing
                                                          3. Taylor expanded in y around 0

                                                            \[\leadsto \color{blue}{\cos x} \]
                                                          4. Step-by-step derivation
                                                            1. cos-lowering-cos.f6455.9%

                                                              \[\leadsto \mathsf{cos.f64}\left(x\right) \]
                                                          5. Simplified55.9%

                                                            \[\leadsto \color{blue}{\cos x} \]
                                                          6. Taylor expanded in x around 0

                                                            \[\leadsto \color{blue}{1} \]
                                                          7. Step-by-step derivation
                                                            1. Simplified34.7%

                                                              \[\leadsto \color{blue}{1} \]
                                                            2. Add Preprocessing

                                                            Reproduce

                                                            ?
                                                            herbie shell --seed 2024191 
                                                            (FPCore (x y)
                                                              :name "Linear.Quaternion:$csin from linear-1.19.1.3"
                                                              :precision binary64
                                                              (* (cos x) (/ (sinh y) y)))