Linear.Quaternion:$csin from linear-1.19.1.3

Percentage Accurate: 100.0% → 100.0%
Time: 8.7s
Alternatives: 16
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 16 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: 84.6% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := \cos x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\ \mathbf{if}\;y \leq 0.07:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;y \leq 2.6 \cdot 10^{+151}:\\ \;\;\;\;\frac{\sinh y}{y}\\ \mathbf{else}:\\ \;\;\;\;t\_0\\ \end{array} \end{array} \]
(FPCore (x y)
 :precision binary64
 (let* ((t_0 (* (cos x) (+ 1.0 (* 0.16666666666666666 (* y y))))))
   (if (<= y 0.07) t_0 (if (<= y 2.6e+151) (/ (sinh y) y) t_0))))
double code(double x, double y) {
	double t_0 = cos(x) * (1.0 + (0.16666666666666666 * (y * y)));
	double tmp;
	if (y <= 0.07) {
		tmp = t_0;
	} else if (y <= 2.6e+151) {
		tmp = sinh(y) / y;
	} 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 = cos(x) * (1.0d0 + (0.16666666666666666d0 * (y * y)))
    if (y <= 0.07d0) then
        tmp = t_0
    else if (y <= 2.6d+151) then
        tmp = sinh(y) / y
    else
        tmp = t_0
    end if
    code = tmp
end function
public static double code(double x, double y) {
	double t_0 = Math.cos(x) * (1.0 + (0.16666666666666666 * (y * y)));
	double tmp;
	if (y <= 0.07) {
		tmp = t_0;
	} else if (y <= 2.6e+151) {
		tmp = Math.sinh(y) / y;
	} else {
		tmp = t_0;
	}
	return tmp;
}
def code(x, y):
	t_0 = math.cos(x) * (1.0 + (0.16666666666666666 * (y * y)))
	tmp = 0
	if y <= 0.07:
		tmp = t_0
	elif y <= 2.6e+151:
		tmp = math.sinh(y) / y
	else:
		tmp = t_0
	return tmp
function code(x, y)
	t_0 = Float64(cos(x) * Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y))))
	tmp = 0.0
	if (y <= 0.07)
		tmp = t_0;
	elseif (y <= 2.6e+151)
		tmp = Float64(sinh(y) / y);
	else
		tmp = t_0;
	end
	return tmp
end
function tmp_2 = code(x, y)
	t_0 = cos(x) * (1.0 + (0.16666666666666666 * (y * y)));
	tmp = 0.0;
	if (y <= 0.07)
		tmp = t_0;
	elseif (y <= 2.6e+151)
		tmp = sinh(y) / y;
	else
		tmp = t_0;
	end
	tmp_2 = tmp;
end
code[x_, y_] := Block[{t$95$0 = N[(N[Cos[x], $MachinePrecision] * N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 0.07], t$95$0, If[LessEqual[y, 2.6e+151], N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision], t$95$0]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := \cos x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\
\mathbf{if}\;y \leq 0.07:\\
\;\;\;\;t\_0\\

\mathbf{elif}\;y \leq 2.6 \cdot 10^{+151}:\\
\;\;\;\;\frac{\sinh y}{y}\\

\mathbf{else}:\\
\;\;\;\;t\_0\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 0.070000000000000007 or 2.60000000000000013e151 < 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. associate-*r*N/A

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

        \[\leadsto 1 \cdot \cos x + \color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right)} \cdot \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-*.f6487.7%

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

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

    if 0.070000000000000007 < y < 2.60000000000000013e151

    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. Simplified72.0%

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

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

        \[\leadsto \color{blue}{\frac{\sinh y}{y}} \]
    5. Recombined 2 regimes into one program.
    6. Add Preprocessing

    Alternative 3: 68.7% accurate, 1.8× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 7 \cdot 10^{-5}:\\ \;\;\;\;\cos x\\ \mathbf{elif}\;y \leq 1.95 \cdot 10^{+127}:\\ \;\;\;\;\frac{\sinh y}{y}\\ \mathbf{else}:\\ \;\;\;\;\left(0.008333333333333333 + \left(x \cdot x\right) \cdot -0.004166666666666667\right) \cdot \left(\left(y \cdot y\right) \cdot \left(y \cdot y\right)\right)\\ \end{array} \end{array} \]
    (FPCore (x y)
     :precision binary64
     (if (<= y 7e-5)
       (cos x)
       (if (<= y 1.95e+127)
         (/ (sinh y) y)
         (*
          (+ 0.008333333333333333 (* (* x x) -0.004166666666666667))
          (* (* y y) (* y y))))))
    double code(double x, double y) {
    	double tmp;
    	if (y <= 7e-5) {
    		tmp = cos(x);
    	} else if (y <= 1.95e+127) {
    		tmp = sinh(y) / y;
    	} else {
    		tmp = (0.008333333333333333 + ((x * x) * -0.004166666666666667)) * ((y * y) * (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 <= 7d-5) then
            tmp = cos(x)
        else if (y <= 1.95d+127) then
            tmp = sinh(y) / y
        else
            tmp = (0.008333333333333333d0 + ((x * x) * (-0.004166666666666667d0))) * ((y * y) * (y * y))
        end if
        code = tmp
    end function
    
    public static double code(double x, double y) {
    	double tmp;
    	if (y <= 7e-5) {
    		tmp = Math.cos(x);
    	} else if (y <= 1.95e+127) {
    		tmp = Math.sinh(y) / y;
    	} else {
    		tmp = (0.008333333333333333 + ((x * x) * -0.004166666666666667)) * ((y * y) * (y * y));
    	}
    	return tmp;
    }
    
    def code(x, y):
    	tmp = 0
    	if y <= 7e-5:
    		tmp = math.cos(x)
    	elif y <= 1.95e+127:
    		tmp = math.sinh(y) / y
    	else:
    		tmp = (0.008333333333333333 + ((x * x) * -0.004166666666666667)) * ((y * y) * (y * y))
    	return tmp
    
    function code(x, y)
    	tmp = 0.0
    	if (y <= 7e-5)
    		tmp = cos(x);
    	elseif (y <= 1.95e+127)
    		tmp = Float64(sinh(y) / y);
    	else
    		tmp = Float64(Float64(0.008333333333333333 + Float64(Float64(x * x) * -0.004166666666666667)) * Float64(Float64(y * y) * Float64(y * y)));
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y)
    	tmp = 0.0;
    	if (y <= 7e-5)
    		tmp = cos(x);
    	elseif (y <= 1.95e+127)
    		tmp = sinh(y) / y;
    	else
    		tmp = (0.008333333333333333 + ((x * x) * -0.004166666666666667)) * ((y * y) * (y * y));
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_] := If[LessEqual[y, 7e-5], N[Cos[x], $MachinePrecision], If[LessEqual[y, 1.95e+127], N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision], N[(N[(0.008333333333333333 + N[(N[(x * x), $MachinePrecision] * -0.004166666666666667), $MachinePrecision]), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;y \leq 7 \cdot 10^{-5}:\\
    \;\;\;\;\cos x\\
    
    \mathbf{elif}\;y \leq 1.95 \cdot 10^{+127}:\\
    \;\;\;\;\frac{\sinh y}{y}\\
    
    \mathbf{else}:\\
    \;\;\;\;\left(0.008333333333333333 + \left(x \cdot x\right) \cdot -0.004166666666666667\right) \cdot \left(\left(y \cdot y\right) \cdot \left(y \cdot y\right)\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if y < 6.9999999999999994e-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.9%

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

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

      if 6.9999999999999994e-5 < y < 1.94999999999999991e127

      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. Simplified78.3%

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

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

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

        if 1.94999999999999991e127 < 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. unpow2N/A

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

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

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

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

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

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

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

          \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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-*.f6491.4%

            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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. Simplified91.4%

          \[\leadsto \left(1 + x \cdot \left(x \cdot -0.5\right)\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)} \]
        9. Taylor expanded in y around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{240}\right)\right), \left({y}^{4}\right)\right) \]
          14. metadata-evalN/A

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

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

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

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

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

            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{240}\right)\right), \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(y \cdot \color{blue}{y}\right)\right)\right) \]
          20. *-lowering-*.f6491.4%

            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{240}\right)\right), \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right) \]
        11. Simplified91.4%

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

      Alternative 4: 66.4% accurate, 1.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 3600000000:\\ \;\;\;\;\cos x\\ \mathbf{elif}\;y \leq 5.2 \cdot 10^{+38}:\\ \;\;\;\;1 + x \cdot \left(x \cdot \left(-0.5 + x \cdot \left(x \cdot 0.041666666666666664\right)\right)\right)\\ \mathbf{elif}\;y \leq 1.45 \cdot 10^{+135}:\\ \;\;\;\;\frac{y \cdot \left(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)\right)}{y}\\ \mathbf{else}:\\ \;\;\;\;\left(1 + x \cdot \left(x \cdot -0.5\right)\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
       (if (<= y 3600000000.0)
         (cos x)
         (if (<= y 5.2e+38)
           (+ 1.0 (* x (* x (+ -0.5 (* x (* x 0.041666666666666664))))))
           (if (<= y 1.45e+135)
             (/
              (*
               y
               (+
                1.0
                (*
                 y
                 (*
                  y
                  (+
                   0.16666666666666666
                   (*
                    y
                    (*
                     y
                     (+
                      0.008333333333333333
                      (* (* y y) 0.0001984126984126984)))))))))
              y)
             (*
              (+ 1.0 (* x (* x -0.5)))
              (+
               1.0
               (*
                y
                (* y (+ 0.16666666666666666 (* (* y y) 0.008333333333333333))))))))))
      double code(double x, double y) {
      	double tmp;
      	if (y <= 3600000000.0) {
      		tmp = cos(x);
      	} else if (y <= 5.2e+38) {
      		tmp = 1.0 + (x * (x * (-0.5 + (x * (x * 0.041666666666666664)))));
      	} else if (y <= 1.45e+135) {
      		tmp = (y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))))) / 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) :: tmp
          if (y <= 3600000000.0d0) then
              tmp = cos(x)
          else if (y <= 5.2d+38) then
              tmp = 1.0d0 + (x * (x * ((-0.5d0) + (x * (x * 0.041666666666666664d0)))))
          else if (y <= 1.45d+135) then
              tmp = (y * (1.0d0 + (y * (y * (0.16666666666666666d0 + (y * (y * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0))))))))) / 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 tmp;
      	if (y <= 3600000000.0) {
      		tmp = Math.cos(x);
      	} else if (y <= 5.2e+38) {
      		tmp = 1.0 + (x * (x * (-0.5 + (x * (x * 0.041666666666666664)))));
      	} else if (y <= 1.45e+135) {
      		tmp = (y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))))) / 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):
      	tmp = 0
      	if y <= 3600000000.0:
      		tmp = math.cos(x)
      	elif y <= 5.2e+38:
      		tmp = 1.0 + (x * (x * (-0.5 + (x * (x * 0.041666666666666664)))))
      	elif y <= 1.45e+135:
      		tmp = (y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))))) / 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)
      	tmp = 0.0
      	if (y <= 3600000000.0)
      		tmp = cos(x);
      	elseif (y <= 5.2e+38)
      		tmp = Float64(1.0 + Float64(x * Float64(x * Float64(-0.5 + Float64(x * Float64(x * 0.041666666666666664))))));
      	elseif (y <= 1.45e+135)
      		tmp = Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(y * Float64(y * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984))))))))) / y);
      	else
      		tmp = Float64(Float64(1.0 + Float64(x * Float64(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)
      	tmp = 0.0;
      	if (y <= 3600000000.0)
      		tmp = cos(x);
      	elseif (y <= 5.2e+38)
      		tmp = 1.0 + (x * (x * (-0.5 + (x * (x * 0.041666666666666664)))));
      	elseif (y <= 1.45e+135)
      		tmp = (y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))))) / 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_] := If[LessEqual[y, 3600000000.0], N[Cos[x], $MachinePrecision], If[LessEqual[y, 5.2e+38], N[(1.0 + N[(x * N[(x * N[(-0.5 + N[(x * N[(x * 0.041666666666666664), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.45e+135], N[(N[(y * 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]), $MachinePrecision] / y), $MachinePrecision], N[(N[(1.0 + N[(x * N[(x * -0.5), $MachinePrecision]), $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}
      \mathbf{if}\;y \leq 3600000000:\\
      \;\;\;\;\cos x\\
      
      \mathbf{elif}\;y \leq 5.2 \cdot 10^{+38}:\\
      \;\;\;\;1 + x \cdot \left(x \cdot \left(-0.5 + x \cdot \left(x \cdot 0.041666666666666664\right)\right)\right)\\
      
      \mathbf{elif}\;y \leq 1.45 \cdot 10^{+135}:\\
      \;\;\;\;\frac{y \cdot \left(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)\right)}{y}\\
      
      \mathbf{else}:\\
      \;\;\;\;\left(1 + x \cdot \left(x \cdot -0.5\right)\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 4 regimes
      2. if y < 3.6e9

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

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

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

        if 3.6e9 < y < 5.1999999999999998e38

        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. unpow2N/A

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

            \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \left(\left(\frac{1}{24} \cdot x\right) \cdot \color{blue}{x}\right)\right)\right)\right)\right) \]
          12. *-commutativeN/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(\frac{1}{24} \cdot x\right)}\right)\right)\right)\right)\right) \]
          13. *-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(\frac{1}{24} \cdot x\right)}\right)\right)\right)\right)\right) \]
          14. *-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, \left(x \cdot \color{blue}{\frac{1}{24}}\right)\right)\right)\right)\right)\right) \]
          15. *-lowering-*.f6480.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, \color{blue}{\frac{1}{24}}\right)\right)\right)\right)\right)\right) \]
        8. Simplified80.6%

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

        if 5.1999999999999998e38 < y < 1.4499999999999999e135

        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.6%

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

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

            \[\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 + {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) \]
          5. Step-by-step derivation
            1. *-lowering-*.f64N/A

              \[\leadsto \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) \]
            2. +-lowering-+.f64N/A

              \[\leadsto \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) \]
            3. unpow2N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \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) \]
            4. associate-*l*N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \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)\right), y\right) \]
            5. *-commutativeN/A

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

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

              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \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)\right), y\right) \]
            8. *-lowering-*.f64N/A

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

              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \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)\right), y\right) \]
            10. unpow2N/A

              \[\leadsto \mathsf{/.f64}\left(\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 \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right) \]
            11. associate-*l*N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \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)\right), y\right) \]
            12. *-lowering-*.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\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(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right) \]
            13. *-lowering-*.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\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(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right) \]
            14. +-lowering-+.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\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(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)\right), y\right) \]
            15. *-commutativeN/A

              \[\leadsto \mathsf{/.f64}\left(\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(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)\right), y\right) \]
            16. *-lowering-*.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\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(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)\right), y\right) \]
            17. unpow2N/A

              \[\leadsto \mathsf{/.f64}\left(\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(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)\right), y\right) \]
            18. *-lowering-*.f6470.6%

              \[\leadsto \mathsf{/.f64}\left(\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(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)\right), y\right) \]
          6. Simplified70.6%

            \[\leadsto \frac{\color{blue}{y \cdot \left(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)\right)}}{y} \]

          if 1.4499999999999999e135 < 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. unpow2N/A

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

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

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

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

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

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

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

            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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-*.f6491.2%

              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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. Simplified91.2%

            \[\leadsto \left(1 + x \cdot \left(x \cdot -0.5\right)\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 4 regimes into one program.
        6. Add Preprocessing

        Alternative 5: 57.6% accurate, 6.8× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 3600000000:\\ \;\;\;\;1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\\ \mathbf{elif}\;y \leq 7.5 \cdot 10^{+69}:\\ \;\;\;\;1 + x \cdot \left(x \cdot \left(-0.5 + x \cdot \left(x \cdot 0.041666666666666664\right)\right)\right)\\ \mathbf{elif}\;y \leq 7.5 \cdot 10^{+125}:\\ \;\;\;\;y \cdot \left(y \cdot \left(y \cdot \left(y \cdot 0.008333333333333333\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(0.008333333333333333 + \left(x \cdot x\right) \cdot -0.004166666666666667\right) \cdot \left(\left(y \cdot y\right) \cdot \left(y \cdot y\right)\right)\\ \end{array} \end{array} \]
        (FPCore (x y)
         :precision binary64
         (if (<= y 3600000000.0)
           (+ 1.0 (* y (* y (+ 0.16666666666666666 (* (* y y) 0.008333333333333333)))))
           (if (<= y 7.5e+69)
             (+ 1.0 (* x (* x (+ -0.5 (* x (* x 0.041666666666666664))))))
             (if (<= y 7.5e+125)
               (* y (* y (* y (* y 0.008333333333333333))))
               (*
                (+ 0.008333333333333333 (* (* x x) -0.004166666666666667))
                (* (* y y) (* y y)))))))
        double code(double x, double y) {
        	double tmp;
        	if (y <= 3600000000.0) {
        		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
        	} else if (y <= 7.5e+69) {
        		tmp = 1.0 + (x * (x * (-0.5 + (x * (x * 0.041666666666666664)))));
        	} else if (y <= 7.5e+125) {
        		tmp = y * (y * (y * (y * 0.008333333333333333)));
        	} else {
        		tmp = (0.008333333333333333 + ((x * x) * -0.004166666666666667)) * ((y * y) * (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 <= 3600000000.0d0) then
                tmp = 1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * 0.008333333333333333d0))))
            else if (y <= 7.5d+69) then
                tmp = 1.0d0 + (x * (x * ((-0.5d0) + (x * (x * 0.041666666666666664d0)))))
            else if (y <= 7.5d+125) then
                tmp = y * (y * (y * (y * 0.008333333333333333d0)))
            else
                tmp = (0.008333333333333333d0 + ((x * x) * (-0.004166666666666667d0))) * ((y * y) * (y * y))
            end if
            code = tmp
        end function
        
        public static double code(double x, double y) {
        	double tmp;
        	if (y <= 3600000000.0) {
        		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
        	} else if (y <= 7.5e+69) {
        		tmp = 1.0 + (x * (x * (-0.5 + (x * (x * 0.041666666666666664)))));
        	} else if (y <= 7.5e+125) {
        		tmp = y * (y * (y * (y * 0.008333333333333333)));
        	} else {
        		tmp = (0.008333333333333333 + ((x * x) * -0.004166666666666667)) * ((y * y) * (y * y));
        	}
        	return tmp;
        }
        
        def code(x, y):
        	tmp = 0
        	if y <= 3600000000.0:
        		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))))
        	elif y <= 7.5e+69:
        		tmp = 1.0 + (x * (x * (-0.5 + (x * (x * 0.041666666666666664)))))
        	elif y <= 7.5e+125:
        		tmp = y * (y * (y * (y * 0.008333333333333333)))
        	else:
        		tmp = (0.008333333333333333 + ((x * x) * -0.004166666666666667)) * ((y * y) * (y * y))
        	return tmp
        
        function code(x, y)
        	tmp = 0.0
        	if (y <= 3600000000.0)
        		tmp = Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * 0.008333333333333333)))));
        	elseif (y <= 7.5e+69)
        		tmp = Float64(1.0 + Float64(x * Float64(x * Float64(-0.5 + Float64(x * Float64(x * 0.041666666666666664))))));
        	elseif (y <= 7.5e+125)
        		tmp = Float64(y * Float64(y * Float64(y * Float64(y * 0.008333333333333333))));
        	else
        		tmp = Float64(Float64(0.008333333333333333 + Float64(Float64(x * x) * -0.004166666666666667)) * Float64(Float64(y * y) * Float64(y * y)));
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y)
        	tmp = 0.0;
        	if (y <= 3600000000.0)
        		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
        	elseif (y <= 7.5e+69)
        		tmp = 1.0 + (x * (x * (-0.5 + (x * (x * 0.041666666666666664)))));
        	elseif (y <= 7.5e+125)
        		tmp = y * (y * (y * (y * 0.008333333333333333)));
        	else
        		tmp = (0.008333333333333333 + ((x * x) * -0.004166666666666667)) * ((y * y) * (y * y));
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_] := If[LessEqual[y, 3600000000.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, 7.5e+69], N[(1.0 + N[(x * N[(x * N[(-0.5 + N[(x * N[(x * 0.041666666666666664), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.5e+125], N[(y * N[(y * N[(y * N[(y * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(0.008333333333333333 + N[(N[(x * x), $MachinePrecision] * -0.004166666666666667), $MachinePrecision]), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;y \leq 3600000000:\\
        \;\;\;\;1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\\
        
        \mathbf{elif}\;y \leq 7.5 \cdot 10^{+69}:\\
        \;\;\;\;1 + x \cdot \left(x \cdot \left(-0.5 + x \cdot \left(x \cdot 0.041666666666666664\right)\right)\right)\\
        
        \mathbf{elif}\;y \leq 7.5 \cdot 10^{+125}:\\
        \;\;\;\;y \cdot \left(y \cdot \left(y \cdot \left(y \cdot 0.008333333333333333\right)\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\left(0.008333333333333333 + \left(x \cdot x\right) \cdot -0.004166666666666667\right) \cdot \left(\left(y \cdot y\right) \cdot \left(y \cdot y\right)\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 4 regimes
        2. if y < 3.6e9

          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. Simplified61.8%

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

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

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

            if 3.6e9 < y < 7.49999999999999939e69

            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. unpow2N/A

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

                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \left(\left(\frac{1}{24} \cdot x\right) \cdot \color{blue}{x}\right)\right)\right)\right)\right) \]
              12. *-commutativeN/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(\frac{1}{24} \cdot x\right)}\right)\right)\right)\right)\right) \]
              13. *-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(\frac{1}{24} \cdot x\right)}\right)\right)\right)\right)\right) \]
              14. *-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, \left(x \cdot \color{blue}{\frac{1}{24}}\right)\right)\right)\right)\right)\right) \]
              15. *-lowering-*.f6451.0%

                \[\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}{\frac{1}{24}}\right)\right)\right)\right)\right)\right) \]
            8. Simplified51.0%

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

            if 7.49999999999999939e69 < y < 7.5000000000000006e125

            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.8%

                \[\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-*.f6465.4%

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

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

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

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

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

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

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

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

                  \[\leadsto {y}^{2} \cdot \left(\frac{1}{6} \cdot \left(\frac{1}{{y}^{2}} \cdot {y}^{2}\right) + \color{blue}{\frac{1}{120}} \cdot {y}^{2}\right) \]
                7. lft-mult-inverseN/A

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

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

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

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

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

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

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

                  \[\leadsto \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) \]
                15. *-lowering-*.f64N/A

                  \[\leadsto \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) \]
                16. unpow2N/A

                  \[\leadsto \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) \]
                17. *-lowering-*.f6465.4%

                  \[\leadsto \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) \]
              7. Simplified65.4%

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

                \[\leadsto \color{blue}{\frac{1}{120} \cdot {y}^{4}} \]
              9. Step-by-step derivation
                1. metadata-evalN/A

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

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

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

                  \[\leadsto {y}^{2} \cdot \color{blue}{\left(\frac{1}{120} \cdot {y}^{2}\right)} \]
                5. unpow2N/A

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(y \cdot \color{blue}{\frac{1}{120}}\right)\right)\right)\right) \]
                14. *-lowering-*.f6465.4%

                  \[\leadsto \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\frac{1}{120}}\right)\right)\right)\right) \]
              10. Simplified65.4%

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

              if 7.5000000000000006e125 < 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. unpow2N/A

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

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

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

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

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

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

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

                \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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-*.f6491.4%

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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. Simplified91.4%

                \[\leadsto \left(1 + x \cdot \left(x \cdot -0.5\right)\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)} \]
              9. Taylor expanded in y around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{240}\right)\right), \left({y}^{4}\right)\right) \]
                14. metadata-evalN/A

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

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

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

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

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

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{240}\right)\right), \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(y \cdot \color{blue}{y}\right)\right)\right) \]
                20. *-lowering-*.f6491.4%

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{240}\right)\right), \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right) \]
              11. Simplified91.4%

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

            Alternative 6: 60.2% accurate, 7.3× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 2 \cdot 10^{+136}:\\ \;\;\;\;\frac{y \cdot \left(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)\right)}{y}\\ \mathbf{else}:\\ \;\;\;\;\left(1 + x \cdot \left(x \cdot -0.5\right)\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
             (if (<= y 2e+136)
               (/
                (*
                 y
                 (+
                  1.0
                  (*
                   y
                   (*
                    y
                    (+
                     0.16666666666666666
                     (*
                      y
                      (*
                       y
                       (+ 0.008333333333333333 (* (* y y) 0.0001984126984126984)))))))))
                y)
               (*
                (+ 1.0 (* x (* x -0.5)))
                (+
                 1.0
                 (* y (* y (+ 0.16666666666666666 (* (* y y) 0.008333333333333333))))))))
            double code(double x, double y) {
            	double tmp;
            	if (y <= 2e+136) {
            		tmp = (y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))))) / 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) :: tmp
                if (y <= 2d+136) then
                    tmp = (y * (1.0d0 + (y * (y * (0.16666666666666666d0 + (y * (y * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0))))))))) / 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 tmp;
            	if (y <= 2e+136) {
            		tmp = (y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))))) / 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):
            	tmp = 0
            	if y <= 2e+136:
            		tmp = (y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))))) / 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)
            	tmp = 0.0
            	if (y <= 2e+136)
            		tmp = Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(y * Float64(y * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984))))))))) / y);
            	else
            		tmp = Float64(Float64(1.0 + Float64(x * Float64(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)
            	tmp = 0.0;
            	if (y <= 2e+136)
            		tmp = (y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))))) / 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_] := If[LessEqual[y, 2e+136], N[(N[(y * 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]), $MachinePrecision] / y), $MachinePrecision], N[(N[(1.0 + N[(x * N[(x * -0.5), $MachinePrecision]), $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}
            \mathbf{if}\;y \leq 2 \cdot 10^{+136}:\\
            \;\;\;\;\frac{y \cdot \left(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)\right)}{y}\\
            
            \mathbf{else}:\\
            \;\;\;\;\left(1 + x \cdot \left(x \cdot -0.5\right)\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 < 2.00000000000000012e136

              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. Simplified63.3%

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

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

                  \[\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 + {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) \]
                5. Step-by-step derivation
                  1. *-lowering-*.f64N/A

                    \[\leadsto \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) \]
                  2. +-lowering-+.f64N/A

                    \[\leadsto \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) \]
                  3. unpow2N/A

                    \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(\left(y \cdot y\right) \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) \]
                  4. associate-*l*N/A

                    \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \left(y \cdot \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)\right), y\right) \]
                  5. *-commutativeN/A

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

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

                    \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \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)\right), y\right) \]
                  8. *-lowering-*.f64N/A

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

                    \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \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)\right), y\right) \]
                  10. unpow2N/A

                    \[\leadsto \mathsf{/.f64}\left(\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 \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right), y\right) \]
                  11. associate-*l*N/A

                    \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \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)\right), y\right) \]
                  12. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{/.f64}\left(\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(y, \left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right) \]
                  13. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{/.f64}\left(\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(y, \mathsf{*.f64}\left(y, \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)\right)\right)\right)\right)\right), y\right) \]
                  14. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{/.f64}\left(\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(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)\right), y\right) \]
                  15. *-commutativeN/A

                    \[\leadsto \mathsf{/.f64}\left(\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(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)\right), y\right) \]
                  16. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{/.f64}\left(\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(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)\right), y\right) \]
                  17. unpow2N/A

                    \[\leadsto \mathsf{/.f64}\left(\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(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)\right), y\right) \]
                  18. *-lowering-*.f6458.2%

                    \[\leadsto \mathsf{/.f64}\left(\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(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)\right), y\right) \]
                6. Simplified58.2%

                  \[\leadsto \frac{\color{blue}{y \cdot \left(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)\right)}}{y} \]

                if 2.00000000000000012e136 < 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. unpow2N/A

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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-*.f6491.2%

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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. Simplified91.2%

                  \[\leadsto \left(1 + x \cdot \left(x \cdot -0.5\right)\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. Add Preprocessing

              Alternative 7: 59.5% accurate, 7.9× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 4.6 \cdot 10^{+135}:\\ \;\;\;\;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(1 + x \cdot \left(x \cdot -0.5\right)\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
               (if (<= y 4.6e+135)
                 (+
                  1.0
                  (*
                   y
                   (*
                    y
                    (+
                     0.16666666666666666
                     (*
                      y
                      (* y (+ 0.008333333333333333 (* (* y y) 0.0001984126984126984))))))))
                 (*
                  (+ 1.0 (* x (* x -0.5)))
                  (+
                   1.0
                   (* y (* y (+ 0.16666666666666666 (* (* y y) 0.008333333333333333))))))))
              double code(double x, double y) {
              	double tmp;
              	if (y <= 4.6e+135) {
              		tmp = 1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
              	} 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) :: tmp
                  if (y <= 4.6d+135) then
                      tmp = 1.0d0 + (y * (y * (0.16666666666666666d0 + (y * (y * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)))))))
                  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 tmp;
              	if (y <= 4.6e+135) {
              		tmp = 1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
              	} else {
              		tmp = (1.0 + (x * (x * -0.5))) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))));
              	}
              	return tmp;
              }
              
              def code(x, y):
              	tmp = 0
              	if y <= 4.6e+135:
              		tmp = 1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))))
              	else:
              		tmp = (1.0 + (x * (x * -0.5))) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))))
              	return tmp
              
              function code(x, y)
              	tmp = 0.0
              	if (y <= 4.6e+135)
              		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(1.0 + Float64(x * Float64(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)
              	tmp = 0.0;
              	if (y <= 4.6e+135)
              		tmp = 1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
              	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_] := If[LessEqual[y, 4.6e+135], 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[(1.0 + N[(x * N[(x * -0.5), $MachinePrecision]), $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}
              \mathbf{if}\;y \leq 4.6 \cdot 10^{+135}:\\
              \;\;\;\;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(1 + x \cdot \left(x \cdot -0.5\right)\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.6000000000000002e135

                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. Simplified63.3%

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

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

                    \[\leadsto \color{blue}{\frac{\sinh y}{y}} \]
                  4. 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)} \]
                  5. 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. *-commutativeN/A

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

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

                      \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \left(y \cdot \color{blue}{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)}\right)\right)\right) \]
                    7. *-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) \]
                    8. +-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) \]
                    9. 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) \]
                    10. 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) \]
                    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, \color{blue}{\left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)}\right)\right)\right)\right)\right) \]
                    12. *-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) \]
                    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}, \color{blue}{\left(\frac{1}{5040} \cdot {y}^{2}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                    14. *-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) \]
                    15. *-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) \]
                    16. 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) \]
                    17. *-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(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) \]
                  6. Simplified57.0%

                    \[\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 4.6000000000000002e135 < 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. unpow2N/A

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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-*.f6491.2%

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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. Simplified91.2%

                    \[\leadsto \left(1 + x \cdot \left(x \cdot -0.5\right)\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. Add Preprocessing

                Alternative 8: 59.6% accurate, 8.5× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 10^{+126}:\\ \;\;\;\;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(0.008333333333333333 + \left(x \cdot x\right) \cdot -0.004166666666666667\right) \cdot \left(\left(y \cdot y\right) \cdot \left(y \cdot y\right)\right)\\ \end{array} \end{array} \]
                (FPCore (x y)
                 :precision binary64
                 (if (<= y 1e+126)
                   (+
                    1.0
                    (*
                     y
                     (*
                      y
                      (+
                       0.16666666666666666
                       (*
                        y
                        (* y (+ 0.008333333333333333 (* (* y y) 0.0001984126984126984))))))))
                   (*
                    (+ 0.008333333333333333 (* (* x x) -0.004166666666666667))
                    (* (* y y) (* y y)))))
                double code(double x, double y) {
                	double tmp;
                	if (y <= 1e+126) {
                		tmp = 1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
                	} else {
                		tmp = (0.008333333333333333 + ((x * x) * -0.004166666666666667)) * ((y * y) * (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 <= 1d+126) then
                        tmp = 1.0d0 + (y * (y * (0.16666666666666666d0 + (y * (y * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)))))))
                    else
                        tmp = (0.008333333333333333d0 + ((x * x) * (-0.004166666666666667d0))) * ((y * y) * (y * y))
                    end if
                    code = tmp
                end function
                
                public static double code(double x, double y) {
                	double tmp;
                	if (y <= 1e+126) {
                		tmp = 1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
                	} else {
                		tmp = (0.008333333333333333 + ((x * x) * -0.004166666666666667)) * ((y * y) * (y * y));
                	}
                	return tmp;
                }
                
                def code(x, y):
                	tmp = 0
                	if y <= 1e+126:
                		tmp = 1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))))
                	else:
                		tmp = (0.008333333333333333 + ((x * x) * -0.004166666666666667)) * ((y * y) * (y * y))
                	return tmp
                
                function code(x, y)
                	tmp = 0.0
                	if (y <= 1e+126)
                		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(0.008333333333333333 + Float64(Float64(x * x) * -0.004166666666666667)) * Float64(Float64(y * y) * Float64(y * y)));
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y)
                	tmp = 0.0;
                	if (y <= 1e+126)
                		tmp = 1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
                	else
                		tmp = (0.008333333333333333 + ((x * x) * -0.004166666666666667)) * ((y * y) * (y * y));
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_] := If[LessEqual[y, 1e+126], 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[(0.008333333333333333 + N[(N[(x * x), $MachinePrecision] * -0.004166666666666667), $MachinePrecision]), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                \mathbf{if}\;y \leq 10^{+126}:\\
                \;\;\;\;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(0.008333333333333333 + \left(x \cdot x\right) \cdot -0.004166666666666667\right) \cdot \left(\left(y \cdot y\right) \cdot \left(y \cdot y\right)\right)\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if y < 9.99999999999999925e125

                  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. Simplified63.6%

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

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

                      \[\leadsto \color{blue}{\frac{\sinh y}{y}} \]
                    4. 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)} \]
                    5. 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. *-commutativeN/A

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

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

                        \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(y, \left(y \cdot \color{blue}{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)}\right)\right)\right) \]
                      7. *-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) \]
                      8. +-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) \]
                      9. 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) \]
                      10. 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) \]
                      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, \color{blue}{\left(y \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)}\right)\right)\right)\right)\right) \]
                      12. *-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) \]
                      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}, \color{blue}{\left(\frac{1}{5040} \cdot {y}^{2}\right)}\right)\right)\right)\right)\right)\right)\right) \]
                      14. *-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) \]
                      15. *-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) \]
                      16. 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) \]
                      17. *-lowering-*.f6457.2%

                        \[\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) \]
                    6. Simplified57.2%

                      \[\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 9.99999999999999925e125 < 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. unpow2N/A

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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-*.f6491.4%

                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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. Simplified91.4%

                      \[\leadsto \left(1 + x \cdot \left(x \cdot -0.5\right)\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)} \]
                    9. Taylor expanded in y around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{240}\right)\right), \left({y}^{4}\right)\right) \]
                      14. metadata-evalN/A

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

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

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

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

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

                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{240}\right)\right), \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(y \cdot \color{blue}{y}\right)\right)\right) \]
                      20. *-lowering-*.f6491.4%

                        \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{240}\right)\right), \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right) \]
                    11. Simplified91.4%

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

                  Alternative 9: 52.8% accurate, 8.9× speedup?

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

                    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. Simplified61.8%

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

                        \[\leadsto \color{blue}{1 + \frac{1}{6} \cdot {y}^{2}} \]
                      3. 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.9%

                          \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right) \]
                      4. Simplified50.9%

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

                      if 3.6e9 < y < 7.49999999999999939e69

                      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. unpow2N/A

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

                          \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \mathsf{+.f64}\left(\frac{-1}{2}, \left(\left(\frac{1}{24} \cdot x\right) \cdot \color{blue}{x}\right)\right)\right)\right)\right) \]
                        12. *-commutativeN/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(\frac{1}{24} \cdot x\right)}\right)\right)\right)\right)\right) \]
                        13. *-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(\frac{1}{24} \cdot x\right)}\right)\right)\right)\right)\right) \]
                        14. *-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, \left(x \cdot \color{blue}{\frac{1}{24}}\right)\right)\right)\right)\right)\right) \]
                        15. *-lowering-*.f6451.0%

                          \[\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}{\frac{1}{24}}\right)\right)\right)\right)\right)\right) \]
                      8. Simplified51.0%

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

                      if 7.49999999999999939e69 < 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. Simplified58.7%

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

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

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

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

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

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

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

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

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

                            \[\leadsto {y}^{2} \cdot \left(\frac{1}{6} \cdot \left(\frac{1}{{y}^{2}} \cdot {y}^{2}\right) + \color{blue}{\frac{1}{120}} \cdot {y}^{2}\right) \]
                          7. lft-mult-inverseN/A

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

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

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

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

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

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

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

                            \[\leadsto \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) \]
                          15. *-lowering-*.f64N/A

                            \[\leadsto \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) \]
                          16. unpow2N/A

                            \[\leadsto \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) \]
                          17. *-lowering-*.f6454.8%

                            \[\leadsto \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) \]
                        7. Simplified54.8%

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

                          \[\leadsto \color{blue}{\frac{1}{120} \cdot {y}^{4}} \]
                        9. Step-by-step derivation
                          1. metadata-evalN/A

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

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

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

                            \[\leadsto {y}^{2} \cdot \color{blue}{\left(\frac{1}{120} \cdot {y}^{2}\right)} \]
                          5. unpow2N/A

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(y \cdot \color{blue}{\frac{1}{120}}\right)\right)\right)\right) \]
                          14. *-lowering-*.f6454.8%

                            \[\leadsto \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\frac{1}{120}}\right)\right)\right)\right) \]
                        10. Simplified54.8%

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

                      Alternative 10: 58.3% accurate, 9.3× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 2 \cdot 10^{+127}:\\ \;\;\;\;\frac{y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\right)}{y}\\ \mathbf{else}:\\ \;\;\;\;\left(0.008333333333333333 + \left(x \cdot x\right) \cdot -0.004166666666666667\right) \cdot \left(\left(y \cdot y\right) \cdot \left(y \cdot y\right)\right)\\ \end{array} \end{array} \]
                      (FPCore (x y)
                       :precision binary64
                       (if (<= y 2e+127)
                         (/
                          (*
                           y
                           (+
                            1.0
                            (* y (* y (+ 0.16666666666666666 (* (* y y) 0.008333333333333333))))))
                          y)
                         (*
                          (+ 0.008333333333333333 (* (* x x) -0.004166666666666667))
                          (* (* y y) (* y y)))))
                      double code(double x, double y) {
                      	double tmp;
                      	if (y <= 2e+127) {
                      		tmp = (y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))))) / y;
                      	} else {
                      		tmp = (0.008333333333333333 + ((x * x) * -0.004166666666666667)) * ((y * y) * (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 <= 2d+127) then
                              tmp = (y * (1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * 0.008333333333333333d0)))))) / y
                          else
                              tmp = (0.008333333333333333d0 + ((x * x) * (-0.004166666666666667d0))) * ((y * y) * (y * y))
                          end if
                          code = tmp
                      end function
                      
                      public static double code(double x, double y) {
                      	double tmp;
                      	if (y <= 2e+127) {
                      		tmp = (y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))))) / y;
                      	} else {
                      		tmp = (0.008333333333333333 + ((x * x) * -0.004166666666666667)) * ((y * y) * (y * y));
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y):
                      	tmp = 0
                      	if y <= 2e+127:
                      		tmp = (y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))))) / y
                      	else:
                      		tmp = (0.008333333333333333 + ((x * x) * -0.004166666666666667)) * ((y * y) * (y * y))
                      	return tmp
                      
                      function code(x, y)
                      	tmp = 0.0
                      	if (y <= 2e+127)
                      		tmp = Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * 0.008333333333333333)))))) / y);
                      	else
                      		tmp = Float64(Float64(0.008333333333333333 + Float64(Float64(x * x) * -0.004166666666666667)) * Float64(Float64(y * y) * Float64(y * y)));
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y)
                      	tmp = 0.0;
                      	if (y <= 2e+127)
                      		tmp = (y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))))) / y;
                      	else
                      		tmp = (0.008333333333333333 + ((x * x) * -0.004166666666666667)) * ((y * y) * (y * y));
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_] := If[LessEqual[y, 2e+127], N[(N[(y * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(0.008333333333333333 + N[(N[(x * x), $MachinePrecision] * -0.004166666666666667), $MachinePrecision]), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;y \leq 2 \cdot 10^{+127}:\\
                      \;\;\;\;\frac{y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\right)}{y}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\left(0.008333333333333333 + \left(x \cdot x\right) \cdot -0.004166666666666667\right) \cdot \left(\left(y \cdot y\right) \cdot \left(y \cdot y\right)\right)\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if y < 1.99999999999999991e127

                        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. Simplified63.6%

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

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

                            \[\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 + {y}^{2} \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)\right)}, y\right) \]
                          5. Step-by-step derivation
                            1. *-lowering-*.f64N/A

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

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

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

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

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

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

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

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

                              \[\leadsto \mathsf{/.f64}\left(\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}^{2}\right), \frac{1}{120}\right)\right)\right)\right)\right)\right), y\right) \]
                            10. unpow2N/A

                              \[\leadsto \mathsf{/.f64}\left(\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), \frac{1}{120}\right)\right)\right)\right)\right)\right), y\right) \]
                            11. *-lowering-*.f6456.3%

                              \[\leadsto \mathsf{/.f64}\left(\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), \frac{1}{120}\right)\right)\right)\right)\right)\right), y\right) \]
                          6. Simplified56.3%

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

                          if 1.99999999999999991e127 < 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. unpow2N/A

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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-*.f6491.4%

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(1, \mathsf{*.f64}\left(x, \mathsf{*.f64}\left(x, \frac{-1}{2}\right)\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. Simplified91.4%

                            \[\leadsto \left(1 + x \cdot \left(x \cdot -0.5\right)\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)} \]
                          9. Taylor expanded in y around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{240}\right)\right), \left({y}^{4}\right)\right) \]
                            14. metadata-evalN/A

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

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

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

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

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

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{240}\right)\right), \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \left(y \cdot \color{blue}{y}\right)\right)\right) \]
                            20. *-lowering-*.f6491.4%

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{+.f64}\left(\frac{1}{120}, \mathsf{*.f64}\left(\mathsf{*.f64}\left(x, x\right), \frac{-1}{240}\right)\right), \mathsf{*.f64}\left(\mathsf{*.f64}\left(y, y\right), \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right) \]
                          11. Simplified91.4%

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

                        Alternative 11: 56.5% accurate, 11.4× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 5 \cdot 10^{+182}:\\ \;\;\;\;1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\\ \mathbf{else}:\\ \;\;\;\;1 + \left(x \cdot x\right) \cdot -0.5\\ \end{array} \end{array} \]
                        (FPCore (x y)
                         :precision binary64
                         (if (<= x 5e+182)
                           (+ 1.0 (* y (* y (+ 0.16666666666666666 (* (* y y) 0.008333333333333333)))))
                           (+ 1.0 (* (* x x) -0.5))))
                        double code(double x, double y) {
                        	double tmp;
                        	if (x <= 5e+182) {
                        		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
                        	} 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 <= 5d+182) then
                                tmp = 1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * 0.008333333333333333d0))))
                            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 <= 5e+182) {
                        		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
                        	} else {
                        		tmp = 1.0 + ((x * x) * -0.5);
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y):
                        	tmp = 0
                        	if x <= 5e+182:
                        		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))))
                        	else:
                        		tmp = 1.0 + ((x * x) * -0.5)
                        	return tmp
                        
                        function code(x, y)
                        	tmp = 0.0
                        	if (x <= 5e+182)
                        		tmp = Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * 0.008333333333333333)))));
                        	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 <= 5e+182)
                        		tmp = 1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
                        	else
                        		tmp = 1.0 + ((x * x) * -0.5);
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_] := If[LessEqual[x, 5e+182], N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $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 5 \cdot 10^{+182}:\\
                        \;\;\;\;1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\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 < 4.99999999999999973e182

                          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.3%

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

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

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

                            if 4.99999999999999973e182 < 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.f6451.6%

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

                              \[\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. *-lowering-*.f64N/A

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

                                \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{-1}{2}, \left(x \cdot \color{blue}{x}\right)\right)\right) \]
                              4. *-lowering-*.f6429.6%

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

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

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

                          Alternative 12: 39.1% accurate, 12.0× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 2.4 \cdot 10^{-24}:\\ \;\;\;\;1\\ \mathbf{elif}\;y \leq 1.4 \cdot 10^{+162}:\\ \;\;\;\;1 + \left(x \cdot x\right) \cdot -0.5\\ \mathbf{else}:\\ \;\;\;\;0.16666666666666666 \cdot \left(y \cdot y\right)\\ \end{array} \end{array} \]
                          (FPCore (x y)
                           :precision binary64
                           (if (<= y 2.4e-24)
                             1.0
                             (if (<= y 1.4e+162)
                               (+ 1.0 (* (* x x) -0.5))
                               (* 0.16666666666666666 (* y y)))))
                          double code(double x, double y) {
                          	double tmp;
                          	if (y <= 2.4e-24) {
                          		tmp = 1.0;
                          	} else if (y <= 1.4e+162) {
                          		tmp = 1.0 + ((x * x) * -0.5);
                          	} 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.4d-24) then
                                  tmp = 1.0d0
                              else if (y <= 1.4d+162) then
                                  tmp = 1.0d0 + ((x * x) * (-0.5d0))
                              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.4e-24) {
                          		tmp = 1.0;
                          	} else if (y <= 1.4e+162) {
                          		tmp = 1.0 + ((x * x) * -0.5);
                          	} else {
                          		tmp = 0.16666666666666666 * (y * y);
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y):
                          	tmp = 0
                          	if y <= 2.4e-24:
                          		tmp = 1.0
                          	elif y <= 1.4e+162:
                          		tmp = 1.0 + ((x * x) * -0.5)
                          	else:
                          		tmp = 0.16666666666666666 * (y * y)
                          	return tmp
                          
                          function code(x, y)
                          	tmp = 0.0
                          	if (y <= 2.4e-24)
                          		tmp = 1.0;
                          	elseif (y <= 1.4e+162)
                          		tmp = Float64(1.0 + Float64(Float64(x * x) * -0.5));
                          	else
                          		tmp = Float64(0.16666666666666666 * Float64(y * y));
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y)
                          	tmp = 0.0;
                          	if (y <= 2.4e-24)
                          		tmp = 1.0;
                          	elseif (y <= 1.4e+162)
                          		tmp = 1.0 + ((x * x) * -0.5);
                          	else
                          		tmp = 0.16666666666666666 * (y * y);
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_] := If[LessEqual[y, 2.4e-24], 1.0, If[LessEqual[y, 1.4e+162], N[(1.0 + N[(N[(x * x), $MachinePrecision] * -0.5), $MachinePrecision]), $MachinePrecision], N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;y \leq 2.4 \cdot 10^{-24}:\\
                          \;\;\;\;1\\
                          
                          \mathbf{elif}\;y \leq 1.4 \cdot 10^{+162}:\\
                          \;\;\;\;1 + \left(x \cdot x\right) \cdot -0.5\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;0.16666666666666666 \cdot \left(y \cdot y\right)\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if y < 2.3999999999999998e-24

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

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

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

                              \[\leadsto \color{blue}{1} \]
                            7. Step-by-step derivation
                              1. Simplified42.6%

                                \[\leadsto \color{blue}{1} \]

                              if 2.3999999999999998e-24 < y < 1.39999999999999995e162

                              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.f6421.2%

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

                                \[\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. *-lowering-*.f64N/A

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

                                  \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{-1}{2}, \left(x \cdot \color{blue}{x}\right)\right)\right) \]
                                4. *-lowering-*.f6429.3%

                                  \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \color{blue}{x}\right)\right)\right) \]
                              8. Simplified29.3%

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

                              if 1.39999999999999995e162 < 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. Simplified56.3%

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

                                  \[\leadsto \color{blue}{1 + \frac{1}{6} \cdot {y}^{2}} \]
                                3. 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-*.f6456.3%

                                    \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right) \]
                                4. Simplified56.3%

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

                                  \[\leadsto \color{blue}{\frac{1}{6} \cdot {y}^{2}} \]
                                6. 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-*.f6456.3%

                                    \[\leadsto \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right) \]
                                7. Simplified56.3%

                                  \[\leadsto \color{blue}{0.16666666666666666 \cdot \left(y \cdot y\right)} \]
                              5. Recombined 3 regimes into one program.
                              6. Final simplification42.7%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 2.4 \cdot 10^{-24}:\\ \;\;\;\;1\\ \mathbf{elif}\;y \leq 1.4 \cdot 10^{+162}:\\ \;\;\;\;1 + \left(x \cdot x\right) \cdot -0.5\\ \mathbf{else}:\\ \;\;\;\;0.16666666666666666 \cdot \left(y \cdot y\right)\\ \end{array} \]
                              7. Add Preprocessing

                              Alternative 13: 51.8% accurate, 14.6× speedup?

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

                                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. Simplified61.9%

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

                                    \[\leadsto \color{blue}{1 + \frac{1}{6} \cdot {y}^{2}} \]
                                  3. 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-*.f6451.4%

                                      \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right) \]
                                  4. Simplified51.4%

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

                                  if 1.1599999999999999e-6 < 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. Simplified62.1%

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

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

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

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

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

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

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

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

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

                                        \[\leadsto {y}^{2} \cdot \left(\frac{1}{6} \cdot \left(\frac{1}{{y}^{2}} \cdot {y}^{2}\right) + \color{blue}{\frac{1}{120}} \cdot {y}^{2}\right) \]
                                      7. lft-mult-inverseN/A

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

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

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

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

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

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

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

                                        \[\leadsto \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) \]
                                      15. *-lowering-*.f64N/A

                                        \[\leadsto \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) \]
                                      16. unpow2N/A

                                        \[\leadsto \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) \]
                                      17. *-lowering-*.f6444.2%

                                        \[\leadsto \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) \]
                                    7. Simplified44.2%

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

                                      \[\leadsto \color{blue}{\frac{1}{120} \cdot {y}^{4}} \]
                                    9. Step-by-step derivation
                                      1. metadata-evalN/A

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

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

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

                                        \[\leadsto {y}^{2} \cdot \color{blue}{\left(\frac{1}{120} \cdot {y}^{2}\right)} \]
                                      5. unpow2N/A

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

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \left(y \cdot \color{blue}{\frac{1}{120}}\right)\right)\right)\right) \]
                                      14. *-lowering-*.f6444.2%

                                        \[\leadsto \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \mathsf{*.f64}\left(y, \color{blue}{\frac{1}{120}}\right)\right)\right)\right) \]
                                    10. Simplified44.2%

                                      \[\leadsto \color{blue}{y \cdot \left(y \cdot \left(y \cdot \left(y \cdot 0.008333333333333333\right)\right)\right)} \]
                                  5. Recombined 2 regimes into one program.
                                  6. Add Preprocessing

                                  Alternative 14: 48.6% accurate, 17.1× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 7.5 \cdot 10^{+175}:\\ \;\;\;\;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 7.5e+175)
                                     (+ 1.0 (* 0.16666666666666666 (* y y)))
                                     (+ 1.0 (* (* x x) -0.5))))
                                  double code(double x, double y) {
                                  	double tmp;
                                  	if (x <= 7.5e+175) {
                                  		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 <= 7.5d+175) 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 <= 7.5e+175) {
                                  		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 <= 7.5e+175:
                                  		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 <= 7.5e+175)
                                  		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 <= 7.5e+175)
                                  		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, 7.5e+175], 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 7.5 \cdot 10^{+175}:\\
                                  \;\;\;\;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 < 7.5000000000000001e175

                                    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.8%

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

                                        \[\leadsto \color{blue}{1 + \frac{1}{6} \cdot {y}^{2}} \]
                                      3. 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.1%

                                          \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right) \]
                                      4. Simplified52.1%

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

                                      if 7.5000000000000001e175 < 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.f6451.6%

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

                                        \[\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. *-lowering-*.f64N/A

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

                                          \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{-1}{2}, \left(x \cdot \color{blue}{x}\right)\right)\right) \]
                                        4. *-lowering-*.f6431.0%

                                          \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{-1}{2}, \mathsf{*.f64}\left(x, \color{blue}{x}\right)\right)\right) \]
                                      8. Simplified31.0%

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

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

                                    Alternative 15: 38.0% accurate, 20.5× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 1.16 \cdot 10^{-6}:\\ \;\;\;\;1\\ \mathbf{else}:\\ \;\;\;\;0.16666666666666666 \cdot \left(y \cdot y\right)\\ \end{array} \end{array} \]
                                    (FPCore (x y)
                                     :precision binary64
                                     (if (<= y 1.16e-6) 1.0 (* 0.16666666666666666 (* y y))))
                                    double code(double x, double y) {
                                    	double tmp;
                                    	if (y <= 1.16e-6) {
                                    		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 <= 1.16d-6) 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 <= 1.16e-6) {
                                    		tmp = 1.0;
                                    	} else {
                                    		tmp = 0.16666666666666666 * (y * y);
                                    	}
                                    	return tmp;
                                    }
                                    
                                    def code(x, y):
                                    	tmp = 0
                                    	if y <= 1.16e-6:
                                    		tmp = 1.0
                                    	else:
                                    		tmp = 0.16666666666666666 * (y * y)
                                    	return tmp
                                    
                                    function code(x, y)
                                    	tmp = 0.0
                                    	if (y <= 1.16e-6)
                                    		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 <= 1.16e-6)
                                    		tmp = 1.0;
                                    	else
                                    		tmp = 0.16666666666666666 * (y * y);
                                    	end
                                    	tmp_2 = tmp;
                                    end
                                    
                                    code[x_, y_] := If[LessEqual[y, 1.16e-6], 1.0, N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;y \leq 1.16 \cdot 10^{-6}:\\
                                    \;\;\;\;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 < 1.1599999999999999e-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.9%

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

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

                                        \[\leadsto \color{blue}{1} \]
                                      7. Step-by-step derivation
                                        1. Simplified43.8%

                                          \[\leadsto \color{blue}{1} \]

                                        if 1.1599999999999999e-6 < 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. Simplified62.1%

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

                                            \[\leadsto \color{blue}{1 + \frac{1}{6} \cdot {y}^{2}} \]
                                          3. 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-*.f6432.6%

                                              \[\leadsto \mathsf{+.f64}\left(1, \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right)\right) \]
                                          4. Simplified32.6%

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

                                            \[\leadsto \color{blue}{\frac{1}{6} \cdot {y}^{2}} \]
                                          6. 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-*.f6432.6%

                                              \[\leadsto \mathsf{*.f64}\left(\frac{1}{6}, \mathsf{*.f64}\left(y, \color{blue}{y}\right)\right) \]
                                          7. Simplified32.6%

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

                                        Alternative 16: 28.9% 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.f6458.7%

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

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

                                          \[\leadsto \color{blue}{1} \]
                                        7. Step-by-step derivation
                                          1. Simplified34.4%

                                            \[\leadsto \color{blue}{1} \]
                                          2. Add Preprocessing

                                          Reproduce

                                          ?
                                          herbie shell --seed 2024152 
                                          (FPCore (x y)
                                            :name "Linear.Quaternion:$csin from linear-1.19.1.3"
                                            :precision binary64
                                            (* (cos x) (/ (sinh y) y)))