Linear.Quaternion:$ccos from linear-1.19.1.3

Percentage Accurate: 100.0% → 100.0%
Time: 13.2s
Alternatives: 24
Speedup: 1.0×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 24 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 100.0% accurate, 1.0× speedup?

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

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

Alternative 1: 100.0% accurate, 1.0× speedup?

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

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

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

Alternative 2: 86.9% accurate, 0.4× speedup?

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

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

\mathbf{elif}\;t\_1 \leq 1:\\
\;\;\;\;\sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right)\\

\mathbf{else}:\\
\;\;\;\;t\_0 \cdot \mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), t\_2, x\right)\\


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

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -inf.0 < (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y)) < 1

    1. Initial program 100.0%

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

      \[\leadsto \sin x \cdot \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)} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \sin x \cdot \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)} \]
      2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
      16. lower-*.f6499.3

        \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
    5. Applied rewrites99.3%

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

    if 1 < (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y))

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot \frac{1}{120}, \frac{-1}{6}\right), x \cdot \color{blue}{\left(x \cdot x\right)}, x\right) \cdot \frac{\sinh y}{y} \]
      17. lower-*.f6471.4

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)} \cdot \frac{\sinh y}{y} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification87.1%

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

Alternative 3: 82.9% accurate, 0.4× speedup?

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

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

\mathbf{elif}\;t\_0 \leq 1:\\
\;\;\;\;\sin x \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right)\\

\mathbf{else}:\\
\;\;\;\;t\_2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), t\_1, x\right)\\


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

    1. Initial program 100.0%

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

      \[\leadsto \sin x \cdot \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)} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \sin x \cdot \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)} \]
      2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
      16. lower-*.f6477.0

        \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
    5. Applied rewrites77.0%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
      8. lower-*.f6469.5

        \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
    8. Applied rewrites69.5%

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

      \[\leadsto \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 \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
    10. Step-by-step derivation
      1. distribute-rgt-inN/A

        \[\leadsto \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 \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
      2. *-lft-identityN/A

        \[\leadsto \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 \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
      3. +-commutativeN/A

        \[\leadsto \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 \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
      4. *-commutativeN/A

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

        \[\leadsto \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) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
      6. unpow2N/A

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

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

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

      \[\leadsto \color{blue}{\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 \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
    12. Taylor expanded in x around inf

      \[\leadsto \mathsf{fma}\left(\frac{-1}{5040} \cdot {x}^{4}, \color{blue}{x} \cdot \left(x \cdot x\right), x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
    13. Step-by-step derivation
      1. Applied rewrites71.2%

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

      if -inf.0 < (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y)) < 1

      1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{\mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right)}, 1\right) \]
        10. lower-*.f6499.2

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

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

      if 1 < (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y))

      1. Initial program 100.0%

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

        \[\leadsto \sin x \cdot \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)} \]
      4. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \sin x \cdot \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)} \]
        2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
        16. lower-*.f6485.0

          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
      5. Applied rewrites85.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot \frac{1}{120}, \frac{-1}{6}\right), x \cdot \color{blue}{\left(x \cdot x\right)}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
        20. lower-*.f6461.4

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), x \cdot \color{blue}{\left(x \cdot x\right)}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
      8. Applied rewrites61.4%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)} \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
    14. Recombined 3 regimes into one program.
    15. Final simplification81.5%

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

    Alternative 4: 82.8% accurate, 0.4× speedup?

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

      1. Initial program 100.0%

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

        \[\leadsto \sin x \cdot \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)} \]
      4. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \sin x \cdot \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)} \]
        2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
        16. lower-*.f6477.0

          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
      5. Applied rewrites77.0%

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
        8. lower-*.f6469.5

          \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
      8. Applied rewrites69.5%

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

        \[\leadsto \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 \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
      10. Step-by-step derivation
        1. distribute-rgt-inN/A

          \[\leadsto \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 \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
        2. *-lft-identityN/A

          \[\leadsto \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 \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
        3. +-commutativeN/A

          \[\leadsto \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 \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
        4. *-commutativeN/A

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

          \[\leadsto \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) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
        6. unpow2N/A

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

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

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

        \[\leadsto \color{blue}{\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 \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
      12. Taylor expanded in x around inf

        \[\leadsto \mathsf{fma}\left(\frac{-1}{5040} \cdot {x}^{4}, \color{blue}{x} \cdot \left(x \cdot x\right), x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
      13. Step-by-step derivation
        1. Applied rewrites71.2%

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

        if -inf.0 < (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y)) < 1

        1. Initial program 100.0%

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

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

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

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

            \[\leadsto \sin x \cdot \mathsf{fma}\left(\frac{1}{6}, \color{blue}{y \cdot y}, 1\right) \]
          4. lower-*.f6499.1

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

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

        if 1 < (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y))

        1. Initial program 100.0%

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

          \[\leadsto \sin x \cdot \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)} \]
        4. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \sin x \cdot \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)} \]
          2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
          16. lower-*.f6485.0

            \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
        5. Applied rewrites85.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot \frac{1}{120}, \frac{-1}{6}\right), x \cdot \color{blue}{\left(x \cdot x\right)}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
          20. lower-*.f6461.4

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), x \cdot \color{blue}{\left(x \cdot x\right)}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
        8. Applied rewrites61.4%

          \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)} \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
      14. Recombined 3 regimes into one program.
      15. Final simplification81.4%

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

      Alternative 5: 82.5% accurate, 0.4× speedup?

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

        1. Initial program 100.0%

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

          \[\leadsto \sin x \cdot \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)} \]
        4. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \sin x \cdot \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)} \]
          2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
          16. lower-*.f6477.0

            \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
        5. Applied rewrites77.0%

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

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
          8. lower-*.f6469.5

            \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
        8. Applied rewrites69.5%

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

          \[\leadsto \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 \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
        10. Step-by-step derivation
          1. distribute-rgt-inN/A

            \[\leadsto \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 \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
          2. *-lft-identityN/A

            \[\leadsto \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 \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
          3. +-commutativeN/A

            \[\leadsto \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 \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
          4. *-commutativeN/A

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

            \[\leadsto \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) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
          6. unpow2N/A

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

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

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

          \[\leadsto \color{blue}{\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 \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
        12. Taylor expanded in x around inf

          \[\leadsto \mathsf{fma}\left(\frac{-1}{5040} \cdot {x}^{4}, \color{blue}{x} \cdot \left(x \cdot x\right), x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
        13. Step-by-step derivation
          1. Applied rewrites71.2%

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

          if -inf.0 < (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y)) < 1

          1. Initial program 100.0%

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

            \[\leadsto \color{blue}{\sin x} \]
          4. Step-by-step derivation
            1. lower-sin.f6498.6

              \[\leadsto \color{blue}{\sin x} \]
          5. Applied rewrites98.6%

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

          if 1 < (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y))

          1. Initial program 100.0%

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

            \[\leadsto \sin x \cdot \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)} \]
          4. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \sin x \cdot \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)} \]
            2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
            16. lower-*.f6485.0

              \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
          5. Applied rewrites85.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot \frac{1}{120}, \frac{-1}{6}\right), x \cdot \color{blue}{\left(x \cdot x\right)}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
            20. lower-*.f6461.4

              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), x \cdot \color{blue}{\left(x \cdot x\right)}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
          8. Applied rewrites61.4%

            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)} \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
        14. Recombined 3 regimes into one program.
        15. Final simplification81.2%

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

        Alternative 6: 57.8% accurate, 0.7× speedup?

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

          1. Initial program 100.0%

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

            \[\leadsto \sin x \cdot \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)} \]
          4. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \sin x \cdot \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)} \]
            2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
            16. lower-*.f6485.3

              \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
          5. Applied rewrites85.3%

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
            8. lower-*.f6445.0

              \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
          8. Applied rewrites45.0%

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

            \[\leadsto \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 \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
          10. Step-by-step derivation
            1. distribute-rgt-inN/A

              \[\leadsto \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 \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
            2. *-lft-identityN/A

              \[\leadsto \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 \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
            3. +-commutativeN/A

              \[\leadsto \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 \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
            4. *-commutativeN/A

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

              \[\leadsto \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) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
            6. unpow2N/A

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

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

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

            \[\leadsto \color{blue}{\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 \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
          12. Taylor expanded in x around inf

            \[\leadsto \mathsf{fma}\left(\frac{-1}{5040} \cdot {x}^{4}, \color{blue}{x} \cdot \left(x \cdot x\right), x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
          13. Step-by-step derivation
            1. Applied rewrites46.0%

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

            if -0.050000000000000003 < (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y))

            1. Initial program 100.0%

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

              \[\leadsto \sin x \cdot \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)} \]
            4. Step-by-step derivation
              1. +-commutativeN/A

                \[\leadsto \sin x \cdot \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)} \]
              2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
              16. lower-*.f6492.5

                \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
            5. Applied rewrites92.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot \frac{1}{120}, \frac{-1}{6}\right), x \cdot \color{blue}{\left(x \cdot x\right)}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
              20. lower-*.f6466.5

                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), x \cdot \color{blue}{\left(x \cdot x\right)}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
            8. Applied rewrites66.5%

              \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)} \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
          14. Recombined 2 regimes into one program.
          15. Final simplification59.2%

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

          Alternative 7: 56.8% accurate, 0.8× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\sin x \cdot \frac{\sinh y}{y} \leq -0.05:\\ \;\;\;\;\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right) \cdot \mathsf{fma}\left(x \cdot x, x \cdot \mathsf{fma}\left(x \cdot x, x \cdot \left(x \cdot -0.0001984126984126984\right), -0.16666666666666666\right), x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)\\ \end{array} \end{array} \]
          (FPCore (x y)
           :precision binary64
           (if (<= (* (sin x) (/ (sinh y) y)) -0.05)
             (*
              (fma (* y y) (fma y (* y 0.008333333333333333) 0.16666666666666666) 1.0)
              (fma
               (* x x)
               (*
                x
                (fma (* x x) (* x (* x -0.0001984126984126984)) -0.16666666666666666))
               x))
             (*
              (fma
               y
               (*
                y
                (fma
                 (* y y)
                 (fma (* y y) 0.0001984126984126984 0.008333333333333333)
                 0.16666666666666666))
               1.0)
              (fma
               (fma x (* x 0.008333333333333333) -0.16666666666666666)
               (* x (* x x))
               x))))
          double code(double x, double y) {
          	double tmp;
          	if ((sin(x) * (sinh(y) / y)) <= -0.05) {
          		tmp = fma((y * y), fma(y, (y * 0.008333333333333333), 0.16666666666666666), 1.0) * fma((x * x), (x * fma((x * x), (x * (x * -0.0001984126984126984)), -0.16666666666666666)), x);
          	} else {
          		tmp = fma(y, (y * fma((y * y), fma((y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666)), 1.0) * fma(fma(x, (x * 0.008333333333333333), -0.16666666666666666), (x * (x * x)), x);
          	}
          	return tmp;
          }
          
          function code(x, y)
          	tmp = 0.0
          	if (Float64(sin(x) * Float64(sinh(y) / y)) <= -0.05)
          		tmp = Float64(fma(Float64(y * y), fma(y, Float64(y * 0.008333333333333333), 0.16666666666666666), 1.0) * fma(Float64(x * x), Float64(x * fma(Float64(x * x), Float64(x * Float64(x * -0.0001984126984126984)), -0.16666666666666666)), x));
          	else
          		tmp = Float64(fma(y, Float64(y * fma(Float64(y * y), fma(Float64(y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666)), 1.0) * fma(fma(x, Float64(x * 0.008333333333333333), -0.16666666666666666), Float64(x * Float64(x * x)), x));
          	end
          	return tmp
          end
          
          code[x_, y_] := If[LessEqual[N[(N[Sin[x], $MachinePrecision] * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], -0.05], N[(N[(N[(y * y), $MachinePrecision] * N[(y * N[(y * 0.008333333333333333), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision] * N[(N[(x * x), $MachinePrecision] * N[(x * N[(N[(x * x), $MachinePrecision] * N[(x * N[(x * -0.0001984126984126984), $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984 + 0.008333333333333333), $MachinePrecision] + 0.16666666666666666), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] * N[(N[(x * N[(x * 0.008333333333333333), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] * N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;\sin x \cdot \frac{\sinh y}{y} \leq -0.05:\\
          \;\;\;\;\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right) \cdot \mathsf{fma}\left(x \cdot x, x \cdot \mathsf{fma}\left(x \cdot x, x \cdot \left(x \cdot -0.0001984126984126984\right), -0.16666666666666666\right), x\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y)) < -0.050000000000000003

            1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{\mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right)}, 1\right) \]
              10. lower-*.f6480.0

                \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, \color{blue}{y \cdot 0.008333333333333333}, 0.16666666666666666\right), 1\right) \]
            5. Applied rewrites80.0%

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

              \[\leadsto \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 \cdot y, \mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
            7. Step-by-step derivation
              1. +-commutativeN/A

                \[\leadsto \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) \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
              2. distribute-rgt-inN/A

                \[\leadsto \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)} \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
              3. associate-*l*N/A

                \[\leadsto \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)} + 1 \cdot x\right) \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
              4. *-lft-identityN/A

                \[\leadsto \left({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) + \color{blue}{x}\right) \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
              5. lower-fma.f64N/A

                \[\leadsto \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 \cdot y, \mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
            8. Applied rewrites42.8%

              \[\leadsto \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 \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right) \]
            9. Taylor expanded in x around inf

              \[\leadsto \mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, \frac{-1}{5040} \cdot {x}^{2}, \frac{-1}{6}\right) \cdot x, x\right) \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
            10. Step-by-step derivation
              1. Applied rewrites42.8%

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

              if -0.050000000000000003 < (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y))

              1. Initial program 100.0%

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

                \[\leadsto \sin x \cdot \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)} \]
              4. Step-by-step derivation
                1. +-commutativeN/A

                  \[\leadsto \sin x \cdot \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)} \]
                2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                16. lower-*.f6492.5

                  \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
              5. Applied rewrites92.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot \frac{1}{120}, \frac{-1}{6}\right), x \cdot \color{blue}{\left(x \cdot x\right)}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                20. lower-*.f6466.5

                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), x \cdot \color{blue}{\left(x \cdot x\right)}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
              8. Applied rewrites66.5%

                \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)} \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
            11. Recombined 2 regimes into one program.
            12. Final simplification58.1%

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

            Alternative 8: 56.7% accurate, 0.8× speedup?

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

              1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{\mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right)}, 1\right) \]
                10. lower-*.f6485.4

                  \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, \color{blue}{y \cdot 0.008333333333333333}, 0.16666666666666666\right), 1\right) \]
              5. Applied rewrites85.4%

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

                \[\leadsto \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 \cdot y, \mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
              7. Step-by-step derivation
                1. +-commutativeN/A

                  \[\leadsto \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) \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
                2. distribute-rgt-inN/A

                  \[\leadsto \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)} \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
                3. associate-*l*N/A

                  \[\leadsto \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)} + 1 \cdot x\right) \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
                4. *-lft-identityN/A

                  \[\leadsto \left({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) + \color{blue}{x}\right) \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
                5. lower-fma.f64N/A

                  \[\leadsto \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 \cdot y, \mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
              8. Applied rewrites59.6%

                \[\leadsto \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 \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right) \]
              9. Taylor expanded in x around inf

                \[\leadsto \mathsf{fma}\left(x \cdot x, \mathsf{fma}\left(x \cdot x, \frac{-1}{5040} \cdot {x}^{2}, \frac{-1}{6}\right) \cdot x, x\right) \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
              10. Step-by-step derivation
                1. Applied rewrites59.6%

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

                if 4.99999999999999982e-272 < (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y))

                1. Initial program 100.0%

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

                  \[\leadsto \sin x \cdot \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)} \]
                4. Step-by-step derivation
                  1. +-commutativeN/A

                    \[\leadsto \sin x \cdot \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)} \]
                  2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                  16. lower-*.f6490.8

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

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                  8. lower-*.f6463.1

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

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

                  \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \frac{1}{5040} \cdot \color{blue}{{y}^{2}}, \frac{1}{6}\right), 1\right) \]
                10. Step-by-step derivation
                  1. Applied rewrites63.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \mathsf{fma}\left(\color{blue}{x \cdot x}, \frac{1}{120}, \frac{-1}{6}\right), x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \left(y \cdot y\right) \cdot \frac{1}{5040}, \frac{1}{6}\right), 1\right) \]
                    13. lower-*.f6456.5

                      \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \mathsf{fma}\left(\color{blue}{x \cdot x}, 0.008333333333333333, -0.16666666666666666\right), x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \left(y \cdot y\right) \cdot 0.0001984126984126984, 0.16666666666666666\right), 1\right) \]
                  4. Applied rewrites56.5%

                    \[\leadsto \color{blue}{\mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \mathsf{fma}\left(x \cdot x, 0.008333333333333333, -0.16666666666666666\right), x\right)} \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \left(y \cdot y\right) \cdot 0.0001984126984126984, 0.16666666666666666\right), 1\right) \]
                11. Recombined 2 regimes into one program.
                12. Final simplification58.1%

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

                Alternative 9: 57.7% accurate, 0.8× speedup?

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

                  1. Initial program 100.0%

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

                    \[\leadsto \sin x \cdot \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)} \]
                  4. Step-by-step derivation
                    1. +-commutativeN/A

                      \[\leadsto \sin x \cdot \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)} \]
                    2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                    16. lower-*.f6490.0

                      \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                  5. Applied rewrites90.0%

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

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                    8. lower-*.f6464.1

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

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

                  if 5.0000000000000002e-143 < (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y))

                  1. Initial program 100.0%

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

                    \[\leadsto \sin x \cdot \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)} \]
                  4. Step-by-step derivation
                    1. +-commutativeN/A

                      \[\leadsto \sin x \cdot \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)} \]
                    2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                    16. lower-*.f6489.9

                      \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                  5. Applied rewrites89.9%

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

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                    8. lower-*.f6459.6

                      \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                  8. Applied rewrites59.6%

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

                    \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \frac{1}{5040} \cdot \color{blue}{{y}^{2}}, \frac{1}{6}\right), 1\right) \]
                  10. Step-by-step derivation
                    1. Applied rewrites59.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \mathsf{fma}\left(\color{blue}{x \cdot x}, \frac{1}{120}, \frac{-1}{6}\right), x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \left(y \cdot y\right) \cdot \frac{1}{5040}, \frac{1}{6}\right), 1\right) \]
                      13. lower-*.f6452.4

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

                      \[\leadsto \color{blue}{\mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \mathsf{fma}\left(x \cdot x, 0.008333333333333333, -0.16666666666666666\right), x\right)} \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \left(y \cdot y\right) \cdot 0.0001984126984126984, 0.16666666666666666\right), 1\right) \]
                  11. Recombined 2 regimes into one program.
                  12. Final simplification58.9%

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

                  Alternative 10: 55.8% accurate, 0.8× speedup?

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

                    1. Initial program 100.0%

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

                      \[\leadsto \sin x \cdot \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)} \]
                    4. Step-by-step derivation
                      1. +-commutativeN/A

                        \[\leadsto \sin x \cdot \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)} \]
                      2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                      16. lower-*.f6490.8

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                      8. lower-*.f6466.9

                        \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                    8. Applied rewrites66.9%

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

                      \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
                    10. Step-by-step derivation
                      1. Applied rewrites64.4%

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

                      if 1.00000000000000008e-5 < (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y))

                      1. Initial program 100.0%

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

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

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

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

                          \[\leadsto \color{blue}{\frac{\sin x \cdot \sinh y}{y}} \]
                        5. lower-*.f6499.9

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

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

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

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

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

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

                        \[\leadsto x \cdot \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)} \]
                      9. Step-by-step derivation
                        1. Applied rewrites43.2%

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

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

                      Alternative 11: 52.3% accurate, 0.8× speedup?

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

                        1. Initial program 100.0%

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

                          \[\leadsto \sin x \cdot \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)} \]
                        4. Step-by-step derivation
                          1. +-commutativeN/A

                            \[\leadsto \sin x \cdot \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)} \]
                          2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                          16. lower-*.f6490.8

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                          8. lower-*.f6466.9

                            \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                        8. Applied rewrites66.9%

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(\frac{1}{6}, \color{blue}{y \cdot y}, 1\right) \]
                          4. lower-*.f6458.7

                            \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot -0.16666666666666666, x\right) \cdot \mathsf{fma}\left(0.16666666666666666, \color{blue}{y \cdot y}, 1\right) \]
                        11. Applied rewrites58.7%

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

                        if 1.00000000000000008e-5 < (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y))

                        1. Initial program 100.0%

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

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

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

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

                            \[\leadsto \color{blue}{\frac{\sin x \cdot \sinh y}{y}} \]
                          5. lower-*.f6499.9

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

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

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

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

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

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

                          \[\leadsto x \cdot \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)} \]
                        9. Step-by-step derivation
                          1. Applied rewrites43.2%

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

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

                        Alternative 12: 34.6% accurate, 0.9× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\sin x \cdot \frac{\sinh y}{y} \leq -0.05:\\ \;\;\;\;x \cdot \left(x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, x \cdot \left(x \cdot \mathsf{fma}\left(0.008333333333333333, x \cdot x, -0.16666666666666666\right)\right), x\right)\\ \end{array} \end{array} \]
                        (FPCore (x y)
                         :precision binary64
                         (if (<= (* (sin x) (/ (sinh y) y)) -0.05)
                           (* x (* x (* x -0.16666666666666666)))
                           (fma
                            x
                            (* x (* x (fma 0.008333333333333333 (* x x) -0.16666666666666666)))
                            x)))
                        double code(double x, double y) {
                        	double tmp;
                        	if ((sin(x) * (sinh(y) / y)) <= -0.05) {
                        		tmp = x * (x * (x * -0.16666666666666666));
                        	} else {
                        		tmp = fma(x, (x * (x * fma(0.008333333333333333, (x * x), -0.16666666666666666))), x);
                        	}
                        	return tmp;
                        }
                        
                        function code(x, y)
                        	tmp = 0.0
                        	if (Float64(sin(x) * Float64(sinh(y) / y)) <= -0.05)
                        		tmp = Float64(x * Float64(x * Float64(x * -0.16666666666666666)));
                        	else
                        		tmp = fma(x, Float64(x * Float64(x * fma(0.008333333333333333, Float64(x * x), -0.16666666666666666))), x);
                        	end
                        	return tmp
                        end
                        
                        code[x_, y_] := If[LessEqual[N[(N[Sin[x], $MachinePrecision] * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], -0.05], N[(x * N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(x * N[(x * N[(0.008333333333333333 * N[(x * x), $MachinePrecision] + -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;\sin x \cdot \frac{\sinh y}{y} \leq -0.05:\\
                        \;\;\;\;x \cdot \left(x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\mathsf{fma}\left(x, x \cdot \left(x \cdot \mathsf{fma}\left(0.008333333333333333, x \cdot x, -0.16666666666666666\right)\right), x\right)\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y)) < -0.050000000000000003

                          1. Initial program 100.0%

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

                            \[\leadsto \color{blue}{\sin x} \]
                          4. Step-by-step derivation
                            1. lower-sin.f6438.0

                              \[\leadsto \color{blue}{\sin x} \]
                          5. Applied rewrites38.0%

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

                            \[\leadsto x \cdot \color{blue}{\left(1 + \frac{-1}{6} \cdot {x}^{2}\right)} \]
                          7. Step-by-step derivation
                            1. Applied rewrites15.0%

                              \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right) \cdot -0.16666666666666666}, x\right) \]
                            2. Taylor expanded in x around inf

                              \[\leadsto \frac{-1}{6} \cdot {x}^{\color{blue}{3}} \]
                            3. Step-by-step derivation
                              1. Applied rewrites14.8%

                                \[\leadsto x \cdot \left(\left(x \cdot x\right) \cdot \color{blue}{-0.16666666666666666}\right) \]
                              2. Step-by-step derivation
                                1. Applied rewrites14.8%

                                  \[\leadsto x \cdot \left(\left(x \cdot -0.16666666666666666\right) \cdot x\right) \]

                                if -0.050000000000000003 < (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y))

                                1. Initial program 100.0%

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

                                  \[\leadsto \color{blue}{\sin x} \]
                                4. Step-by-step derivation
                                  1. lower-sin.f6453.6

                                    \[\leadsto \color{blue}{\sin x} \]
                                5. Applied rewrites53.6%

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

                                  \[\leadsto x \cdot \color{blue}{\left(1 + \frac{-1}{6} \cdot {x}^{2}\right)} \]
                                7. Step-by-step derivation
                                  1. Applied rewrites47.5%

                                    \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right) \cdot -0.16666666666666666}, x\right) \]
                                  2. Taylor expanded in x around 0

                                    \[\leadsto x \cdot \color{blue}{\left(1 + {x}^{2} \cdot \left(\frac{1}{120} \cdot {x}^{2} - \frac{1}{6}\right)\right)} \]
                                  3. Step-by-step derivation
                                    1. Applied rewrites45.3%

                                      \[\leadsto \mathsf{fma}\left(x, \color{blue}{x \cdot \left(x \cdot \mathsf{fma}\left(0.008333333333333333, x \cdot x, -0.16666666666666666\right)\right)}, x\right) \]
                                  4. Recombined 2 regimes into one program.
                                  5. Final simplification34.5%

                                    \[\leadsto \begin{array}{l} \mathbf{if}\;\sin x \cdot \frac{\sinh y}{y} \leq -0.05:\\ \;\;\;\;x \cdot \left(x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, x \cdot \left(x \cdot \mathsf{fma}\left(0.008333333333333333, x \cdot x, -0.16666666666666666\right)\right), x\right)\\ \end{array} \]
                                  6. Add Preprocessing

                                  Alternative 13: 57.6% accurate, 1.3× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\sin x \leq 10^{-38}:\\ \;\;\;\;\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \cdot \mathsf{fma}\left(x, -0.16666666666666666 \cdot \left(x \cdot x\right), x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right) \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right)\\ \end{array} \end{array} \]
                                  (FPCore (x y)
                                   :precision binary64
                                   (if (<= (sin x) 1e-38)
                                     (*
                                      (fma
                                       y
                                       (*
                                        y
                                        (fma
                                         (* y y)
                                         (fma (* y y) 0.0001984126984126984 0.008333333333333333)
                                         0.16666666666666666))
                                       1.0)
                                      (fma x (* -0.16666666666666666 (* x x)) x))
                                     (*
                                      (fma
                                       (fma x (* x 0.008333333333333333) -0.16666666666666666)
                                       (* x (* x x))
                                       x)
                                      (fma (* y y) (fma y (* y 0.008333333333333333) 0.16666666666666666) 1.0))))
                                  double code(double x, double y) {
                                  	double tmp;
                                  	if (sin(x) <= 1e-38) {
                                  		tmp = fma(y, (y * fma((y * y), fma((y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666)), 1.0) * fma(x, (-0.16666666666666666 * (x * x)), x);
                                  	} else {
                                  		tmp = fma(fma(x, (x * 0.008333333333333333), -0.16666666666666666), (x * (x * x)), x) * fma((y * y), fma(y, (y * 0.008333333333333333), 0.16666666666666666), 1.0);
                                  	}
                                  	return tmp;
                                  }
                                  
                                  function code(x, y)
                                  	tmp = 0.0
                                  	if (sin(x) <= 1e-38)
                                  		tmp = Float64(fma(y, Float64(y * fma(Float64(y * y), fma(Float64(y * y), 0.0001984126984126984, 0.008333333333333333), 0.16666666666666666)), 1.0) * fma(x, Float64(-0.16666666666666666 * Float64(x * x)), x));
                                  	else
                                  		tmp = Float64(fma(fma(x, Float64(x * 0.008333333333333333), -0.16666666666666666), Float64(x * Float64(x * x)), x) * fma(Float64(y * y), fma(y, Float64(y * 0.008333333333333333), 0.16666666666666666), 1.0));
                                  	end
                                  	return tmp
                                  end
                                  
                                  code[x_, y_] := If[LessEqual[N[Sin[x], $MachinePrecision], 1e-38], N[(N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984 + 0.008333333333333333), $MachinePrecision] + 0.16666666666666666), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] * N[(x * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * N[(x * 0.008333333333333333), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] * N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * N[(y * N[(y * 0.008333333333333333), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;\sin x \leq 10^{-38}:\\
                                  \;\;\;\;\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \cdot \mathsf{fma}\left(x, -0.16666666666666666 \cdot \left(x \cdot x\right), x\right)\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right) \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right)\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if (sin.f64 x) < 9.9999999999999996e-39

                                    1. Initial program 100.0%

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

                                      \[\leadsto \sin x \cdot \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)} \]
                                    4. Step-by-step derivation
                                      1. +-commutativeN/A

                                        \[\leadsto \sin x \cdot \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)} \]
                                      2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                      16. lower-*.f6488.5

                                        \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                                    5. Applied rewrites88.5%

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

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                      8. lower-*.f6468.3

                                        \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                                    8. Applied rewrites68.3%

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

                                    if 9.9999999999999996e-39 < (sin.f64 x)

                                    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{\mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right)}, 1\right) \]
                                      10. lower-*.f6488.5

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot \frac{1}{120}, \frac{-1}{6}\right), x \cdot \color{blue}{\left(x \cdot x\right)}, x\right) \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
                                      20. lower-*.f6435.8

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

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(x, x \cdot 0.008333333333333333, -0.16666666666666666\right), x \cdot \left(x \cdot x\right), x\right)} \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right) \]
                                  3. Recombined 2 regimes into one program.
                                  4. Final simplification58.9%

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

                                  Alternative 14: 57.4% accurate, 1.3× speedup?

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

                                    1. Initial program 100.0%

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

                                      \[\leadsto \sin x \cdot \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)} \]
                                    4. Step-by-step derivation
                                      1. +-commutativeN/A

                                        \[\leadsto \sin x \cdot \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)} \]
                                      2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                      16. lower-*.f6489.1

                                        \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                                    5. Applied rewrites89.1%

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

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

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

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

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

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

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

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

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

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

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

                                    if 1.00000000000000008e-5 < (sin.f64 x)

                                    1. Initial program 100.0%

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

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

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

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

                                        \[\leadsto \color{blue}{\frac{\sin x \cdot \sinh y}{y}} \]
                                      5. lower-*.f6499.9

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

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

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

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

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

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

                                      \[\leadsto x \cdot \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)} \]
                                    9. Step-by-step derivation
                                      1. Applied rewrites23.3%

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

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

                                    Alternative 15: 57.3% accurate, 1.4× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\sin x \leq 10^{-5}:\\ \;\;\;\;\mathsf{fma}\left(x, -0.16666666666666666 \cdot \left(x \cdot x\right), x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \left(y \cdot y\right) \cdot 0.0001984126984126984, 0.16666666666666666\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), x \cdot \left(y \cdot y\right), x\right)\\ \end{array} \end{array} \]
                                    (FPCore (x y)
                                     :precision binary64
                                     (if (<= (sin x) 1e-5)
                                       (*
                                        (fma x (* -0.16666666666666666 (* x x)) x)
                                        (fma
                                         y
                                         (* y (fma (* y y) (* (* y y) 0.0001984126984126984) 0.16666666666666666))
                                         1.0))
                                       (fma
                                        (fma
                                         y
                                         (* y (fma (* y y) 0.0001984126984126984 0.008333333333333333))
                                         0.16666666666666666)
                                        (* x (* y y))
                                        x)))
                                    double code(double x, double y) {
                                    	double tmp;
                                    	if (sin(x) <= 1e-5) {
                                    		tmp = fma(x, (-0.16666666666666666 * (x * x)), x) * fma(y, (y * fma((y * y), ((y * y) * 0.0001984126984126984), 0.16666666666666666)), 1.0);
                                    	} else {
                                    		tmp = fma(fma(y, (y * fma((y * y), 0.0001984126984126984, 0.008333333333333333)), 0.16666666666666666), (x * (y * y)), x);
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(x, y)
                                    	tmp = 0.0
                                    	if (sin(x) <= 1e-5)
                                    		tmp = Float64(fma(x, Float64(-0.16666666666666666 * Float64(x * x)), x) * fma(y, Float64(y * fma(Float64(y * y), Float64(Float64(y * y) * 0.0001984126984126984), 0.16666666666666666)), 1.0));
                                    	else
                                    		tmp = fma(fma(y, Float64(y * fma(Float64(y * y), 0.0001984126984126984, 0.008333333333333333)), 0.16666666666666666), Float64(x * Float64(y * y)), x);
                                    	end
                                    	return tmp
                                    end
                                    
                                    code[x_, y_] := If[LessEqual[N[Sin[x], $MachinePrecision], 1e-5], N[(N[(x * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision] * N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision] + 0.16666666666666666), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984 + 0.008333333333333333), $MachinePrecision]), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(x * N[(y * y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;\sin x \leq 10^{-5}:\\
                                    \;\;\;\;\mathsf{fma}\left(x, -0.16666666666666666 \cdot \left(x \cdot x\right), x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \left(y \cdot y\right) \cdot 0.0001984126984126984, 0.16666666666666666\right), 1\right)\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), x \cdot \left(y \cdot y\right), x\right)\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if (sin.f64 x) < 1.00000000000000008e-5

                                      1. Initial program 100.0%

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

                                        \[\leadsto \sin x \cdot \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)} \]
                                      4. Step-by-step derivation
                                        1. +-commutativeN/A

                                          \[\leadsto \sin x \cdot \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)} \]
                                        2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                        16. lower-*.f6489.1

                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                                      5. Applied rewrites89.1%

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \frac{1}{5040} \cdot \color{blue}{{y}^{2}}, \frac{1}{6}\right), 1\right) \]
                                      10. Step-by-step derivation
                                        1. Applied rewrites70.0%

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

                                        if 1.00000000000000008e-5 < (sin.f64 x)

                                        1. Initial program 100.0%

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

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

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

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

                                            \[\leadsto \color{blue}{\frac{\sin x \cdot \sinh y}{y}} \]
                                          5. lower-*.f6499.9

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

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

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

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

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

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

                                          \[\leadsto x \cdot \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)} \]
                                        9. Step-by-step derivation
                                          1. Applied rewrites23.3%

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

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

                                        Alternative 16: 57.1% accurate, 1.4× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\sin x \leq 10^{-108}:\\ \;\;\;\;\mathsf{fma}\left(x, -0.16666666666666666 \cdot \left(x \cdot x\right), x\right) \cdot \mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \left(y \cdot \left(\left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), x \cdot \left(y \cdot y\right), x\right)\\ \end{array} \end{array} \]
                                        (FPCore (x y)
                                         :precision binary64
                                         (if (<= (sin x) 1e-108)
                                           (*
                                            (fma x (* -0.16666666666666666 (* x x)) x)
                                            (fma y (* (* y y) (* y (* (* y y) 0.0001984126984126984))) 1.0))
                                           (fma
                                            (fma
                                             y
                                             (* y (fma (* y y) 0.0001984126984126984 0.008333333333333333))
                                             0.16666666666666666)
                                            (* x (* y y))
                                            x)))
                                        double code(double x, double y) {
                                        	double tmp;
                                        	if (sin(x) <= 1e-108) {
                                        		tmp = fma(x, (-0.16666666666666666 * (x * x)), x) * fma(y, ((y * y) * (y * ((y * y) * 0.0001984126984126984))), 1.0);
                                        	} else {
                                        		tmp = fma(fma(y, (y * fma((y * y), 0.0001984126984126984, 0.008333333333333333)), 0.16666666666666666), (x * (y * y)), x);
                                        	}
                                        	return tmp;
                                        }
                                        
                                        function code(x, y)
                                        	tmp = 0.0
                                        	if (sin(x) <= 1e-108)
                                        		tmp = Float64(fma(x, Float64(-0.16666666666666666 * Float64(x * x)), x) * fma(y, Float64(Float64(y * y) * Float64(y * Float64(Float64(y * y) * 0.0001984126984126984))), 1.0));
                                        	else
                                        		tmp = fma(fma(y, Float64(y * fma(Float64(y * y), 0.0001984126984126984, 0.008333333333333333)), 0.16666666666666666), Float64(x * Float64(y * y)), x);
                                        	end
                                        	return tmp
                                        end
                                        
                                        code[x_, y_] := If[LessEqual[N[Sin[x], $MachinePrecision], 1e-108], N[(N[(x * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision] * N[(y * N[(N[(y * y), $MachinePrecision] * N[(y * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984 + 0.008333333333333333), $MachinePrecision]), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(x * N[(y * y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        \mathbf{if}\;\sin x \leq 10^{-108}:\\
                                        \;\;\;\;\mathsf{fma}\left(x, -0.16666666666666666 \cdot \left(x \cdot x\right), x\right) \cdot \mathsf{fma}\left(y, \left(y \cdot y\right) \cdot \left(y \cdot \left(\left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right), 1\right)\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), x \cdot \left(y \cdot y\right), x\right)\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 2 regimes
                                        2. if (sin.f64 x) < 1.00000000000000004e-108

                                          1. Initial program 100.0%

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

                                            \[\leadsto \sin x \cdot \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)} \]
                                          4. Step-by-step derivation
                                            1. +-commutativeN/A

                                              \[\leadsto \sin x \cdot \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)} \]
                                            2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                              \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                            16. lower-*.f6488.4

                                              \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                                          5. Applied rewrites88.4%

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

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

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

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

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

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

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

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

                                              \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                            8. lower-*.f6466.0

                                              \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                                          8. Applied rewrites66.0%

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

                                            \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, \frac{1}{6} \cdot \color{blue}{y}, 1\right) \]
                                          10. Step-by-step derivation
                                            1. Applied rewrites53.5%

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

                                              \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, \frac{1}{5040} \cdot \color{blue}{{y}^{5}}, 1\right) \]
                                            3. Step-by-step derivation
                                              1. Applied rewrites65.7%

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

                                              if 1.00000000000000004e-108 < (sin.f64 x)

                                              1. Initial program 100.0%

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

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

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

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

                                                  \[\leadsto \color{blue}{\frac{\sin x \cdot \sinh y}{y}} \]
                                                5. lower-*.f6499.7

                                                  \[\leadsto \frac{\color{blue}{\sin x \cdot \sinh y}}{y} \]
                                              4. Applied rewrites99.7%

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

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

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

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

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

                                                \[\leadsto x \cdot \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)} \]
                                              9. Step-by-step derivation
                                                1. Applied rewrites45.1%

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

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

                                              Alternative 17: 56.0% accurate, 1.4× speedup?

                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\sin x \leq -0.05:\\ \;\;\;\;\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \left(y \cdot y\right) \cdot 0.0001984126984126984, 0.16666666666666666\right), 1\right) \cdot \left(x \cdot \left(-0.16666666666666666 \cdot \left(x \cdot x\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), x \cdot \left(y \cdot y\right), x\right)\\ \end{array} \end{array} \]
                                              (FPCore (x y)
                                               :precision binary64
                                               (if (<= (sin x) -0.05)
                                                 (*
                                                  (fma
                                                   y
                                                   (* y (fma (* y y) (* (* y y) 0.0001984126984126984) 0.16666666666666666))
                                                   1.0)
                                                  (* x (* -0.16666666666666666 (* x x))))
                                                 (fma
                                                  (fma
                                                   y
                                                   (* y (fma (* y y) 0.0001984126984126984 0.008333333333333333))
                                                   0.16666666666666666)
                                                  (* x (* y y))
                                                  x)))
                                              double code(double x, double y) {
                                              	double tmp;
                                              	if (sin(x) <= -0.05) {
                                              		tmp = fma(y, (y * fma((y * y), ((y * y) * 0.0001984126984126984), 0.16666666666666666)), 1.0) * (x * (-0.16666666666666666 * (x * x)));
                                              	} else {
                                              		tmp = fma(fma(y, (y * fma((y * y), 0.0001984126984126984, 0.008333333333333333)), 0.16666666666666666), (x * (y * y)), x);
                                              	}
                                              	return tmp;
                                              }
                                              
                                              function code(x, y)
                                              	tmp = 0.0
                                              	if (sin(x) <= -0.05)
                                              		tmp = Float64(fma(y, Float64(y * fma(Float64(y * y), Float64(Float64(y * y) * 0.0001984126984126984), 0.16666666666666666)), 1.0) * Float64(x * Float64(-0.16666666666666666 * Float64(x * x))));
                                              	else
                                              		tmp = fma(fma(y, Float64(y * fma(Float64(y * y), 0.0001984126984126984, 0.008333333333333333)), 0.16666666666666666), Float64(x * Float64(y * y)), x);
                                              	end
                                              	return tmp
                                              end
                                              
                                              code[x_, y_] := If[LessEqual[N[Sin[x], $MachinePrecision], -0.05], N[(N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision] + 0.16666666666666666), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] * N[(x * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984 + 0.008333333333333333), $MachinePrecision]), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(x * N[(y * y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
                                              
                                              \begin{array}{l}
                                              
                                              \\
                                              \begin{array}{l}
                                              \mathbf{if}\;\sin x \leq -0.05:\\
                                              \;\;\;\;\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \left(y \cdot y\right) \cdot 0.0001984126984126984, 0.16666666666666666\right), 1\right) \cdot \left(x \cdot \left(-0.16666666666666666 \cdot \left(x \cdot x\right)\right)\right)\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), x \cdot \left(y \cdot y\right), x\right)\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 2 regimes
                                              2. if (sin.f64 x) < -0.050000000000000003

                                                1. Initial program 100.0%

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

                                                  \[\leadsto \sin x \cdot \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)} \]
                                                4. Step-by-step derivation
                                                  1. +-commutativeN/A

                                                    \[\leadsto \sin x \cdot \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)} \]
                                                  2. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                  16. lower-*.f6489.4

                                                    \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                                                5. Applied rewrites89.4%

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

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

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

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

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

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

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

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

                                                    \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                  8. lower-*.f6430.2

                                                    \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                                                8. Applied rewrites30.2%

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

                                                  \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \frac{1}{5040} \cdot \color{blue}{{y}^{2}}, \frac{1}{6}\right), 1\right) \]
                                                10. Step-by-step derivation
                                                  1. Applied rewrites30.2%

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

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

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

                                                    if -0.050000000000000003 < (sin.f64 x)

                                                    1. Initial program 100.0%

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

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

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

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

                                                        \[\leadsto \color{blue}{\frac{\sin x \cdot \sinh y}{y}} \]
                                                      5. lower-*.f6487.1

                                                        \[\leadsto \frac{\color{blue}{\sin x \cdot \sinh y}}{y} \]
                                                    4. Applied rewrites87.1%

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

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

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

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

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

                                                      \[\leadsto x \cdot \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)} \]
                                                    9. Step-by-step derivation
                                                      1. Applied rewrites65.1%

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

                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;\sin x \leq -0.05:\\ \;\;\;\;\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \left(y \cdot y\right) \cdot 0.0001984126984126984, 0.16666666666666666\right), 1\right) \cdot \left(x \cdot \left(-0.16666666666666666 \cdot \left(x \cdot x\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), x \cdot \left(y \cdot y\right), x\right)\\ \end{array} \]
                                                    12. Add Preprocessing

                                                    Alternative 18: 73.8% accurate, 1.4× speedup?

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

                                                      1. Initial program 100.0%

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

                                                        \[\leadsto \color{blue}{\sin x} \]
                                                      4. Step-by-step derivation
                                                        1. lower-sin.f6464.8

                                                          \[\leadsto \color{blue}{\sin x} \]
                                                      5. Applied rewrites64.8%

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

                                                      if 1.7e-5 < y < 9.9999999999999999e51

                                                      1. Initial program 99.8%

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

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

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

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

                                                          \[\leadsto \color{blue}{\frac{\sin x \cdot \sinh y}{y}} \]
                                                        5. lower-*.f6499.9

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

                                                        \[\leadsto \color{blue}{\frac{\sin x \cdot \sinh y}{y}} \]
                                                      5. 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}{y} \]
                                                      6. 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}{y} \]
                                                        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}{y} \]
                                                        3. *-rgt-identityN/A

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

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

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

                                                          \[\leadsto \frac{\mathsf{fma}\left(x, \color{blue}{{x}^{2} \cdot \frac{-1}{6}}, x\right) \cdot \sinh y}{y} \]
                                                        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}{y} \]
                                                        8. lower-*.f6492.7

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

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

                                                      if 9.9999999999999999e51 < y

                                                      1. Initial program 100.0%

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

                                                        \[\leadsto \sin x \cdot \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)} \]
                                                      4. Step-by-step derivation
                                                        1. +-commutativeN/A

                                                          \[\leadsto \sin x \cdot \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)} \]
                                                        2. unpow2N/A

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

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

                                                          \[\leadsto \sin x \cdot \left(y \cdot \color{blue}{\left(\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot y\right)} + 1\right) \]
                                                        5. lower-fma.f64N/A

                                                          \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y, \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot y, 1\right)} \]
                                                        6. *-commutativeN/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)}, 1\right) \]
                                                        7. lower-*.f64N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)}, 1\right) \]
                                                        8. +-commutativeN/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right) + \frac{1}{6}\right)}, 1\right) \]
                                                        9. lower-fma.f64N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \color{blue}{\mathsf{fma}\left({y}^{2}, \frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}, \frac{1}{6}\right)}, 1\right) \]
                                                        10. unpow2N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}, \frac{1}{6}\right), 1\right) \]
                                                        11. lower-*.f64N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}, \frac{1}{6}\right), 1\right) \]
                                                        12. +-commutativeN/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{\frac{1}{5040} \cdot {y}^{2} + \frac{1}{120}}, \frac{1}{6}\right), 1\right) \]
                                                        13. *-commutativeN/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{{y}^{2} \cdot \frac{1}{5040}} + \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
                                                        14. lower-fma.f64N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{\mathsf{fma}\left({y}^{2}, \frac{1}{5040}, \frac{1}{120}\right)}, \frac{1}{6}\right), 1\right) \]
                                                        15. unpow2N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                        16. lower-*.f64100.0

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                                                      5. Applied rewrites100.0%

                                                        \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right)} \]
                                                    3. Recombined 3 regimes into one program.
                                                    4. Final simplification74.2%

                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 1.7 \cdot 10^{-5}:\\ \;\;\;\;\sin x\\ \mathbf{elif}\;y \leq 10^{+52}:\\ \;\;\;\;\frac{\sinh y \cdot \mathsf{fma}\left(x, -0.16666666666666666 \cdot \left(x \cdot x\right), x\right)}{y}\\ \mathbf{else}:\\ \;\;\;\;\sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right)\\ \end{array} \]
                                                    5. Add Preprocessing

                                                    Alternative 19: 73.4% accurate, 1.5× speedup?

                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 1.7 \cdot 10^{-5}:\\ \;\;\;\;\sin x\\ \mathbf{elif}\;y \leq 3.85 \cdot 10^{+77}:\\ \;\;\;\;\frac{\sinh y \cdot \mathsf{fma}\left(x, -0.16666666666666666 \cdot \left(x \cdot x\right), x\right)}{y}\\ \mathbf{else}:\\ \;\;\;\;\sin x \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right)\\ \end{array} \end{array} \]
                                                    (FPCore (x y)
                                                     :precision binary64
                                                     (if (<= y 1.7e-5)
                                                       (sin x)
                                                       (if (<= y 3.85e+77)
                                                         (/ (* (sinh y) (fma x (* -0.16666666666666666 (* x x)) x)) y)
                                                         (*
                                                          (sin x)
                                                          (fma
                                                           (* y y)
                                                           (fma y (* y 0.008333333333333333) 0.16666666666666666)
                                                           1.0)))))
                                                    double code(double x, double y) {
                                                    	double tmp;
                                                    	if (y <= 1.7e-5) {
                                                    		tmp = sin(x);
                                                    	} else if (y <= 3.85e+77) {
                                                    		tmp = (sinh(y) * fma(x, (-0.16666666666666666 * (x * x)), x)) / y;
                                                    	} else {
                                                    		tmp = sin(x) * fma((y * y), fma(y, (y * 0.008333333333333333), 0.16666666666666666), 1.0);
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    function code(x, y)
                                                    	tmp = 0.0
                                                    	if (y <= 1.7e-5)
                                                    		tmp = sin(x);
                                                    	elseif (y <= 3.85e+77)
                                                    		tmp = Float64(Float64(sinh(y) * fma(x, Float64(-0.16666666666666666 * Float64(x * x)), x)) / y);
                                                    	else
                                                    		tmp = Float64(sin(x) * fma(Float64(y * y), fma(y, Float64(y * 0.008333333333333333), 0.16666666666666666), 1.0));
                                                    	end
                                                    	return tmp
                                                    end
                                                    
                                                    code[x_, y_] := If[LessEqual[y, 1.7e-5], N[Sin[x], $MachinePrecision], If[LessEqual[y, 3.85e+77], N[(N[(N[Sinh[y], $MachinePrecision] * N[(x * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[Sin[x], $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * N[(y * N[(y * 0.008333333333333333), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]
                                                    
                                                    \begin{array}{l}
                                                    
                                                    \\
                                                    \begin{array}{l}
                                                    \mathbf{if}\;y \leq 1.7 \cdot 10^{-5}:\\
                                                    \;\;\;\;\sin x\\
                                                    
                                                    \mathbf{elif}\;y \leq 3.85 \cdot 10^{+77}:\\
                                                    \;\;\;\;\frac{\sinh y \cdot \mathsf{fma}\left(x, -0.16666666666666666 \cdot \left(x \cdot x\right), x\right)}{y}\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;\sin x \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right)\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 3 regimes
                                                    2. if y < 1.7e-5

                                                      1. Initial program 100.0%

                                                        \[\sin x \cdot \frac{\sinh y}{y} \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in y around 0

                                                        \[\leadsto \color{blue}{\sin x} \]
                                                      4. Step-by-step derivation
                                                        1. lower-sin.f6464.8

                                                          \[\leadsto \color{blue}{\sin x} \]
                                                      5. Applied rewrites64.8%

                                                        \[\leadsto \color{blue}{\sin x} \]

                                                      if 1.7e-5 < y < 3.8499999999999999e77

                                                      1. Initial program 99.8%

                                                        \[\sin x \cdot \frac{\sinh y}{y} \]
                                                      2. Add Preprocessing
                                                      3. Step-by-step derivation
                                                        1. lift-*.f64N/A

                                                          \[\leadsto \color{blue}{\sin x \cdot \frac{\sinh y}{y}} \]
                                                        2. lift-/.f64N/A

                                                          \[\leadsto \sin x \cdot \color{blue}{\frac{\sinh y}{y}} \]
                                                        3. associate-*r/N/A

                                                          \[\leadsto \color{blue}{\frac{\sin x \cdot \sinh y}{y}} \]
                                                        4. lower-/.f64N/A

                                                          \[\leadsto \color{blue}{\frac{\sin x \cdot \sinh y}{y}} \]
                                                        5. lower-*.f6499.9

                                                          \[\leadsto \frac{\color{blue}{\sin x \cdot \sinh y}}{y} \]
                                                      4. Applied rewrites99.9%

                                                        \[\leadsto \color{blue}{\frac{\sin x \cdot \sinh y}{y}} \]
                                                      5. 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}{y} \]
                                                      6. 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}{y} \]
                                                        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}{y} \]
                                                        3. *-rgt-identityN/A

                                                          \[\leadsto \frac{\left(x \cdot \left(\frac{-1}{6} \cdot {x}^{2}\right) + \color{blue}{x}\right) \cdot \sinh y}{y} \]
                                                        4. lower-fma.f64N/A

                                                          \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(x, \frac{-1}{6} \cdot {x}^{2}, x\right)} \cdot \sinh y}{y} \]
                                                        5. *-commutativeN/A

                                                          \[\leadsto \frac{\mathsf{fma}\left(x, \color{blue}{{x}^{2} \cdot \frac{-1}{6}}, x\right) \cdot \sinh y}{y} \]
                                                        6. lower-*.f64N/A

                                                          \[\leadsto \frac{\mathsf{fma}\left(x, \color{blue}{{x}^{2} \cdot \frac{-1}{6}}, x\right) \cdot \sinh y}{y} \]
                                                        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}{y} \]
                                                        8. lower-*.f6483.2

                                                          \[\leadsto \frac{\mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot \sinh y}{y} \]
                                                      7. Applied rewrites83.2%

                                                        \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(x, \left(x \cdot x\right) \cdot -0.16666666666666666, x\right)} \cdot \sinh y}{y} \]

                                                      if 3.8499999999999999e77 < y

                                                      1. Initial program 100.0%

                                                        \[\sin x \cdot \frac{\sinh y}{y} \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in y around 0

                                                        \[\leadsto \sin x \cdot \color{blue}{\left(1 + {y}^{2} \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)} \]
                                                      4. Step-by-step derivation
                                                        1. +-commutativeN/A

                                                          \[\leadsto \sin x \cdot \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right) + 1\right)} \]
                                                        2. lower-fma.f64N/A

                                                          \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left({y}^{2}, \frac{1}{6} + \frac{1}{120} \cdot {y}^{2}, 1\right)} \]
                                                        3. unpow2N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{6} + \frac{1}{120} \cdot {y}^{2}, 1\right) \]
                                                        4. lower-*.f64N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{6} + \frac{1}{120} \cdot {y}^{2}, 1\right) \]
                                                        5. +-commutativeN/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{\frac{1}{120} \cdot {y}^{2} + \frac{1}{6}}, 1\right) \]
                                                        6. *-commutativeN/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{{y}^{2} \cdot \frac{1}{120}} + \frac{1}{6}, 1\right) \]
                                                        7. unpow2N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{\left(y \cdot y\right)} \cdot \frac{1}{120} + \frac{1}{6}, 1\right) \]
                                                        8. associate-*l*N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{y \cdot \left(y \cdot \frac{1}{120}\right)} + \frac{1}{6}, 1\right) \]
                                                        9. lower-fma.f64N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{\mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right)}, 1\right) \]
                                                        10. lower-*.f64100.0

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, \color{blue}{y \cdot 0.008333333333333333}, 0.16666666666666666\right), 1\right) \]
                                                      5. Applied rewrites100.0%

                                                        \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right)} \]
                                                    3. Recombined 3 regimes into one program.
                                                    4. Final simplification73.4%

                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 1.7 \cdot 10^{-5}:\\ \;\;\;\;\sin x\\ \mathbf{elif}\;y \leq 3.85 \cdot 10^{+77}:\\ \;\;\;\;\frac{\sinh y \cdot \mathsf{fma}\left(x, -0.16666666666666666 \cdot \left(x \cdot x\right), x\right)}{y}\\ \mathbf{else}:\\ \;\;\;\;\sin x \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right)\\ \end{array} \]
                                                    5. Add Preprocessing

                                                    Alternative 20: 86.3% accurate, 1.5× speedup?

                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 0.0022:\\ \;\;\;\;\sin x \cdot \mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right)\\ \mathbf{elif}\;y \leq 3.85 \cdot 10^{+77}:\\ \;\;\;\;\frac{\sinh y}{y} \cdot \mathsf{fma}\left(-0.16666666666666666, x \cdot \left(x \cdot x\right), x\right)\\ \mathbf{else}:\\ \;\;\;\;\sin x \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right)\\ \end{array} \end{array} \]
                                                    (FPCore (x y)
                                                     :precision binary64
                                                     (if (<= y 0.0022)
                                                       (* (sin x) (fma 0.16666666666666666 (* y y) 1.0))
                                                       (if (<= y 3.85e+77)
                                                         (* (/ (sinh y) y) (fma -0.16666666666666666 (* x (* x x)) x))
                                                         (*
                                                          (sin x)
                                                          (fma
                                                           (* y y)
                                                           (fma y (* y 0.008333333333333333) 0.16666666666666666)
                                                           1.0)))))
                                                    double code(double x, double y) {
                                                    	double tmp;
                                                    	if (y <= 0.0022) {
                                                    		tmp = sin(x) * fma(0.16666666666666666, (y * y), 1.0);
                                                    	} else if (y <= 3.85e+77) {
                                                    		tmp = (sinh(y) / y) * fma(-0.16666666666666666, (x * (x * x)), x);
                                                    	} else {
                                                    		tmp = sin(x) * fma((y * y), fma(y, (y * 0.008333333333333333), 0.16666666666666666), 1.0);
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    function code(x, y)
                                                    	tmp = 0.0
                                                    	if (y <= 0.0022)
                                                    		tmp = Float64(sin(x) * fma(0.16666666666666666, Float64(y * y), 1.0));
                                                    	elseif (y <= 3.85e+77)
                                                    		tmp = Float64(Float64(sinh(y) / y) * fma(-0.16666666666666666, Float64(x * Float64(x * x)), x));
                                                    	else
                                                    		tmp = Float64(sin(x) * fma(Float64(y * y), fma(y, Float64(y * 0.008333333333333333), 0.16666666666666666), 1.0));
                                                    	end
                                                    	return tmp
                                                    end
                                                    
                                                    code[x_, y_] := If[LessEqual[y, 0.0022], N[(N[Sin[x], $MachinePrecision] * N[(0.16666666666666666 * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.85e+77], N[(N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision] * N[(-0.16666666666666666 * N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], N[(N[Sin[x], $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * N[(y * N[(y * 0.008333333333333333), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]
                                                    
                                                    \begin{array}{l}
                                                    
                                                    \\
                                                    \begin{array}{l}
                                                    \mathbf{if}\;y \leq 0.0022:\\
                                                    \;\;\;\;\sin x \cdot \mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right)\\
                                                    
                                                    \mathbf{elif}\;y \leq 3.85 \cdot 10^{+77}:\\
                                                    \;\;\;\;\frac{\sinh y}{y} \cdot \mathsf{fma}\left(-0.16666666666666666, x \cdot \left(x \cdot x\right), x\right)\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;\sin x \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right)\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 3 regimes
                                                    2. if y < 0.00220000000000000013

                                                      1. Initial program 100.0%

                                                        \[\sin x \cdot \frac{\sinh y}{y} \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in y around 0

                                                        \[\leadsto \sin x \cdot \color{blue}{\left(1 + \frac{1}{6} \cdot {y}^{2}\right)} \]
                                                      4. Step-by-step derivation
                                                        1. +-commutativeN/A

                                                          \[\leadsto \sin x \cdot \color{blue}{\left(\frac{1}{6} \cdot {y}^{2} + 1\right)} \]
                                                        2. lower-fma.f64N/A

                                                          \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(\frac{1}{6}, {y}^{2}, 1\right)} \]
                                                        3. unpow2N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(\frac{1}{6}, \color{blue}{y \cdot y}, 1\right) \]
                                                        4. lower-*.f6480.0

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(0.16666666666666666, \color{blue}{y \cdot y}, 1\right) \]
                                                      5. Applied rewrites80.0%

                                                        \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right)} \]

                                                      if 0.00220000000000000013 < y < 3.8499999999999999e77

                                                      1. Initial program 99.9%

                                                        \[\sin x \cdot \frac{\sinh y}{y} \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in x around 0

                                                        \[\leadsto \color{blue}{\left(x \cdot \left(1 + \frac{-1}{6} \cdot {x}^{2}\right)\right)} \cdot \frac{\sinh y}{y} \]
                                                      4. Step-by-step derivation
                                                        1. +-commutativeN/A

                                                          \[\leadsto \left(x \cdot \color{blue}{\left(\frac{-1}{6} \cdot {x}^{2} + 1\right)}\right) \cdot \frac{\sinh y}{y} \]
                                                        2. distribute-lft-inN/A

                                                          \[\leadsto \color{blue}{\left(x \cdot \left(\frac{-1}{6} \cdot {x}^{2}\right) + x \cdot 1\right)} \cdot \frac{\sinh y}{y} \]
                                                        3. *-commutativeN/A

                                                          \[\leadsto \left(x \cdot \color{blue}{\left({x}^{2} \cdot \frac{-1}{6}\right)} + x \cdot 1\right) \cdot \frac{\sinh y}{y} \]
                                                        4. associate-*r*N/A

                                                          \[\leadsto \left(\color{blue}{\left(x \cdot {x}^{2}\right) \cdot \frac{-1}{6}} + x \cdot 1\right) \cdot \frac{\sinh y}{y} \]
                                                        5. *-commutativeN/A

                                                          \[\leadsto \left(\color{blue}{\frac{-1}{6} \cdot \left(x \cdot {x}^{2}\right)} + x \cdot 1\right) \cdot \frac{\sinh y}{y} \]
                                                        6. *-rgt-identityN/A

                                                          \[\leadsto \left(\frac{-1}{6} \cdot \left(x \cdot {x}^{2}\right) + \color{blue}{x}\right) \cdot \frac{\sinh y}{y} \]
                                                        7. lower-fma.f64N/A

                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{-1}{6}, x \cdot {x}^{2}, x\right)} \cdot \frac{\sinh y}{y} \]
                                                        8. lower-*.f64N/A

                                                          \[\leadsto \mathsf{fma}\left(\frac{-1}{6}, \color{blue}{x \cdot {x}^{2}}, x\right) \cdot \frac{\sinh y}{y} \]
                                                        9. unpow2N/A

                                                          \[\leadsto \mathsf{fma}\left(\frac{-1}{6}, x \cdot \color{blue}{\left(x \cdot x\right)}, x\right) \cdot \frac{\sinh y}{y} \]
                                                        10. lower-*.f6482.3

                                                          \[\leadsto \mathsf{fma}\left(-0.16666666666666666, x \cdot \color{blue}{\left(x \cdot x\right)}, x\right) \cdot \frac{\sinh y}{y} \]
                                                      5. Applied rewrites82.3%

                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-0.16666666666666666, x \cdot \left(x \cdot x\right), x\right)} \cdot \frac{\sinh y}{y} \]

                                                      if 3.8499999999999999e77 < y

                                                      1. Initial program 100.0%

                                                        \[\sin x \cdot \frac{\sinh y}{y} \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in y around 0

                                                        \[\leadsto \sin x \cdot \color{blue}{\left(1 + {y}^{2} \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right)\right)} \]
                                                      4. Step-by-step derivation
                                                        1. +-commutativeN/A

                                                          \[\leadsto \sin x \cdot \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{6} + \frac{1}{120} \cdot {y}^{2}\right) + 1\right)} \]
                                                        2. lower-fma.f64N/A

                                                          \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left({y}^{2}, \frac{1}{6} + \frac{1}{120} \cdot {y}^{2}, 1\right)} \]
                                                        3. unpow2N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{6} + \frac{1}{120} \cdot {y}^{2}, 1\right) \]
                                                        4. lower-*.f64N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{6} + \frac{1}{120} \cdot {y}^{2}, 1\right) \]
                                                        5. +-commutativeN/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{\frac{1}{120} \cdot {y}^{2} + \frac{1}{6}}, 1\right) \]
                                                        6. *-commutativeN/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{{y}^{2} \cdot \frac{1}{120}} + \frac{1}{6}, 1\right) \]
                                                        7. unpow2N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{\left(y \cdot y\right)} \cdot \frac{1}{120} + \frac{1}{6}, 1\right) \]
                                                        8. associate-*l*N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{y \cdot \left(y \cdot \frac{1}{120}\right)} + \frac{1}{6}, 1\right) \]
                                                        9. lower-fma.f64N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{\mathsf{fma}\left(y, y \cdot \frac{1}{120}, \frac{1}{6}\right)}, 1\right) \]
                                                        10. lower-*.f64100.0

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, \color{blue}{y \cdot 0.008333333333333333}, 0.16666666666666666\right), 1\right) \]
                                                      5. Applied rewrites100.0%

                                                        \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right)} \]
                                                    3. Recombined 3 regimes into one program.
                                                    4. Final simplification84.3%

                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 0.0022:\\ \;\;\;\;\sin x \cdot \mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right)\\ \mathbf{elif}\;y \leq 3.85 \cdot 10^{+77}:\\ \;\;\;\;\frac{\sinh y}{y} \cdot \mathsf{fma}\left(-0.16666666666666666, x \cdot \left(x \cdot x\right), x\right)\\ \mathbf{else}:\\ \;\;\;\;\sin x \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y, y \cdot 0.008333333333333333, 0.16666666666666666\right), 1\right)\\ \end{array} \]
                                                    5. Add Preprocessing

                                                    Alternative 21: 48.3% accurate, 1.6× speedup?

                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\sin x \leq 0.005:\\ \;\;\;\;\mathsf{fma}\left(x, -0.16666666666666666 \cdot \left(x \cdot x\right), x\right) \cdot \mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, x \cdot \left(x \cdot \mathsf{fma}\left(0.008333333333333333, x \cdot x, -0.16666666666666666\right)\right), x\right)\\ \end{array} \end{array} \]
                                                    (FPCore (x y)
                                                     :precision binary64
                                                     (if (<= (sin x) 0.005)
                                                       (*
                                                        (fma x (* -0.16666666666666666 (* x x)) x)
                                                        (fma 0.16666666666666666 (* y y) 1.0))
                                                       (fma
                                                        x
                                                        (* x (* x (fma 0.008333333333333333 (* x x) -0.16666666666666666)))
                                                        x)))
                                                    double code(double x, double y) {
                                                    	double tmp;
                                                    	if (sin(x) <= 0.005) {
                                                    		tmp = fma(x, (-0.16666666666666666 * (x * x)), x) * fma(0.16666666666666666, (y * y), 1.0);
                                                    	} else {
                                                    		tmp = fma(x, (x * (x * fma(0.008333333333333333, (x * x), -0.16666666666666666))), x);
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    function code(x, y)
                                                    	tmp = 0.0
                                                    	if (sin(x) <= 0.005)
                                                    		tmp = Float64(fma(x, Float64(-0.16666666666666666 * Float64(x * x)), x) * fma(0.16666666666666666, Float64(y * y), 1.0));
                                                    	else
                                                    		tmp = fma(x, Float64(x * Float64(x * fma(0.008333333333333333, Float64(x * x), -0.16666666666666666))), x);
                                                    	end
                                                    	return tmp
                                                    end
                                                    
                                                    code[x_, y_] := If[LessEqual[N[Sin[x], $MachinePrecision], 0.005], N[(N[(x * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision] * N[(0.16666666666666666 * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(x * N[(x * N[(x * N[(0.008333333333333333 * N[(x * x), $MachinePrecision] + -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
                                                    
                                                    \begin{array}{l}
                                                    
                                                    \\
                                                    \begin{array}{l}
                                                    \mathbf{if}\;\sin x \leq 0.005:\\
                                                    \;\;\;\;\mathsf{fma}\left(x, -0.16666666666666666 \cdot \left(x \cdot x\right), x\right) \cdot \mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right)\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;\mathsf{fma}\left(x, x \cdot \left(x \cdot \mathsf{fma}\left(0.008333333333333333, x \cdot x, -0.16666666666666666\right)\right), x\right)\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 2 regimes
                                                    2. if (sin.f64 x) < 0.0050000000000000001

                                                      1. Initial program 100.0%

                                                        \[\sin x \cdot \frac{\sinh y}{y} \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in y around 0

                                                        \[\leadsto \sin x \cdot \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)} \]
                                                      4. Step-by-step derivation
                                                        1. +-commutativeN/A

                                                          \[\leadsto \sin x \cdot \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)} \]
                                                        2. unpow2N/A

                                                          \[\leadsto \sin x \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) + 1\right) \]
                                                        3. associate-*l*N/A

                                                          \[\leadsto \sin x \cdot \left(\color{blue}{y \cdot \left(y \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)} + 1\right) \]
                                                        4. *-commutativeN/A

                                                          \[\leadsto \sin x \cdot \left(y \cdot \color{blue}{\left(\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot y\right)} + 1\right) \]
                                                        5. lower-fma.f64N/A

                                                          \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y, \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot y, 1\right)} \]
                                                        6. *-commutativeN/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)}, 1\right) \]
                                                        7. lower-*.f64N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)}, 1\right) \]
                                                        8. +-commutativeN/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right) + \frac{1}{6}\right)}, 1\right) \]
                                                        9. lower-fma.f64N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \color{blue}{\mathsf{fma}\left({y}^{2}, \frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}, \frac{1}{6}\right)}, 1\right) \]
                                                        10. unpow2N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}, \frac{1}{6}\right), 1\right) \]
                                                        11. lower-*.f64N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}, \frac{1}{6}\right), 1\right) \]
                                                        12. +-commutativeN/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{\frac{1}{5040} \cdot {y}^{2} + \frac{1}{120}}, \frac{1}{6}\right), 1\right) \]
                                                        13. *-commutativeN/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{{y}^{2} \cdot \frac{1}{5040}} + \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
                                                        14. lower-fma.f64N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{\mathsf{fma}\left({y}^{2}, \frac{1}{5040}, \frac{1}{120}\right)}, \frac{1}{6}\right), 1\right) \]
                                                        15. unpow2N/A

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                        16. lower-*.f6489.2

                                                          \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                                                      5. Applied rewrites89.2%

                                                        \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right)} \]
                                                      6. Taylor expanded in x around 0

                                                        \[\leadsto \color{blue}{\left(x \cdot \left(1 + \frac{-1}{6} \cdot {x}^{2}\right)\right)} \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                      7. Step-by-step derivation
                                                        1. +-commutativeN/A

                                                          \[\leadsto \left(x \cdot \color{blue}{\left(\frac{-1}{6} \cdot {x}^{2} + 1\right)}\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                        2. distribute-lft-inN/A

                                                          \[\leadsto \color{blue}{\left(x \cdot \left(\frac{-1}{6} \cdot {x}^{2}\right) + x \cdot 1\right)} \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                        3. *-rgt-identityN/A

                                                          \[\leadsto \left(x \cdot \left(\frac{-1}{6} \cdot {x}^{2}\right) + \color{blue}{x}\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                        4. lower-fma.f64N/A

                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(x, \frac{-1}{6} \cdot {x}^{2}, x\right)} \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                        5. *-commutativeN/A

                                                          \[\leadsto \mathsf{fma}\left(x, \color{blue}{{x}^{2} \cdot \frac{-1}{6}}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                        6. lower-*.f64N/A

                                                          \[\leadsto \mathsf{fma}\left(x, \color{blue}{{x}^{2} \cdot \frac{-1}{6}}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                        7. unpow2N/A

                                                          \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                        8. lower-*.f6470.4

                                                          \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                                                      8. Applied rewrites70.4%

                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(x, \left(x \cdot x\right) \cdot -0.16666666666666666, x\right)} \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                                                      9. Taylor expanded in y around 0

                                                        \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \frac{-1}{6}, x\right) \cdot \color{blue}{\left(1 + \frac{1}{6} \cdot {y}^{2}\right)} \]
                                                      10. Step-by-step derivation
                                                        1. +-commutativeN/A

                                                          \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \frac{-1}{6}, x\right) \cdot \color{blue}{\left(\frac{1}{6} \cdot {y}^{2} + 1\right)} \]
                                                        2. lower-fma.f64N/A

                                                          \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \frac{-1}{6}, x\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{1}{6}, {y}^{2}, 1\right)} \]
                                                        3. unpow2N/A

                                                          \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(\frac{1}{6}, \color{blue}{y \cdot y}, 1\right) \]
                                                        4. lower-*.f6456.5

                                                          \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot -0.16666666666666666, x\right) \cdot \mathsf{fma}\left(0.16666666666666666, \color{blue}{y \cdot y}, 1\right) \]
                                                      11. Applied rewrites56.5%

                                                        \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot -0.16666666666666666, x\right) \cdot \color{blue}{\mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right)} \]

                                                      if 0.0050000000000000001 < (sin.f64 x)

                                                      1. Initial program 100.0%

                                                        \[\sin x \cdot \frac{\sinh y}{y} \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in y around 0

                                                        \[\leadsto \color{blue}{\sin x} \]
                                                      4. Step-by-step derivation
                                                        1. lower-sin.f6442.8

                                                          \[\leadsto \color{blue}{\sin x} \]
                                                      5. Applied rewrites42.8%

                                                        \[\leadsto \color{blue}{\sin x} \]
                                                      6. Taylor expanded in x around 0

                                                        \[\leadsto x \cdot \color{blue}{\left(1 + \frac{-1}{6} \cdot {x}^{2}\right)} \]
                                                      7. Step-by-step derivation
                                                        1. Applied rewrites26.2%

                                                          \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right) \cdot -0.16666666666666666}, x\right) \]
                                                        2. Taylor expanded in x around 0

                                                          \[\leadsto x \cdot \color{blue}{\left(1 + {x}^{2} \cdot \left(\frac{1}{120} \cdot {x}^{2} - \frac{1}{6}\right)\right)} \]
                                                        3. Step-by-step derivation
                                                          1. Applied rewrites20.5%

                                                            \[\leadsto \mathsf{fma}\left(x, \color{blue}{x \cdot \left(x \cdot \mathsf{fma}\left(0.008333333333333333, x \cdot x, -0.16666666666666666\right)\right)}, x\right) \]
                                                        4. Recombined 2 regimes into one program.
                                                        5. Final simplification47.9%

                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;\sin x \leq 0.005:\\ \;\;\;\;\mathsf{fma}\left(x, -0.16666666666666666 \cdot \left(x \cdot x\right), x\right) \cdot \mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, x \cdot \left(x \cdot \mathsf{fma}\left(0.008333333333333333, x \cdot x, -0.16666666666666666\right)\right), x\right)\\ \end{array} \]
                                                        6. Add Preprocessing

                                                        Alternative 22: 36.1% accurate, 1.6× speedup?

                                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\sin x \leq -0.05:\\ \;\;\;\;\left(x \cdot \left(-0.16666666666666666 \cdot \left(x \cdot x\right)\right)\right) \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, x \cdot \left(x \cdot \mathsf{fma}\left(0.008333333333333333, x \cdot x, -0.16666666666666666\right)\right), x\right)\\ \end{array} \end{array} \]
                                                        (FPCore (x y)
                                                         :precision binary64
                                                         (if (<= (sin x) -0.05)
                                                           (*
                                                            (* x (* -0.16666666666666666 (* x x)))
                                                            (fma y (* y 0.16666666666666666) 1.0))
                                                           (fma
                                                            x
                                                            (* x (* x (fma 0.008333333333333333 (* x x) -0.16666666666666666)))
                                                            x)))
                                                        double code(double x, double y) {
                                                        	double tmp;
                                                        	if (sin(x) <= -0.05) {
                                                        		tmp = (x * (-0.16666666666666666 * (x * x))) * fma(y, (y * 0.16666666666666666), 1.0);
                                                        	} else {
                                                        		tmp = fma(x, (x * (x * fma(0.008333333333333333, (x * x), -0.16666666666666666))), x);
                                                        	}
                                                        	return tmp;
                                                        }
                                                        
                                                        function code(x, y)
                                                        	tmp = 0.0
                                                        	if (sin(x) <= -0.05)
                                                        		tmp = Float64(Float64(x * Float64(-0.16666666666666666 * Float64(x * x))) * fma(y, Float64(y * 0.16666666666666666), 1.0));
                                                        	else
                                                        		tmp = fma(x, Float64(x * Float64(x * fma(0.008333333333333333, Float64(x * x), -0.16666666666666666))), x);
                                                        	end
                                                        	return tmp
                                                        end
                                                        
                                                        code[x_, y_] := If[LessEqual[N[Sin[x], $MachinePrecision], -0.05], N[(N[(x * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y * N[(y * 0.16666666666666666), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(x * N[(x * N[(x * N[(0.008333333333333333 * N[(x * x), $MachinePrecision] + -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
                                                        
                                                        \begin{array}{l}
                                                        
                                                        \\
                                                        \begin{array}{l}
                                                        \mathbf{if}\;\sin x \leq -0.05:\\
                                                        \;\;\;\;\left(x \cdot \left(-0.16666666666666666 \cdot \left(x \cdot x\right)\right)\right) \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\\
                                                        
                                                        \mathbf{else}:\\
                                                        \;\;\;\;\mathsf{fma}\left(x, x \cdot \left(x \cdot \mathsf{fma}\left(0.008333333333333333, x \cdot x, -0.16666666666666666\right)\right), x\right)\\
                                                        
                                                        
                                                        \end{array}
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Split input into 2 regimes
                                                        2. if (sin.f64 x) < -0.050000000000000003

                                                          1. Initial program 100.0%

                                                            \[\sin x \cdot \frac{\sinh y}{y} \]
                                                          2. Add Preprocessing
                                                          3. Taylor expanded in y around 0

                                                            \[\leadsto \sin x \cdot \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)} \]
                                                          4. Step-by-step derivation
                                                            1. +-commutativeN/A

                                                              \[\leadsto \sin x \cdot \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)} \]
                                                            2. unpow2N/A

                                                              \[\leadsto \sin x \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) + 1\right) \]
                                                            3. associate-*l*N/A

                                                              \[\leadsto \sin x \cdot \left(\color{blue}{y \cdot \left(y \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)\right)} + 1\right) \]
                                                            4. *-commutativeN/A

                                                              \[\leadsto \sin x \cdot \left(y \cdot \color{blue}{\left(\left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot y\right)} + 1\right) \]
                                                            5. lower-fma.f64N/A

                                                              \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y, \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right) \cdot y, 1\right)} \]
                                                            6. *-commutativeN/A

                                                              \[\leadsto \sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)}, 1\right) \]
                                                            7. lower-*.f64N/A

                                                              \[\leadsto \sin x \cdot \mathsf{fma}\left(y, \color{blue}{y \cdot \left(\frac{1}{6} + {y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right)\right)}, 1\right) \]
                                                            8. +-commutativeN/A

                                                              \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \color{blue}{\left({y}^{2} \cdot \left(\frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}\right) + \frac{1}{6}\right)}, 1\right) \]
                                                            9. lower-fma.f64N/A

                                                              \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \color{blue}{\mathsf{fma}\left({y}^{2}, \frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}, \frac{1}{6}\right)}, 1\right) \]
                                                            10. unpow2N/A

                                                              \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}, \frac{1}{6}\right), 1\right) \]
                                                            11. lower-*.f64N/A

                                                              \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{120} + \frac{1}{5040} \cdot {y}^{2}, \frac{1}{6}\right), 1\right) \]
                                                            12. +-commutativeN/A

                                                              \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{\frac{1}{5040} \cdot {y}^{2} + \frac{1}{120}}, \frac{1}{6}\right), 1\right) \]
                                                            13. *-commutativeN/A

                                                              \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{{y}^{2} \cdot \frac{1}{5040}} + \frac{1}{120}, \frac{1}{6}\right), 1\right) \]
                                                            14. lower-fma.f64N/A

                                                              \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \color{blue}{\mathsf{fma}\left({y}^{2}, \frac{1}{5040}, \frac{1}{120}\right)}, \frac{1}{6}\right), 1\right) \]
                                                            15. unpow2N/A

                                                              \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                            16. lower-*.f6489.4

                                                              \[\leadsto \sin x \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\color{blue}{y \cdot y}, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                                                          5. Applied rewrites89.4%

                                                            \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right)} \]
                                                          6. Taylor expanded in x around 0

                                                            \[\leadsto \color{blue}{\left(x \cdot \left(1 + \frac{-1}{6} \cdot {x}^{2}\right)\right)} \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                          7. Step-by-step derivation
                                                            1. +-commutativeN/A

                                                              \[\leadsto \left(x \cdot \color{blue}{\left(\frac{-1}{6} \cdot {x}^{2} + 1\right)}\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                            2. distribute-lft-inN/A

                                                              \[\leadsto \color{blue}{\left(x \cdot \left(\frac{-1}{6} \cdot {x}^{2}\right) + x \cdot 1\right)} \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                            3. *-rgt-identityN/A

                                                              \[\leadsto \left(x \cdot \left(\frac{-1}{6} \cdot {x}^{2}\right) + \color{blue}{x}\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                            4. lower-fma.f64N/A

                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(x, \frac{-1}{6} \cdot {x}^{2}, x\right)} \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                            5. *-commutativeN/A

                                                              \[\leadsto \mathsf{fma}\left(x, \color{blue}{{x}^{2} \cdot \frac{-1}{6}}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                            6. lower-*.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(x, \color{blue}{{x}^{2} \cdot \frac{-1}{6}}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                            7. unpow2N/A

                                                              \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, \frac{1}{5040}, \frac{1}{120}\right), \frac{1}{6}\right), 1\right) \]
                                                            8. lower-*.f6430.2

                                                              \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right)} \cdot -0.16666666666666666, x\right) \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                                                          8. Applied rewrites30.2%

                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(x, \left(x \cdot x\right) \cdot -0.16666666666666666, x\right)} \cdot \mathsf{fma}\left(y, y \cdot \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(y \cdot y, 0.0001984126984126984, 0.008333333333333333\right), 0.16666666666666666\right), 1\right) \]
                                                          9. Taylor expanded in y around 0

                                                            \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot \frac{-1}{6}, x\right) \cdot \mathsf{fma}\left(y, \frac{1}{6} \cdot \color{blue}{y}, 1\right) \]
                                                          10. Step-by-step derivation
                                                            1. Applied rewrites27.1%

                                                              \[\leadsto \mathsf{fma}\left(x, \left(x \cdot x\right) \cdot -0.16666666666666666, x\right) \cdot \mathsf{fma}\left(y, 0.16666666666666666 \cdot \color{blue}{y}, 1\right) \]
                                                            2. Taylor expanded in x around inf

                                                              \[\leadsto \left(\frac{-1}{6} \cdot \color{blue}{{x}^{3}}\right) \cdot \mathsf{fma}\left(y, \frac{1}{6} \cdot y, 1\right) \]
                                                            3. Step-by-step derivation
                                                              1. Applied rewrites27.1%

                                                                \[\leadsto \left(x \cdot \color{blue}{\left(\left(x \cdot x\right) \cdot -0.16666666666666666\right)}\right) \cdot \mathsf{fma}\left(y, 0.16666666666666666 \cdot y, 1\right) \]

                                                              if -0.050000000000000003 < (sin.f64 x)

                                                              1. Initial program 100.0%

                                                                \[\sin x \cdot \frac{\sinh y}{y} \]
                                                              2. Add Preprocessing
                                                              3. Taylor expanded in y around 0

                                                                \[\leadsto \color{blue}{\sin x} \]
                                                              4. Step-by-step derivation
                                                                1. lower-sin.f6445.9

                                                                  \[\leadsto \color{blue}{\sin x} \]
                                                              5. Applied rewrites45.9%

                                                                \[\leadsto \color{blue}{\sin x} \]
                                                              6. Taylor expanded in x around 0

                                                                \[\leadsto x \cdot \color{blue}{\left(1 + \frac{-1}{6} \cdot {x}^{2}\right)} \]
                                                              7. Step-by-step derivation
                                                                1. Applied rewrites40.7%

                                                                  \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right) \cdot -0.16666666666666666}, x\right) \]
                                                                2. Taylor expanded in x around 0

                                                                  \[\leadsto x \cdot \color{blue}{\left(1 + {x}^{2} \cdot \left(\frac{1}{120} \cdot {x}^{2} - \frac{1}{6}\right)\right)} \]
                                                                3. Step-by-step derivation
                                                                  1. Applied rewrites39.4%

                                                                    \[\leadsto \mathsf{fma}\left(x, \color{blue}{x \cdot \left(x \cdot \mathsf{fma}\left(0.008333333333333333, x \cdot x, -0.16666666666666666\right)\right)}, x\right) \]
                                                                4. Recombined 2 regimes into one program.
                                                                5. Final simplification36.4%

                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;\sin x \leq -0.05:\\ \;\;\;\;\left(x \cdot \left(-0.16666666666666666 \cdot \left(x \cdot x\right)\right)\right) \cdot \mathsf{fma}\left(y, y \cdot 0.16666666666666666, 1\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, x \cdot \left(x \cdot \mathsf{fma}\left(0.008333333333333333, x \cdot x, -0.16666666666666666\right)\right), x\right)\\ \end{array} \]
                                                                6. Add Preprocessing

                                                                Alternative 23: 34.3% accurate, 12.8× speedup?

                                                                \[\begin{array}{l} \\ \mathsf{fma}\left(x, -0.16666666666666666 \cdot \left(x \cdot x\right), x\right) \end{array} \]
                                                                (FPCore (x y) :precision binary64 (fma x (* -0.16666666666666666 (* x x)) x))
                                                                double code(double x, double y) {
                                                                	return fma(x, (-0.16666666666666666 * (x * x)), x);
                                                                }
                                                                
                                                                function code(x, y)
                                                                	return fma(x, Float64(-0.16666666666666666 * Float64(x * x)), x)
                                                                end
                                                                
                                                                code[x_, y_] := N[(x * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]
                                                                
                                                                \begin{array}{l}
                                                                
                                                                \\
                                                                \mathsf{fma}\left(x, -0.16666666666666666 \cdot \left(x \cdot x\right), x\right)
                                                                \end{array}
                                                                
                                                                Derivation
                                                                1. Initial program 100.0%

                                                                  \[\sin x \cdot \frac{\sinh y}{y} \]
                                                                2. Add Preprocessing
                                                                3. Taylor expanded in y around 0

                                                                  \[\leadsto \color{blue}{\sin x} \]
                                                                4. Step-by-step derivation
                                                                  1. lower-sin.f6448.0

                                                                    \[\leadsto \color{blue}{\sin x} \]
                                                                5. Applied rewrites48.0%

                                                                  \[\leadsto \color{blue}{\sin x} \]
                                                                6. Taylor expanded in x around 0

                                                                  \[\leadsto x \cdot \color{blue}{\left(1 + \frac{-1}{6} \cdot {x}^{2}\right)} \]
                                                                7. Step-by-step derivation
                                                                  1. Applied rewrites35.9%

                                                                    \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right) \cdot -0.16666666666666666}, x\right) \]
                                                                  2. Final simplification35.9%

                                                                    \[\leadsto \mathsf{fma}\left(x, -0.16666666666666666 \cdot \left(x \cdot x\right), x\right) \]
                                                                  3. Add Preprocessing

                                                                  Alternative 24: 11.0% accurate, 13.6× speedup?

                                                                  \[\begin{array}{l} \\ x \cdot \left(x \cdot \left(x \cdot -0.16666666666666666\right)\right) \end{array} \]
                                                                  (FPCore (x y) :precision binary64 (* x (* x (* x -0.16666666666666666))))
                                                                  double code(double x, double y) {
                                                                  	return x * (x * (x * -0.16666666666666666));
                                                                  }
                                                                  
                                                                  real(8) function code(x, y)
                                                                      real(8), intent (in) :: x
                                                                      real(8), intent (in) :: y
                                                                      code = x * (x * (x * (-0.16666666666666666d0)))
                                                                  end function
                                                                  
                                                                  public static double code(double x, double y) {
                                                                  	return x * (x * (x * -0.16666666666666666));
                                                                  }
                                                                  
                                                                  def code(x, y):
                                                                  	return x * (x * (x * -0.16666666666666666))
                                                                  
                                                                  function code(x, y)
                                                                  	return Float64(x * Float64(x * Float64(x * -0.16666666666666666)))
                                                                  end
                                                                  
                                                                  function tmp = code(x, y)
                                                                  	tmp = x * (x * (x * -0.16666666666666666));
                                                                  end
                                                                  
                                                                  code[x_, y_] := N[(x * N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                                                  
                                                                  \begin{array}{l}
                                                                  
                                                                  \\
                                                                  x \cdot \left(x \cdot \left(x \cdot -0.16666666666666666\right)\right)
                                                                  \end{array}
                                                                  
                                                                  Derivation
                                                                  1. Initial program 100.0%

                                                                    \[\sin x \cdot \frac{\sinh y}{y} \]
                                                                  2. Add Preprocessing
                                                                  3. Taylor expanded in y around 0

                                                                    \[\leadsto \color{blue}{\sin x} \]
                                                                  4. Step-by-step derivation
                                                                    1. lower-sin.f6448.0

                                                                      \[\leadsto \color{blue}{\sin x} \]
                                                                  5. Applied rewrites48.0%

                                                                    \[\leadsto \color{blue}{\sin x} \]
                                                                  6. Taylor expanded in x around 0

                                                                    \[\leadsto x \cdot \color{blue}{\left(1 + \frac{-1}{6} \cdot {x}^{2}\right)} \]
                                                                  7. Step-by-step derivation
                                                                    1. Applied rewrites35.9%

                                                                      \[\leadsto \mathsf{fma}\left(x, \color{blue}{\left(x \cdot x\right) \cdot -0.16666666666666666}, x\right) \]
                                                                    2. Taylor expanded in x around inf

                                                                      \[\leadsto \frac{-1}{6} \cdot {x}^{\color{blue}{3}} \]
                                                                    3. Step-by-step derivation
                                                                      1. Applied rewrites13.1%

                                                                        \[\leadsto x \cdot \left(\left(x \cdot x\right) \cdot \color{blue}{-0.16666666666666666}\right) \]
                                                                      2. Step-by-step derivation
                                                                        1. Applied rewrites13.1%

                                                                          \[\leadsto x \cdot \left(\left(x \cdot -0.16666666666666666\right) \cdot x\right) \]
                                                                        2. Final simplification13.1%

                                                                          \[\leadsto x \cdot \left(x \cdot \left(x \cdot -0.16666666666666666\right)\right) \]
                                                                        3. Add Preprocessing

                                                                        Reproduce

                                                                        ?
                                                                        herbie shell --seed 2024219 
                                                                        (FPCore (x y)
                                                                          :name "Linear.Quaternion:$ccos from linear-1.19.1.3"
                                                                          :precision binary64
                                                                          (* (sin x) (/ (sinh y) y)))