Linear.Quaternion:$ccosh from linear-1.19.1.3

Percentage Accurate: 88.5% → 99.8%
Time: 14.3s
Alternatives: 23
Speedup: 1.0×

Specification

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

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

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

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

Alternative 1: 99.8% accurate, 1.0× speedup?

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

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

    \[\frac{\sin x \cdot \sinh y}{x} \]
  2. Add Preprocessing
  3. Step-by-step derivation
    1. associate-/l*N/A

      \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
    2. *-commutativeN/A

      \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
    3. *-lowering-*.f64N/A

      \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
    4. /-lowering-/.f64N/A

      \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
    5. sinh-lowering-sinh.f64N/A

      \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
    6. sin-lowering-sin.f6499.9

      \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
  4. Applied egg-rr99.9%

    \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
  5. Add Preprocessing

Alternative 2: 86.9% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := \frac{\sinh y \cdot \sin x}{x}\\ \mathbf{if}\;t\_0 \leq -\infty:\\ \;\;\;\;\frac{\sinh y \cdot \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot -0.16666666666666666, x\right)}{x}\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{\sin x}{x} \cdot \mathsf{fma}\left(y \cdot y, y \cdot 0.16666666666666666, y\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\sinh y}{x}\\ \end{array} \end{array} \]
(FPCore (x y)
 :precision binary64
 (let* ((t_0 (/ (* (sinh y) (sin x)) x)))
   (if (<= t_0 (- INFINITY))
     (/ (* (sinh y) (fma x (* (* x x) -0.16666666666666666) x)) x)
     (if (<= t_0 5e-7)
       (* (/ (sin x) x) (fma (* y y) (* y 0.16666666666666666) y))
       (* x (/ (sinh y) x))))))
double code(double x, double y) {
	double t_0 = (sinh(y) * sin(x)) / x;
	double tmp;
	if (t_0 <= -((double) INFINITY)) {
		tmp = (sinh(y) * fma(x, ((x * x) * -0.16666666666666666), x)) / x;
	} else if (t_0 <= 5e-7) {
		tmp = (sin(x) / x) * fma((y * y), (y * 0.16666666666666666), y);
	} else {
		tmp = x * (sinh(y) / x);
	}
	return tmp;
}
function code(x, y)
	t_0 = Float64(Float64(sinh(y) * sin(x)) / x)
	tmp = 0.0
	if (t_0 <= Float64(-Inf))
		tmp = Float64(Float64(sinh(y) * fma(x, Float64(Float64(x * x) * -0.16666666666666666), x)) / x);
	elseif (t_0 <= 5e-7)
		tmp = Float64(Float64(sin(x) / x) * fma(Float64(y * y), Float64(y * 0.16666666666666666), y));
	else
		tmp = Float64(x * Float64(sinh(y) / x));
	end
	return tmp
end
code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], N[(N[(N[Sinh[y], $MachinePrecision] * N[(x * N[(N[(x * x), $MachinePrecision] * -0.16666666666666666), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], If[LessEqual[t$95$0, 5e-7], N[(N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * N[(y * 0.16666666666666666), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Sinh[y], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := \frac{\sinh y \cdot \sin x}{x}\\
\mathbf{if}\;t\_0 \leq -\infty:\\
\;\;\;\;\frac{\sinh y \cdot \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot -0.16666666666666666, x\right)}{x}\\

\mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\
\;\;\;\;\frac{\sin x}{x} \cdot \mathsf{fma}\left(y \cdot y, y \cdot 0.16666666666666666, y\right)\\

\mathbf{else}:\\
\;\;\;\;x \cdot \frac{\sinh y}{x}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -inf.0

    1. Initial program 100.0%

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

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

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(x, \color{blue}{{x}^{2} \cdot \frac{-1}{6}}, x\right) \cdot \sinh y}{x} \]
      7. unpow2N/A

        \[\leadsto \frac{\mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot \sinh y}{x} \]
      8. *-lowering-*.f6468.5

        \[\leadsto \frac{\mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot \sinh y}{x} \]
    5. Simplified68.5%

      \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(x, \left(x \cdot x\right) \cdot -0.16666666666666666, x\right)} \cdot \sinh y}{x} \]

    if -inf.0 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

    1. Initial program 80.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\sin x}{x} \cdot \color{blue}{\left(y \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)} \]
    5. Simplified98.6%

      \[\leadsto \color{blue}{\frac{\sin x}{x} \cdot \mathsf{fma}\left(y \cdot y, y \cdot 0.16666666666666666, y\right)} \]

    if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

    1. Initial program 100.0%

      \[\frac{\sin x \cdot \sinh y}{x} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. associate-/l*N/A

        \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
      2. *-commutativeN/A

        \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
      3. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
      4. /-lowering-/.f64N/A

        \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
      5. sinh-lowering-sinh.f64N/A

        \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
      6. sin-lowering-sin.f64100.0

        \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
    4. Applied egg-rr100.0%

      \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
    5. Taylor expanded in x around 0

      \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{x} \]
    6. Step-by-step derivation
      1. Simplified81.5%

        \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{x} \]
    7. Recombined 3 regimes into one program.
    8. Final simplification87.9%

      \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -\infty:\\ \;\;\;\;\frac{\sinh y \cdot \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot -0.16666666666666666, x\right)}{x}\\ \mathbf{elif}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{\sin x}{x} \cdot \mathsf{fma}\left(y \cdot y, y \cdot 0.16666666666666666, y\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\sinh y}{x}\\ \end{array} \]
    9. Add Preprocessing

    Alternative 3: 86.1% accurate, 0.4× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_0 := \frac{\sinh y \cdot \sin x}{x}\\ \mathbf{if}\;t\_0 \leq -\infty:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(-0.0001984126984126984, x \cdot x, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{\sin x}{x} \cdot \mathsf{fma}\left(y \cdot y, y \cdot 0.16666666666666666, y\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\sinh y}{x}\\ \end{array} \end{array} \]
    (FPCore (x y)
     :precision binary64
     (let* ((t_0 (/ (* (sinh y) (sin x)) x)))
       (if (<= t_0 (- INFINITY))
         (*
          (/
           (fma
            (fma
             (* y y)
             (fma (* y y) 0.0001984126984126984 0.008333333333333333)
             0.16666666666666666)
            (* y (* y y))
            y)
           x)
          (fma
           (fma
            (* x x)
            (fma -0.0001984126984126984 (* x x) 0.008333333333333333)
            -0.16666666666666666)
           (* x (* x x))
           x))
         (if (<= t_0 5e-7)
           (* (/ (sin x) x) (fma (* y y) (* y 0.16666666666666666) y))
           (* x (/ (sinh y) x))))))
    double code(double x, double y) {
    	double t_0 = (sinh(y) * sin(x)) / x;
    	double tmp;
    	if (t_0 <= -((double) INFINITY)) {
    		tmp = (fma(fma((y * y), fma((y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666), (y * (y * y)), y) / x) * fma(fma((x * x), fma(-0.0001984126984126984, (x * x), 0.008333333333333333), -0.16666666666666666), (x * (x * x)), x);
    	} else if (t_0 <= 5e-7) {
    		tmp = (sin(x) / x) * fma((y * y), (y * 0.16666666666666666), y);
    	} else {
    		tmp = x * (sinh(y) / x);
    	}
    	return tmp;
    }
    
    function code(x, y)
    	t_0 = Float64(Float64(sinh(y) * sin(x)) / x)
    	tmp = 0.0
    	if (t_0 <= Float64(-Inf))
    		tmp = Float64(Float64(fma(fma(Float64(y * y), fma(Float64(y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666), Float64(y * Float64(y * y)), y) / x) * fma(fma(Float64(x * x), fma(-0.0001984126984126984, Float64(x * x), 0.008333333333333333), -0.16666666666666666), Float64(x * Float64(x * x)), x));
    	elseif (t_0 <= 5e-7)
    		tmp = Float64(Float64(sin(x) / x) * fma(Float64(y * y), Float64(y * 0.16666666666666666), y));
    	else
    		tmp = Float64(x * Float64(sinh(y) / x));
    	end
    	return tmp
    end
    
    code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], N[(N[(N[(N[(N[(y * y), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984 + 0.008333333333333333), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision] / x), $MachinePrecision] * N[(N[(N[(x * x), $MachinePrecision] * N[(-0.0001984126984126984 * N[(x * x), $MachinePrecision] + 0.008333333333333333), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] * N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e-7], N[(N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * N[(y * 0.16666666666666666), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Sinh[y], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_0 := \frac{\sinh y \cdot \sin x}{x}\\
    \mathbf{if}\;t\_0 \leq -\infty:\\
    \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(-0.0001984126984126984, x \cdot x, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)\\
    
    \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\
    \;\;\;\;\frac{\sin x}{x} \cdot \mathsf{fma}\left(y \cdot y, y \cdot 0.16666666666666666, y\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;x \cdot \frac{\sinh y}{x}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -inf.0

      1. Initial program 100.0%

        \[\frac{\sin x \cdot \sinh y}{x} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. associate-/l*N/A

          \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
        2. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
        3. *-lowering-*.f64N/A

          \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
        4. /-lowering-/.f64N/A

          \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
        5. sinh-lowering-sinh.f64N/A

          \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
        6. sin-lowering-sin.f64100.0

          \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
      4. Applied egg-rr100.0%

        \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
      5. Taylor expanded in y around 0

        \[\leadsto \frac{\color{blue}{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)}}{x} \cdot \sin x \]
      6. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \frac{\color{blue}{\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) \cdot y}}{x} \cdot \sin x \]
        2. +-commutativeN/A

          \[\leadsto \frac{\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) + 1\right)} \cdot y}{x} \cdot \sin x \]
        3. distribute-lft1-inN/A

          \[\leadsto \frac{\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) \cdot y + y}}{x} \cdot \sin x \]
        4. *-commutativeN/A

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

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

          \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot y\right) + y}{x} \cdot \sin x \]
        7. unpow3N/A

          \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \color{blue}{{y}^{3}} + y}{x} \cdot \sin x \]
        8. accelerator-lowering-fma.f64N/A

          \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right), {y}^{3}, y\right)}}{x} \cdot \sin x \]
      7. Simplified92.9%

        \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}}{x} \cdot \sin x \]
      8. Taylor expanded in x around 0

        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{\left(x \cdot \left(1 + {x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right)\right)\right)} \]
      9. Step-by-step derivation
        1. +-commutativeN/A

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{\mathsf{fma}\left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}, x \cdot {x}^{2}, x\right)} \]
      10. Simplified65.0%

        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(-0.0001984126984126984, x \cdot x, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)} \]

      if -inf.0 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

      1. Initial program 80.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{\sin x}{x} \cdot \color{blue}{\left(y \cdot \left(1 + \frac{1}{6} \cdot {y}^{2}\right)\right)} \]
      5. Simplified98.6%

        \[\leadsto \color{blue}{\frac{\sin x}{x} \cdot \mathsf{fma}\left(y \cdot y, y \cdot 0.16666666666666666, y\right)} \]

      if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

      1. Initial program 100.0%

        \[\frac{\sin x \cdot \sinh y}{x} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. associate-/l*N/A

          \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
        2. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
        3. *-lowering-*.f64N/A

          \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
        4. /-lowering-/.f64N/A

          \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
        5. sinh-lowering-sinh.f64N/A

          \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
        6. sin-lowering-sin.f64100.0

          \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
      4. Applied egg-rr100.0%

        \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
      5. Taylor expanded in x around 0

        \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{x} \]
      6. Step-by-step derivation
        1. Simplified81.5%

          \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{x} \]
      7. Recombined 3 regimes into one program.
      8. Final simplification87.2%

        \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -\infty:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(-0.0001984126984126984, x \cdot x, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)\\ \mathbf{elif}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{\sin x}{x} \cdot \mathsf{fma}\left(y \cdot y, y \cdot 0.16666666666666666, y\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\sinh y}{x}\\ \end{array} \]
      9. Add Preprocessing

      Alternative 4: 86.1% accurate, 0.4× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_0 := \frac{\sinh y \cdot \sin x}{x}\\ \mathbf{if}\;t\_0 \leq -\infty:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(-0.0001984126984126984, x \cdot x, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{x} \cdot \left(\sin x \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\sinh y}{x}\\ \end{array} \end{array} \]
      (FPCore (x y)
       :precision binary64
       (let* ((t_0 (/ (* (sinh y) (sin x)) x)))
         (if (<= t_0 (- INFINITY))
           (*
            (/
             (fma
              (fma
               (* y y)
               (fma (* y y) 0.0001984126984126984 0.008333333333333333)
               0.16666666666666666)
              (* y (* y y))
              y)
             x)
            (fma
             (fma
              (* x x)
              (fma -0.0001984126984126984 (* x x) 0.008333333333333333)
              -0.16666666666666666)
             (* x (* x x))
             x))
           (if (<= t_0 5e-7)
             (* (/ y x) (* (sin x) (fma y (* y 0.16666666666666666) 1.0)))
             (* x (/ (sinh y) x))))))
      double code(double x, double y) {
      	double t_0 = (sinh(y) * sin(x)) / x;
      	double tmp;
      	if (t_0 <= -((double) INFINITY)) {
      		tmp = (fma(fma((y * y), fma((y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666), (y * (y * y)), y) / x) * fma(fma((x * x), fma(-0.0001984126984126984, (x * x), 0.008333333333333333), -0.16666666666666666), (x * (x * x)), x);
      	} else if (t_0 <= 5e-7) {
      		tmp = (y / x) * (sin(x) * fma(y, (y * 0.16666666666666666), 1.0));
      	} else {
      		tmp = x * (sinh(y) / x);
      	}
      	return tmp;
      }
      
      function code(x, y)
      	t_0 = Float64(Float64(sinh(y) * sin(x)) / x)
      	tmp = 0.0
      	if (t_0 <= Float64(-Inf))
      		tmp = Float64(Float64(fma(fma(Float64(y * y), fma(Float64(y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666), Float64(y * Float64(y * y)), y) / x) * fma(fma(Float64(x * x), fma(-0.0001984126984126984, Float64(x * x), 0.008333333333333333), -0.16666666666666666), Float64(x * Float64(x * x)), x));
      	elseif (t_0 <= 5e-7)
      		tmp = Float64(Float64(y / x) * Float64(sin(x) * fma(y, Float64(y * 0.16666666666666666), 1.0)));
      	else
      		tmp = Float64(x * Float64(sinh(y) / x));
      	end
      	return tmp
      end
      
      code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], N[(N[(N[(N[(N[(y * y), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984 + 0.008333333333333333), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision] / x), $MachinePrecision] * N[(N[(N[(x * x), $MachinePrecision] * N[(-0.0001984126984126984 * N[(x * x), $MachinePrecision] + 0.008333333333333333), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] * N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e-7], N[(N[(y / x), $MachinePrecision] * N[(N[Sin[x], $MachinePrecision] * N[(y * N[(y * 0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Sinh[y], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_0 := \frac{\sinh y \cdot \sin x}{x}\\
      \mathbf{if}\;t\_0 \leq -\infty:\\
      \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(-0.0001984126984126984, x \cdot x, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)\\
      
      \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\
      \;\;\;\;\frac{y}{x} \cdot \left(\sin x \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;x \cdot \frac{\sinh y}{x}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -inf.0

        1. Initial program 100.0%

          \[\frac{\sin x \cdot \sinh y}{x} \]
        2. Add Preprocessing
        3. Step-by-step derivation
          1. associate-/l*N/A

            \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
          2. *-commutativeN/A

            \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
          3. *-lowering-*.f64N/A

            \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
          4. /-lowering-/.f64N/A

            \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
          5. sinh-lowering-sinh.f64N/A

            \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
          6. sin-lowering-sin.f64100.0

            \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
        4. Applied egg-rr100.0%

          \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
        5. Taylor expanded in y around 0

          \[\leadsto \frac{\color{blue}{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)}}{x} \cdot \sin x \]
        6. Step-by-step derivation
          1. *-commutativeN/A

            \[\leadsto \frac{\color{blue}{\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) \cdot y}}{x} \cdot \sin x \]
          2. +-commutativeN/A

            \[\leadsto \frac{\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) + 1\right)} \cdot y}{x} \cdot \sin x \]
          3. distribute-lft1-inN/A

            \[\leadsto \frac{\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) \cdot y + y}}{x} \cdot \sin x \]
          4. *-commutativeN/A

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

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

            \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot y\right) + y}{x} \cdot \sin x \]
          7. unpow3N/A

            \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \color{blue}{{y}^{3}} + y}{x} \cdot \sin x \]
          8. accelerator-lowering-fma.f64N/A

            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right), {y}^{3}, y\right)}}{x} \cdot \sin x \]
        7. Simplified92.9%

          \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}}{x} \cdot \sin x \]
        8. Taylor expanded in x around 0

          \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{\left(x \cdot \left(1 + {x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right)\right)\right)} \]
        9. Step-by-step derivation
          1. +-commutativeN/A

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{\mathsf{fma}\left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}, x \cdot {x}^{2}, x\right)} \]
        10. Simplified65.0%

          \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(-0.0001984126984126984, x \cdot x, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)} \]

        if -inf.0 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

        1. Initial program 80.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{y \cdot \left(\sin x \cdot \left(\color{blue}{y \cdot \left(\frac{1}{6} \cdot y\right)} + 1\right)\right)}{x} \]
          15. accelerator-lowering-fma.f64N/A

            \[\leadsto \frac{y \cdot \left(\sin x \cdot \color{blue}{\mathsf{fma}\left(y, \frac{1}{6} \cdot y, 1\right)}\right)}{x} \]
          16. *-commutativeN/A

            \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot \frac{1}{6}}, 1\right)\right)}{x} \]
          17. *-lowering-*.f6479.2

            \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot 0.16666666666666666}, 1\right)\right)}{x} \]
        5. Simplified79.2%

          \[\leadsto \frac{\color{blue}{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)}}{x} \]
        6. Step-by-step derivation
          1. *-commutativeN/A

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

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

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

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

            \[\leadsto \left(\color{blue}{\sin x} \cdot \left(y \cdot \left(y \cdot \frac{1}{6}\right) + 1\right)\right) \cdot \frac{y}{x} \]
          6. accelerator-lowering-fma.f64N/A

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

            \[\leadsto \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot \frac{1}{6}}, 1\right)\right) \cdot \frac{y}{x} \]
          8. /-lowering-/.f6498.5

            \[\leadsto \left(\sin x \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right) \cdot \color{blue}{\frac{y}{x}} \]
        7. Applied egg-rr98.5%

          \[\leadsto \color{blue}{\left(\sin x \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right) \cdot \frac{y}{x}} \]

        if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

        1. Initial program 100.0%

          \[\frac{\sin x \cdot \sinh y}{x} \]
        2. Add Preprocessing
        3. Step-by-step derivation
          1. associate-/l*N/A

            \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
          2. *-commutativeN/A

            \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
          3. *-lowering-*.f64N/A

            \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
          4. /-lowering-/.f64N/A

            \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
          5. sinh-lowering-sinh.f64N/A

            \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
          6. sin-lowering-sin.f64100.0

            \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
        4. Applied egg-rr100.0%

          \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
        5. Taylor expanded in x around 0

          \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{x} \]
        6. Step-by-step derivation
          1. Simplified81.5%

            \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{x} \]
        7. Recombined 3 regimes into one program.
        8. Final simplification87.1%

          \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -\infty:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(-0.0001984126984126984, x \cdot x, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)\\ \mathbf{elif}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{x} \cdot \left(\sin x \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\sinh y}{x}\\ \end{array} \]
        9. Add Preprocessing

        Alternative 5: 85.8% accurate, 0.4× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_0 := \frac{\sinh y \cdot \sin x}{x}\\ \mathbf{if}\;t\_0 \leq -\infty:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(-0.0001984126984126984, x \cdot x, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\ \;\;\;\;y \cdot \frac{\sin x}{x}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\sinh y}{x}\\ \end{array} \end{array} \]
        (FPCore (x y)
         :precision binary64
         (let* ((t_0 (/ (* (sinh y) (sin x)) x)))
           (if (<= t_0 (- INFINITY))
             (*
              (/
               (fma
                (fma
                 (* y y)
                 (fma (* y y) 0.0001984126984126984 0.008333333333333333)
                 0.16666666666666666)
                (* y (* y y))
                y)
               x)
              (fma
               (fma
                (* x x)
                (fma -0.0001984126984126984 (* x x) 0.008333333333333333)
                -0.16666666666666666)
               (* x (* x x))
               x))
             (if (<= t_0 5e-7) (* y (/ (sin x) x)) (* x (/ (sinh y) x))))))
        double code(double x, double y) {
        	double t_0 = (sinh(y) * sin(x)) / x;
        	double tmp;
        	if (t_0 <= -((double) INFINITY)) {
        		tmp = (fma(fma((y * y), fma((y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666), (y * (y * y)), y) / x) * fma(fma((x * x), fma(-0.0001984126984126984, (x * x), 0.008333333333333333), -0.16666666666666666), (x * (x * x)), x);
        	} else if (t_0 <= 5e-7) {
        		tmp = y * (sin(x) / x);
        	} else {
        		tmp = x * (sinh(y) / x);
        	}
        	return tmp;
        }
        
        function code(x, y)
        	t_0 = Float64(Float64(sinh(y) * sin(x)) / x)
        	tmp = 0.0
        	if (t_0 <= Float64(-Inf))
        		tmp = Float64(Float64(fma(fma(Float64(y * y), fma(Float64(y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666), Float64(y * Float64(y * y)), y) / x) * fma(fma(Float64(x * x), fma(-0.0001984126984126984, Float64(x * x), 0.008333333333333333), -0.16666666666666666), Float64(x * Float64(x * x)), x));
        	elseif (t_0 <= 5e-7)
        		tmp = Float64(y * Float64(sin(x) / x));
        	else
        		tmp = Float64(x * Float64(sinh(y) / x));
        	end
        	return tmp
        end
        
        code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], N[(N[(N[(N[(N[(y * y), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984 + 0.008333333333333333), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision] / x), $MachinePrecision] * N[(N[(N[(x * x), $MachinePrecision] * N[(-0.0001984126984126984 * N[(x * x), $MachinePrecision] + 0.008333333333333333), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] * N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e-7], N[(y * N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Sinh[y], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_0 := \frac{\sinh y \cdot \sin x}{x}\\
        \mathbf{if}\;t\_0 \leq -\infty:\\
        \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(-0.0001984126984126984, x \cdot x, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)\\
        
        \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\
        \;\;\;\;y \cdot \frac{\sin x}{x}\\
        
        \mathbf{else}:\\
        \;\;\;\;x \cdot \frac{\sinh y}{x}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -inf.0

          1. Initial program 100.0%

            \[\frac{\sin x \cdot \sinh y}{x} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. associate-/l*N/A

              \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
            2. *-commutativeN/A

              \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
            3. *-lowering-*.f64N/A

              \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
            4. /-lowering-/.f64N/A

              \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
            5. sinh-lowering-sinh.f64N/A

              \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
            6. sin-lowering-sin.f64100.0

              \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
          4. Applied egg-rr100.0%

            \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
          5. Taylor expanded in y around 0

            \[\leadsto \frac{\color{blue}{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)}}{x} \cdot \sin x \]
          6. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \frac{\color{blue}{\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) \cdot y}}{x} \cdot \sin x \]
            2. +-commutativeN/A

              \[\leadsto \frac{\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) + 1\right)} \cdot y}{x} \cdot \sin x \]
            3. distribute-lft1-inN/A

              \[\leadsto \frac{\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) \cdot y + y}}{x} \cdot \sin x \]
            4. *-commutativeN/A

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

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

              \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot y\right) + y}{x} \cdot \sin x \]
            7. unpow3N/A

              \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \color{blue}{{y}^{3}} + y}{x} \cdot \sin x \]
            8. accelerator-lowering-fma.f64N/A

              \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right), {y}^{3}, y\right)}}{x} \cdot \sin x \]
          7. Simplified92.9%

            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}}{x} \cdot \sin x \]
          8. Taylor expanded in x around 0

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{\left(x \cdot \left(1 + {x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right)\right)\right)} \]
          9. Step-by-step derivation
            1. +-commutativeN/A

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

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

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

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

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

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

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

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

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

              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{\mathsf{fma}\left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}, x \cdot {x}^{2}, x\right)} \]
          10. Simplified65.0%

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(-0.0001984126984126984, x \cdot x, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)} \]

          if -inf.0 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

          1. Initial program 80.5%

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

            \[\leadsto \color{blue}{\frac{y \cdot \sin x}{x}} \]
          4. Step-by-step derivation
            1. associate-/l*N/A

              \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
            2. *-lowering-*.f64N/A

              \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
            3. /-lowering-/.f64N/A

              \[\leadsto y \cdot \color{blue}{\frac{\sin x}{x}} \]
            4. sin-lowering-sin.f6497.6

              \[\leadsto y \cdot \frac{\color{blue}{\sin x}}{x} \]
          5. Simplified97.6%

            \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]

          if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

          1. Initial program 100.0%

            \[\frac{\sin x \cdot \sinh y}{x} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. associate-/l*N/A

              \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
            2. *-commutativeN/A

              \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
            3. *-lowering-*.f64N/A

              \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
            4. /-lowering-/.f64N/A

              \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
            5. sinh-lowering-sinh.f64N/A

              \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
            6. sin-lowering-sin.f64100.0

              \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
          4. Applied egg-rr100.0%

            \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
          5. Taylor expanded in x around 0

            \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{x} \]
          6. Step-by-step derivation
            1. Simplified81.5%

              \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{x} \]
          7. Recombined 3 regimes into one program.
          8. Final simplification86.6%

            \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -\infty:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(-0.0001984126984126984, x \cdot x, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)\\ \mathbf{elif}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;y \cdot \frac{\sin x}{x}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\sinh y}{x}\\ \end{array} \]
          9. Add Preprocessing

          Alternative 6: 84.1% accurate, 0.4× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_0 := \frac{\sinh y \cdot \sin x}{x}\\ t_1 := \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x}\\ \mathbf{if}\;t\_0 \leq -\infty:\\ \;\;\;\;t\_1 \cdot \mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(-0.0001984126984126984, x \cdot x, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\ \;\;\;\;y \cdot \frac{\sin x}{x}\\ \mathbf{else}:\\ \;\;\;\;x \cdot t\_1\\ \end{array} \end{array} \]
          (FPCore (x y)
           :precision binary64
           (let* ((t_0 (/ (* (sinh y) (sin x)) x))
                  (t_1
                   (/
                    (fma
                     (fma
                      (* y y)
                      (fma (* y y) 0.0001984126984126984 0.008333333333333333)
                      0.16666666666666666)
                     (* y (* y y))
                     y)
                    x)))
             (if (<= t_0 (- INFINITY))
               (*
                t_1
                (fma
                 (fma
                  (* x x)
                  (fma -0.0001984126984126984 (* x x) 0.008333333333333333)
                  -0.16666666666666666)
                 (* x (* x x))
                 x))
               (if (<= t_0 5e-7) (* y (/ (sin x) x)) (* x t_1)))))
          double code(double x, double y) {
          	double t_0 = (sinh(y) * sin(x)) / x;
          	double t_1 = fma(fma((y * y), fma((y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666), (y * (y * y)), y) / x;
          	double tmp;
          	if (t_0 <= -((double) INFINITY)) {
          		tmp = t_1 * fma(fma((x * x), fma(-0.0001984126984126984, (x * x), 0.008333333333333333), -0.16666666666666666), (x * (x * x)), x);
          	} else if (t_0 <= 5e-7) {
          		tmp = y * (sin(x) / x);
          	} else {
          		tmp = x * t_1;
          	}
          	return tmp;
          }
          
          function code(x, y)
          	t_0 = Float64(Float64(sinh(y) * sin(x)) / x)
          	t_1 = Float64(fma(fma(Float64(y * y), fma(Float64(y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666), Float64(y * Float64(y * y)), y) / x)
          	tmp = 0.0
          	if (t_0 <= Float64(-Inf))
          		tmp = Float64(t_1 * fma(fma(Float64(x * x), fma(-0.0001984126984126984, Float64(x * x), 0.008333333333333333), -0.16666666666666666), Float64(x * Float64(x * x)), x));
          	elseif (t_0 <= 5e-7)
          		tmp = Float64(y * Float64(sin(x) / x));
          	else
          		tmp = Float64(x * t_1);
          	end
          	return tmp
          end
          
          code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(N[(y * y), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984 + 0.008333333333333333), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], N[(t$95$1 * N[(N[(N[(x * x), $MachinePrecision] * N[(-0.0001984126984126984 * N[(x * x), $MachinePrecision] + 0.008333333333333333), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] * N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e-7], N[(y * N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(x * t$95$1), $MachinePrecision]]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_0 := \frac{\sinh y \cdot \sin x}{x}\\
          t_1 := \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x}\\
          \mathbf{if}\;t\_0 \leq -\infty:\\
          \;\;\;\;t\_1 \cdot \mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(-0.0001984126984126984, x \cdot x, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)\\
          
          \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\
          \;\;\;\;y \cdot \frac{\sin x}{x}\\
          
          \mathbf{else}:\\
          \;\;\;\;x \cdot t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -inf.0

            1. Initial program 100.0%

              \[\frac{\sin x \cdot \sinh y}{x} \]
            2. Add Preprocessing
            3. Step-by-step derivation
              1. associate-/l*N/A

                \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
              2. *-commutativeN/A

                \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
              3. *-lowering-*.f64N/A

                \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
              4. /-lowering-/.f64N/A

                \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
              5. sinh-lowering-sinh.f64N/A

                \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
              6. sin-lowering-sin.f64100.0

                \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
            4. Applied egg-rr100.0%

              \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
            5. Taylor expanded in y around 0

              \[\leadsto \frac{\color{blue}{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)}}{x} \cdot \sin x \]
            6. Step-by-step derivation
              1. *-commutativeN/A

                \[\leadsto \frac{\color{blue}{\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) \cdot y}}{x} \cdot \sin x \]
              2. +-commutativeN/A

                \[\leadsto \frac{\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) + 1\right)} \cdot y}{x} \cdot \sin x \]
              3. distribute-lft1-inN/A

                \[\leadsto \frac{\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) \cdot y + y}}{x} \cdot \sin x \]
              4. *-commutativeN/A

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

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

                \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot y\right) + y}{x} \cdot \sin x \]
              7. unpow3N/A

                \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \color{blue}{{y}^{3}} + y}{x} \cdot \sin x \]
              8. accelerator-lowering-fma.f64N/A

                \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right), {y}^{3}, y\right)}}{x} \cdot \sin x \]
            7. Simplified92.9%

              \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}}{x} \cdot \sin x \]
            8. Taylor expanded in x around 0

              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{\left(x \cdot \left(1 + {x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right)\right)\right)} \]
            9. Step-by-step derivation
              1. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{\mathsf{fma}\left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}, x \cdot {x}^{2}, x\right)} \]
            10. Simplified65.0%

              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(-0.0001984126984126984, x \cdot x, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)} \]

            if -inf.0 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

            1. Initial program 80.5%

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

              \[\leadsto \color{blue}{\frac{y \cdot \sin x}{x}} \]
            4. Step-by-step derivation
              1. associate-/l*N/A

                \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
              2. *-lowering-*.f64N/A

                \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
              3. /-lowering-/.f64N/A

                \[\leadsto y \cdot \color{blue}{\frac{\sin x}{x}} \]
              4. sin-lowering-sin.f6497.6

                \[\leadsto y \cdot \frac{\color{blue}{\sin x}}{x} \]
            5. Simplified97.6%

              \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]

            if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

            1. Initial program 100.0%

              \[\frac{\sin x \cdot \sinh y}{x} \]
            2. Add Preprocessing
            3. Step-by-step derivation
              1. associate-/l*N/A

                \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
              2. *-commutativeN/A

                \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
              3. *-lowering-*.f64N/A

                \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
              4. /-lowering-/.f64N/A

                \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
              5. sinh-lowering-sinh.f64N/A

                \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
              6. sin-lowering-sin.f64100.0

                \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
            4. Applied egg-rr100.0%

              \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
            5. Taylor expanded in y around 0

              \[\leadsto \frac{\color{blue}{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)}}{x} \cdot \sin x \]
            6. Step-by-step derivation
              1. *-commutativeN/A

                \[\leadsto \frac{\color{blue}{\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) \cdot y}}{x} \cdot \sin x \]
              2. +-commutativeN/A

                \[\leadsto \frac{\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) + 1\right)} \cdot y}{x} \cdot \sin x \]
              3. distribute-lft1-inN/A

                \[\leadsto \frac{\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) \cdot y + y}}{x} \cdot \sin x \]
              4. *-commutativeN/A

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

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

                \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot y\right) + y}{x} \cdot \sin x \]
              7. unpow3N/A

                \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \color{blue}{{y}^{3}} + y}{x} \cdot \sin x \]
              8. accelerator-lowering-fma.f64N/A

                \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right), {y}^{3}, y\right)}}{x} \cdot \sin x \]
            7. Simplified88.2%

              \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}}{x} \cdot \sin x \]
            8. Taylor expanded in x around 0

              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{x} \]
            9. Step-by-step derivation
              1. Simplified71.3%

                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{x} \]
            10. Recombined 3 regimes into one program.
            11. Final simplification84.0%

              \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -\infty:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(-0.0001984126984126984, x \cdot x, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)\\ \mathbf{elif}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;y \cdot \frac{\sin x}{x}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x}\\ \end{array} \]
            12. Add Preprocessing

            Alternative 7: 65.9% accurate, 0.4× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_0 := \frac{\sinh y \cdot \sin x}{x}\\ t_1 := y \cdot \left(y \cdot y\right)\\ \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-118}:\\ \;\;\;\;t\_1 \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, -0.0001984126984126984, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right) \cdot \frac{0.16666666666666666}{x}\right)\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), t\_1, y\right)}{x}\\ \end{array} \end{array} \]
            (FPCore (x y)
             :precision binary64
             (let* ((t_0 (/ (* (sinh y) (sin x)) x)) (t_1 (* y (* y y))))
               (if (<= t_0 -2e-118)
                 (*
                  t_1
                  (*
                   (fma
                    (fma
                     (* x x)
                     (fma (* x x) -0.0001984126984126984 0.008333333333333333)
                     -0.16666666666666666)
                    (* x (* x x))
                    x)
                   (/ 0.16666666666666666 x)))
                 (if (<= t_0 5e-7)
                   (/ y (fma x (* x 0.16666666666666666) 1.0))
                   (*
                    x
                    (/
                     (fma
                      (fma
                       (* y y)
                       (fma (* y y) 0.0001984126984126984 0.008333333333333333)
                       0.16666666666666666)
                      t_1
                      y)
                     x))))))
            double code(double x, double y) {
            	double t_0 = (sinh(y) * sin(x)) / x;
            	double t_1 = y * (y * y);
            	double tmp;
            	if (t_0 <= -2e-118) {
            		tmp = t_1 * (fma(fma((x * x), fma((x * x), -0.0001984126984126984, 0.008333333333333333), -0.16666666666666666), (x * (x * x)), x) * (0.16666666666666666 / x));
            	} else if (t_0 <= 5e-7) {
            		tmp = y / fma(x, (x * 0.16666666666666666), 1.0);
            	} else {
            		tmp = x * (fma(fma((y * y), fma((y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666), t_1, y) / x);
            	}
            	return tmp;
            }
            
            function code(x, y)
            	t_0 = Float64(Float64(sinh(y) * sin(x)) / x)
            	t_1 = Float64(y * Float64(y * y))
            	tmp = 0.0
            	if (t_0 <= -2e-118)
            		tmp = Float64(t_1 * Float64(fma(fma(Float64(x * x), fma(Float64(x * x), -0.0001984126984126984, 0.008333333333333333), -0.16666666666666666), Float64(x * Float64(x * x)), x) * Float64(0.16666666666666666 / x)));
            	elseif (t_0 <= 5e-7)
            		tmp = Float64(y / fma(x, Float64(x * 0.16666666666666666), 1.0));
            	else
            		tmp = Float64(x * Float64(fma(fma(Float64(y * y), fma(Float64(y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666), t_1, y) / x));
            	end
            	return tmp
            end
            
            code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, Block[{t$95$1 = N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -2e-118], N[(t$95$1 * N[(N[(N[(N[(x * x), $MachinePrecision] * N[(N[(x * x), $MachinePrecision] * -0.0001984126984126984 + 0.008333333333333333), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] * N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision] * N[(0.16666666666666666 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e-7], N[(y / N[(x * N[(x * 0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[(N[(y * y), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984 + 0.008333333333333333), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * t$95$1 + y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_0 := \frac{\sinh y \cdot \sin x}{x}\\
            t_1 := y \cdot \left(y \cdot y\right)\\
            \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-118}:\\
            \;\;\;\;t\_1 \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, -0.0001984126984126984, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right) \cdot \frac{0.16666666666666666}{x}\right)\\
            
            \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\
            \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\
            
            \mathbf{else}:\\
            \;\;\;\;x \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), t\_1, y\right)}{x}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1.99999999999999997e-118

              1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \frac{y \cdot \left(\sin x \cdot \left(\color{blue}{y \cdot \left(\frac{1}{6} \cdot y\right)} + 1\right)\right)}{x} \]
                15. accelerator-lowering-fma.f64N/A

                  \[\leadsto \frac{y \cdot \left(\sin x \cdot \color{blue}{\mathsf{fma}\left(y, \frac{1}{6} \cdot y, 1\right)}\right)}{x} \]
                16. *-commutativeN/A

                  \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot \frac{1}{6}}, 1\right)\right)}{x} \]
                17. *-lowering-*.f6471.8

                  \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot 0.16666666666666666}, 1\right)\right)}{x} \]
              5. Simplified71.8%

                \[\leadsto \frac{\color{blue}{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)}}{x} \]
              6. Taylor expanded in x around 0

                \[\leadsto \frac{y \cdot \left(\color{blue}{\left(x \cdot \left(1 + {x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right)\right)\right)} \cdot \mathsf{fma}\left(y, y \cdot \frac{1}{6}, 1\right)\right)}{x} \]
              7. Step-by-step derivation
                1. distribute-rgt-inN/A

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

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

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

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

                  \[\leadsto \frac{y \cdot \left(\color{blue}{\mathsf{fma}\left({x}^{2}, \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right) \cdot x, x\right)} \cdot \mathsf{fma}\left(y, y \cdot \frac{1}{6}, 1\right)\right)}{x} \]
              8. Simplified54.1%

                \[\leadsto \frac{y \cdot \left(\color{blue}{\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, -0.0001984126984126984, 0.008333333333333333\right), -0.16666666666666666\right) \cdot x, x\right)} \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)}{x} \]
              9. Taylor expanded in y around inf

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

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

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

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

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

                  \[\leadsto \color{blue}{{y}^{3} \cdot \left(\frac{1}{6} \cdot \frac{x + {x}^{3} \cdot \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right)}{x}\right)} \]
                6. cube-multN/A

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

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

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

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

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

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

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

                  \[\leadsto \left(y \cdot \left(y \cdot y\right)\right) \cdot \color{blue}{\left(\left(x + {x}^{3} \cdot \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right)\right) \cdot \frac{\frac{1}{6}}{x}\right)} \]
              11. Simplified43.1%

                \[\leadsto \color{blue}{\left(y \cdot \left(y \cdot y\right)\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, -0.0001984126984126984, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right) \cdot \frac{0.16666666666666666}{x}\right)} \]

              if -1.99999999999999997e-118 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

              1. Initial program 79.1%

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

                \[\leadsto \color{blue}{\frac{y \cdot \sin x}{x}} \]
              4. Step-by-step derivation
                1. associate-/l*N/A

                  \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                2. *-lowering-*.f64N/A

                  \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                3. /-lowering-/.f64N/A

                  \[\leadsto y \cdot \color{blue}{\frac{\sin x}{x}} \]
                4. sin-lowering-sin.f6498.3

                  \[\leadsto y \cdot \frac{\color{blue}{\sin x}}{x} \]
              5. Simplified98.3%

                \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
              6. Step-by-step derivation
                1. clear-numN/A

                  \[\leadsto y \cdot \color{blue}{\frac{1}{\frac{x}{\sin x}}} \]
                2. un-div-invN/A

                  \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                3. /-lowering-/.f64N/A

                  \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                4. /-lowering-/.f64N/A

                  \[\leadsto \frac{y}{\color{blue}{\frac{x}{\sin x}}} \]
                5. sin-lowering-sin.f6498.3

                  \[\leadsto \frac{y}{\frac{x}{\color{blue}{\sin x}}} \]
              7. Applied egg-rr98.3%

                \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
              8. Taylor expanded in x around 0

                \[\leadsto \frac{y}{\color{blue}{1 + \frac{1}{6} \cdot {x}^{2}}} \]
              9. Step-by-step derivation
                1. +-commutativeN/A

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

                  \[\leadsto \frac{y}{\color{blue}{{x}^{2} \cdot \frac{1}{6}} + 1} \]
                3. unpow2N/A

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

                  \[\leadsto \frac{y}{\color{blue}{x \cdot \left(x \cdot \frac{1}{6}\right)} + 1} \]
                5. accelerator-lowering-fma.f64N/A

                  \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot \frac{1}{6}, 1\right)}} \]
                6. *-lowering-*.f6470.2

                  \[\leadsto \frac{y}{\mathsf{fma}\left(x, \color{blue}{x \cdot 0.16666666666666666}, 1\right)} \]
              10. Simplified70.2%

                \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}} \]

              if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

              1. Initial program 100.0%

                \[\frac{\sin x \cdot \sinh y}{x} \]
              2. Add Preprocessing
              3. Step-by-step derivation
                1. associate-/l*N/A

                  \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
                2. *-commutativeN/A

                  \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                3. *-lowering-*.f64N/A

                  \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                4. /-lowering-/.f64N/A

                  \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
                5. sinh-lowering-sinh.f64N/A

                  \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
                6. sin-lowering-sin.f64100.0

                  \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
              4. Applied egg-rr100.0%

                \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
              5. Taylor expanded in y around 0

                \[\leadsto \frac{\color{blue}{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)}}{x} \cdot \sin x \]
              6. Step-by-step derivation
                1. *-commutativeN/A

                  \[\leadsto \frac{\color{blue}{\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) \cdot y}}{x} \cdot \sin x \]
                2. +-commutativeN/A

                  \[\leadsto \frac{\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) + 1\right)} \cdot y}{x} \cdot \sin x \]
                3. distribute-lft1-inN/A

                  \[\leadsto \frac{\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) \cdot y + y}}{x} \cdot \sin x \]
                4. *-commutativeN/A

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

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

                  \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot y\right) + y}{x} \cdot \sin x \]
                7. unpow3N/A

                  \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \color{blue}{{y}^{3}} + y}{x} \cdot \sin x \]
                8. accelerator-lowering-fma.f64N/A

                  \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right), {y}^{3}, y\right)}}{x} \cdot \sin x \]
              7. Simplified88.2%

                \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}}{x} \cdot \sin x \]
              8. Taylor expanded in x around 0

                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{x} \]
              9. Step-by-step derivation
                1. Simplified71.3%

                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{x} \]
              10. Recombined 3 regimes into one program.
              11. Final simplification63.8%

                \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -2 \cdot 10^{-118}:\\ \;\;\;\;\left(y \cdot \left(y \cdot y\right)\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, -0.0001984126984126984, 0.008333333333333333\right), -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right) \cdot \frac{0.16666666666666666}{x}\right)\\ \mathbf{elif}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x}\\ \end{array} \]
              12. Add Preprocessing

              Alternative 8: 71.5% accurate, 0.4× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_0 := \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right)\\ t_1 := \frac{\sinh y \cdot \sin x}{x}\\ \mathbf{if}\;t\_1 \leq -2 \cdot 10^{-118}:\\ \;\;\;\;\mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \mathsf{fma}\left(y, y \cdot t\_0, 0.16666666666666666\right), y\right) \cdot \mathsf{fma}\left(-0.16666666666666666, x \cdot x, 1\right)\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, t\_0, 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x}\\ \end{array} \end{array} \]
              (FPCore (x y)
               :precision binary64
               (let* ((t_0 (fma (* y y) 0.0001984126984126984 0.008333333333333333))
                      (t_1 (/ (* (sinh y) (sin x)) x)))
                 (if (<= t_1 -2e-118)
                   (*
                    (fma y (* (* y y) (fma y (* y t_0) 0.16666666666666666)) y)
                    (fma -0.16666666666666666 (* x x) 1.0))
                   (if (<= t_1 5e-7)
                     (/ y (fma x (* x 0.16666666666666666) 1.0))
                     (*
                      x
                      (/ (fma (fma (* y y) t_0 0.16666666666666666) (* y (* y y)) y) x))))))
              double code(double x, double y) {
              	double t_0 = fma((y * y), 0.0001984126984126984, 0.008333333333333333);
              	double t_1 = (sinh(y) * sin(x)) / x;
              	double tmp;
              	if (t_1 <= -2e-118) {
              		tmp = fma(y, ((y * y) * fma(y, (y * t_0), 0.16666666666666666)), y) * fma(-0.16666666666666666, (x * x), 1.0);
              	} else if (t_1 <= 5e-7) {
              		tmp = y / fma(x, (x * 0.16666666666666666), 1.0);
              	} else {
              		tmp = x * (fma(fma((y * y), t_0, 0.16666666666666666), (y * (y * y)), y) / x);
              	}
              	return tmp;
              }
              
              function code(x, y)
              	t_0 = fma(Float64(y * y), 0.0001984126984126984, 0.008333333333333333)
              	t_1 = Float64(Float64(sinh(y) * sin(x)) / x)
              	tmp = 0.0
              	if (t_1 <= -2e-118)
              		tmp = Float64(fma(y, Float64(Float64(y * y) * fma(y, Float64(y * t_0), 0.16666666666666666)), y) * fma(-0.16666666666666666, Float64(x * x), 1.0));
              	elseif (t_1 <= 5e-7)
              		tmp = Float64(y / fma(x, Float64(x * 0.16666666666666666), 1.0));
              	else
              		tmp = Float64(x * Float64(fma(fma(Float64(y * y), t_0, 0.16666666666666666), Float64(y * Float64(y * y)), y) / x));
              	end
              	return tmp
              end
              
              code[x_, y_] := Block[{t$95$0 = N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984 + 0.008333333333333333), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$1, -2e-118], N[(N[(y * N[(N[(y * y), $MachinePrecision] * N[(y * N[(y * t$95$0), $MachinePrecision] + 0.16666666666666666), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision] * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e-7], N[(y / N[(x * N[(x * 0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[(N[(y * y), $MachinePrecision] * t$95$0 + 0.16666666666666666), $MachinePrecision] * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_0 := \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right)\\
              t_1 := \frac{\sinh y \cdot \sin x}{x}\\
              \mathbf{if}\;t\_1 \leq -2 \cdot 10^{-118}:\\
              \;\;\;\;\mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \mathsf{fma}\left(y, y \cdot t\_0, 0.16666666666666666\right), y\right) \cdot \mathsf{fma}\left(-0.16666666666666666, x \cdot x, 1\right)\\
              
              \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-7}:\\
              \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\
              
              \mathbf{else}:\\
              \;\;\;\;x \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, t\_0, 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x}\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1.99999999999999997e-118

                1. Initial program 100.0%

                  \[\frac{\sin x \cdot \sinh y}{x} \]
                2. Add Preprocessing
                3. Step-by-step derivation
                  1. associate-/l*N/A

                    \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
                  2. *-commutativeN/A

                    \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                  3. *-lowering-*.f64N/A

                    \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                  4. /-lowering-/.f64N/A

                    \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
                  5. sinh-lowering-sinh.f64N/A

                    \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
                  6. sin-lowering-sin.f64100.0

                    \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
                4. Applied egg-rr100.0%

                  \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                5. Taylor expanded in y around 0

                  \[\leadsto \frac{\color{blue}{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)}}{x} \cdot \sin x \]
                6. Step-by-step derivation
                  1. *-commutativeN/A

                    \[\leadsto \frac{\color{blue}{\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) \cdot y}}{x} \cdot \sin x \]
                  2. +-commutativeN/A

                    \[\leadsto \frac{\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) + 1\right)} \cdot y}{x} \cdot \sin x \]
                  3. distribute-lft1-inN/A

                    \[\leadsto \frac{\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) \cdot y + y}}{x} \cdot \sin x \]
                  4. *-commutativeN/A

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

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

                    \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot y\right) + y}{x} \cdot \sin x \]
                  7. unpow3N/A

                    \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \color{blue}{{y}^{3}} + y}{x} \cdot \sin x \]
                  8. accelerator-lowering-fma.f64N/A

                    \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right), {y}^{3}, y\right)}}{x} \cdot \sin x \]
                7. Simplified93.6%

                  \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}}{x} \cdot \sin x \]
                8. Taylor expanded in x around 0

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

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

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

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

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

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

                    \[\leadsto \color{blue}{\left(1 + \frac{-1}{6} \cdot {x}^{2}\right) \cdot \left(y + {y}^{3} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)} \]
                10. Simplified65.2%

                  \[\leadsto \color{blue}{\mathsf{fma}\left(-0.16666666666666666, x \cdot x, 1\right) \cdot \mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y\right)} \]

                if -1.99999999999999997e-118 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

                1. Initial program 79.1%

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

                  \[\leadsto \color{blue}{\frac{y \cdot \sin x}{x}} \]
                4. Step-by-step derivation
                  1. associate-/l*N/A

                    \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                  2. *-lowering-*.f64N/A

                    \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                  3. /-lowering-/.f64N/A

                    \[\leadsto y \cdot \color{blue}{\frac{\sin x}{x}} \]
                  4. sin-lowering-sin.f6498.3

                    \[\leadsto y \cdot \frac{\color{blue}{\sin x}}{x} \]
                5. Simplified98.3%

                  \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                6. Step-by-step derivation
                  1. clear-numN/A

                    \[\leadsto y \cdot \color{blue}{\frac{1}{\frac{x}{\sin x}}} \]
                  2. un-div-invN/A

                    \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                  3. /-lowering-/.f64N/A

                    \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                  4. /-lowering-/.f64N/A

                    \[\leadsto \frac{y}{\color{blue}{\frac{x}{\sin x}}} \]
                  5. sin-lowering-sin.f6498.3

                    \[\leadsto \frac{y}{\frac{x}{\color{blue}{\sin x}}} \]
                7. Applied egg-rr98.3%

                  \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                8. Taylor expanded in x around 0

                  \[\leadsto \frac{y}{\color{blue}{1 + \frac{1}{6} \cdot {x}^{2}}} \]
                9. Step-by-step derivation
                  1. +-commutativeN/A

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

                    \[\leadsto \frac{y}{\color{blue}{{x}^{2} \cdot \frac{1}{6}} + 1} \]
                  3. unpow2N/A

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

                    \[\leadsto \frac{y}{\color{blue}{x \cdot \left(x \cdot \frac{1}{6}\right)} + 1} \]
                  5. accelerator-lowering-fma.f64N/A

                    \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot \frac{1}{6}, 1\right)}} \]
                  6. *-lowering-*.f6470.2

                    \[\leadsto \frac{y}{\mathsf{fma}\left(x, \color{blue}{x \cdot 0.16666666666666666}, 1\right)} \]
                10. Simplified70.2%

                  \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}} \]

                if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

                1. Initial program 100.0%

                  \[\frac{\sin x \cdot \sinh y}{x} \]
                2. Add Preprocessing
                3. Step-by-step derivation
                  1. associate-/l*N/A

                    \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
                  2. *-commutativeN/A

                    \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                  3. *-lowering-*.f64N/A

                    \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                  4. /-lowering-/.f64N/A

                    \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
                  5. sinh-lowering-sinh.f64N/A

                    \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
                  6. sin-lowering-sin.f64100.0

                    \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
                4. Applied egg-rr100.0%

                  \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                5. Taylor expanded in y around 0

                  \[\leadsto \frac{\color{blue}{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)}}{x} \cdot \sin x \]
                6. Step-by-step derivation
                  1. *-commutativeN/A

                    \[\leadsto \frac{\color{blue}{\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) \cdot y}}{x} \cdot \sin x \]
                  2. +-commutativeN/A

                    \[\leadsto \frac{\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) + 1\right)} \cdot y}{x} \cdot \sin x \]
                  3. distribute-lft1-inN/A

                    \[\leadsto \frac{\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) \cdot y + y}}{x} \cdot \sin x \]
                  4. *-commutativeN/A

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

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

                    \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot y\right) + y}{x} \cdot \sin x \]
                  7. unpow3N/A

                    \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \color{blue}{{y}^{3}} + y}{x} \cdot \sin x \]
                  8. accelerator-lowering-fma.f64N/A

                    \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right), {y}^{3}, y\right)}}{x} \cdot \sin x \]
                7. Simplified88.2%

                  \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}}{x} \cdot \sin x \]
                8. Taylor expanded in x around 0

                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{x} \]
                9. Step-by-step derivation
                  1. Simplified71.3%

                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{x} \]
                10. Recombined 3 regimes into one program.
                11. Final simplification69.3%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -2 \cdot 10^{-118}:\\ \;\;\;\;\mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y\right) \cdot \mathsf{fma}\left(-0.16666666666666666, x \cdot x, 1\right)\\ \mathbf{elif}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x}\\ \end{array} \]
                12. Add Preprocessing

                Alternative 9: 70.8% accurate, 0.4× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_0 := \frac{\sinh y \cdot \sin x}{x}\\ \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-118}:\\ \;\;\;\;\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right) \cdot \mathsf{fma}\left(y, \left(x \cdot x\right) \cdot -0.16666666666666666, y\right)\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x}\\ \end{array} \end{array} \]
                (FPCore (x y)
                 :precision binary64
                 (let* ((t_0 (/ (* (sinh y) (sin x)) x)))
                   (if (<= t_0 -2e-118)
                     (*
                      (fma y (* y (fma y (* y 0.008333333333333333) 0.16666666666666666)) 1.0)
                      (fma y (* (* x x) -0.16666666666666666) y))
                     (if (<= t_0 5e-7)
                       (/ y (fma x (* x 0.16666666666666666) 1.0))
                       (*
                        x
                        (/
                         (fma
                          (fma
                           (* y y)
                           (fma (* y y) 0.0001984126984126984 0.008333333333333333)
                           0.16666666666666666)
                          (* y (* y y))
                          y)
                         x))))))
                double code(double x, double y) {
                	double t_0 = (sinh(y) * sin(x)) / x;
                	double tmp;
                	if (t_0 <= -2e-118) {
                		tmp = fma(y, (y * fma(y, (y * 0.008333333333333333), 0.16666666666666666)), 1.0) * fma(y, ((x * x) * -0.16666666666666666), y);
                	} else if (t_0 <= 5e-7) {
                		tmp = y / fma(x, (x * 0.16666666666666666), 1.0);
                	} else {
                		tmp = x * (fma(fma((y * y), fma((y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666), (y * (y * y)), y) / x);
                	}
                	return tmp;
                }
                
                function code(x, y)
                	t_0 = Float64(Float64(sinh(y) * sin(x)) / x)
                	tmp = 0.0
                	if (t_0 <= -2e-118)
                		tmp = Float64(fma(y, Float64(y * fma(y, Float64(y * 0.008333333333333333), 0.16666666666666666)), 1.0) * fma(y, Float64(Float64(x * x) * -0.16666666666666666), y));
                	elseif (t_0 <= 5e-7)
                		tmp = Float64(y / fma(x, Float64(x * 0.16666666666666666), 1.0));
                	else
                		tmp = Float64(x * Float64(fma(fma(Float64(y * y), fma(Float64(y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666), Float64(y * Float64(y * y)), y) / x));
                	end
                	return tmp
                end
                
                code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, -2e-118], N[(N[(y * N[(y * N[(y * N[(y * 0.008333333333333333), $MachinePrecision] + 0.16666666666666666), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] * N[(y * N[(N[(x * x), $MachinePrecision] * -0.16666666666666666), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e-7], N[(y / N[(x * N[(x * 0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[(N[(y * y), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984 + 0.008333333333333333), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_0 := \frac{\sinh y \cdot \sin x}{x}\\
                \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-118}:\\
                \;\;\;\;\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right) \cdot \mathsf{fma}\left(y, \left(x \cdot x\right) \cdot -0.16666666666666666, y\right)\\
                
                \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\
                \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\
                
                \mathbf{else}:\\
                \;\;\;\;x \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x}\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1.99999999999999997e-118

                  1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \frac{y \cdot \left(\sin x \cdot 1 + \left(\color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right)} \cdot \sin x + {y}^{2} \cdot \left({y}^{2} \cdot \left(\frac{1}{120} \cdot \sin x\right)\right)\right)\right)}{x} \]
                  5. Simplified87.4%

                    \[\leadsto \frac{\color{blue}{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right)\right)}}{x} \]
                  6. Taylor expanded in x around 0

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

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

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

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

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

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

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

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

                      \[\leadsto \color{blue}{\left(1 + {y}^{2} \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right) \cdot \left(y + {x}^{2} \cdot \left(\frac{-1}{6} \cdot y\right)\right)} \]
                  8. Simplified61.9%

                    \[\leadsto \color{blue}{\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right) \cdot \mathsf{fma}\left(y, \left(x \cdot x\right) \cdot -0.16666666666666666, y\right)} \]

                  if -1.99999999999999997e-118 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

                  1. Initial program 79.1%

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

                    \[\leadsto \color{blue}{\frac{y \cdot \sin x}{x}} \]
                  4. Step-by-step derivation
                    1. associate-/l*N/A

                      \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                    2. *-lowering-*.f64N/A

                      \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                    3. /-lowering-/.f64N/A

                      \[\leadsto y \cdot \color{blue}{\frac{\sin x}{x}} \]
                    4. sin-lowering-sin.f6498.3

                      \[\leadsto y \cdot \frac{\color{blue}{\sin x}}{x} \]
                  5. Simplified98.3%

                    \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                  6. Step-by-step derivation
                    1. clear-numN/A

                      \[\leadsto y \cdot \color{blue}{\frac{1}{\frac{x}{\sin x}}} \]
                    2. un-div-invN/A

                      \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                    3. /-lowering-/.f64N/A

                      \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                    4. /-lowering-/.f64N/A

                      \[\leadsto \frac{y}{\color{blue}{\frac{x}{\sin x}}} \]
                    5. sin-lowering-sin.f6498.3

                      \[\leadsto \frac{y}{\frac{x}{\color{blue}{\sin x}}} \]
                  7. Applied egg-rr98.3%

                    \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                  8. Taylor expanded in x around 0

                    \[\leadsto \frac{y}{\color{blue}{1 + \frac{1}{6} \cdot {x}^{2}}} \]
                  9. Step-by-step derivation
                    1. +-commutativeN/A

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

                      \[\leadsto \frac{y}{\color{blue}{{x}^{2} \cdot \frac{1}{6}} + 1} \]
                    3. unpow2N/A

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

                      \[\leadsto \frac{y}{\color{blue}{x \cdot \left(x \cdot \frac{1}{6}\right)} + 1} \]
                    5. accelerator-lowering-fma.f64N/A

                      \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot \frac{1}{6}, 1\right)}} \]
                    6. *-lowering-*.f6470.2

                      \[\leadsto \frac{y}{\mathsf{fma}\left(x, \color{blue}{x \cdot 0.16666666666666666}, 1\right)} \]
                  10. Simplified70.2%

                    \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}} \]

                  if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

                  1. Initial program 100.0%

                    \[\frac{\sin x \cdot \sinh y}{x} \]
                  2. Add Preprocessing
                  3. Step-by-step derivation
                    1. associate-/l*N/A

                      \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
                    2. *-commutativeN/A

                      \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                    3. *-lowering-*.f64N/A

                      \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                    4. /-lowering-/.f64N/A

                      \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
                    5. sinh-lowering-sinh.f64N/A

                      \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
                    6. sin-lowering-sin.f64100.0

                      \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
                  4. Applied egg-rr100.0%

                    \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                  5. Taylor expanded in y around 0

                    \[\leadsto \frac{\color{blue}{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)}}{x} \cdot \sin x \]
                  6. Step-by-step derivation
                    1. *-commutativeN/A

                      \[\leadsto \frac{\color{blue}{\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) \cdot y}}{x} \cdot \sin x \]
                    2. +-commutativeN/A

                      \[\leadsto \frac{\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) + 1\right)} \cdot y}{x} \cdot \sin x \]
                    3. distribute-lft1-inN/A

                      \[\leadsto \frac{\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) \cdot y + y}}{x} \cdot \sin x \]
                    4. *-commutativeN/A

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

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

                      \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot y\right) + y}{x} \cdot \sin x \]
                    7. unpow3N/A

                      \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \color{blue}{{y}^{3}} + y}{x} \cdot \sin x \]
                    8. accelerator-lowering-fma.f64N/A

                      \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right), {y}^{3}, y\right)}}{x} \cdot \sin x \]
                  7. Simplified88.2%

                    \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}}{x} \cdot \sin x \]
                  8. Taylor expanded in x around 0

                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{x} \]
                  9. Step-by-step derivation
                    1. Simplified71.3%

                      \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \color{blue}{x} \]
                  10. Recombined 3 regimes into one program.
                  11. Final simplification68.5%

                    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -2 \cdot 10^{-118}:\\ \;\;\;\;\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right) \cdot \mathsf{fma}\left(y, \left(x \cdot x\right) \cdot -0.16666666666666666, y\right)\\ \mathbf{elif}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x}\\ \end{array} \]
                  12. Add Preprocessing

                  Alternative 10: 69.9% accurate, 0.4× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_0 := \frac{\sinh y \cdot \sin x}{x}\\ \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-118}:\\ \;\;\;\;\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right) \cdot \mathsf{fma}\left(y, \left(x \cdot x\right) \cdot -0.16666666666666666, y\right)\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y\right)\\ \end{array} \end{array} \]
                  (FPCore (x y)
                   :precision binary64
                   (let* ((t_0 (/ (* (sinh y) (sin x)) x)))
                     (if (<= t_0 -2e-118)
                       (*
                        (fma y (* y (fma y (* y 0.008333333333333333) 0.16666666666666666)) 1.0)
                        (fma y (* (* x x) -0.16666666666666666) y))
                       (if (<= t_0 5e-7)
                         (/ y (fma x (* x 0.16666666666666666) 1.0))
                         (fma
                          y
                          (*
                           (* y y)
                           (fma
                            y
                            (* y (fma (* y y) 0.0001984126984126984 0.008333333333333333))
                            0.16666666666666666))
                          y)))))
                  double code(double x, double y) {
                  	double t_0 = (sinh(y) * sin(x)) / x;
                  	double tmp;
                  	if (t_0 <= -2e-118) {
                  		tmp = fma(y, (y * fma(y, (y * 0.008333333333333333), 0.16666666666666666)), 1.0) * fma(y, ((x * x) * -0.16666666666666666), y);
                  	} else if (t_0 <= 5e-7) {
                  		tmp = y / fma(x, (x * 0.16666666666666666), 1.0);
                  	} else {
                  		tmp = fma(y, ((y * y) * fma(y, (y * fma((y * y), 0.0001984126984126984, 0.008333333333333333)), 0.16666666666666666)), y);
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y)
                  	t_0 = Float64(Float64(sinh(y) * sin(x)) / x)
                  	tmp = 0.0
                  	if (t_0 <= -2e-118)
                  		tmp = Float64(fma(y, Float64(y * fma(y, Float64(y * 0.008333333333333333), 0.16666666666666666)), 1.0) * fma(y, Float64(Float64(x * x) * -0.16666666666666666), y));
                  	elseif (t_0 <= 5e-7)
                  		tmp = Float64(y / fma(x, Float64(x * 0.16666666666666666), 1.0));
                  	else
                  		tmp = fma(y, Float64(Float64(y * y) * fma(y, Float64(y * fma(Float64(y * y), 0.0001984126984126984, 0.008333333333333333)), 0.16666666666666666)), y);
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, -2e-118], N[(N[(y * N[(y * N[(y * N[(y * 0.008333333333333333), $MachinePrecision] + 0.16666666666666666), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] * N[(y * N[(N[(x * x), $MachinePrecision] * -0.16666666666666666), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e-7], N[(y / N[(x * N[(x * 0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(y * y), $MachinePrecision] * N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984 + 0.008333333333333333), $MachinePrecision]), $MachinePrecision] + 0.16666666666666666), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_0 := \frac{\sinh y \cdot \sin x}{x}\\
                  \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-118}:\\
                  \;\;\;\;\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right) \cdot \mathsf{fma}\left(y, \left(x \cdot x\right) \cdot -0.16666666666666666, y\right)\\
                  
                  \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\
                  \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y\right)\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1.99999999999999997e-118

                    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot 1 + \left(\color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right)} \cdot \sin x + {y}^{2} \cdot \left({y}^{2} \cdot \left(\frac{1}{120} \cdot \sin x\right)\right)\right)\right)}{x} \]
                    5. Simplified87.4%

                      \[\leadsto \frac{\color{blue}{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right)\right)}}{x} \]
                    6. Taylor expanded in x around 0

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

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

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

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

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

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

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

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

                        \[\leadsto \color{blue}{\left(1 + {y}^{2} \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right) \cdot \left(y + {x}^{2} \cdot \left(\frac{-1}{6} \cdot y\right)\right)} \]
                    8. Simplified61.9%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right) \cdot \mathsf{fma}\left(y, \left(x \cdot x\right) \cdot -0.16666666666666666, y\right)} \]

                    if -1.99999999999999997e-118 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

                    1. Initial program 79.1%

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

                      \[\leadsto \color{blue}{\frac{y \cdot \sin x}{x}} \]
                    4. Step-by-step derivation
                      1. associate-/l*N/A

                        \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                      2. *-lowering-*.f64N/A

                        \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                      3. /-lowering-/.f64N/A

                        \[\leadsto y \cdot \color{blue}{\frac{\sin x}{x}} \]
                      4. sin-lowering-sin.f6498.3

                        \[\leadsto y \cdot \frac{\color{blue}{\sin x}}{x} \]
                    5. Simplified98.3%

                      \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                    6. Step-by-step derivation
                      1. clear-numN/A

                        \[\leadsto y \cdot \color{blue}{\frac{1}{\frac{x}{\sin x}}} \]
                      2. un-div-invN/A

                        \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                      3. /-lowering-/.f64N/A

                        \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                      4. /-lowering-/.f64N/A

                        \[\leadsto \frac{y}{\color{blue}{\frac{x}{\sin x}}} \]
                      5. sin-lowering-sin.f6498.3

                        \[\leadsto \frac{y}{\frac{x}{\color{blue}{\sin x}}} \]
                    7. Applied egg-rr98.3%

                      \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                    8. Taylor expanded in x around 0

                      \[\leadsto \frac{y}{\color{blue}{1 + \frac{1}{6} \cdot {x}^{2}}} \]
                    9. Step-by-step derivation
                      1. +-commutativeN/A

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

                        \[\leadsto \frac{y}{\color{blue}{{x}^{2} \cdot \frac{1}{6}} + 1} \]
                      3. unpow2N/A

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

                        \[\leadsto \frac{y}{\color{blue}{x \cdot \left(x \cdot \frac{1}{6}\right)} + 1} \]
                      5. accelerator-lowering-fma.f64N/A

                        \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot \frac{1}{6}, 1\right)}} \]
                      6. *-lowering-*.f6470.2

                        \[\leadsto \frac{y}{\mathsf{fma}\left(x, \color{blue}{x \cdot 0.16666666666666666}, 1\right)} \]
                    10. Simplified70.2%

                      \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}} \]

                    if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

                    1. Initial program 100.0%

                      \[\frac{\sin x \cdot \sinh y}{x} \]
                    2. Add Preprocessing
                    3. Step-by-step derivation
                      1. associate-/l*N/A

                        \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
                      2. *-commutativeN/A

                        \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                      3. *-lowering-*.f64N/A

                        \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                      4. /-lowering-/.f64N/A

                        \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
                      5. sinh-lowering-sinh.f64N/A

                        \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
                      6. sin-lowering-sin.f64100.0

                        \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
                    4. Applied egg-rr100.0%

                      \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                    5. Taylor expanded in y around 0

                      \[\leadsto \frac{\color{blue}{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)}}{x} \cdot \sin x \]
                    6. Step-by-step derivation
                      1. *-commutativeN/A

                        \[\leadsto \frac{\color{blue}{\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) \cdot y}}{x} \cdot \sin x \]
                      2. +-commutativeN/A

                        \[\leadsto \frac{\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) + 1\right)} \cdot y}{x} \cdot \sin x \]
                      3. distribute-lft1-inN/A

                        \[\leadsto \frac{\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) \cdot y + y}}{x} \cdot \sin x \]
                      4. *-commutativeN/A

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

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

                        \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot y\right) + y}{x} \cdot \sin x \]
                      7. unpow3N/A

                        \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \color{blue}{{y}^{3}} + y}{x} \cdot \sin x \]
                      8. accelerator-lowering-fma.f64N/A

                        \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right), {y}^{3}, y\right)}}{x} \cdot \sin x \]
                    7. Simplified88.2%

                      \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}}{x} \cdot \sin x \]
                    8. Taylor expanded in x around 0

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

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

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

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

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

                        \[\leadsto \color{blue}{\mathsf{fma}\left(y, {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right), y\right)} \]
                    10. Simplified65.7%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y\right)} \]
                  3. Recombined 3 regimes into one program.
                  4. Final simplification67.0%

                    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -2 \cdot 10^{-118}:\\ \;\;\;\;\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right) \cdot \mathsf{fma}\left(y, \left(x \cdot x\right) \cdot -0.16666666666666666, y\right)\\ \mathbf{elif}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y\right)\\ \end{array} \]
                  5. Add Preprocessing

                  Alternative 11: 68.3% accurate, 0.4× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_0 := \frac{\sinh y \cdot \sin x}{x}\\ \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-118}:\\ \;\;\;\;\mathsf{fma}\left(x, x \cdot -0.16666666666666666, 1\right) \cdot \mathsf{fma}\left(0.16666666666666666, y \cdot \left(y \cdot y\right), y\right)\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y\right)\\ \end{array} \end{array} \]
                  (FPCore (x y)
                   :precision binary64
                   (let* ((t_0 (/ (* (sinh y) (sin x)) x)))
                     (if (<= t_0 -2e-118)
                       (*
                        (fma x (* x -0.16666666666666666) 1.0)
                        (fma 0.16666666666666666 (* y (* y y)) y))
                       (if (<= t_0 5e-7)
                         (/ y (fma x (* x 0.16666666666666666) 1.0))
                         (fma
                          y
                          (*
                           (* y y)
                           (fma
                            y
                            (* y (fma (* y y) 0.0001984126984126984 0.008333333333333333))
                            0.16666666666666666))
                          y)))))
                  double code(double x, double y) {
                  	double t_0 = (sinh(y) * sin(x)) / x;
                  	double tmp;
                  	if (t_0 <= -2e-118) {
                  		tmp = fma(x, (x * -0.16666666666666666), 1.0) * fma(0.16666666666666666, (y * (y * y)), y);
                  	} else if (t_0 <= 5e-7) {
                  		tmp = y / fma(x, (x * 0.16666666666666666), 1.0);
                  	} else {
                  		tmp = fma(y, ((y * y) * fma(y, (y * fma((y * y), 0.0001984126984126984, 0.008333333333333333)), 0.16666666666666666)), y);
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y)
                  	t_0 = Float64(Float64(sinh(y) * sin(x)) / x)
                  	tmp = 0.0
                  	if (t_0 <= -2e-118)
                  		tmp = Float64(fma(x, Float64(x * -0.16666666666666666), 1.0) * fma(0.16666666666666666, Float64(y * Float64(y * y)), y));
                  	elseif (t_0 <= 5e-7)
                  		tmp = Float64(y / fma(x, Float64(x * 0.16666666666666666), 1.0));
                  	else
                  		tmp = fma(y, Float64(Float64(y * y) * fma(y, Float64(y * fma(Float64(y * y), 0.0001984126984126984, 0.008333333333333333)), 0.16666666666666666)), y);
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, -2e-118], N[(N[(x * N[(x * -0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision] * N[(0.16666666666666666 * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e-7], N[(y / N[(x * N[(x * 0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(y * y), $MachinePrecision] * N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984 + 0.008333333333333333), $MachinePrecision]), $MachinePrecision] + 0.16666666666666666), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_0 := \frac{\sinh y \cdot \sin x}{x}\\
                  \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-118}:\\
                  \;\;\;\;\mathsf{fma}\left(x, x \cdot -0.16666666666666666, 1\right) \cdot \mathsf{fma}\left(0.16666666666666666, y \cdot \left(y \cdot y\right), y\right)\\
                  
                  \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\
                  \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y\right)\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1.99999999999999997e-118

                    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \left(\color{blue}{y \cdot \left(\frac{1}{6} \cdot y\right)} + 1\right)\right)}{x} \]
                      15. accelerator-lowering-fma.f64N/A

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \color{blue}{\mathsf{fma}\left(y, \frac{1}{6} \cdot y, 1\right)}\right)}{x} \]
                      16. *-commutativeN/A

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot \frac{1}{6}}, 1\right)\right)}{x} \]
                      17. *-lowering-*.f6471.8

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot 0.16666666666666666}, 1\right)\right)}{x} \]
                    5. Simplified71.8%

                      \[\leadsto \frac{\color{blue}{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)}}{x} \]
                    6. Taylor expanded in x around 0

                      \[\leadsto \frac{y \cdot \left(\color{blue}{\left(x \cdot \left(1 + {x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right)\right)\right)} \cdot \mathsf{fma}\left(y, y \cdot \frac{1}{6}, 1\right)\right)}{x} \]
                    7. Step-by-step derivation
                      1. distribute-rgt-inN/A

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

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

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

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

                        \[\leadsto \frac{y \cdot \left(\color{blue}{\mathsf{fma}\left({x}^{2}, \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right) \cdot x, x\right)} \cdot \mathsf{fma}\left(y, y \cdot \frac{1}{6}, 1\right)\right)}{x} \]
                    8. Simplified54.1%

                      \[\leadsto \frac{y \cdot \left(\color{blue}{\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, -0.0001984126984126984, 0.008333333333333333\right), -0.16666666666666666\right) \cdot x, x\right)} \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)}{x} \]
                    9. Taylor expanded in x around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(x, x \cdot \frac{-1}{6}, 1\right) \cdot \color{blue}{\left(\left(\frac{1}{6} \cdot {y}^{2}\right) \cdot y + 1 \cdot y\right)} \]
                    11. Simplified52.7%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(x, x \cdot -0.16666666666666666, 1\right) \cdot \mathsf{fma}\left(0.16666666666666666, y \cdot \left(y \cdot y\right), y\right)} \]

                    if -1.99999999999999997e-118 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

                    1. Initial program 79.1%

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

                      \[\leadsto \color{blue}{\frac{y \cdot \sin x}{x}} \]
                    4. Step-by-step derivation
                      1. associate-/l*N/A

                        \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                      2. *-lowering-*.f64N/A

                        \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                      3. /-lowering-/.f64N/A

                        \[\leadsto y \cdot \color{blue}{\frac{\sin x}{x}} \]
                      4. sin-lowering-sin.f6498.3

                        \[\leadsto y \cdot \frac{\color{blue}{\sin x}}{x} \]
                    5. Simplified98.3%

                      \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                    6. Step-by-step derivation
                      1. clear-numN/A

                        \[\leadsto y \cdot \color{blue}{\frac{1}{\frac{x}{\sin x}}} \]
                      2. un-div-invN/A

                        \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                      3. /-lowering-/.f64N/A

                        \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                      4. /-lowering-/.f64N/A

                        \[\leadsto \frac{y}{\color{blue}{\frac{x}{\sin x}}} \]
                      5. sin-lowering-sin.f6498.3

                        \[\leadsto \frac{y}{\frac{x}{\color{blue}{\sin x}}} \]
                    7. Applied egg-rr98.3%

                      \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                    8. Taylor expanded in x around 0

                      \[\leadsto \frac{y}{\color{blue}{1 + \frac{1}{6} \cdot {x}^{2}}} \]
                    9. Step-by-step derivation
                      1. +-commutativeN/A

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

                        \[\leadsto \frac{y}{\color{blue}{{x}^{2} \cdot \frac{1}{6}} + 1} \]
                      3. unpow2N/A

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

                        \[\leadsto \frac{y}{\color{blue}{x \cdot \left(x \cdot \frac{1}{6}\right)} + 1} \]
                      5. accelerator-lowering-fma.f64N/A

                        \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot \frac{1}{6}, 1\right)}} \]
                      6. *-lowering-*.f6470.2

                        \[\leadsto \frac{y}{\mathsf{fma}\left(x, \color{blue}{x \cdot 0.16666666666666666}, 1\right)} \]
                    10. Simplified70.2%

                      \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}} \]

                    if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

                    1. Initial program 100.0%

                      \[\frac{\sin x \cdot \sinh y}{x} \]
                    2. Add Preprocessing
                    3. Step-by-step derivation
                      1. associate-/l*N/A

                        \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
                      2. *-commutativeN/A

                        \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                      3. *-lowering-*.f64N/A

                        \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                      4. /-lowering-/.f64N/A

                        \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
                      5. sinh-lowering-sinh.f64N/A

                        \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
                      6. sin-lowering-sin.f64100.0

                        \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
                    4. Applied egg-rr100.0%

                      \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                    5. Taylor expanded in y around 0

                      \[\leadsto \frac{\color{blue}{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)}}{x} \cdot \sin x \]
                    6. Step-by-step derivation
                      1. *-commutativeN/A

                        \[\leadsto \frac{\color{blue}{\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) \cdot y}}{x} \cdot \sin x \]
                      2. +-commutativeN/A

                        \[\leadsto \frac{\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) + 1\right)} \cdot y}{x} \cdot \sin x \]
                      3. distribute-lft1-inN/A

                        \[\leadsto \frac{\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) \cdot y + y}}{x} \cdot \sin x \]
                      4. *-commutativeN/A

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

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

                        \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot y\right) + y}{x} \cdot \sin x \]
                      7. unpow3N/A

                        \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \color{blue}{{y}^{3}} + y}{x} \cdot \sin x \]
                      8. accelerator-lowering-fma.f64N/A

                        \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right), {y}^{3}, y\right)}}{x} \cdot \sin x \]
                    7. Simplified88.2%

                      \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}}{x} \cdot \sin x \]
                    8. Taylor expanded in x around 0

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

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

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

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

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

                        \[\leadsto \color{blue}{\mathsf{fma}\left(y, {y}^{2} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right), y\right)} \]
                    10. Simplified65.7%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y\right)} \]
                  3. Recombined 3 regimes into one program.
                  4. Final simplification64.8%

                    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -2 \cdot 10^{-118}:\\ \;\;\;\;\mathsf{fma}\left(x, x \cdot -0.16666666666666666, 1\right) \cdot \mathsf{fma}\left(0.16666666666666666, y \cdot \left(y \cdot y\right), y\right)\\ \mathbf{elif}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y\right)\\ \end{array} \]
                  5. Add Preprocessing

                  Alternative 12: 67.3% accurate, 0.5× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_0 := y \cdot \left(y \cdot y\right)\\ t_1 := \frac{\sinh y \cdot \sin x}{x}\\ \mathbf{if}\;t\_1 \leq -2 \cdot 10^{-118}:\\ \;\;\;\;\mathsf{fma}\left(x, x \cdot -0.16666666666666666, 1\right) \cdot \mathsf{fma}\left(0.16666666666666666, t\_0, y\right)\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), t\_0, y\right)\\ \end{array} \end{array} \]
                  (FPCore (x y)
                   :precision binary64
                   (let* ((t_0 (* y (* y y))) (t_1 (/ (* (sinh y) (sin x)) x)))
                     (if (<= t_1 -2e-118)
                       (* (fma x (* x -0.16666666666666666) 1.0) (fma 0.16666666666666666 t_0 y))
                       (if (<= t_1 5e-7)
                         (/ y (fma x (* x 0.16666666666666666) 1.0))
                         (fma (fma y (* y 0.008333333333333333) 0.16666666666666666) t_0 y)))))
                  double code(double x, double y) {
                  	double t_0 = y * (y * y);
                  	double t_1 = (sinh(y) * sin(x)) / x;
                  	double tmp;
                  	if (t_1 <= -2e-118) {
                  		tmp = fma(x, (x * -0.16666666666666666), 1.0) * fma(0.16666666666666666, t_0, y);
                  	} else if (t_1 <= 5e-7) {
                  		tmp = y / fma(x, (x * 0.16666666666666666), 1.0);
                  	} else {
                  		tmp = fma(fma(y, (y * 0.008333333333333333), 0.16666666666666666), t_0, y);
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y)
                  	t_0 = Float64(y * Float64(y * y))
                  	t_1 = Float64(Float64(sinh(y) * sin(x)) / x)
                  	tmp = 0.0
                  	if (t_1 <= -2e-118)
                  		tmp = Float64(fma(x, Float64(x * -0.16666666666666666), 1.0) * fma(0.16666666666666666, t_0, y));
                  	elseif (t_1 <= 5e-7)
                  		tmp = Float64(y / fma(x, Float64(x * 0.16666666666666666), 1.0));
                  	else
                  		tmp = fma(fma(y, Float64(y * 0.008333333333333333), 0.16666666666666666), t_0, y);
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_] := Block[{t$95$0 = N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$1, -2e-118], N[(N[(x * N[(x * -0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision] * N[(0.16666666666666666 * t$95$0 + y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e-7], N[(y / N[(x * N[(x * 0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(y * 0.008333333333333333), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * t$95$0 + y), $MachinePrecision]]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_0 := y \cdot \left(y \cdot y\right)\\
                  t_1 := \frac{\sinh y \cdot \sin x}{x}\\
                  \mathbf{if}\;t\_1 \leq -2 \cdot 10^{-118}:\\
                  \;\;\;\;\mathsf{fma}\left(x, x \cdot -0.16666666666666666, 1\right) \cdot \mathsf{fma}\left(0.16666666666666666, t\_0, y\right)\\
                  
                  \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-7}:\\
                  \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), t\_0, y\right)\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1.99999999999999997e-118

                    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \left(\color{blue}{y \cdot \left(\frac{1}{6} \cdot y\right)} + 1\right)\right)}{x} \]
                      15. accelerator-lowering-fma.f64N/A

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \color{blue}{\mathsf{fma}\left(y, \frac{1}{6} \cdot y, 1\right)}\right)}{x} \]
                      16. *-commutativeN/A

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot \frac{1}{6}}, 1\right)\right)}{x} \]
                      17. *-lowering-*.f6471.8

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot 0.16666666666666666}, 1\right)\right)}{x} \]
                    5. Simplified71.8%

                      \[\leadsto \frac{\color{blue}{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)}}{x} \]
                    6. Taylor expanded in x around 0

                      \[\leadsto \frac{y \cdot \left(\color{blue}{\left(x \cdot \left(1 + {x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right)\right)\right)} \cdot \mathsf{fma}\left(y, y \cdot \frac{1}{6}, 1\right)\right)}{x} \]
                    7. Step-by-step derivation
                      1. distribute-rgt-inN/A

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

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

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

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

                        \[\leadsto \frac{y \cdot \left(\color{blue}{\mathsf{fma}\left({x}^{2}, \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right) \cdot x, x\right)} \cdot \mathsf{fma}\left(y, y \cdot \frac{1}{6}, 1\right)\right)}{x} \]
                    8. Simplified54.1%

                      \[\leadsto \frac{y \cdot \left(\color{blue}{\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, -0.0001984126984126984, 0.008333333333333333\right), -0.16666666666666666\right) \cdot x, x\right)} \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)}{x} \]
                    9. Taylor expanded in x around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(x, x \cdot \frac{-1}{6}, 1\right) \cdot \color{blue}{\left(\left(\frac{1}{6} \cdot {y}^{2}\right) \cdot y + 1 \cdot y\right)} \]
                    11. Simplified52.7%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(x, x \cdot -0.16666666666666666, 1\right) \cdot \mathsf{fma}\left(0.16666666666666666, y \cdot \left(y \cdot y\right), y\right)} \]

                    if -1.99999999999999997e-118 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

                    1. Initial program 79.1%

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

                      \[\leadsto \color{blue}{\frac{y \cdot \sin x}{x}} \]
                    4. Step-by-step derivation
                      1. associate-/l*N/A

                        \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                      2. *-lowering-*.f64N/A

                        \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                      3. /-lowering-/.f64N/A

                        \[\leadsto y \cdot \color{blue}{\frac{\sin x}{x}} \]
                      4. sin-lowering-sin.f6498.3

                        \[\leadsto y \cdot \frac{\color{blue}{\sin x}}{x} \]
                    5. Simplified98.3%

                      \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                    6. Step-by-step derivation
                      1. clear-numN/A

                        \[\leadsto y \cdot \color{blue}{\frac{1}{\frac{x}{\sin x}}} \]
                      2. un-div-invN/A

                        \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                      3. /-lowering-/.f64N/A

                        \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                      4. /-lowering-/.f64N/A

                        \[\leadsto \frac{y}{\color{blue}{\frac{x}{\sin x}}} \]
                      5. sin-lowering-sin.f6498.3

                        \[\leadsto \frac{y}{\frac{x}{\color{blue}{\sin x}}} \]
                    7. Applied egg-rr98.3%

                      \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                    8. Taylor expanded in x around 0

                      \[\leadsto \frac{y}{\color{blue}{1 + \frac{1}{6} \cdot {x}^{2}}} \]
                    9. Step-by-step derivation
                      1. +-commutativeN/A

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

                        \[\leadsto \frac{y}{\color{blue}{{x}^{2} \cdot \frac{1}{6}} + 1} \]
                      3. unpow2N/A

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

                        \[\leadsto \frac{y}{\color{blue}{x \cdot \left(x \cdot \frac{1}{6}\right)} + 1} \]
                      5. accelerator-lowering-fma.f64N/A

                        \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot \frac{1}{6}, 1\right)}} \]
                      6. *-lowering-*.f6470.2

                        \[\leadsto \frac{y}{\mathsf{fma}\left(x, \color{blue}{x \cdot 0.16666666666666666}, 1\right)} \]
                    10. Simplified70.2%

                      \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}} \]

                    if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

                    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot 1 + \left(\color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right)} \cdot \sin x + {y}^{2} \cdot \left({y}^{2} \cdot \left(\frac{1}{120} \cdot \sin x\right)\right)\right)\right)}{x} \]
                    5. Simplified78.0%

                      \[\leadsto \frac{\color{blue}{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right)\right)}}{x} \]
                    6. Taylor expanded in x around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, \frac{1}{120} \cdot y, \frac{1}{6}\right)}, {y}^{3}, y\right) \]
                      15. *-commutativeN/A

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

                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(y, \color{blue}{y \cdot \frac{1}{120}}, \frac{1}{6}\right), {y}^{3}, y\right) \]
                      17. cube-multN/A

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

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

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

                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right), y \cdot \color{blue}{\left(y \cdot y\right)}, y\right) \]
                      21. *-lowering-*.f6462.6

                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), y \cdot \color{blue}{\left(y \cdot y\right)}, y\right) \]
                    8. Simplified62.6%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)} \]
                  3. Recombined 3 regimes into one program.
                  4. Final simplification64.0%

                    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -2 \cdot 10^{-118}:\\ \;\;\;\;\mathsf{fma}\left(x, x \cdot -0.16666666666666666, 1\right) \cdot \mathsf{fma}\left(0.16666666666666666, y \cdot \left(y \cdot y\right), y\right)\\ \mathbf{elif}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)\\ \end{array} \]
                  5. Add Preprocessing

                  Alternative 13: 63.8% accurate, 0.5× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_0 := \frac{\sinh y \cdot \sin x}{x}\\ t_1 := y \cdot \left(y \cdot y\right)\\ \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-118}:\\ \;\;\;\;t\_1 \cdot \mathsf{fma}\left(x \cdot x, -0.027777777777777776, 0.16666666666666666\right)\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), t\_1, y\right)\\ \end{array} \end{array} \]
                  (FPCore (x y)
                   :precision binary64
                   (let* ((t_0 (/ (* (sinh y) (sin x)) x)) (t_1 (* y (* y y))))
                     (if (<= t_0 -2e-118)
                       (* t_1 (fma (* x x) -0.027777777777777776 0.16666666666666666))
                       (if (<= t_0 5e-7)
                         (/ y (fma x (* x 0.16666666666666666) 1.0))
                         (fma (fma y (* y 0.008333333333333333) 0.16666666666666666) t_1 y)))))
                  double code(double x, double y) {
                  	double t_0 = (sinh(y) * sin(x)) / x;
                  	double t_1 = y * (y * y);
                  	double tmp;
                  	if (t_0 <= -2e-118) {
                  		tmp = t_1 * fma((x * x), -0.027777777777777776, 0.16666666666666666);
                  	} else if (t_0 <= 5e-7) {
                  		tmp = y / fma(x, (x * 0.16666666666666666), 1.0);
                  	} else {
                  		tmp = fma(fma(y, (y * 0.008333333333333333), 0.16666666666666666), t_1, y);
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y)
                  	t_0 = Float64(Float64(sinh(y) * sin(x)) / x)
                  	t_1 = Float64(y * Float64(y * y))
                  	tmp = 0.0
                  	if (t_0 <= -2e-118)
                  		tmp = Float64(t_1 * fma(Float64(x * x), -0.027777777777777776, 0.16666666666666666));
                  	elseif (t_0 <= 5e-7)
                  		tmp = Float64(y / fma(x, Float64(x * 0.16666666666666666), 1.0));
                  	else
                  		tmp = fma(fma(y, Float64(y * 0.008333333333333333), 0.16666666666666666), t_1, y);
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, Block[{t$95$1 = N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -2e-118], N[(t$95$1 * N[(N[(x * x), $MachinePrecision] * -0.027777777777777776 + 0.16666666666666666), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e-7], N[(y / N[(x * N[(x * 0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(y * 0.008333333333333333), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * t$95$1 + y), $MachinePrecision]]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_0 := \frac{\sinh y \cdot \sin x}{x}\\
                  t_1 := y \cdot \left(y \cdot y\right)\\
                  \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-118}:\\
                  \;\;\;\;t\_1 \cdot \mathsf{fma}\left(x \cdot x, -0.027777777777777776, 0.16666666666666666\right)\\
                  
                  \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\
                  \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), t\_1, y\right)\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1.99999999999999997e-118

                    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \left(\color{blue}{y \cdot \left(\frac{1}{6} \cdot y\right)} + 1\right)\right)}{x} \]
                      15. accelerator-lowering-fma.f64N/A

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \color{blue}{\mathsf{fma}\left(y, \frac{1}{6} \cdot y, 1\right)}\right)}{x} \]
                      16. *-commutativeN/A

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot \frac{1}{6}}, 1\right)\right)}{x} \]
                      17. *-lowering-*.f6471.8

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot 0.16666666666666666}, 1\right)\right)}{x} \]
                    5. Simplified71.8%

                      \[\leadsto \frac{\color{blue}{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)}}{x} \]
                    6. Taylor expanded in x around 0

                      \[\leadsto \frac{y \cdot \left(\color{blue}{\left(x \cdot \left(1 + {x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right)\right)\right)} \cdot \mathsf{fma}\left(y, y \cdot \frac{1}{6}, 1\right)\right)}{x} \]
                    7. Step-by-step derivation
                      1. distribute-rgt-inN/A

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

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

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

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

                        \[\leadsto \frac{y \cdot \left(\color{blue}{\mathsf{fma}\left({x}^{2}, \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right) \cdot x, x\right)} \cdot \mathsf{fma}\left(y, y \cdot \frac{1}{6}, 1\right)\right)}{x} \]
                    8. Simplified54.1%

                      \[\leadsto \frac{y \cdot \left(\color{blue}{\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, -0.0001984126984126984, 0.008333333333333333\right), -0.16666666666666666\right) \cdot x, x\right)} \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)}{x} \]
                    9. Taylor expanded in x around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(x, x \cdot \frac{-1}{6}, 1\right) \cdot \color{blue}{\left(\left(\frac{1}{6} \cdot {y}^{2}\right) \cdot y + 1 \cdot y\right)} \]
                    11. Simplified52.7%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(x, x \cdot -0.16666666666666666, 1\right) \cdot \mathsf{fma}\left(0.16666666666666666, y \cdot \left(y \cdot y\right), y\right)} \]
                    12. Taylor expanded in y around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \left(y \cdot \left(y \cdot y\right)\right) \cdot \mathsf{fma}\left(\color{blue}{x \cdot x}, \frac{-1}{6} \cdot \frac{1}{6}, \frac{1}{6}\right) \]
                      18. metadata-eval41.7

                        \[\leadsto \left(y \cdot \left(y \cdot y\right)\right) \cdot \mathsf{fma}\left(x \cdot x, \color{blue}{-0.027777777777777776}, 0.16666666666666666\right) \]
                    14. Simplified41.7%

                      \[\leadsto \color{blue}{\left(y \cdot \left(y \cdot y\right)\right) \cdot \mathsf{fma}\left(x \cdot x, -0.027777777777777776, 0.16666666666666666\right)} \]

                    if -1.99999999999999997e-118 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

                    1. Initial program 79.1%

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

                      \[\leadsto \color{blue}{\frac{y \cdot \sin x}{x}} \]
                    4. Step-by-step derivation
                      1. associate-/l*N/A

                        \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                      2. *-lowering-*.f64N/A

                        \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                      3. /-lowering-/.f64N/A

                        \[\leadsto y \cdot \color{blue}{\frac{\sin x}{x}} \]
                      4. sin-lowering-sin.f6498.3

                        \[\leadsto y \cdot \frac{\color{blue}{\sin x}}{x} \]
                    5. Simplified98.3%

                      \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                    6. Step-by-step derivation
                      1. clear-numN/A

                        \[\leadsto y \cdot \color{blue}{\frac{1}{\frac{x}{\sin x}}} \]
                      2. un-div-invN/A

                        \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                      3. /-lowering-/.f64N/A

                        \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                      4. /-lowering-/.f64N/A

                        \[\leadsto \frac{y}{\color{blue}{\frac{x}{\sin x}}} \]
                      5. sin-lowering-sin.f6498.3

                        \[\leadsto \frac{y}{\frac{x}{\color{blue}{\sin x}}} \]
                    7. Applied egg-rr98.3%

                      \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                    8. Taylor expanded in x around 0

                      \[\leadsto \frac{y}{\color{blue}{1 + \frac{1}{6} \cdot {x}^{2}}} \]
                    9. Step-by-step derivation
                      1. +-commutativeN/A

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

                        \[\leadsto \frac{y}{\color{blue}{{x}^{2} \cdot \frac{1}{6}} + 1} \]
                      3. unpow2N/A

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

                        \[\leadsto \frac{y}{\color{blue}{x \cdot \left(x \cdot \frac{1}{6}\right)} + 1} \]
                      5. accelerator-lowering-fma.f64N/A

                        \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot \frac{1}{6}, 1\right)}} \]
                      6. *-lowering-*.f6470.2

                        \[\leadsto \frac{y}{\mathsf{fma}\left(x, \color{blue}{x \cdot 0.16666666666666666}, 1\right)} \]
                    10. Simplified70.2%

                      \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}} \]

                    if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

                    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot 1 + \left(\color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right)} \cdot \sin x + {y}^{2} \cdot \left({y}^{2} \cdot \left(\frac{1}{120} \cdot \sin x\right)\right)\right)\right)}{x} \]
                    5. Simplified78.0%

                      \[\leadsto \frac{\color{blue}{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right)\right)}}{x} \]
                    6. Taylor expanded in x around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, \frac{1}{120} \cdot y, \frac{1}{6}\right)}, {y}^{3}, y\right) \]
                      15. *-commutativeN/A

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

                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(y, \color{blue}{y \cdot \frac{1}{120}}, \frac{1}{6}\right), {y}^{3}, y\right) \]
                      17. cube-multN/A

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

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

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

                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right), y \cdot \color{blue}{\left(y \cdot y\right)}, y\right) \]
                      21. *-lowering-*.f6462.6

                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), y \cdot \color{blue}{\left(y \cdot y\right)}, y\right) \]
                    8. Simplified62.6%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)} \]
                  3. Recombined 3 regimes into one program.
                  4. Final simplification61.3%

                    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -2 \cdot 10^{-118}:\\ \;\;\;\;\left(y \cdot \left(y \cdot y\right)\right) \cdot \mathsf{fma}\left(x \cdot x, -0.027777777777777776, 0.16666666666666666\right)\\ \mathbf{elif}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)\\ \end{array} \]
                  5. Add Preprocessing

                  Alternative 14: 61.5% accurate, 0.5× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_0 := \frac{\sinh y \cdot \sin x}{x}\\ t_1 := y \cdot \left(y \cdot y\right)\\ \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-118}:\\ \;\;\;\;t\_1 \cdot \mathsf{fma}\left(x \cdot x, -0.027777777777777776, 0.16666666666666666\right)\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(0.16666666666666666, t\_1, y\right)\\ \end{array} \end{array} \]
                  (FPCore (x y)
                   :precision binary64
                   (let* ((t_0 (/ (* (sinh y) (sin x)) x)) (t_1 (* y (* y y))))
                     (if (<= t_0 -2e-118)
                       (* t_1 (fma (* x x) -0.027777777777777776 0.16666666666666666))
                       (if (<= t_0 5e-7)
                         (/ y (fma x (* x 0.16666666666666666) 1.0))
                         (fma 0.16666666666666666 t_1 y)))))
                  double code(double x, double y) {
                  	double t_0 = (sinh(y) * sin(x)) / x;
                  	double t_1 = y * (y * y);
                  	double tmp;
                  	if (t_0 <= -2e-118) {
                  		tmp = t_1 * fma((x * x), -0.027777777777777776, 0.16666666666666666);
                  	} else if (t_0 <= 5e-7) {
                  		tmp = y / fma(x, (x * 0.16666666666666666), 1.0);
                  	} else {
                  		tmp = fma(0.16666666666666666, t_1, y);
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y)
                  	t_0 = Float64(Float64(sinh(y) * sin(x)) / x)
                  	t_1 = Float64(y * Float64(y * y))
                  	tmp = 0.0
                  	if (t_0 <= -2e-118)
                  		tmp = Float64(t_1 * fma(Float64(x * x), -0.027777777777777776, 0.16666666666666666));
                  	elseif (t_0 <= 5e-7)
                  		tmp = Float64(y / fma(x, Float64(x * 0.16666666666666666), 1.0));
                  	else
                  		tmp = fma(0.16666666666666666, t_1, y);
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, Block[{t$95$1 = N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -2e-118], N[(t$95$1 * N[(N[(x * x), $MachinePrecision] * -0.027777777777777776 + 0.16666666666666666), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e-7], N[(y / N[(x * N[(x * 0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(0.16666666666666666 * t$95$1 + y), $MachinePrecision]]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_0 := \frac{\sinh y \cdot \sin x}{x}\\
                  t_1 := y \cdot \left(y \cdot y\right)\\
                  \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-118}:\\
                  \;\;\;\;t\_1 \cdot \mathsf{fma}\left(x \cdot x, -0.027777777777777776, 0.16666666666666666\right)\\
                  
                  \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\
                  \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\mathsf{fma}\left(0.16666666666666666, t\_1, y\right)\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1.99999999999999997e-118

                    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \left(\color{blue}{y \cdot \left(\frac{1}{6} \cdot y\right)} + 1\right)\right)}{x} \]
                      15. accelerator-lowering-fma.f64N/A

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \color{blue}{\mathsf{fma}\left(y, \frac{1}{6} \cdot y, 1\right)}\right)}{x} \]
                      16. *-commutativeN/A

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot \frac{1}{6}}, 1\right)\right)}{x} \]
                      17. *-lowering-*.f6471.8

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot 0.16666666666666666}, 1\right)\right)}{x} \]
                    5. Simplified71.8%

                      \[\leadsto \frac{\color{blue}{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)}}{x} \]
                    6. Taylor expanded in x around 0

                      \[\leadsto \frac{y \cdot \left(\color{blue}{\left(x \cdot \left(1 + {x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right)\right)\right)} \cdot \mathsf{fma}\left(y, y \cdot \frac{1}{6}, 1\right)\right)}{x} \]
                    7. Step-by-step derivation
                      1. distribute-rgt-inN/A

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

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

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

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

                        \[\leadsto \frac{y \cdot \left(\color{blue}{\mathsf{fma}\left({x}^{2}, \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right) \cdot x, x\right)} \cdot \mathsf{fma}\left(y, y \cdot \frac{1}{6}, 1\right)\right)}{x} \]
                    8. Simplified54.1%

                      \[\leadsto \frac{y \cdot \left(\color{blue}{\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, -0.0001984126984126984, 0.008333333333333333\right), -0.16666666666666666\right) \cdot x, x\right)} \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)}{x} \]
                    9. Taylor expanded in x around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(x, x \cdot \frac{-1}{6}, 1\right) \cdot \color{blue}{\left(\left(\frac{1}{6} \cdot {y}^{2}\right) \cdot y + 1 \cdot y\right)} \]
                    11. Simplified52.7%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(x, x \cdot -0.16666666666666666, 1\right) \cdot \mathsf{fma}\left(0.16666666666666666, y \cdot \left(y \cdot y\right), y\right)} \]
                    12. Taylor expanded in y around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \left(y \cdot \left(y \cdot y\right)\right) \cdot \mathsf{fma}\left(\color{blue}{x \cdot x}, \frac{-1}{6} \cdot \frac{1}{6}, \frac{1}{6}\right) \]
                      18. metadata-eval41.7

                        \[\leadsto \left(y \cdot \left(y \cdot y\right)\right) \cdot \mathsf{fma}\left(x \cdot x, \color{blue}{-0.027777777777777776}, 0.16666666666666666\right) \]
                    14. Simplified41.7%

                      \[\leadsto \color{blue}{\left(y \cdot \left(y \cdot y\right)\right) \cdot \mathsf{fma}\left(x \cdot x, -0.027777777777777776, 0.16666666666666666\right)} \]

                    if -1.99999999999999997e-118 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

                    1. Initial program 79.1%

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

                      \[\leadsto \color{blue}{\frac{y \cdot \sin x}{x}} \]
                    4. Step-by-step derivation
                      1. associate-/l*N/A

                        \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                      2. *-lowering-*.f64N/A

                        \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                      3. /-lowering-/.f64N/A

                        \[\leadsto y \cdot \color{blue}{\frac{\sin x}{x}} \]
                      4. sin-lowering-sin.f6498.3

                        \[\leadsto y \cdot \frac{\color{blue}{\sin x}}{x} \]
                    5. Simplified98.3%

                      \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                    6. Step-by-step derivation
                      1. clear-numN/A

                        \[\leadsto y \cdot \color{blue}{\frac{1}{\frac{x}{\sin x}}} \]
                      2. un-div-invN/A

                        \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                      3. /-lowering-/.f64N/A

                        \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                      4. /-lowering-/.f64N/A

                        \[\leadsto \frac{y}{\color{blue}{\frac{x}{\sin x}}} \]
                      5. sin-lowering-sin.f6498.3

                        \[\leadsto \frac{y}{\frac{x}{\color{blue}{\sin x}}} \]
                    7. Applied egg-rr98.3%

                      \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                    8. Taylor expanded in x around 0

                      \[\leadsto \frac{y}{\color{blue}{1 + \frac{1}{6} \cdot {x}^{2}}} \]
                    9. Step-by-step derivation
                      1. +-commutativeN/A

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

                        \[\leadsto \frac{y}{\color{blue}{{x}^{2} \cdot \frac{1}{6}} + 1} \]
                      3. unpow2N/A

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

                        \[\leadsto \frac{y}{\color{blue}{x \cdot \left(x \cdot \frac{1}{6}\right)} + 1} \]
                      5. accelerator-lowering-fma.f64N/A

                        \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot \frac{1}{6}, 1\right)}} \]
                      6. *-lowering-*.f6470.2

                        \[\leadsto \frac{y}{\mathsf{fma}\left(x, \color{blue}{x \cdot 0.16666666666666666}, 1\right)} \]
                    10. Simplified70.2%

                      \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}} \]

                    if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

                    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \left(\color{blue}{y \cdot \left(\frac{1}{6} \cdot y\right)} + 1\right)\right)}{x} \]
                      15. accelerator-lowering-fma.f64N/A

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \color{blue}{\mathsf{fma}\left(y, \frac{1}{6} \cdot y, 1\right)}\right)}{x} \]
                      16. *-commutativeN/A

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot \frac{1}{6}}, 1\right)\right)}{x} \]
                      17. *-lowering-*.f6473.3

                        \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot 0.16666666666666666}, 1\right)\right)}{x} \]
                    5. Simplified73.3%

                      \[\leadsto \frac{\color{blue}{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)}}{x} \]
                    6. Taylor expanded in x around 0

                      \[\leadsto \frac{y \cdot \left(\color{blue}{\left(x \cdot \left(1 + {x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right)\right)\right)} \cdot \mathsf{fma}\left(y, y \cdot \frac{1}{6}, 1\right)\right)}{x} \]
                    7. Step-by-step derivation
                      1. distribute-rgt-inN/A

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

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

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

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

                        \[\leadsto \frac{y \cdot \left(\color{blue}{\mathsf{fma}\left({x}^{2}, \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right) \cdot x, x\right)} \cdot \mathsf{fma}\left(y, y \cdot \frac{1}{6}, 1\right)\right)}{x} \]
                    8. Simplified62.2%

                      \[\leadsto \frac{y \cdot \left(\color{blue}{\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, -0.0001984126984126984, 0.008333333333333333\right), -0.16666666666666666\right) \cdot x, x\right)} \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)}{x} \]
                    9. Taylor expanded in x around 0

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

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

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

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

                        \[\leadsto \frac{1}{6} \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot y\right) + 1 \cdot y \]
                      5. unpow3N/A

                        \[\leadsto \frac{1}{6} \cdot \color{blue}{{y}^{3}} + 1 \cdot y \]
                      6. *-lft-identityN/A

                        \[\leadsto \frac{1}{6} \cdot {y}^{3} + \color{blue}{y} \]
                      7. accelerator-lowering-fma.f64N/A

                        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{1}{6}, {y}^{3}, y\right)} \]
                      8. cube-multN/A

                        \[\leadsto \mathsf{fma}\left(\frac{1}{6}, \color{blue}{y \cdot \left(y \cdot y\right)}, y\right) \]
                      9. unpow2N/A

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

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

                        \[\leadsto \mathsf{fma}\left(\frac{1}{6}, y \cdot \color{blue}{\left(y \cdot y\right)}, y\right) \]
                      12. *-lowering-*.f6459.4

                        \[\leadsto \mathsf{fma}\left(0.16666666666666666, y \cdot \color{blue}{\left(y \cdot y\right)}, y\right) \]
                    11. Simplified59.4%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(0.16666666666666666, y \cdot \left(y \cdot y\right), y\right)} \]
                  3. Recombined 3 regimes into one program.
                  4. Final simplification60.5%

                    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -2 \cdot 10^{-118}:\\ \;\;\;\;\left(y \cdot \left(y \cdot y\right)\right) \cdot \mathsf{fma}\left(x \cdot x, -0.027777777777777776, 0.16666666666666666\right)\\ \mathbf{elif}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(0.16666666666666666, y \cdot \left(y \cdot y\right), y\right)\\ \end{array} \]
                  5. Add Preprocessing

                  Alternative 15: 52.3% accurate, 0.5× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_0 := \frac{\sinh y \cdot \sin x}{x}\\ \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-118}:\\ \;\;\;\;y \cdot \left(x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(0.16666666666666666, y \cdot \left(y \cdot y\right), y\right)\\ \end{array} \end{array} \]
                  (FPCore (x y)
                   :precision binary64
                   (let* ((t_0 (/ (* (sinh y) (sin x)) x)))
                     (if (<= t_0 -2e-118)
                       (* y (* x (* x -0.16666666666666666)))
                       (if (<= t_0 5e-7)
                         (/ y (fma x (* x 0.16666666666666666) 1.0))
                         (fma 0.16666666666666666 (* y (* y y)) y)))))
                  double code(double x, double y) {
                  	double t_0 = (sinh(y) * sin(x)) / x;
                  	double tmp;
                  	if (t_0 <= -2e-118) {
                  		tmp = y * (x * (x * -0.16666666666666666));
                  	} else if (t_0 <= 5e-7) {
                  		tmp = y / fma(x, (x * 0.16666666666666666), 1.0);
                  	} else {
                  		tmp = fma(0.16666666666666666, (y * (y * y)), y);
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y)
                  	t_0 = Float64(Float64(sinh(y) * sin(x)) / x)
                  	tmp = 0.0
                  	if (t_0 <= -2e-118)
                  		tmp = Float64(y * Float64(x * Float64(x * -0.16666666666666666)));
                  	elseif (t_0 <= 5e-7)
                  		tmp = Float64(y / fma(x, Float64(x * 0.16666666666666666), 1.0));
                  	else
                  		tmp = fma(0.16666666666666666, Float64(y * Float64(y * y)), y);
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, -2e-118], N[(y * N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e-7], N[(y / N[(x * N[(x * 0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(0.16666666666666666 * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_0 := \frac{\sinh y \cdot \sin x}{x}\\
                  \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-118}:\\
                  \;\;\;\;y \cdot \left(x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\
                  
                  \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{-7}:\\
                  \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\mathsf{fma}\left(0.16666666666666666, y \cdot \left(y \cdot y\right), y\right)\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1.99999999999999997e-118

                    1. Initial program 100.0%

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

                      \[\leadsto \frac{\sin x \cdot \color{blue}{y}}{x} \]
                    4. Step-by-step derivation
                      1. Simplified16.1%

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

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

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

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

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

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

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

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

                          \[\leadsto \frac{\mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot y}{x} \]
                        8. *-lowering-*.f6428.2

                          \[\leadsto \frac{\mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot y}{x} \]
                      4. Simplified28.2%

                        \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(x, \left(x \cdot x\right) \cdot -0.16666666666666666, x\right)} \cdot y}{x} \]
                      5. Taylor expanded in x around inf

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

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

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

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

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

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

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

                          \[\leadsto y \cdot \left(x \cdot \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{1}{6}\right)\right)}\right)\right) \]
                        8. distribute-rgt-neg-inN/A

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

                          \[\leadsto y \cdot \left(x \cdot \left(\mathsf{neg}\left(\color{blue}{\frac{1}{6} \cdot x}\right)\right)\right) \]
                        10. *-lowering-*.f64N/A

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

                          \[\leadsto y \cdot \left(x \cdot \left(\mathsf{neg}\left(\color{blue}{x \cdot \frac{1}{6}}\right)\right)\right) \]
                        12. distribute-rgt-neg-inN/A

                          \[\leadsto y \cdot \left(x \cdot \color{blue}{\left(x \cdot \left(\mathsf{neg}\left(\frac{1}{6}\right)\right)\right)}\right) \]
                        13. metadata-evalN/A

                          \[\leadsto y \cdot \left(x \cdot \left(x \cdot \color{blue}{\frac{-1}{6}}\right)\right) \]
                        14. *-lowering-*.f6413.8

                          \[\leadsto y \cdot \left(x \cdot \color{blue}{\left(x \cdot -0.16666666666666666\right)}\right) \]
                      7. Simplified13.8%

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

                      if -1.99999999999999997e-118 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

                      1. Initial program 79.1%

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

                        \[\leadsto \color{blue}{\frac{y \cdot \sin x}{x}} \]
                      4. Step-by-step derivation
                        1. associate-/l*N/A

                          \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                        2. *-lowering-*.f64N/A

                          \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                        3. /-lowering-/.f64N/A

                          \[\leadsto y \cdot \color{blue}{\frac{\sin x}{x}} \]
                        4. sin-lowering-sin.f6498.3

                          \[\leadsto y \cdot \frac{\color{blue}{\sin x}}{x} \]
                      5. Simplified98.3%

                        \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                      6. Step-by-step derivation
                        1. clear-numN/A

                          \[\leadsto y \cdot \color{blue}{\frac{1}{\frac{x}{\sin x}}} \]
                        2. un-div-invN/A

                          \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                        3. /-lowering-/.f64N/A

                          \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                        4. /-lowering-/.f64N/A

                          \[\leadsto \frac{y}{\color{blue}{\frac{x}{\sin x}}} \]
                        5. sin-lowering-sin.f6498.3

                          \[\leadsto \frac{y}{\frac{x}{\color{blue}{\sin x}}} \]
                      7. Applied egg-rr98.3%

                        \[\leadsto \color{blue}{\frac{y}{\frac{x}{\sin x}}} \]
                      8. Taylor expanded in x around 0

                        \[\leadsto \frac{y}{\color{blue}{1 + \frac{1}{6} \cdot {x}^{2}}} \]
                      9. Step-by-step derivation
                        1. +-commutativeN/A

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

                          \[\leadsto \frac{y}{\color{blue}{{x}^{2} \cdot \frac{1}{6}} + 1} \]
                        3. unpow2N/A

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

                          \[\leadsto \frac{y}{\color{blue}{x \cdot \left(x \cdot \frac{1}{6}\right)} + 1} \]
                        5. accelerator-lowering-fma.f64N/A

                          \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot \frac{1}{6}, 1\right)}} \]
                        6. *-lowering-*.f6470.2

                          \[\leadsto \frac{y}{\mathsf{fma}\left(x, \color{blue}{x \cdot 0.16666666666666666}, 1\right)} \]
                      10. Simplified70.2%

                        \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}} \]

                      if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

                      1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \frac{y \cdot \left(\sin x \cdot \left(\color{blue}{y \cdot \left(\frac{1}{6} \cdot y\right)} + 1\right)\right)}{x} \]
                        15. accelerator-lowering-fma.f64N/A

                          \[\leadsto \frac{y \cdot \left(\sin x \cdot \color{blue}{\mathsf{fma}\left(y, \frac{1}{6} \cdot y, 1\right)}\right)}{x} \]
                        16. *-commutativeN/A

                          \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot \frac{1}{6}}, 1\right)\right)}{x} \]
                        17. *-lowering-*.f6473.3

                          \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot 0.16666666666666666}, 1\right)\right)}{x} \]
                      5. Simplified73.3%

                        \[\leadsto \frac{\color{blue}{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)}}{x} \]
                      6. Taylor expanded in x around 0

                        \[\leadsto \frac{y \cdot \left(\color{blue}{\left(x \cdot \left(1 + {x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right)\right)\right)} \cdot \mathsf{fma}\left(y, y \cdot \frac{1}{6}, 1\right)\right)}{x} \]
                      7. Step-by-step derivation
                        1. distribute-rgt-inN/A

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

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

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

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

                          \[\leadsto \frac{y \cdot \left(\color{blue}{\mathsf{fma}\left({x}^{2}, \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right) \cdot x, x\right)} \cdot \mathsf{fma}\left(y, y \cdot \frac{1}{6}, 1\right)\right)}{x} \]
                      8. Simplified62.2%

                        \[\leadsto \frac{y \cdot \left(\color{blue}{\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, -0.0001984126984126984, 0.008333333333333333\right), -0.16666666666666666\right) \cdot x, x\right)} \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)}{x} \]
                      9. Taylor expanded in x around 0

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

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

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

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

                          \[\leadsto \frac{1}{6} \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot y\right) + 1 \cdot y \]
                        5. unpow3N/A

                          \[\leadsto \frac{1}{6} \cdot \color{blue}{{y}^{3}} + 1 \cdot y \]
                        6. *-lft-identityN/A

                          \[\leadsto \frac{1}{6} \cdot {y}^{3} + \color{blue}{y} \]
                        7. accelerator-lowering-fma.f64N/A

                          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{1}{6}, {y}^{3}, y\right)} \]
                        8. cube-multN/A

                          \[\leadsto \mathsf{fma}\left(\frac{1}{6}, \color{blue}{y \cdot \left(y \cdot y\right)}, y\right) \]
                        9. unpow2N/A

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

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

                          \[\leadsto \mathsf{fma}\left(\frac{1}{6}, y \cdot \color{blue}{\left(y \cdot y\right)}, y\right) \]
                        12. *-lowering-*.f6459.4

                          \[\leadsto \mathsf{fma}\left(0.16666666666666666, y \cdot \color{blue}{\left(y \cdot y\right)}, y\right) \]
                      11. Simplified59.4%

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -2 \cdot 10^{-118}:\\ \;\;\;\;y \cdot \left(x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\ \mathbf{elif}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(x, x \cdot 0.16666666666666666, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(0.16666666666666666, y \cdot \left(y \cdot y\right), y\right)\\ \end{array} \]
                    7. Add Preprocessing

                    Alternative 16: 29.5% accurate, 0.5× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_0 := \frac{\sinh y \cdot \sin x}{x}\\ \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-201}:\\ \;\;\;\;y \cdot \left(x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\ \mathbf{elif}\;t\_0 \leq 0.001:\\ \;\;\;\;y\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot x}{x}\\ \end{array} \end{array} \]
                    (FPCore (x y)
                     :precision binary64
                     (let* ((t_0 (/ (* (sinh y) (sin x)) x)))
                       (if (<= t_0 -2e-201)
                         (* y (* x (* x -0.16666666666666666)))
                         (if (<= t_0 0.001) y (/ (* y x) x)))))
                    double code(double x, double y) {
                    	double t_0 = (sinh(y) * sin(x)) / x;
                    	double tmp;
                    	if (t_0 <= -2e-201) {
                    		tmp = y * (x * (x * -0.16666666666666666));
                    	} else if (t_0 <= 0.001) {
                    		tmp = y;
                    	} else {
                    		tmp = (y * x) / x;
                    	}
                    	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 = (sinh(y) * sin(x)) / x
                        if (t_0 <= (-2d-201)) then
                            tmp = y * (x * (x * (-0.16666666666666666d0)))
                        else if (t_0 <= 0.001d0) then
                            tmp = y
                        else
                            tmp = (y * x) / x
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y) {
                    	double t_0 = (Math.sinh(y) * Math.sin(x)) / x;
                    	double tmp;
                    	if (t_0 <= -2e-201) {
                    		tmp = y * (x * (x * -0.16666666666666666));
                    	} else if (t_0 <= 0.001) {
                    		tmp = y;
                    	} else {
                    		tmp = (y * x) / x;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y):
                    	t_0 = (math.sinh(y) * math.sin(x)) / x
                    	tmp = 0
                    	if t_0 <= -2e-201:
                    		tmp = y * (x * (x * -0.16666666666666666))
                    	elif t_0 <= 0.001:
                    		tmp = y
                    	else:
                    		tmp = (y * x) / x
                    	return tmp
                    
                    function code(x, y)
                    	t_0 = Float64(Float64(sinh(y) * sin(x)) / x)
                    	tmp = 0.0
                    	if (t_0 <= -2e-201)
                    		tmp = Float64(y * Float64(x * Float64(x * -0.16666666666666666)));
                    	elseif (t_0 <= 0.001)
                    		tmp = y;
                    	else
                    		tmp = Float64(Float64(y * x) / x);
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y)
                    	t_0 = (sinh(y) * sin(x)) / x;
                    	tmp = 0.0;
                    	if (t_0 <= -2e-201)
                    		tmp = y * (x * (x * -0.16666666666666666));
                    	elseif (t_0 <= 0.001)
                    		tmp = y;
                    	else
                    		tmp = (y * x) / x;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, -2e-201], N[(y * N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 0.001], y, N[(N[(y * x), $MachinePrecision] / x), $MachinePrecision]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_0 := \frac{\sinh y \cdot \sin x}{x}\\
                    \mathbf{if}\;t\_0 \leq -2 \cdot 10^{-201}:\\
                    \;\;\;\;y \cdot \left(x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\
                    
                    \mathbf{elif}\;t\_0 \leq 0.001:\\
                    \;\;\;\;y\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\frac{y \cdot x}{x}\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1.99999999999999989e-201

                      1. Initial program 99.7%

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

                        \[\leadsto \frac{\sin x \cdot \color{blue}{y}}{x} \]
                      4. Step-by-step derivation
                        1. Simplified28.3%

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

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

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

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

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

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

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

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

                            \[\leadsto \frac{\mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot y}{x} \]
                          8. *-lowering-*.f6428.8

                            \[\leadsto \frac{\mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot y}{x} \]
                        4. Simplified28.8%

                          \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(x, \left(x \cdot x\right) \cdot -0.16666666666666666, x\right)} \cdot y}{x} \]
                        5. Taylor expanded in x around inf

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

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

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

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

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

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

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

                            \[\leadsto y \cdot \left(x \cdot \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{1}{6}\right)\right)}\right)\right) \]
                          8. distribute-rgt-neg-inN/A

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

                            \[\leadsto y \cdot \left(x \cdot \left(\mathsf{neg}\left(\color{blue}{\frac{1}{6} \cdot x}\right)\right)\right) \]
                          10. *-lowering-*.f64N/A

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

                            \[\leadsto y \cdot \left(x \cdot \left(\mathsf{neg}\left(\color{blue}{x \cdot \frac{1}{6}}\right)\right)\right) \]
                          12. distribute-rgt-neg-inN/A

                            \[\leadsto y \cdot \left(x \cdot \color{blue}{\left(x \cdot \left(\mathsf{neg}\left(\frac{1}{6}\right)\right)\right)}\right) \]
                          13. metadata-evalN/A

                            \[\leadsto y \cdot \left(x \cdot \left(x \cdot \color{blue}{\frac{-1}{6}}\right)\right) \]
                          14. *-lowering-*.f6412.0

                            \[\leadsto y \cdot \left(x \cdot \color{blue}{\left(x \cdot -0.16666666666666666\right)}\right) \]
                        7. Simplified12.0%

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

                        if -1.99999999999999989e-201 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 1e-3

                        1. Initial program 77.1%

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

                          \[\leadsto \color{blue}{\frac{y \cdot \sin x}{x}} \]
                        4. Step-by-step derivation
                          1. associate-/l*N/A

                            \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                          2. *-lowering-*.f64N/A

                            \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                          3. /-lowering-/.f64N/A

                            \[\leadsto y \cdot \color{blue}{\frac{\sin x}{x}} \]
                          4. sin-lowering-sin.f6499.0

                            \[\leadsto y \cdot \frac{\color{blue}{\sin x}}{x} \]
                        5. Simplified99.0%

                          \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                        6. Taylor expanded in x around 0

                          \[\leadsto \color{blue}{y} \]
                        7. Step-by-step derivation
                          1. Simplified44.2%

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

                          if 1e-3 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

                          1. Initial program 100.0%

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

                            \[\leadsto \frac{\sin x \cdot \color{blue}{y}}{x} \]
                          4. Step-by-step derivation
                            1. Simplified5.0%

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

                              \[\leadsto \frac{\color{blue}{x \cdot y}}{x} \]
                            3. Step-by-step derivation
                              1. *-commutativeN/A

                                \[\leadsto \frac{\color{blue}{y \cdot x}}{x} \]
                              2. *-lowering-*.f6415.1

                                \[\leadsto \frac{\color{blue}{y \cdot x}}{x} \]
                            4. Simplified15.1%

                              \[\leadsto \frac{\color{blue}{y \cdot x}}{x} \]
                          5. Recombined 3 regimes into one program.
                          6. Final simplification27.3%

                            \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -2 \cdot 10^{-201}:\\ \;\;\;\;y \cdot \left(x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\ \mathbf{elif}\;\frac{\sinh y \cdot \sin x}{x} \leq 0.001:\\ \;\;\;\;y\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot x}{x}\\ \end{array} \]
                          7. Add Preprocessing

                          Alternative 17: 90.1% accurate, 0.6× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y\right) \cdot \frac{\sin x}{x}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\sinh y}{x}\\ \end{array} \end{array} \]
                          (FPCore (x y)
                           :precision binary64
                           (if (<= (/ (* (sinh y) (sin x)) x) 5e-7)
                             (*
                              (fma
                               y
                               (*
                                (* y y)
                                (fma
                                 y
                                 (* y (fma (* y y) 0.0001984126984126984 0.008333333333333333))
                                 0.16666666666666666))
                               y)
                              (/ (sin x) x))
                             (* x (/ (sinh y) x))))
                          double code(double x, double y) {
                          	double tmp;
                          	if (((sinh(y) * sin(x)) / x) <= 5e-7) {
                          		tmp = fma(y, ((y * y) * fma(y, (y * fma((y * y), 0.0001984126984126984, 0.008333333333333333)), 0.16666666666666666)), y) * (sin(x) / x);
                          	} else {
                          		tmp = x * (sinh(y) / x);
                          	}
                          	return tmp;
                          }
                          
                          function code(x, y)
                          	tmp = 0.0
                          	if (Float64(Float64(sinh(y) * sin(x)) / x) <= 5e-7)
                          		tmp = Float64(fma(y, Float64(Float64(y * y) * fma(y, Float64(y * fma(Float64(y * y), 0.0001984126984126984, 0.008333333333333333)), 0.16666666666666666)), y) * Float64(sin(x) / x));
                          	else
                          		tmp = Float64(x * Float64(sinh(y) / x));
                          	end
                          	return tmp
                          end
                          
                          code[x_, y_] := If[LessEqual[N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], 5e-7], N[(N[(y * N[(N[(y * y), $MachinePrecision] * N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984 + 0.008333333333333333), $MachinePrecision]), $MachinePrecision] + 0.16666666666666666), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision] * N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Sinh[y], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\
                          \;\;\;\;\mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y\right) \cdot \frac{\sin x}{x}\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;x \cdot \frac{\sinh y}{x}\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

                            1. Initial program 86.0%

                              \[\frac{\sin x \cdot \sinh y}{x} \]
                            2. Add Preprocessing
                            3. Step-by-step derivation
                              1. associate-/l*N/A

                                \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
                              2. *-commutativeN/A

                                \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                              3. *-lowering-*.f64N/A

                                \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                              4. /-lowering-/.f64N/A

                                \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
                              5. sinh-lowering-sinh.f64N/A

                                \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
                              6. sin-lowering-sin.f6499.8

                                \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
                            4. Applied egg-rr99.8%

                              \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                            5. Taylor expanded in y around 0

                              \[\leadsto \frac{\color{blue}{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)}}{x} \cdot \sin x \]
                            6. Step-by-step derivation
                              1. *-commutativeN/A

                                \[\leadsto \frac{\color{blue}{\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) \cdot y}}{x} \cdot \sin x \]
                              2. +-commutativeN/A

                                \[\leadsto \frac{\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) + 1\right)} \cdot y}{x} \cdot \sin x \]
                              3. distribute-lft1-inN/A

                                \[\leadsto \frac{\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) \cdot y + y}}{x} \cdot \sin x \]
                              4. *-commutativeN/A

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

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

                                \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot y\right) + y}{x} \cdot \sin x \]
                              7. unpow3N/A

                                \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \color{blue}{{y}^{3}} + y}{x} \cdot \sin x \]
                              8. accelerator-lowering-fma.f64N/A

                                \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right), {y}^{3}, y\right)}}{x} \cdot \sin x \]
                            7. Simplified97.3%

                              \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}}{x} \cdot \sin x \]
                            8. Taylor expanded in x around inf

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

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

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

                                \[\leadsto \color{blue}{\left(y + {y}^{3} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right) \cdot \frac{\sin x}{x}} \]
                            10. Simplified96.4%

                              \[\leadsto \color{blue}{\mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y\right) \cdot \frac{\sin x}{x}} \]

                            if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

                            1. Initial program 100.0%

                              \[\frac{\sin x \cdot \sinh y}{x} \]
                            2. Add Preprocessing
                            3. Step-by-step derivation
                              1. associate-/l*N/A

                                \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
                              2. *-commutativeN/A

                                \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                              3. *-lowering-*.f64N/A

                                \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                              4. /-lowering-/.f64N/A

                                \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
                              5. sinh-lowering-sinh.f64N/A

                                \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
                              6. sin-lowering-sin.f64100.0

                                \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
                            4. Applied egg-rr100.0%

                              \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                            5. Taylor expanded in x around 0

                              \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{x} \]
                            6. Step-by-step derivation
                              1. Simplified81.5%

                                \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{x} \]
                            7. Recombined 2 regimes into one program.
                            8. Final simplification92.6%

                              \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y\right) \cdot \frac{\sin x}{x}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\sinh y}{x}\\ \end{array} \]
                            9. Add Preprocessing

                            Alternative 18: 90.9% accurate, 0.6× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\sin x \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\sinh y}{x}\\ \end{array} \end{array} \]
                            (FPCore (x y)
                             :precision binary64
                             (if (<= (/ (* (sinh y) (sin x)) x) 5e-7)
                               (*
                                (sin x)
                                (/
                                 (fma
                                  (fma
                                   (* y y)
                                   (fma (* y y) 0.0001984126984126984 0.008333333333333333)
                                   0.16666666666666666)
                                  (* y (* y y))
                                  y)
                                 x))
                               (* x (/ (sinh y) x))))
                            double code(double x, double y) {
                            	double tmp;
                            	if (((sinh(y) * sin(x)) / x) <= 5e-7) {
                            		tmp = sin(x) * (fma(fma((y * y), fma((y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666), (y * (y * y)), y) / x);
                            	} else {
                            		tmp = x * (sinh(y) / x);
                            	}
                            	return tmp;
                            }
                            
                            function code(x, y)
                            	tmp = 0.0
                            	if (Float64(Float64(sinh(y) * sin(x)) / x) <= 5e-7)
                            		tmp = Float64(sin(x) * Float64(fma(fma(Float64(y * y), fma(Float64(y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666), Float64(y * Float64(y * y)), y) / x));
                            	else
                            		tmp = Float64(x * Float64(sinh(y) / x));
                            	end
                            	return tmp
                            end
                            
                            code[x_, y_] := If[LessEqual[N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], 5e-7], N[(N[Sin[x], $MachinePrecision] * N[(N[(N[(N[(y * y), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984 + 0.008333333333333333), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Sinh[y], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\
                            \;\;\;\;\sin x \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x}\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;x \cdot \frac{\sinh y}{x}\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

                              1. Initial program 86.0%

                                \[\frac{\sin x \cdot \sinh y}{x} \]
                              2. Add Preprocessing
                              3. Step-by-step derivation
                                1. associate-/l*N/A

                                  \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
                                2. *-commutativeN/A

                                  \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                                3. *-lowering-*.f64N/A

                                  \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                                4. /-lowering-/.f64N/A

                                  \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
                                5. sinh-lowering-sinh.f64N/A

                                  \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
                                6. sin-lowering-sin.f6499.8

                                  \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
                              4. Applied egg-rr99.8%

                                \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                              5. Taylor expanded in y around 0

                                \[\leadsto \frac{\color{blue}{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)}}{x} \cdot \sin x \]
                              6. Step-by-step derivation
                                1. *-commutativeN/A

                                  \[\leadsto \frac{\color{blue}{\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) \cdot y}}{x} \cdot \sin x \]
                                2. +-commutativeN/A

                                  \[\leadsto \frac{\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) + 1\right)} \cdot y}{x} \cdot \sin x \]
                                3. distribute-lft1-inN/A

                                  \[\leadsto \frac{\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) \cdot y + y}}{x} \cdot \sin x \]
                                4. *-commutativeN/A

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

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

                                  \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot y\right) + y}{x} \cdot \sin x \]
                                7. unpow3N/A

                                  \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \color{blue}{{y}^{3}} + y}{x} \cdot \sin x \]
                                8. accelerator-lowering-fma.f64N/A

                                  \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right), {y}^{3}, y\right)}}{x} \cdot \sin x \]
                              7. Simplified97.3%

                                \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}}{x} \cdot \sin x \]

                              if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

                              1. Initial program 100.0%

                                \[\frac{\sin x \cdot \sinh y}{x} \]
                              2. Add Preprocessing
                              3. Step-by-step derivation
                                1. associate-/l*N/A

                                  \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
                                2. *-commutativeN/A

                                  \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                                3. *-lowering-*.f64N/A

                                  \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                                4. /-lowering-/.f64N/A

                                  \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
                                5. sinh-lowering-sinh.f64N/A

                                  \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
                                6. sin-lowering-sin.f64100.0

                                  \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
                              4. Applied egg-rr100.0%

                                \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                              5. Taylor expanded in x around 0

                                \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{x} \]
                              6. Step-by-step derivation
                                1. Simplified81.5%

                                  \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{x} \]
                              7. Recombined 2 regimes into one program.
                              8. Final simplification93.3%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\sin x \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\sinh y}{x}\\ \end{array} \]
                              9. Add Preprocessing

                              Alternative 19: 90.7% accurate, 0.6× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\sin x \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \left(y \cdot y\right) \cdot 0.0001984126984126984, 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\sinh y}{x}\\ \end{array} \end{array} \]
                              (FPCore (x y)
                               :precision binary64
                               (if (<= (/ (* (sinh y) (sin x)) x) 5e-7)
                                 (*
                                  (sin x)
                                  (/
                                   (fma
                                    (fma (* y y) (* (* y y) 0.0001984126984126984) 0.16666666666666666)
                                    (* y (* y y))
                                    y)
                                   x))
                                 (* x (/ (sinh y) x))))
                              double code(double x, double y) {
                              	double tmp;
                              	if (((sinh(y) * sin(x)) / x) <= 5e-7) {
                              		tmp = sin(x) * (fma(fma((y * y), ((y * y) * 0.0001984126984126984), 0.16666666666666666), (y * (y * y)), y) / x);
                              	} else {
                              		tmp = x * (sinh(y) / x);
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y)
                              	tmp = 0.0
                              	if (Float64(Float64(sinh(y) * sin(x)) / x) <= 5e-7)
                              		tmp = Float64(sin(x) * Float64(fma(fma(Float64(y * y), Float64(Float64(y * y) * 0.0001984126984126984), 0.16666666666666666), Float64(y * Float64(y * y)), y) / x));
                              	else
                              		tmp = Float64(x * Float64(sinh(y) / x));
                              	end
                              	return tmp
                              end
                              
                              code[x_, y_] := If[LessEqual[N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], 5e-7], N[(N[Sin[x], $MachinePrecision] * N[(N[(N[(N[(y * y), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Sinh[y], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\
                              \;\;\;\;\sin x \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \left(y \cdot y\right) \cdot 0.0001984126984126984, 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x}\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;x \cdot \frac{\sinh y}{x}\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

                                1. Initial program 86.0%

                                  \[\frac{\sin x \cdot \sinh y}{x} \]
                                2. Add Preprocessing
                                3. Step-by-step derivation
                                  1. associate-/l*N/A

                                    \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
                                  2. *-commutativeN/A

                                    \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                                  3. *-lowering-*.f64N/A

                                    \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                                  4. /-lowering-/.f64N/A

                                    \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
                                  5. sinh-lowering-sinh.f64N/A

                                    \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
                                  6. sin-lowering-sin.f6499.8

                                    \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
                                4. Applied egg-rr99.8%

                                  \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                                5. Taylor expanded in y around 0

                                  \[\leadsto \frac{\color{blue}{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)}}{x} \cdot \sin x \]
                                6. Step-by-step derivation
                                  1. *-commutativeN/A

                                    \[\leadsto \frac{\color{blue}{\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) \cdot y}}{x} \cdot \sin x \]
                                  2. +-commutativeN/A

                                    \[\leadsto \frac{\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) + 1\right)} \cdot y}{x} \cdot \sin x \]
                                  3. distribute-lft1-inN/A

                                    \[\leadsto \frac{\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) \cdot y + y}}{x} \cdot \sin x \]
                                  4. *-commutativeN/A

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

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

                                    \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot y\right) + y}{x} \cdot \sin x \]
                                  7. unpow3N/A

                                    \[\leadsto \frac{\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot \color{blue}{{y}^{3}} + y}{x} \cdot \sin x \]
                                  8. accelerator-lowering-fma.f64N/A

                                    \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right), {y}^{3}, y\right)}}{x} \cdot \sin x \]
                                7. Simplified97.3%

                                  \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}}{x} \cdot \sin x \]
                                8. Taylor expanded in y around inf

                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \color{blue}{\frac{1}{5040} \cdot {y}^{2}}, \frac{1}{6}\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \sin x \]
                                9. Step-by-step derivation
                                  1. *-commutativeN/A

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

                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \color{blue}{{y}^{2} \cdot \frac{1}{5040}}, \frac{1}{6}\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \sin x \]
                                  3. unpow2N/A

                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \color{blue}{\left(y \cdot y\right)} \cdot \frac{1}{5040}, \frac{1}{6}\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \sin x \]
                                  4. *-lowering-*.f6496.9

                                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \color{blue}{\left(y \cdot y\right)} \cdot 0.0001984126984126984, 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \sin x \]
                                10. Simplified96.9%

                                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \color{blue}{\left(y \cdot y\right) \cdot 0.0001984126984126984}, 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x} \cdot \sin x \]

                                if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

                                1. Initial program 100.0%

                                  \[\frac{\sin x \cdot \sinh y}{x} \]
                                2. Add Preprocessing
                                3. Step-by-step derivation
                                  1. associate-/l*N/A

                                    \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
                                  2. *-commutativeN/A

                                    \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                                  3. *-lowering-*.f64N/A

                                    \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                                  4. /-lowering-/.f64N/A

                                    \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
                                  5. sinh-lowering-sinh.f64N/A

                                    \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
                                  6. sin-lowering-sin.f64100.0

                                    \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
                                4. Applied egg-rr100.0%

                                  \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                                5. Taylor expanded in x around 0

                                  \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{x} \]
                                6. Step-by-step derivation
                                  1. Simplified81.5%

                                    \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{x} \]
                                7. Recombined 2 regimes into one program.
                                8. Final simplification93.0%

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\sin x \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, \left(y \cdot y\right) \cdot 0.0001984126984126984, 0.16666666666666666\right), y \cdot \left(y \cdot y\right), y\right)}{x}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\sinh y}{x}\\ \end{array} \]
                                9. Add Preprocessing

                                Alternative 20: 88.5% accurate, 0.6× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\left(\sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.008333333333333333, 0.16666666666666666\right), 1\right)\right) \cdot \frac{y}{x}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\sinh y}{x}\\ \end{array} \end{array} \]
                                (FPCore (x y)
                                 :precision binary64
                                 (if (<= (/ (* (sinh y) (sin x)) x) 5e-7)
                                   (*
                                    (*
                                     (sin x)
                                     (fma y (* y (fma (* y y) 0.008333333333333333 0.16666666666666666)) 1.0))
                                    (/ y x))
                                   (* x (/ (sinh y) x))))
                                double code(double x, double y) {
                                	double tmp;
                                	if (((sinh(y) * sin(x)) / x) <= 5e-7) {
                                		tmp = (sin(x) * fma(y, (y * fma((y * y), 0.008333333333333333, 0.16666666666666666)), 1.0)) * (y / x);
                                	} else {
                                		tmp = x * (sinh(y) / x);
                                	}
                                	return tmp;
                                }
                                
                                function code(x, y)
                                	tmp = 0.0
                                	if (Float64(Float64(sinh(y) * sin(x)) / x) <= 5e-7)
                                		tmp = Float64(Float64(sin(x) * fma(y, Float64(y * fma(Float64(y * y), 0.008333333333333333, 0.16666666666666666)), 1.0)) * Float64(y / x));
                                	else
                                		tmp = Float64(x * Float64(sinh(y) / x));
                                	end
                                	return tmp
                                end
                                
                                code[x_, y_] := If[LessEqual[N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], 5e-7], N[(N[(N[Sin[x], $MachinePrecision] * N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * 0.008333333333333333 + 0.16666666666666666), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * N[(y / x), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Sinh[y], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\
                                \;\;\;\;\left(\sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.008333333333333333, 0.16666666666666666\right), 1\right)\right) \cdot \frac{y}{x}\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;x \cdot \frac{\sinh y}{x}\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 4.99999999999999977e-7

                                  1. Initial program 86.0%

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \frac{y \cdot \left(\sin x \cdot 1 + \left(\color{blue}{\left(\frac{1}{6} \cdot {y}^{2}\right)} \cdot \sin x + {y}^{2} \cdot \left({y}^{2} \cdot \left(\frac{1}{120} \cdot \sin x\right)\right)\right)\right)}{x} \]
                                  5. Simplified81.4%

                                    \[\leadsto \frac{\color{blue}{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right)\right)}}{x} \]
                                  6. Step-by-step derivation
                                    1. *-commutativeN/A

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

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

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

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

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

                                      \[\leadsto \left(\sin x \cdot \left(\color{blue}{y \cdot \left(y \cdot \left(y \cdot \left(y \cdot \frac{1}{120}\right) + \frac{1}{6}\right)\right)} + 1\right)\right) \cdot \frac{y}{x} \]
                                    7. accelerator-lowering-fma.f64N/A

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

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

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

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

                                      \[\leadsto \left(\sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{120}, \frac{1}{6}\right), 1\right)\right) \cdot \frac{y}{x} \]
                                    12. /-lowering-/.f6494.7

                                      \[\leadsto \left(\sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.008333333333333333, 0.16666666666666666\right), 1\right)\right) \cdot \color{blue}{\frac{y}{x}} \]
                                  7. Applied egg-rr94.7%

                                    \[\leadsto \color{blue}{\left(\sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.008333333333333333, 0.16666666666666666\right), 1\right)\right) \cdot \frac{y}{x}} \]

                                  if 4.99999999999999977e-7 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

                                  1. Initial program 100.0%

                                    \[\frac{\sin x \cdot \sinh y}{x} \]
                                  2. Add Preprocessing
                                  3. Step-by-step derivation
                                    1. associate-/l*N/A

                                      \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{x}} \]
                                    2. *-commutativeN/A

                                      \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                                    3. *-lowering-*.f64N/A

                                      \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                                    4. /-lowering-/.f64N/A

                                      \[\leadsto \color{blue}{\frac{\sinh y}{x}} \cdot \sin x \]
                                    5. sinh-lowering-sinh.f64N/A

                                      \[\leadsto \frac{\color{blue}{\sinh y}}{x} \cdot \sin x \]
                                    6. sin-lowering-sin.f64100.0

                                      \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{\sin x} \]
                                  4. Applied egg-rr100.0%

                                    \[\leadsto \color{blue}{\frac{\sinh y}{x} \cdot \sin x} \]
                                  5. Taylor expanded in x around 0

                                    \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{x} \]
                                  6. Step-by-step derivation
                                    1. Simplified81.5%

                                      \[\leadsto \frac{\sinh y}{x} \cdot \color{blue}{x} \]
                                  7. Recombined 2 regimes into one program.
                                  8. Final simplification91.4%

                                    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;\left(\sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.008333333333333333, 0.16666666666666666\right), 1\right)\right) \cdot \frac{y}{x}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{\sinh y}{x}\\ \end{array} \]
                                  9. Add Preprocessing

                                  Alternative 21: 38.7% accurate, 0.9× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -2 \cdot 10^{-201}:\\ \;\;\;\;y \cdot \left(x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(0.16666666666666666, y \cdot \left(y \cdot y\right), y\right)\\ \end{array} \end{array} \]
                                  (FPCore (x y)
                                   :precision binary64
                                   (if (<= (/ (* (sinh y) (sin x)) x) -2e-201)
                                     (* y (* x (* x -0.16666666666666666)))
                                     (fma 0.16666666666666666 (* y (* y y)) y)))
                                  double code(double x, double y) {
                                  	double tmp;
                                  	if (((sinh(y) * sin(x)) / x) <= -2e-201) {
                                  		tmp = y * (x * (x * -0.16666666666666666));
                                  	} else {
                                  		tmp = fma(0.16666666666666666, (y * (y * y)), y);
                                  	}
                                  	return tmp;
                                  }
                                  
                                  function code(x, y)
                                  	tmp = 0.0
                                  	if (Float64(Float64(sinh(y) * sin(x)) / x) <= -2e-201)
                                  		tmp = Float64(y * Float64(x * Float64(x * -0.16666666666666666)));
                                  	else
                                  		tmp = fma(0.16666666666666666, Float64(y * Float64(y * y)), y);
                                  	end
                                  	return tmp
                                  end
                                  
                                  code[x_, y_] := If[LessEqual[N[(N[(N[Sinh[y], $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], -2e-201], N[(y * N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.16666666666666666 * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -2 \cdot 10^{-201}:\\
                                  \;\;\;\;y \cdot \left(x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\mathsf{fma}\left(0.16666666666666666, y \cdot \left(y \cdot y\right), y\right)\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1.99999999999999989e-201

                                    1. Initial program 99.7%

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

                                      \[\leadsto \frac{\sin x \cdot \color{blue}{y}}{x} \]
                                    4. Step-by-step derivation
                                      1. Simplified28.3%

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

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

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

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

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

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

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

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

                                          \[\leadsto \frac{\mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot y}{x} \]
                                        8. *-lowering-*.f6428.8

                                          \[\leadsto \frac{\mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot y}{x} \]
                                      4. Simplified28.8%

                                        \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(x, \left(x \cdot x\right) \cdot -0.16666666666666666, x\right)} \cdot y}{x} \]
                                      5. Taylor expanded in x around inf

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

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

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

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

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

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

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

                                          \[\leadsto y \cdot \left(x \cdot \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{1}{6}\right)\right)}\right)\right) \]
                                        8. distribute-rgt-neg-inN/A

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

                                          \[\leadsto y \cdot \left(x \cdot \left(\mathsf{neg}\left(\color{blue}{\frac{1}{6} \cdot x}\right)\right)\right) \]
                                        10. *-lowering-*.f64N/A

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

                                          \[\leadsto y \cdot \left(x \cdot \left(\mathsf{neg}\left(\color{blue}{x \cdot \frac{1}{6}}\right)\right)\right) \]
                                        12. distribute-rgt-neg-inN/A

                                          \[\leadsto y \cdot \left(x \cdot \color{blue}{\left(x \cdot \left(\mathsf{neg}\left(\frac{1}{6}\right)\right)\right)}\right) \]
                                        13. metadata-evalN/A

                                          \[\leadsto y \cdot \left(x \cdot \left(x \cdot \color{blue}{\frac{-1}{6}}\right)\right) \]
                                        14. *-lowering-*.f6412.0

                                          \[\leadsto y \cdot \left(x \cdot \color{blue}{\left(x \cdot -0.16666666666666666\right)}\right) \]
                                      7. Simplified12.0%

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

                                      if -1.99999999999999989e-201 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

                                      1. Initial program 85.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \frac{y \cdot \left(\sin x \cdot \left(\color{blue}{y \cdot \left(\frac{1}{6} \cdot y\right)} + 1\right)\right)}{x} \]
                                        15. accelerator-lowering-fma.f64N/A

                                          \[\leadsto \frac{y \cdot \left(\sin x \cdot \color{blue}{\mathsf{fma}\left(y, \frac{1}{6} \cdot y, 1\right)}\right)}{x} \]
                                        16. *-commutativeN/A

                                          \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot \frac{1}{6}}, 1\right)\right)}{x} \]
                                        17. *-lowering-*.f6475.6

                                          \[\leadsto \frac{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot 0.16666666666666666}, 1\right)\right)}{x} \]
                                      5. Simplified75.6%

                                        \[\leadsto \frac{\color{blue}{y \cdot \left(\sin x \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)}}{x} \]
                                      6. Taylor expanded in x around 0

                                        \[\leadsto \frac{y \cdot \left(\color{blue}{\left(x \cdot \left(1 + {x}^{2} \cdot \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right)\right)\right)} \cdot \mathsf{fma}\left(y, y \cdot \frac{1}{6}, 1\right)\right)}{x} \]
                                      7. Step-by-step derivation
                                        1. distribute-rgt-inN/A

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

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

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

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

                                          \[\leadsto \frac{y \cdot \left(\color{blue}{\mathsf{fma}\left({x}^{2}, \left({x}^{2} \cdot \left(\frac{1}{120} + \frac{-1}{5040} \cdot {x}^{2}\right) - \frac{1}{6}\right) \cdot x, x\right)} \cdot \mathsf{fma}\left(y, y \cdot \frac{1}{6}, 1\right)\right)}{x} \]
                                      8. Simplified35.1%

                                        \[\leadsto \frac{y \cdot \left(\color{blue}{\mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, -0.0001984126984126984, 0.008333333333333333\right), -0.16666666666666666\right) \cdot x, x\right)} \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\right)}{x} \]
                                      9. Taylor expanded in x around 0

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

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

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

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

                                          \[\leadsto \frac{1}{6} \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot y\right) + 1 \cdot y \]
                                        5. unpow3N/A

                                          \[\leadsto \frac{1}{6} \cdot \color{blue}{{y}^{3}} + 1 \cdot y \]
                                        6. *-lft-identityN/A

                                          \[\leadsto \frac{1}{6} \cdot {y}^{3} + \color{blue}{y} \]
                                        7. accelerator-lowering-fma.f64N/A

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{1}{6}, {y}^{3}, y\right)} \]
                                        8. cube-multN/A

                                          \[\leadsto \mathsf{fma}\left(\frac{1}{6}, \color{blue}{y \cdot \left(y \cdot y\right)}, y\right) \]
                                        9. unpow2N/A

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

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

                                          \[\leadsto \mathsf{fma}\left(\frac{1}{6}, y \cdot \color{blue}{\left(y \cdot y\right)}, y\right) \]
                                        12. *-lowering-*.f6449.6

                                          \[\leadsto \mathsf{fma}\left(0.16666666666666666, y \cdot \color{blue}{\left(y \cdot y\right)}, y\right) \]
                                      11. Simplified49.6%

                                        \[\leadsto \color{blue}{\mathsf{fma}\left(0.16666666666666666, y \cdot \left(y \cdot y\right), y\right)} \]
                                    5. Recombined 2 regimes into one program.
                                    6. Final simplification38.4%

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -2 \cdot 10^{-201}:\\ \;\;\;\;y \cdot \left(x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(0.16666666666666666, y \cdot \left(y \cdot y\right), y\right)\\ \end{array} \]
                                    7. Add Preprocessing

                                    Alternative 22: 26.5% accurate, 0.9× speedup?

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

                                      1. Initial program 99.7%

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

                                        \[\leadsto \frac{\sin x \cdot \color{blue}{y}}{x} \]
                                      4. Step-by-step derivation
                                        1. Simplified28.3%

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

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

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

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

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

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

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

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

                                            \[\leadsto \frac{\mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot y}{x} \]
                                          8. *-lowering-*.f6428.8

                                            \[\leadsto \frac{\mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot y}{x} \]
                                        4. Simplified28.8%

                                          \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(x, \left(x \cdot x\right) \cdot -0.16666666666666666, x\right)} \cdot y}{x} \]
                                        5. Taylor expanded in x around inf

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

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

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

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

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

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

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

                                            \[\leadsto y \cdot \left(x \cdot \left(x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{1}{6}\right)\right)}\right)\right) \]
                                          8. distribute-rgt-neg-inN/A

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

                                            \[\leadsto y \cdot \left(x \cdot \left(\mathsf{neg}\left(\color{blue}{\frac{1}{6} \cdot x}\right)\right)\right) \]
                                          10. *-lowering-*.f64N/A

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

                                            \[\leadsto y \cdot \left(x \cdot \left(\mathsf{neg}\left(\color{blue}{x \cdot \frac{1}{6}}\right)\right)\right) \]
                                          12. distribute-rgt-neg-inN/A

                                            \[\leadsto y \cdot \left(x \cdot \color{blue}{\left(x \cdot \left(\mathsf{neg}\left(\frac{1}{6}\right)\right)\right)}\right) \]
                                          13. metadata-evalN/A

                                            \[\leadsto y \cdot \left(x \cdot \left(x \cdot \color{blue}{\frac{-1}{6}}\right)\right) \]
                                          14. *-lowering-*.f6412.0

                                            \[\leadsto y \cdot \left(x \cdot \color{blue}{\left(x \cdot -0.16666666666666666\right)}\right) \]
                                        7. Simplified12.0%

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

                                        if -1.99999999999999989e-201 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x)

                                        1. Initial program 85.3%

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

                                          \[\leadsto \color{blue}{\frac{y \cdot \sin x}{x}} \]
                                        4. Step-by-step derivation
                                          1. associate-/l*N/A

                                            \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                                          2. *-lowering-*.f64N/A

                                            \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                                          3. /-lowering-/.f64N/A

                                            \[\leadsto y \cdot \color{blue}{\frac{\sin x}{x}} \]
                                          4. sin-lowering-sin.f6465.6

                                            \[\leadsto y \cdot \frac{\color{blue}{\sin x}}{x} \]
                                        5. Simplified65.6%

                                          \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                                        6. Taylor expanded in x around 0

                                          \[\leadsto \color{blue}{y} \]
                                        7. Step-by-step derivation
                                          1. Simplified30.2%

                                            \[\leadsto \color{blue}{y} \]
                                        8. Recombined 2 regimes into one program.
                                        9. Final simplification24.8%

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\sinh y \cdot \sin x}{x} \leq -2 \cdot 10^{-201}:\\ \;\;\;\;y \cdot \left(x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
                                        10. Add Preprocessing

                                        Alternative 23: 28.2% accurate, 217.0× speedup?

                                        \[\begin{array}{l} \\ y \end{array} \]
                                        (FPCore (x y) :precision binary64 y)
                                        double code(double x, double y) {
                                        	return y;
                                        }
                                        
                                        real(8) function code(x, y)
                                            real(8), intent (in) :: x
                                            real(8), intent (in) :: y
                                            code = y
                                        end function
                                        
                                        public static double code(double x, double y) {
                                        	return y;
                                        }
                                        
                                        def code(x, y):
                                        	return y
                                        
                                        function code(x, y)
                                        	return y
                                        end
                                        
                                        function tmp = code(x, y)
                                        	tmp = y;
                                        end
                                        
                                        code[x_, y_] := y
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        y
                                        \end{array}
                                        
                                        Derivation
                                        1. Initial program 89.6%

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

                                          \[\leadsto \color{blue}{\frac{y \cdot \sin x}{x}} \]
                                        4. Step-by-step derivation
                                          1. associate-/l*N/A

                                            \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                                          2. *-lowering-*.f64N/A

                                            \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                                          3. /-lowering-/.f64N/A

                                            \[\leadsto y \cdot \color{blue}{\frac{\sin x}{x}} \]
                                          4. sin-lowering-sin.f6454.6

                                            \[\leadsto y \cdot \frac{\color{blue}{\sin x}}{x} \]
                                        5. Simplified54.6%

                                          \[\leadsto \color{blue}{y \cdot \frac{\sin x}{x}} \]
                                        6. Taylor expanded in x around 0

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

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

                                          Developer Target 1: 99.8% accurate, 1.0× speedup?

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

                                          Reproduce

                                          ?
                                          herbie shell --seed 2024199 
                                          (FPCore (x y)
                                            :name "Linear.Quaternion:$ccosh from linear-1.19.1.3"
                                            :precision binary64
                                          
                                            :alt
                                            (! :herbie-platform default (* (sin x) (/ (sinh y) x)))
                                          
                                            (/ (* (sin x) (sinh y)) x))