Linear.Quaternion:$ccos from linear-1.19.1.3

Percentage Accurate: 100.0% → 98.7%
Time: 10.0s
Alternatives: 18
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 18 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: 98.7% accurate, 0.4× speedup?

\[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_0 := \frac{\sinh y}{y}\\ t_1 := t\_0 \cdot \sin x\_m\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;\left(\left(y \cdot y\right) \cdot 0.16666666666666666\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\ \mathbf{elif}\;t\_1 \leq 1:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot \sin x\_m\\ \mathbf{else}:\\ \;\;\;\;\left(1 \cdot x\_m\right) \cdot t\_0\\ \end{array} \end{array} \end{array} \]
x\_m = (fabs.f64 x)
x\_s = (copysign.f64 #s(literal 1 binary64) x)
(FPCore (x_s x_m y)
 :precision binary64
 (let* ((t_0 (/ (sinh y) y)) (t_1 (* t_0 (sin x_m))))
   (*
    x_s
    (if (<= t_1 (- INFINITY))
      (*
       (* (* y y) 0.16666666666666666)
       (fma (* (* x_m x_m) x_m) -0.16666666666666666 x_m))
      (if (<= t_1 1.0)
        (*
         (fma
          (fma 0.008333333333333333 (* y y) 0.16666666666666666)
          (* y y)
          1.0)
         (sin x_m))
        (* (* 1.0 x_m) t_0))))))
x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y) {
	double t_0 = sinh(y) / y;
	double t_1 = t_0 * sin(x_m);
	double tmp;
	if (t_1 <= -((double) INFINITY)) {
		tmp = ((y * y) * 0.16666666666666666) * fma(((x_m * x_m) * x_m), -0.16666666666666666, x_m);
	} else if (t_1 <= 1.0) {
		tmp = fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0) * sin(x_m);
	} else {
		tmp = (1.0 * x_m) * t_0;
	}
	return x_s * tmp;
}
x\_m = abs(x)
x\_s = copysign(1.0, x)
function code(x_s, x_m, y)
	t_0 = Float64(sinh(y) / y)
	t_1 = Float64(t_0 * sin(x_m))
	tmp = 0.0
	if (t_1 <= Float64(-Inf))
		tmp = Float64(Float64(Float64(y * y) * 0.16666666666666666) * fma(Float64(Float64(x_m * x_m) * x_m), -0.16666666666666666, x_m));
	elseif (t_1 <= 1.0)
		tmp = Float64(fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) * sin(x_m));
	else
		tmp = Float64(Float64(1.0 * x_m) * t_0);
	end
	return Float64(x_s * tmp)
end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_] := Block[{t$95$0 = N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 * N[Sin[x$95$m], $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[t$95$1, (-Infinity)], N[(N[(N[(y * y), $MachinePrecision] * 0.16666666666666666), $MachinePrecision] * N[(N[(N[(x$95$m * x$95$m), $MachinePrecision] * x$95$m), $MachinePrecision] * -0.16666666666666666 + x$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1.0], N[(N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision] * N[Sin[x$95$m], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 * x$95$m), $MachinePrecision] * t$95$0), $MachinePrecision]]]), $MachinePrecision]]]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)

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

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

\mathbf{else}:\\
\;\;\;\;\left(1 \cdot x\_m\right) \cdot t\_0\\


\end{array}
\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 + \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. *-commutativeN/A

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

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

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

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

      \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 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 \cdot y, \frac{1}{6}, 1\right) \]
    7. Step-by-step derivation
      1. distribute-lft-inN/A

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

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

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

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

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

        \[\leadsto \left(\left(x \cdot \color{blue}{\left(x \cdot x\right)}\right) \cdot \frac{-1}{6} + x\right) \cdot \mathsf{fma}\left(y \cdot y, \frac{1}{6}, 1\right) \]
      7. cube-multN/A

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\left(x \cdot x\right) \cdot x, -0.16666666666666666, x\right) \cdot \left(\left(y \cdot y\right) \cdot \color{blue}{0.16666666666666666}\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. *-commutativeN/A

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

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

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

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

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

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

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

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

        \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), 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 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 \color{blue}{\left(\left(1 + \frac{-1}{6} \cdot {x}^{2}\right) \cdot x\right)} \cdot \frac{\sinh y}{y} \]
        2. lower-*.f64N/A

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

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

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

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

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

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

        \[\leadsto \left(1 \cdot x\right) \cdot \frac{\sinh y}{y} \]
      7. Step-by-step derivation
        1. Applied rewrites74.6%

          \[\leadsto \left(1 \cdot x\right) \cdot \frac{\sinh y}{y} \]
      8. Recombined 3 regimes into one program.
      9. Final simplification84.1%

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

      Alternative 2: 98.7% accurate, 0.4× speedup?

      \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_0 := \frac{\sinh y}{y}\\ t_1 := t\_0 \cdot \sin x\_m\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;\left(\left(y \cdot y\right) \cdot 0.16666666666666666\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\ \mathbf{elif}\;t\_1 \leq 1:\\ \;\;\;\;\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 1\right) \cdot \sin x\_m\\ \mathbf{else}:\\ \;\;\;\;\left(1 \cdot x\_m\right) \cdot t\_0\\ \end{array} \end{array} \end{array} \]
      x\_m = (fabs.f64 x)
      x\_s = (copysign.f64 #s(literal 1 binary64) x)
      (FPCore (x_s x_m y)
       :precision binary64
       (let* ((t_0 (/ (sinh y) y)) (t_1 (* t_0 (sin x_m))))
         (*
          x_s
          (if (<= t_1 (- INFINITY))
            (*
             (* (* y y) 0.16666666666666666)
             (fma (* (* x_m x_m) x_m) -0.16666666666666666 x_m))
            (if (<= t_1 1.0)
              (* (fma (* y y) 0.16666666666666666 1.0) (sin x_m))
              (* (* 1.0 x_m) t_0))))))
      x\_m = fabs(x);
      x\_s = copysign(1.0, x);
      double code(double x_s, double x_m, double y) {
      	double t_0 = sinh(y) / y;
      	double t_1 = t_0 * sin(x_m);
      	double tmp;
      	if (t_1 <= -((double) INFINITY)) {
      		tmp = ((y * y) * 0.16666666666666666) * fma(((x_m * x_m) * x_m), -0.16666666666666666, x_m);
      	} else if (t_1 <= 1.0) {
      		tmp = fma((y * y), 0.16666666666666666, 1.0) * sin(x_m);
      	} else {
      		tmp = (1.0 * x_m) * t_0;
      	}
      	return x_s * tmp;
      }
      
      x\_m = abs(x)
      x\_s = copysign(1.0, x)
      function code(x_s, x_m, y)
      	t_0 = Float64(sinh(y) / y)
      	t_1 = Float64(t_0 * sin(x_m))
      	tmp = 0.0
      	if (t_1 <= Float64(-Inf))
      		tmp = Float64(Float64(Float64(y * y) * 0.16666666666666666) * fma(Float64(Float64(x_m * x_m) * x_m), -0.16666666666666666, x_m));
      	elseif (t_1 <= 1.0)
      		tmp = Float64(fma(Float64(y * y), 0.16666666666666666, 1.0) * sin(x_m));
      	else
      		tmp = Float64(Float64(1.0 * x_m) * t_0);
      	end
      	return Float64(x_s * tmp)
      end
      
      x\_m = N[Abs[x], $MachinePrecision]
      x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
      code[x$95$s_, x$95$m_, y_] := Block[{t$95$0 = N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$1 = N[(t$95$0 * N[Sin[x$95$m], $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[t$95$1, (-Infinity)], N[(N[(N[(y * y), $MachinePrecision] * 0.16666666666666666), $MachinePrecision] * N[(N[(N[(x$95$m * x$95$m), $MachinePrecision] * x$95$m), $MachinePrecision] * -0.16666666666666666 + x$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1.0], N[(N[(N[(y * y), $MachinePrecision] * 0.16666666666666666 + 1.0), $MachinePrecision] * N[Sin[x$95$m], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 * x$95$m), $MachinePrecision] * t$95$0), $MachinePrecision]]]), $MachinePrecision]]]
      
      \begin{array}{l}
      x\_m = \left|x\right|
      \\
      x\_s = \mathsf{copysign}\left(1, x\right)
      
      \\
      \begin{array}{l}
      t_0 := \frac{\sinh y}{y}\\
      t_1 := t\_0 \cdot \sin x\_m\\
      x\_s \cdot \begin{array}{l}
      \mathbf{if}\;t\_1 \leq -\infty:\\
      \;\;\;\;\left(\left(y \cdot y\right) \cdot 0.16666666666666666\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\
      
      \mathbf{elif}\;t\_1 \leq 1:\\
      \;\;\;\;\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 1\right) \cdot \sin x\_m\\
      
      \mathbf{else}:\\
      \;\;\;\;\left(1 \cdot x\_m\right) \cdot t\_0\\
      
      
      \end{array}
      \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 + \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. *-commutativeN/A

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

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

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

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

          \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 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 \cdot y, \frac{1}{6}, 1\right) \]
        7. Step-by-step derivation
          1. distribute-lft-inN/A

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

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

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

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

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

            \[\leadsto \left(\left(x \cdot \color{blue}{\left(x \cdot x\right)}\right) \cdot \frac{-1}{6} + x\right) \cdot \mathsf{fma}\left(y \cdot y, \frac{1}{6}, 1\right) \]
          7. cube-multN/A

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

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

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\left(x \cdot x\right) \cdot x, -0.16666666666666666, x\right) \cdot \left(\left(y \cdot y\right) \cdot \color{blue}{0.16666666666666666}\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. *-commutativeN/A

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

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

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

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

            \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 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 + \frac{-1}{6} \cdot {x}^{2}\right)\right)} \cdot \frac{\sinh y}{y} \]
          4. Step-by-step derivation
            1. *-commutativeN/A

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

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

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

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

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

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

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

            \[\leadsto \left(1 \cdot x\right) \cdot \frac{\sinh y}{y} \]
          7. Step-by-step derivation
            1. Applied rewrites74.6%

              \[\leadsto \left(1 \cdot x\right) \cdot \frac{\sinh y}{y} \]
          8. Recombined 3 regimes into one program.
          9. Final simplification84.1%

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

          Alternative 3: 94.9% accurate, 0.4× speedup?

          \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_0 := \frac{\sinh y}{y} \cdot \sin x\_m\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;t\_0 \leq -\infty:\\ \;\;\;\;\left(\left(y \cdot y\right) \cdot 0.16666666666666666\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\ \mathbf{elif}\;t\_0 \leq 1:\\ \;\;\;\;\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 1\right) \cdot \sin x\_m\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(0.0001984126984126984 \cdot \left(y \cdot y\right), y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y}{y} \cdot \left(1 \cdot x\_m\right)\\ \end{array} \end{array} \end{array} \]
          x\_m = (fabs.f64 x)
          x\_s = (copysign.f64 #s(literal 1 binary64) x)
          (FPCore (x_s x_m y)
           :precision binary64
           (let* ((t_0 (* (/ (sinh y) y) (sin x_m))))
             (*
              x_s
              (if (<= t_0 (- INFINITY))
                (*
                 (* (* y y) 0.16666666666666666)
                 (fma (* (* x_m x_m) x_m) -0.16666666666666666 x_m))
                (if (<= t_0 1.0)
                  (* (fma (* y y) 0.16666666666666666 1.0) (sin x_m))
                  (*
                   (/
                    (*
                     (fma
                      (fma (* 0.0001984126984126984 (* y y)) (* y y) 0.16666666666666666)
                      (* y y)
                      1.0)
                     y)
                    y)
                   (* 1.0 x_m)))))))
          x\_m = fabs(x);
          x\_s = copysign(1.0, x);
          double code(double x_s, double x_m, double y) {
          	double t_0 = (sinh(y) / y) * sin(x_m);
          	double tmp;
          	if (t_0 <= -((double) INFINITY)) {
          		tmp = ((y * y) * 0.16666666666666666) * fma(((x_m * x_m) * x_m), -0.16666666666666666, x_m);
          	} else if (t_0 <= 1.0) {
          		tmp = fma((y * y), 0.16666666666666666, 1.0) * sin(x_m);
          	} else {
          		tmp = ((fma(fma((0.0001984126984126984 * (y * y)), (y * y), 0.16666666666666666), (y * y), 1.0) * y) / y) * (1.0 * x_m);
          	}
          	return x_s * tmp;
          }
          
          x\_m = abs(x)
          x\_s = copysign(1.0, x)
          function code(x_s, x_m, y)
          	t_0 = Float64(Float64(sinh(y) / y) * sin(x_m))
          	tmp = 0.0
          	if (t_0 <= Float64(-Inf))
          		tmp = Float64(Float64(Float64(y * y) * 0.16666666666666666) * fma(Float64(Float64(x_m * x_m) * x_m), -0.16666666666666666, x_m));
          	elseif (t_0 <= 1.0)
          		tmp = Float64(fma(Float64(y * y), 0.16666666666666666, 1.0) * sin(x_m));
          	else
          		tmp = Float64(Float64(Float64(fma(fma(Float64(0.0001984126984126984 * Float64(y * y)), Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) * y) / y) * Float64(1.0 * x_m));
          	end
          	return Float64(x_s * tmp)
          end
          
          x\_m = N[Abs[x], $MachinePrecision]
          x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
          code[x$95$s_, x$95$m_, y_] := Block[{t$95$0 = N[(N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision] * N[Sin[x$95$m], $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[t$95$0, (-Infinity)], N[(N[(N[(y * y), $MachinePrecision] * 0.16666666666666666), $MachinePrecision] * N[(N[(N[(x$95$m * x$95$m), $MachinePrecision] * x$95$m), $MachinePrecision] * -0.16666666666666666 + x$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 1.0], N[(N[(N[(y * y), $MachinePrecision] * 0.16666666666666666 + 1.0), $MachinePrecision] * N[Sin[x$95$m], $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(N[(N[(0.0001984126984126984 * N[(y * y), $MachinePrecision]), $MachinePrecision] * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision] * y), $MachinePrecision] / y), $MachinePrecision] * N[(1.0 * x$95$m), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
          
          \begin{array}{l}
          x\_m = \left|x\right|
          \\
          x\_s = \mathsf{copysign}\left(1, x\right)
          
          \\
          \begin{array}{l}
          t_0 := \frac{\sinh y}{y} \cdot \sin x\_m\\
          x\_s \cdot \begin{array}{l}
          \mathbf{if}\;t\_0 \leq -\infty:\\
          \;\;\;\;\left(\left(y \cdot y\right) \cdot 0.16666666666666666\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\
          
          \mathbf{elif}\;t\_0 \leq 1:\\
          \;\;\;\;\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 1\right) \cdot \sin x\_m\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(0.0001984126984126984 \cdot \left(y \cdot y\right), y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y}{y} \cdot \left(1 \cdot x\_m\right)\\
          
          
          \end{array}
          \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 + \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. *-commutativeN/A

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

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

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

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

              \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 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 \cdot y, \frac{1}{6}, 1\right) \]
            7. Step-by-step derivation
              1. distribute-lft-inN/A

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

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

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

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

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

                \[\leadsto \left(\left(x \cdot \color{blue}{\left(x \cdot x\right)}\right) \cdot \frac{-1}{6} + x\right) \cdot \mathsf{fma}\left(y \cdot y, \frac{1}{6}, 1\right) \]
              7. cube-multN/A

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\left(x \cdot x\right) \cdot x, -0.16666666666666666, x\right) \cdot \left(\left(y \cdot y\right) \cdot \color{blue}{0.16666666666666666}\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. *-commutativeN/A

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

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

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

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

                \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 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 + \frac{-1}{6} \cdot {x}^{2}\right)\right)} \cdot \frac{\sinh y}{y} \]
              4. Step-by-step derivation
                1. *-commutativeN/A

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

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

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

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

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

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

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

                \[\leadsto \left(1 \cdot x\right) \cdot \frac{\sinh y}{y} \]
              7. Step-by-step derivation
                1. Applied rewrites74.6%

                  \[\leadsto \left(1 \cdot x\right) \cdot \frac{\sinh y}{y} \]
                2. Taylor expanded in y around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \left(1 \cdot x\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(0.0001984126984126984 \cdot \left(y \cdot y\right), y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y}{y} \]
                7. Recombined 3 regimes into one program.
                8. Final simplification82.2%

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

                Alternative 4: 94.7% accurate, 0.4× speedup?

                \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_0 := \frac{\sinh y}{y} \cdot \sin x\_m\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;t\_0 \leq -\infty:\\ \;\;\;\;\left(\left(y \cdot y\right) \cdot 0.16666666666666666\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\ \mathbf{elif}\;t\_0 \leq 1:\\ \;\;\;\;\sin x\_m\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(0.0001984126984126984 \cdot \left(y \cdot y\right), y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y}{y} \cdot \left(1 \cdot x\_m\right)\\ \end{array} \end{array} \end{array} \]
                x\_m = (fabs.f64 x)
                x\_s = (copysign.f64 #s(literal 1 binary64) x)
                (FPCore (x_s x_m y)
                 :precision binary64
                 (let* ((t_0 (* (/ (sinh y) y) (sin x_m))))
                   (*
                    x_s
                    (if (<= t_0 (- INFINITY))
                      (*
                       (* (* y y) 0.16666666666666666)
                       (fma (* (* x_m x_m) x_m) -0.16666666666666666 x_m))
                      (if (<= t_0 1.0)
                        (sin x_m)
                        (*
                         (/
                          (*
                           (fma
                            (fma (* 0.0001984126984126984 (* y y)) (* y y) 0.16666666666666666)
                            (* y y)
                            1.0)
                           y)
                          y)
                         (* 1.0 x_m)))))))
                x\_m = fabs(x);
                x\_s = copysign(1.0, x);
                double code(double x_s, double x_m, double y) {
                	double t_0 = (sinh(y) / y) * sin(x_m);
                	double tmp;
                	if (t_0 <= -((double) INFINITY)) {
                		tmp = ((y * y) * 0.16666666666666666) * fma(((x_m * x_m) * x_m), -0.16666666666666666, x_m);
                	} else if (t_0 <= 1.0) {
                		tmp = sin(x_m);
                	} else {
                		tmp = ((fma(fma((0.0001984126984126984 * (y * y)), (y * y), 0.16666666666666666), (y * y), 1.0) * y) / y) * (1.0 * x_m);
                	}
                	return x_s * tmp;
                }
                
                x\_m = abs(x)
                x\_s = copysign(1.0, x)
                function code(x_s, x_m, y)
                	t_0 = Float64(Float64(sinh(y) / y) * sin(x_m))
                	tmp = 0.0
                	if (t_0 <= Float64(-Inf))
                		tmp = Float64(Float64(Float64(y * y) * 0.16666666666666666) * fma(Float64(Float64(x_m * x_m) * x_m), -0.16666666666666666, x_m));
                	elseif (t_0 <= 1.0)
                		tmp = sin(x_m);
                	else
                		tmp = Float64(Float64(Float64(fma(fma(Float64(0.0001984126984126984 * Float64(y * y)), Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) * y) / y) * Float64(1.0 * x_m));
                	end
                	return Float64(x_s * tmp)
                end
                
                x\_m = N[Abs[x], $MachinePrecision]
                x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                code[x$95$s_, x$95$m_, y_] := Block[{t$95$0 = N[(N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision] * N[Sin[x$95$m], $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[t$95$0, (-Infinity)], N[(N[(N[(y * y), $MachinePrecision] * 0.16666666666666666), $MachinePrecision] * N[(N[(N[(x$95$m * x$95$m), $MachinePrecision] * x$95$m), $MachinePrecision] * -0.16666666666666666 + x$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 1.0], N[Sin[x$95$m], $MachinePrecision], N[(N[(N[(N[(N[(N[(0.0001984126984126984 * N[(y * y), $MachinePrecision]), $MachinePrecision] * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision] * y), $MachinePrecision] / y), $MachinePrecision] * N[(1.0 * x$95$m), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
                
                \begin{array}{l}
                x\_m = \left|x\right|
                \\
                x\_s = \mathsf{copysign}\left(1, x\right)
                
                \\
                \begin{array}{l}
                t_0 := \frac{\sinh y}{y} \cdot \sin x\_m\\
                x\_s \cdot \begin{array}{l}
                \mathbf{if}\;t\_0 \leq -\infty:\\
                \;\;\;\;\left(\left(y \cdot y\right) \cdot 0.16666666666666666\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\
                
                \mathbf{elif}\;t\_0 \leq 1:\\
                \;\;\;\;\sin x\_m\\
                
                \mathbf{else}:\\
                \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(0.0001984126984126984 \cdot \left(y \cdot y\right), y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y}{y} \cdot \left(1 \cdot x\_m\right)\\
                
                
                \end{array}
                \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 + \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. *-commutativeN/A

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

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

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

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

                    \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 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 \cdot y, \frac{1}{6}, 1\right) \]
                  7. Step-by-step derivation
                    1. distribute-lft-inN/A

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

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

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

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

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

                      \[\leadsto \left(\left(x \cdot \color{blue}{\left(x \cdot x\right)}\right) \cdot \frac{-1}{6} + x\right) \cdot \mathsf{fma}\left(y \cdot y, \frac{1}{6}, 1\right) \]
                    7. cube-multN/A

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

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

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(\left(x \cdot x\right) \cdot x, -0.16666666666666666, x\right) \cdot \left(\left(y \cdot y\right) \cdot \color{blue}{0.16666666666666666}\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.f6499.2

                        \[\leadsto \color{blue}{\sin x} \]
                    5. Applied rewrites99.2%

                      \[\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 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 \color{blue}{\left(\left(1 + \frac{-1}{6} \cdot {x}^{2}\right) \cdot x\right)} \cdot \frac{\sinh y}{y} \]
                      2. lower-*.f64N/A

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

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

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

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

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

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

                      \[\leadsto \left(1 \cdot x\right) \cdot \frac{\sinh y}{y} \]
                    7. Step-by-step derivation
                      1. Applied rewrites74.6%

                        \[\leadsto \left(1 \cdot x\right) \cdot \frac{\sinh y}{y} \]
                      2. Taylor expanded in y around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \left(1 \cdot x\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(0.0001984126984126984 \cdot \left(y \cdot y\right), y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y}{y} \]
                      7. Recombined 3 regimes into one program.
                      8. Final simplification81.8%

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

                      Alternative 5: 69.9% accurate, 0.8× speedup?

                      \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{\sinh y}{y} \cdot \sin x\_m \leq 10^{-7}:\\ \;\;\;\;\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 1\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(0.0001984126984126984 \cdot \left(y \cdot y\right), y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y}{y} \cdot \left(1 \cdot x\_m\right)\\ \end{array} \end{array} \]
                      x\_m = (fabs.f64 x)
                      x\_s = (copysign.f64 #s(literal 1 binary64) x)
                      (FPCore (x_s x_m y)
                       :precision binary64
                       (*
                        x_s
                        (if (<= (* (/ (sinh y) y) (sin x_m)) 1e-7)
                          (*
                           (fma (* y y) 0.16666666666666666 1.0)
                           (fma (* (* x_m x_m) x_m) -0.16666666666666666 x_m))
                          (*
                           (/
                            (*
                             (fma
                              (fma (* 0.0001984126984126984 (* y y)) (* y y) 0.16666666666666666)
                              (* y y)
                              1.0)
                             y)
                            y)
                           (* 1.0 x_m)))))
                      x\_m = fabs(x);
                      x\_s = copysign(1.0, x);
                      double code(double x_s, double x_m, double y) {
                      	double tmp;
                      	if (((sinh(y) / y) * sin(x_m)) <= 1e-7) {
                      		tmp = fma((y * y), 0.16666666666666666, 1.0) * fma(((x_m * x_m) * x_m), -0.16666666666666666, x_m);
                      	} else {
                      		tmp = ((fma(fma((0.0001984126984126984 * (y * y)), (y * y), 0.16666666666666666), (y * y), 1.0) * y) / y) * (1.0 * x_m);
                      	}
                      	return x_s * tmp;
                      }
                      
                      x\_m = abs(x)
                      x\_s = copysign(1.0, x)
                      function code(x_s, x_m, y)
                      	tmp = 0.0
                      	if (Float64(Float64(sinh(y) / y) * sin(x_m)) <= 1e-7)
                      		tmp = Float64(fma(Float64(y * y), 0.16666666666666666, 1.0) * fma(Float64(Float64(x_m * x_m) * x_m), -0.16666666666666666, x_m));
                      	else
                      		tmp = Float64(Float64(Float64(fma(fma(Float64(0.0001984126984126984 * Float64(y * y)), Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) * y) / y) * Float64(1.0 * x_m));
                      	end
                      	return Float64(x_s * tmp)
                      end
                      
                      x\_m = N[Abs[x], $MachinePrecision]
                      x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                      code[x$95$s_, x$95$m_, y_] := N[(x$95$s * If[LessEqual[N[(N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision] * N[Sin[x$95$m], $MachinePrecision]), $MachinePrecision], 1e-7], N[(N[(N[(y * y), $MachinePrecision] * 0.16666666666666666 + 1.0), $MachinePrecision] * N[(N[(N[(x$95$m * x$95$m), $MachinePrecision] * x$95$m), $MachinePrecision] * -0.16666666666666666 + x$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(N[(N[(0.0001984126984126984 * N[(y * y), $MachinePrecision]), $MachinePrecision] * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision] * y), $MachinePrecision] / y), $MachinePrecision] * N[(1.0 * x$95$m), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                      
                      \begin{array}{l}
                      x\_m = \left|x\right|
                      \\
                      x\_s = \mathsf{copysign}\left(1, x\right)
                      
                      \\
                      x\_s \cdot \begin{array}{l}
                      \mathbf{if}\;\frac{\sinh y}{y} \cdot \sin x\_m \leq 10^{-7}:\\
                      \;\;\;\;\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 1\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(0.0001984126984126984 \cdot \left(y \cdot y\right), y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y}{y} \cdot \left(1 \cdot x\_m\right)\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y)) < 9.9999999999999995e-8

                        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. *-commutativeN/A

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

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

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

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

                          \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 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 \cdot y, \frac{1}{6}, 1\right) \]
                        7. Step-by-step derivation
                          1. distribute-lft-inN/A

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

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

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

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

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

                            \[\leadsto \left(\left(x \cdot \color{blue}{\left(x \cdot x\right)}\right) \cdot \frac{-1}{6} + x\right) \cdot \mathsf{fma}\left(y \cdot y, \frac{1}{6}, 1\right) \]
                          7. cube-multN/A

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

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

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

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

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

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

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

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

                        if 9.9999999999999995e-8 < (*.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 + \frac{-1}{6} \cdot {x}^{2}\right)\right)} \cdot \frac{\sinh y}{y} \]
                        4. Step-by-step derivation
                          1. *-commutativeN/A

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

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

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

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

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

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

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

                          \[\leadsto \left(1 \cdot x\right) \cdot \frac{\sinh y}{y} \]
                        7. Step-by-step derivation
                          1. Applied rewrites56.7%

                            \[\leadsto \left(1 \cdot x\right) \cdot \frac{\sinh y}{y} \]
                          2. Taylor expanded in y around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \left(1 \cdot x\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(0.0001984126984126984 \cdot \left(y \cdot y\right), y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y}{y} \]
                          7. Recombined 2 regimes into one program.
                          8. Final simplification62.0%

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

                          Alternative 6: 68.0% accurate, 0.8× speedup?

                          \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{\sinh y}{y} \cdot \sin x\_m \leq 10^{-7}:\\ \;\;\;\;\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 1\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y}{y} \cdot \left(1 \cdot x\_m\right)\\ \end{array} \end{array} \]
                          x\_m = (fabs.f64 x)
                          x\_s = (copysign.f64 #s(literal 1 binary64) x)
                          (FPCore (x_s x_m y)
                           :precision binary64
                           (*
                            x_s
                            (if (<= (* (/ (sinh y) y) (sin x_m)) 1e-7)
                              (*
                               (fma (* y y) 0.16666666666666666 1.0)
                               (fma (* (* x_m x_m) x_m) -0.16666666666666666 x_m))
                              (*
                               (/
                                (*
                                 (fma (fma 0.008333333333333333 (* y y) 0.16666666666666666) (* y y) 1.0)
                                 y)
                                y)
                               (* 1.0 x_m)))))
                          x\_m = fabs(x);
                          x\_s = copysign(1.0, x);
                          double code(double x_s, double x_m, double y) {
                          	double tmp;
                          	if (((sinh(y) / y) * sin(x_m)) <= 1e-7) {
                          		tmp = fma((y * y), 0.16666666666666666, 1.0) * fma(((x_m * x_m) * x_m), -0.16666666666666666, x_m);
                          	} else {
                          		tmp = ((fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0) * y) / y) * (1.0 * x_m);
                          	}
                          	return x_s * tmp;
                          }
                          
                          x\_m = abs(x)
                          x\_s = copysign(1.0, x)
                          function code(x_s, x_m, y)
                          	tmp = 0.0
                          	if (Float64(Float64(sinh(y) / y) * sin(x_m)) <= 1e-7)
                          		tmp = Float64(fma(Float64(y * y), 0.16666666666666666, 1.0) * fma(Float64(Float64(x_m * x_m) * x_m), -0.16666666666666666, x_m));
                          	else
                          		tmp = Float64(Float64(Float64(fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) * y) / y) * Float64(1.0 * x_m));
                          	end
                          	return Float64(x_s * tmp)
                          end
                          
                          x\_m = N[Abs[x], $MachinePrecision]
                          x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                          code[x$95$s_, x$95$m_, y_] := N[(x$95$s * If[LessEqual[N[(N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision] * N[Sin[x$95$m], $MachinePrecision]), $MachinePrecision], 1e-7], N[(N[(N[(y * y), $MachinePrecision] * 0.16666666666666666 + 1.0), $MachinePrecision] * N[(N[(N[(x$95$m * x$95$m), $MachinePrecision] * x$95$m), $MachinePrecision] * -0.16666666666666666 + x$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision] * y), $MachinePrecision] / y), $MachinePrecision] * N[(1.0 * x$95$m), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                          
                          \begin{array}{l}
                          x\_m = \left|x\right|
                          \\
                          x\_s = \mathsf{copysign}\left(1, x\right)
                          
                          \\
                          x\_s \cdot \begin{array}{l}
                          \mathbf{if}\;\frac{\sinh y}{y} \cdot \sin x\_m \leq 10^{-7}:\\
                          \;\;\;\;\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 1\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y}{y} \cdot \left(1 \cdot x\_m\right)\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y)) < 9.9999999999999995e-8

                            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. *-commutativeN/A

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

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

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

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

                              \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 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 \cdot y, \frac{1}{6}, 1\right) \]
                            7. Step-by-step derivation
                              1. distribute-lft-inN/A

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

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

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

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

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

                                \[\leadsto \left(\left(x \cdot \color{blue}{\left(x \cdot x\right)}\right) \cdot \frac{-1}{6} + x\right) \cdot \mathsf{fma}\left(y \cdot y, \frac{1}{6}, 1\right) \]
                              7. cube-multN/A

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

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

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

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

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

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

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

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

                            if 9.9999999999999995e-8 < (*.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 + \frac{-1}{6} \cdot {x}^{2}\right)\right)} \cdot \frac{\sinh y}{y} \]
                            4. Step-by-step derivation
                              1. *-commutativeN/A

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

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

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

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

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

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

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

                              \[\leadsto \left(1 \cdot x\right) \cdot \frac{\sinh y}{y} \]
                            7. Step-by-step derivation
                              1. Applied rewrites56.7%

                                \[\leadsto \left(1 \cdot x\right) \cdot \frac{\sinh y}{y} \]
                              2. Taylor expanded in y around 0

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \left(1 \cdot x\right) \cdot \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y}}{y} \]
                            8. Recombined 2 regimes into one program.
                            9. Final simplification62.0%

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

                            Alternative 7: 66.9% accurate, 0.9× speedup?

                            \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{\sinh y}{y} \cdot \sin x\_m \leq 10^{-7}:\\ \;\;\;\;\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 1\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\ \mathbf{else}:\\ \;\;\;\;\left(1 \cdot x\_m\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right)\\ \end{array} \end{array} \]
                            x\_m = (fabs.f64 x)
                            x\_s = (copysign.f64 #s(literal 1 binary64) x)
                            (FPCore (x_s x_m y)
                             :precision binary64
                             (*
                              x_s
                              (if (<= (* (/ (sinh y) y) (sin x_m)) 1e-7)
                                (*
                                 (fma (* y y) 0.16666666666666666 1.0)
                                 (fma (* (* x_m x_m) x_m) -0.16666666666666666 x_m))
                                (*
                                 (* 1.0 x_m)
                                 (fma
                                  (fma 0.008333333333333333 (* y y) 0.16666666666666666)
                                  (* y y)
                                  1.0)))))
                            x\_m = fabs(x);
                            x\_s = copysign(1.0, x);
                            double code(double x_s, double x_m, double y) {
                            	double tmp;
                            	if (((sinh(y) / y) * sin(x_m)) <= 1e-7) {
                            		tmp = fma((y * y), 0.16666666666666666, 1.0) * fma(((x_m * x_m) * x_m), -0.16666666666666666, x_m);
                            	} else {
                            		tmp = (1.0 * x_m) * fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0);
                            	}
                            	return x_s * tmp;
                            }
                            
                            x\_m = abs(x)
                            x\_s = copysign(1.0, x)
                            function code(x_s, x_m, y)
                            	tmp = 0.0
                            	if (Float64(Float64(sinh(y) / y) * sin(x_m)) <= 1e-7)
                            		tmp = Float64(fma(Float64(y * y), 0.16666666666666666, 1.0) * fma(Float64(Float64(x_m * x_m) * x_m), -0.16666666666666666, x_m));
                            	else
                            		tmp = Float64(Float64(1.0 * x_m) * fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0));
                            	end
                            	return Float64(x_s * tmp)
                            end
                            
                            x\_m = N[Abs[x], $MachinePrecision]
                            x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                            code[x$95$s_, x$95$m_, y_] := N[(x$95$s * If[LessEqual[N[(N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision] * N[Sin[x$95$m], $MachinePrecision]), $MachinePrecision], 1e-7], N[(N[(N[(y * y), $MachinePrecision] * 0.16666666666666666 + 1.0), $MachinePrecision] * N[(N[(N[(x$95$m * x$95$m), $MachinePrecision] * x$95$m), $MachinePrecision] * -0.16666666666666666 + x$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 * x$95$m), $MachinePrecision] * N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                            
                            \begin{array}{l}
                            x\_m = \left|x\right|
                            \\
                            x\_s = \mathsf{copysign}\left(1, x\right)
                            
                            \\
                            x\_s \cdot \begin{array}{l}
                            \mathbf{if}\;\frac{\sinh y}{y} \cdot \sin x\_m \leq 10^{-7}:\\
                            \;\;\;\;\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 1\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;\left(1 \cdot x\_m\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right)\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y)) < 9.9999999999999995e-8

                              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. *-commutativeN/A

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

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

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

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

                                \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 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 \cdot y, \frac{1}{6}, 1\right) \]
                              7. Step-by-step derivation
                                1. distribute-lft-inN/A

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

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

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

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

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

                                  \[\leadsto \left(\left(x \cdot \color{blue}{\left(x \cdot x\right)}\right) \cdot \frac{-1}{6} + x\right) \cdot \mathsf{fma}\left(y \cdot y, \frac{1}{6}, 1\right) \]
                                7. cube-multN/A

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

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

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

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

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

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

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

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

                              if 9.9999999999999995e-8 < (*.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} + \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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              Alternative 8: 66.8% accurate, 0.9× speedup?

                              \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{\sinh y}{y} \cdot \sin x\_m \leq -0.2:\\ \;\;\;\;\left(\left(y \cdot y\right) \cdot 0.16666666666666666\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\ \mathbf{else}:\\ \;\;\;\;\left(1 \cdot x\_m\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right)\\ \end{array} \end{array} \]
                              x\_m = (fabs.f64 x)
                              x\_s = (copysign.f64 #s(literal 1 binary64) x)
                              (FPCore (x_s x_m y)
                               :precision binary64
                               (*
                                x_s
                                (if (<= (* (/ (sinh y) y) (sin x_m)) -0.2)
                                  (*
                                   (* (* y y) 0.16666666666666666)
                                   (fma (* (* x_m x_m) x_m) -0.16666666666666666 x_m))
                                  (*
                                   (* 1.0 x_m)
                                   (fma
                                    (fma 0.008333333333333333 (* y y) 0.16666666666666666)
                                    (* y y)
                                    1.0)))))
                              x\_m = fabs(x);
                              x\_s = copysign(1.0, x);
                              double code(double x_s, double x_m, double y) {
                              	double tmp;
                              	if (((sinh(y) / y) * sin(x_m)) <= -0.2) {
                              		tmp = ((y * y) * 0.16666666666666666) * fma(((x_m * x_m) * x_m), -0.16666666666666666, x_m);
                              	} else {
                              		tmp = (1.0 * x_m) * fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0);
                              	}
                              	return x_s * tmp;
                              }
                              
                              x\_m = abs(x)
                              x\_s = copysign(1.0, x)
                              function code(x_s, x_m, y)
                              	tmp = 0.0
                              	if (Float64(Float64(sinh(y) / y) * sin(x_m)) <= -0.2)
                              		tmp = Float64(Float64(Float64(y * y) * 0.16666666666666666) * fma(Float64(Float64(x_m * x_m) * x_m), -0.16666666666666666, x_m));
                              	else
                              		tmp = Float64(Float64(1.0 * x_m) * fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0));
                              	end
                              	return Float64(x_s * tmp)
                              end
                              
                              x\_m = N[Abs[x], $MachinePrecision]
                              x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                              code[x$95$s_, x$95$m_, y_] := N[(x$95$s * If[LessEqual[N[(N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision] * N[Sin[x$95$m], $MachinePrecision]), $MachinePrecision], -0.2], N[(N[(N[(y * y), $MachinePrecision] * 0.16666666666666666), $MachinePrecision] * N[(N[(N[(x$95$m * x$95$m), $MachinePrecision] * x$95$m), $MachinePrecision] * -0.16666666666666666 + x$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 * x$95$m), $MachinePrecision] * N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                              
                              \begin{array}{l}
                              x\_m = \left|x\right|
                              \\
                              x\_s = \mathsf{copysign}\left(1, x\right)
                              
                              \\
                              x\_s \cdot \begin{array}{l}
                              \mathbf{if}\;\frac{\sinh y}{y} \cdot \sin x\_m \leq -0.2:\\
                              \;\;\;\;\left(\left(y \cdot y\right) \cdot 0.16666666666666666\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\left(1 \cdot x\_m\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right)\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if (*.f64 (sin.f64 x) (/.f64 (sinh.f64 y) y)) < -0.20000000000000001

                                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. *-commutativeN/A

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

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

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

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

                                  \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 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 \cdot y, \frac{1}{6}, 1\right) \]
                                7. Step-by-step derivation
                                  1. distribute-lft-inN/A

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

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

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

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

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

                                    \[\leadsto \left(\left(x \cdot \color{blue}{\left(x \cdot x\right)}\right) \cdot \frac{-1}{6} + x\right) \cdot \mathsf{fma}\left(y \cdot y, \frac{1}{6}, 1\right) \]
                                  7. cube-multN/A

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

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

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

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

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

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

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

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

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

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

                                  if -0.20000000000000001 < (*.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} + \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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 9: 44.3% accurate, 0.9× speedup?

                                  \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{\sinh y}{y} \cdot \sin x\_m \leq -0.05:\\ \;\;\;\;\left(-0.16666666666666666 \cdot x\_m\right) \cdot \left(x\_m \cdot x\_m\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, x\_m \cdot x\_m, -0.16666666666666666\right), x\_m \cdot x\_m, 1\right) \cdot x\_m\\ \end{array} \end{array} \]
                                  x\_m = (fabs.f64 x)
                                  x\_s = (copysign.f64 #s(literal 1 binary64) x)
                                  (FPCore (x_s x_m y)
                                   :precision binary64
                                   (*
                                    x_s
                                    (if (<= (* (/ (sinh y) y) (sin x_m)) -0.05)
                                      (* (* -0.16666666666666666 x_m) (* x_m x_m))
                                      (*
                                       (fma
                                        (fma 0.008333333333333333 (* x_m x_m) -0.16666666666666666)
                                        (* x_m x_m)
                                        1.0)
                                       x_m))))
                                  x\_m = fabs(x);
                                  x\_s = copysign(1.0, x);
                                  double code(double x_s, double x_m, double y) {
                                  	double tmp;
                                  	if (((sinh(y) / y) * sin(x_m)) <= -0.05) {
                                  		tmp = (-0.16666666666666666 * x_m) * (x_m * x_m);
                                  	} else {
                                  		tmp = fma(fma(0.008333333333333333, (x_m * x_m), -0.16666666666666666), (x_m * x_m), 1.0) * x_m;
                                  	}
                                  	return x_s * tmp;
                                  }
                                  
                                  x\_m = abs(x)
                                  x\_s = copysign(1.0, x)
                                  function code(x_s, x_m, y)
                                  	tmp = 0.0
                                  	if (Float64(Float64(sinh(y) / y) * sin(x_m)) <= -0.05)
                                  		tmp = Float64(Float64(-0.16666666666666666 * x_m) * Float64(x_m * x_m));
                                  	else
                                  		tmp = Float64(fma(fma(0.008333333333333333, Float64(x_m * x_m), -0.16666666666666666), Float64(x_m * x_m), 1.0) * x_m);
                                  	end
                                  	return Float64(x_s * tmp)
                                  end
                                  
                                  x\_m = N[Abs[x], $MachinePrecision]
                                  x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                  code[x$95$s_, x$95$m_, y_] := N[(x$95$s * If[LessEqual[N[(N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision] * N[Sin[x$95$m], $MachinePrecision]), $MachinePrecision], -0.05], N[(N[(-0.16666666666666666 * x$95$m), $MachinePrecision] * N[(x$95$m * x$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(N[(0.008333333333333333 * N[(x$95$m * x$95$m), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] * N[(x$95$m * x$95$m), $MachinePrecision] + 1.0), $MachinePrecision] * x$95$m), $MachinePrecision]]), $MachinePrecision]
                                  
                                  \begin{array}{l}
                                  x\_m = \left|x\right|
                                  \\
                                  x\_s = \mathsf{copysign}\left(1, x\right)
                                  
                                  \\
                                  x\_s \cdot \begin{array}{l}
                                  \mathbf{if}\;\frac{\sinh y}{y} \cdot \sin x\_m \leq -0.05:\\
                                  \;\;\;\;\left(-0.16666666666666666 \cdot x\_m\right) \cdot \left(x\_m \cdot x\_m\right)\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, x\_m \cdot x\_m, -0.16666666666666666\right), x\_m \cdot x\_m, 1\right) \cdot x\_m\\
                                  
                                  
                                  \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.f6436.9

                                        \[\leadsto \color{blue}{\sin x} \]
                                    5. Applied rewrites36.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 rewrites9.5%

                                        \[\leadsto \mathsf{fma}\left(\left(x \cdot x\right) \cdot x, \color{blue}{-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 rewrites9.2%

                                          \[\leadsto \left(\left(x \cdot x\right) \cdot x\right) \cdot -0.16666666666666666 \]
                                        2. Step-by-step derivation
                                          1. Applied rewrites9.2%

                                            \[\leadsto \left(x \cdot x\right) \cdot \left(-0.16666666666666666 \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.f6463.0

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

                                            \[\leadsto \color{blue}{\sin x} \]
                                          6. 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)} \]
                                          7. Step-by-step derivation
                                            1. Applied rewrites59.1%

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

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

                                          Alternative 10: 35.2% accurate, 0.9× speedup?

                                          \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{\sinh y}{y} \cdot \sin x\_m \leq -0.05:\\ \;\;\;\;\left(-0.16666666666666666 \cdot x\_m\right) \cdot \left(x\_m \cdot x\_m\right)\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\_m\\ \end{array} \end{array} \]
                                          x\_m = (fabs.f64 x)
                                          x\_s = (copysign.f64 #s(literal 1 binary64) x)
                                          (FPCore (x_s x_m y)
                                           :precision binary64
                                           (*
                                            x_s
                                            (if (<= (* (/ (sinh y) y) (sin x_m)) -0.05)
                                              (* (* -0.16666666666666666 x_m) (* x_m x_m))
                                              (* 1.0 x_m))))
                                          x\_m = fabs(x);
                                          x\_s = copysign(1.0, x);
                                          double code(double x_s, double x_m, double y) {
                                          	double tmp;
                                          	if (((sinh(y) / y) * sin(x_m)) <= -0.05) {
                                          		tmp = (-0.16666666666666666 * x_m) * (x_m * x_m);
                                          	} else {
                                          		tmp = 1.0 * x_m;
                                          	}
                                          	return x_s * tmp;
                                          }
                                          
                                          x\_m = abs(x)
                                          x\_s = copysign(1.0d0, x)
                                          real(8) function code(x_s, x_m, y)
                                              real(8), intent (in) :: x_s
                                              real(8), intent (in) :: x_m
                                              real(8), intent (in) :: y
                                              real(8) :: tmp
                                              if (((sinh(y) / y) * sin(x_m)) <= (-0.05d0)) then
                                                  tmp = ((-0.16666666666666666d0) * x_m) * (x_m * x_m)
                                              else
                                                  tmp = 1.0d0 * x_m
                                              end if
                                              code = x_s * tmp
                                          end function
                                          
                                          x\_m = Math.abs(x);
                                          x\_s = Math.copySign(1.0, x);
                                          public static double code(double x_s, double x_m, double y) {
                                          	double tmp;
                                          	if (((Math.sinh(y) / y) * Math.sin(x_m)) <= -0.05) {
                                          		tmp = (-0.16666666666666666 * x_m) * (x_m * x_m);
                                          	} else {
                                          		tmp = 1.0 * x_m;
                                          	}
                                          	return x_s * tmp;
                                          }
                                          
                                          x\_m = math.fabs(x)
                                          x\_s = math.copysign(1.0, x)
                                          def code(x_s, x_m, y):
                                          	tmp = 0
                                          	if ((math.sinh(y) / y) * math.sin(x_m)) <= -0.05:
                                          		tmp = (-0.16666666666666666 * x_m) * (x_m * x_m)
                                          	else:
                                          		tmp = 1.0 * x_m
                                          	return x_s * tmp
                                          
                                          x\_m = abs(x)
                                          x\_s = copysign(1.0, x)
                                          function code(x_s, x_m, y)
                                          	tmp = 0.0
                                          	if (Float64(Float64(sinh(y) / y) * sin(x_m)) <= -0.05)
                                          		tmp = Float64(Float64(-0.16666666666666666 * x_m) * Float64(x_m * x_m));
                                          	else
                                          		tmp = Float64(1.0 * x_m);
                                          	end
                                          	return Float64(x_s * tmp)
                                          end
                                          
                                          x\_m = abs(x);
                                          x\_s = sign(x) * abs(1.0);
                                          function tmp_2 = code(x_s, x_m, y)
                                          	tmp = 0.0;
                                          	if (((sinh(y) / y) * sin(x_m)) <= -0.05)
                                          		tmp = (-0.16666666666666666 * x_m) * (x_m * x_m);
                                          	else
                                          		tmp = 1.0 * x_m;
                                          	end
                                          	tmp_2 = x_s * tmp;
                                          end
                                          
                                          x\_m = N[Abs[x], $MachinePrecision]
                                          x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                          code[x$95$s_, x$95$m_, y_] := N[(x$95$s * If[LessEqual[N[(N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision] * N[Sin[x$95$m], $MachinePrecision]), $MachinePrecision], -0.05], N[(N[(-0.16666666666666666 * x$95$m), $MachinePrecision] * N[(x$95$m * x$95$m), $MachinePrecision]), $MachinePrecision], N[(1.0 * x$95$m), $MachinePrecision]]), $MachinePrecision]
                                          
                                          \begin{array}{l}
                                          x\_m = \left|x\right|
                                          \\
                                          x\_s = \mathsf{copysign}\left(1, x\right)
                                          
                                          \\
                                          x\_s \cdot \begin{array}{l}
                                          \mathbf{if}\;\frac{\sinh y}{y} \cdot \sin x\_m \leq -0.05:\\
                                          \;\;\;\;\left(-0.16666666666666666 \cdot x\_m\right) \cdot \left(x\_m \cdot x\_m\right)\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;1 \cdot x\_m\\
                                          
                                          
                                          \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.f6436.9

                                                \[\leadsto \color{blue}{\sin x} \]
                                            5. Applied rewrites36.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 rewrites9.5%

                                                \[\leadsto \mathsf{fma}\left(\left(x \cdot x\right) \cdot x, \color{blue}{-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 rewrites9.2%

                                                  \[\leadsto \left(\left(x \cdot x\right) \cdot x\right) \cdot -0.16666666666666666 \]
                                                2. Step-by-step derivation
                                                  1. Applied rewrites9.2%

                                                    \[\leadsto \left(x \cdot x\right) \cdot \left(-0.16666666666666666 \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.f6463.0

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

                                                    \[\leadsto \color{blue}{\sin x} \]
                                                  6. 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)} \]
                                                  7. Step-by-step derivation
                                                    1. Applied rewrites59.1%

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

                                                      \[\leadsto 1 \cdot x \]
                                                    3. Step-by-step derivation
                                                      1. Applied rewrites50.7%

                                                        \[\leadsto 1 \cdot x \]
                                                    4. Recombined 2 regimes into one program.
                                                    5. Final simplification36.3%

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

                                                    Alternative 11: 100.0% accurate, 1.0× speedup?

                                                    \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \left(\frac{\sinh y}{y} \cdot \sin x\_m\right) \end{array} \]
                                                    x\_m = (fabs.f64 x)
                                                    x\_s = (copysign.f64 #s(literal 1 binary64) x)
                                                    (FPCore (x_s x_m y) :precision binary64 (* x_s (* (/ (sinh y) y) (sin x_m))))
                                                    x\_m = fabs(x);
                                                    x\_s = copysign(1.0, x);
                                                    double code(double x_s, double x_m, double y) {
                                                    	return x_s * ((sinh(y) / y) * sin(x_m));
                                                    }
                                                    
                                                    x\_m = abs(x)
                                                    x\_s = copysign(1.0d0, x)
                                                    real(8) function code(x_s, x_m, y)
                                                        real(8), intent (in) :: x_s
                                                        real(8), intent (in) :: x_m
                                                        real(8), intent (in) :: y
                                                        code = x_s * ((sinh(y) / y) * sin(x_m))
                                                    end function
                                                    
                                                    x\_m = Math.abs(x);
                                                    x\_s = Math.copySign(1.0, x);
                                                    public static double code(double x_s, double x_m, double y) {
                                                    	return x_s * ((Math.sinh(y) / y) * Math.sin(x_m));
                                                    }
                                                    
                                                    x\_m = math.fabs(x)
                                                    x\_s = math.copysign(1.0, x)
                                                    def code(x_s, x_m, y):
                                                    	return x_s * ((math.sinh(y) / y) * math.sin(x_m))
                                                    
                                                    x\_m = abs(x)
                                                    x\_s = copysign(1.0, x)
                                                    function code(x_s, x_m, y)
                                                    	return Float64(x_s * Float64(Float64(sinh(y) / y) * sin(x_m)))
                                                    end
                                                    
                                                    x\_m = abs(x);
                                                    x\_s = sign(x) * abs(1.0);
                                                    function tmp = code(x_s, x_m, y)
                                                    	tmp = x_s * ((sinh(y) / y) * sin(x_m));
                                                    end
                                                    
                                                    x\_m = N[Abs[x], $MachinePrecision]
                                                    x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                    code[x$95$s_, x$95$m_, y_] := N[(x$95$s * N[(N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision] * N[Sin[x$95$m], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                                    
                                                    \begin{array}{l}
                                                    x\_m = \left|x\right|
                                                    \\
                                                    x\_s = \mathsf{copysign}\left(1, x\right)
                                                    
                                                    \\
                                                    x\_s \cdot \left(\frac{\sinh y}{y} \cdot \sin x\_m\right)
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Initial program 100.0%

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

                                                      \[\leadsto \frac{\sinh y}{y} \cdot \sin x \]
                                                    4. Add Preprocessing

                                                    Alternative 12: 70.7% accurate, 1.2× speedup?

                                                    \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;\sin x\_m \leq 10^{-7}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(0.0001984126984126984, y \cdot y, 0.008333333333333333\right), y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y}{y} \cdot \left(\mathsf{fma}\left(-0.16666666666666666, x\_m \cdot x\_m, 1\right) \cdot x\_m\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(\left(\left(\left(x\_m \cdot x\_m\right) \cdot x\_m\right) \cdot x\_m\right) \cdot 0.008333333333333333\right) \cdot x\_m\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right)\\ \end{array} \end{array} \]
                                                    x\_m = (fabs.f64 x)
                                                    x\_s = (copysign.f64 #s(literal 1 binary64) x)
                                                    (FPCore (x_s x_m y)
                                                     :precision binary64
                                                     (*
                                                      x_s
                                                      (if (<= (sin x_m) 1e-7)
                                                        (*
                                                         (/
                                                          (*
                                                           (fma
                                                            (fma
                                                             (fma 0.0001984126984126984 (* y y) 0.008333333333333333)
                                                             (* y y)
                                                             0.16666666666666666)
                                                            (* y y)
                                                            1.0)
                                                           y)
                                                          y)
                                                         (* (fma -0.16666666666666666 (* x_m x_m) 1.0) x_m))
                                                        (*
                                                         (* (* (* (* (* x_m x_m) x_m) x_m) 0.008333333333333333) x_m)
                                                         (fma
                                                          (fma 0.008333333333333333 (* y y) 0.16666666666666666)
                                                          (* y y)
                                                          1.0)))))
                                                    x\_m = fabs(x);
                                                    x\_s = copysign(1.0, x);
                                                    double code(double x_s, double x_m, double y) {
                                                    	double tmp;
                                                    	if (sin(x_m) <= 1e-7) {
                                                    		tmp = ((fma(fma(fma(0.0001984126984126984, (y * y), 0.008333333333333333), (y * y), 0.16666666666666666), (y * y), 1.0) * y) / y) * (fma(-0.16666666666666666, (x_m * x_m), 1.0) * x_m);
                                                    	} else {
                                                    		tmp = (((((x_m * x_m) * x_m) * x_m) * 0.008333333333333333) * x_m) * fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0);
                                                    	}
                                                    	return x_s * tmp;
                                                    }
                                                    
                                                    x\_m = abs(x)
                                                    x\_s = copysign(1.0, x)
                                                    function code(x_s, x_m, y)
                                                    	tmp = 0.0
                                                    	if (sin(x_m) <= 1e-7)
                                                    		tmp = Float64(Float64(Float64(fma(fma(fma(0.0001984126984126984, Float64(y * y), 0.008333333333333333), Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) * y) / y) * Float64(fma(-0.16666666666666666, Float64(x_m * x_m), 1.0) * x_m));
                                                    	else
                                                    		tmp = Float64(Float64(Float64(Float64(Float64(Float64(x_m * x_m) * x_m) * x_m) * 0.008333333333333333) * x_m) * fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0));
                                                    	end
                                                    	return Float64(x_s * tmp)
                                                    end
                                                    
                                                    x\_m = N[Abs[x], $MachinePrecision]
                                                    x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                    code[x$95$s_, x$95$m_, y_] := N[(x$95$s * If[LessEqual[N[Sin[x$95$m], $MachinePrecision], 1e-7], N[(N[(N[(N[(N[(N[(0.0001984126984126984 * N[(y * y), $MachinePrecision] + 0.008333333333333333), $MachinePrecision] * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision] * y), $MachinePrecision] / y), $MachinePrecision] * N[(N[(-0.16666666666666666 * N[(x$95$m * x$95$m), $MachinePrecision] + 1.0), $MachinePrecision] * x$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(N[(N[(x$95$m * x$95$m), $MachinePrecision] * x$95$m), $MachinePrecision] * x$95$m), $MachinePrecision] * 0.008333333333333333), $MachinePrecision] * x$95$m), $MachinePrecision] * N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                                                    
                                                    \begin{array}{l}
                                                    x\_m = \left|x\right|
                                                    \\
                                                    x\_s = \mathsf{copysign}\left(1, x\right)
                                                    
                                                    \\
                                                    x\_s \cdot \begin{array}{l}
                                                    \mathbf{if}\;\sin x\_m \leq 10^{-7}:\\
                                                    \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(0.0001984126984126984, y \cdot y, 0.008333333333333333\right), y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y}{y} \cdot \left(\mathsf{fma}\left(-0.16666666666666666, x\_m \cdot x\_m, 1\right) \cdot x\_m\right)\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;\left(\left(\left(\left(\left(x\_m \cdot x\_m\right) \cdot x\_m\right) \cdot x\_m\right) \cdot 0.008333333333333333\right) \cdot x\_m\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right)\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 2 regimes
                                                    2. if (sin.f64 x) < 9.9999999999999995e-8

                                                      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 \color{blue}{\left(\left(1 + \frac{-1}{6} \cdot {x}^{2}\right) \cdot x\right)} \cdot \frac{\sinh y}{y} \]
                                                        2. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      if 9.9999999999999995e-8 < (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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      Alternative 13: 70.1% accurate, 1.3× speedup?

                                                      \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_0 := \left(x\_m \cdot x\_m\right) \cdot x\_m\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;\sin x\_m \leq 10^{-7}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(0.0001984126984126984, y \cdot y, 0.008333333333333333\right), y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot \mathsf{fma}\left(t\_0, -0.16666666666666666, x\_m\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(\left(t\_0 \cdot x\_m\right) \cdot 0.008333333333333333\right) \cdot x\_m\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right)\\ \end{array} \end{array} \end{array} \]
                                                      x\_m = (fabs.f64 x)
                                                      x\_s = (copysign.f64 #s(literal 1 binary64) x)
                                                      (FPCore (x_s x_m y)
                                                       :precision binary64
                                                       (let* ((t_0 (* (* x_m x_m) x_m)))
                                                         (*
                                                          x_s
                                                          (if (<= (sin x_m) 1e-7)
                                                            (*
                                                             (fma
                                                              (fma
                                                               (fma 0.0001984126984126984 (* y y) 0.008333333333333333)
                                                               (* y y)
                                                               0.16666666666666666)
                                                              (* y y)
                                                              1.0)
                                                             (fma t_0 -0.16666666666666666 x_m))
                                                            (*
                                                             (* (* (* t_0 x_m) 0.008333333333333333) x_m)
                                                             (fma
                                                              (fma 0.008333333333333333 (* y y) 0.16666666666666666)
                                                              (* y y)
                                                              1.0))))))
                                                      x\_m = fabs(x);
                                                      x\_s = copysign(1.0, x);
                                                      double code(double x_s, double x_m, double y) {
                                                      	double t_0 = (x_m * x_m) * x_m;
                                                      	double tmp;
                                                      	if (sin(x_m) <= 1e-7) {
                                                      		tmp = fma(fma(fma(0.0001984126984126984, (y * y), 0.008333333333333333), (y * y), 0.16666666666666666), (y * y), 1.0) * fma(t_0, -0.16666666666666666, x_m);
                                                      	} else {
                                                      		tmp = (((t_0 * x_m) * 0.008333333333333333) * x_m) * fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0);
                                                      	}
                                                      	return x_s * tmp;
                                                      }
                                                      
                                                      x\_m = abs(x)
                                                      x\_s = copysign(1.0, x)
                                                      function code(x_s, x_m, y)
                                                      	t_0 = Float64(Float64(x_m * x_m) * x_m)
                                                      	tmp = 0.0
                                                      	if (sin(x_m) <= 1e-7)
                                                      		tmp = Float64(fma(fma(fma(0.0001984126984126984, Float64(y * y), 0.008333333333333333), Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) * fma(t_0, -0.16666666666666666, x_m));
                                                      	else
                                                      		tmp = Float64(Float64(Float64(Float64(t_0 * x_m) * 0.008333333333333333) * x_m) * fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0));
                                                      	end
                                                      	return Float64(x_s * tmp)
                                                      end
                                                      
                                                      x\_m = N[Abs[x], $MachinePrecision]
                                                      x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                      code[x$95$s_, x$95$m_, y_] := Block[{t$95$0 = N[(N[(x$95$m * x$95$m), $MachinePrecision] * x$95$m), $MachinePrecision]}, N[(x$95$s * If[LessEqual[N[Sin[x$95$m], $MachinePrecision], 1e-7], N[(N[(N[(N[(0.0001984126984126984 * N[(y * y), $MachinePrecision] + 0.008333333333333333), $MachinePrecision] * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision] * N[(t$95$0 * -0.16666666666666666 + x$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(t$95$0 * x$95$m), $MachinePrecision] * 0.008333333333333333), $MachinePrecision] * x$95$m), $MachinePrecision] * N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]]
                                                      
                                                      \begin{array}{l}
                                                      x\_m = \left|x\right|
                                                      \\
                                                      x\_s = \mathsf{copysign}\left(1, x\right)
                                                      
                                                      \\
                                                      \begin{array}{l}
                                                      t_0 := \left(x\_m \cdot x\_m\right) \cdot x\_m\\
                                                      x\_s \cdot \begin{array}{l}
                                                      \mathbf{if}\;\sin x\_m \leq 10^{-7}:\\
                                                      \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(0.0001984126984126984, y \cdot y, 0.008333333333333333\right), y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot \mathsf{fma}\left(t\_0, -0.16666666666666666, x\_m\right)\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;\left(\left(\left(t\_0 \cdot x\_m\right) \cdot 0.008333333333333333\right) \cdot x\_m\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right)\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 2 regimes
                                                      2. if (sin.f64 x) < 9.9999999999999995e-8

                                                        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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                          \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(0.0001984126984126984, y \cdot y, 0.008333333333333333\right), y \cdot y, 0.16666666666666666\right), y \cdot y, 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(\mathsf{fma}\left(\mathsf{fma}\left(\frac{1}{5040}, y \cdot y, \frac{1}{120}\right), y \cdot y, \frac{1}{6}\right), y \cdot y, 1\right) \]
                                                        7. Step-by-step derivation
                                                          1. distribute-lft-inN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        if 9.9999999999999995e-8 < (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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        Alternative 14: 68.0% accurate, 1.4× speedup?

                                                        \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;\sin x\_m \leq 4 \cdot 10^{-11}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, x\_m \cdot x\_m, -0.16666666666666666\right), x\_m \cdot x\_m, 1\right) \cdot x\_m\right) \cdot \mathsf{fma}\left(y \cdot y, 0.16666666666666666, 1\right)\\ \end{array} \end{array} \]
                                                        x\_m = (fabs.f64 x)
                                                        x\_s = (copysign.f64 #s(literal 1 binary64) x)
                                                        (FPCore (x_s x_m y)
                                                         :precision binary64
                                                         (*
                                                          x_s
                                                          (if (<= (sin x_m) 4e-11)
                                                            (*
                                                             (fma (fma 0.008333333333333333 (* y y) 0.16666666666666666) (* y y) 1.0)
                                                             (fma (* (* x_m x_m) x_m) -0.16666666666666666 x_m))
                                                            (*
                                                             (*
                                                              (fma
                                                               (fma 0.008333333333333333 (* x_m x_m) -0.16666666666666666)
                                                               (* x_m x_m)
                                                               1.0)
                                                              x_m)
                                                             (fma (* y y) 0.16666666666666666 1.0)))))
                                                        x\_m = fabs(x);
                                                        x\_s = copysign(1.0, x);
                                                        double code(double x_s, double x_m, double y) {
                                                        	double tmp;
                                                        	if (sin(x_m) <= 4e-11) {
                                                        		tmp = fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0) * fma(((x_m * x_m) * x_m), -0.16666666666666666, x_m);
                                                        	} else {
                                                        		tmp = (fma(fma(0.008333333333333333, (x_m * x_m), -0.16666666666666666), (x_m * x_m), 1.0) * x_m) * fma((y * y), 0.16666666666666666, 1.0);
                                                        	}
                                                        	return x_s * tmp;
                                                        }
                                                        
                                                        x\_m = abs(x)
                                                        x\_s = copysign(1.0, x)
                                                        function code(x_s, x_m, y)
                                                        	tmp = 0.0
                                                        	if (sin(x_m) <= 4e-11)
                                                        		tmp = Float64(fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) * fma(Float64(Float64(x_m * x_m) * x_m), -0.16666666666666666, x_m));
                                                        	else
                                                        		tmp = Float64(Float64(fma(fma(0.008333333333333333, Float64(x_m * x_m), -0.16666666666666666), Float64(x_m * x_m), 1.0) * x_m) * fma(Float64(y * y), 0.16666666666666666, 1.0));
                                                        	end
                                                        	return Float64(x_s * tmp)
                                                        end
                                                        
                                                        x\_m = N[Abs[x], $MachinePrecision]
                                                        x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                        code[x$95$s_, x$95$m_, y_] := N[(x$95$s * If[LessEqual[N[Sin[x$95$m], $MachinePrecision], 4e-11], N[(N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision] * N[(N[(N[(x$95$m * x$95$m), $MachinePrecision] * x$95$m), $MachinePrecision] * -0.16666666666666666 + x$95$m), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(0.008333333333333333 * N[(x$95$m * x$95$m), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] * N[(x$95$m * x$95$m), $MachinePrecision] + 1.0), $MachinePrecision] * x$95$m), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] * 0.16666666666666666 + 1.0), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                                                        
                                                        \begin{array}{l}
                                                        x\_m = \left|x\right|
                                                        \\
                                                        x\_s = \mathsf{copysign}\left(1, x\right)
                                                        
                                                        \\
                                                        x\_s \cdot \begin{array}{l}
                                                        \mathbf{if}\;\sin x\_m \leq 4 \cdot 10^{-11}:\\
                                                        \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\
                                                        
                                                        \mathbf{else}:\\
                                                        \;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, x\_m \cdot x\_m, -0.16666666666666666\right), x\_m \cdot x\_m, 1\right) \cdot x\_m\right) \cdot \mathsf{fma}\left(y \cdot y, 0.16666666666666666, 1\right)\\
                                                        
                                                        
                                                        \end{array}
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Split input into 2 regimes
                                                        2. if (sin.f64 x) < 3.99999999999999976e-11

                                                          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. *-commutativeN/A

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

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

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

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

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

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

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

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

                                                            \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 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(\mathsf{fma}\left(\frac{1}{120}, y \cdot y, \frac{1}{6}\right), y \cdot y, 1\right) \]
                                                          7. Step-by-step derivation
                                                            1. distribute-lft-inN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                          if 3.99999999999999976e-11 < (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 + \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. *-commutativeN/A

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

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

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

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

                                                            \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 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, \frac{1}{6}, 1\right) \]
                                                          7. 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 \mathsf{fma}\left(y \cdot y, \frac{1}{6}, 1\right) \]
                                                            2. lower-*.f64N/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 \mathsf{fma}\left(y \cdot y, \frac{1}{6}, 1\right) \]
                                                            3. +-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 \mathsf{fma}\left(y \cdot y, \frac{1}{6}, 1\right) \]
                                                            4. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

                                                        Alternative 15: 44.0% accurate, 1.6× speedup?

                                                        \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;\sin x\_m \leq 2 \cdot 10^{-5}:\\ \;\;\;\;\mathsf{fma}\left(x\_m \cdot x\_m, -0.16666666666666666 \cdot x\_m, x\_m\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(\left(\left(x\_m \cdot x\_m\right) \cdot x\_m\right) \cdot x\_m\right) \cdot 0.008333333333333333\right) \cdot x\_m\\ \end{array} \end{array} \]
                                                        x\_m = (fabs.f64 x)
                                                        x\_s = (copysign.f64 #s(literal 1 binary64) x)
                                                        (FPCore (x_s x_m y)
                                                         :precision binary64
                                                         (*
                                                          x_s
                                                          (if (<= (sin x_m) 2e-5)
                                                            (fma (* x_m x_m) (* -0.16666666666666666 x_m) x_m)
                                                            (* (* (* (* (* x_m x_m) x_m) x_m) 0.008333333333333333) x_m))))
                                                        x\_m = fabs(x);
                                                        x\_s = copysign(1.0, x);
                                                        double code(double x_s, double x_m, double y) {
                                                        	double tmp;
                                                        	if (sin(x_m) <= 2e-5) {
                                                        		tmp = fma((x_m * x_m), (-0.16666666666666666 * x_m), x_m);
                                                        	} else {
                                                        		tmp = ((((x_m * x_m) * x_m) * x_m) * 0.008333333333333333) * x_m;
                                                        	}
                                                        	return x_s * tmp;
                                                        }
                                                        
                                                        x\_m = abs(x)
                                                        x\_s = copysign(1.0, x)
                                                        function code(x_s, x_m, y)
                                                        	tmp = 0.0
                                                        	if (sin(x_m) <= 2e-5)
                                                        		tmp = fma(Float64(x_m * x_m), Float64(-0.16666666666666666 * x_m), x_m);
                                                        	else
                                                        		tmp = Float64(Float64(Float64(Float64(Float64(x_m * x_m) * x_m) * x_m) * 0.008333333333333333) * x_m);
                                                        	end
                                                        	return Float64(x_s * tmp)
                                                        end
                                                        
                                                        x\_m = N[Abs[x], $MachinePrecision]
                                                        x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                        code[x$95$s_, x$95$m_, y_] := N[(x$95$s * If[LessEqual[N[Sin[x$95$m], $MachinePrecision], 2e-5], N[(N[(x$95$m * x$95$m), $MachinePrecision] * N[(-0.16666666666666666 * x$95$m), $MachinePrecision] + x$95$m), $MachinePrecision], N[(N[(N[(N[(N[(x$95$m * x$95$m), $MachinePrecision] * x$95$m), $MachinePrecision] * x$95$m), $MachinePrecision] * 0.008333333333333333), $MachinePrecision] * x$95$m), $MachinePrecision]]), $MachinePrecision]
                                                        
                                                        \begin{array}{l}
                                                        x\_m = \left|x\right|
                                                        \\
                                                        x\_s = \mathsf{copysign}\left(1, x\right)
                                                        
                                                        \\
                                                        x\_s \cdot \begin{array}{l}
                                                        \mathbf{if}\;\sin x\_m \leq 2 \cdot 10^{-5}:\\
                                                        \;\;\;\;\mathsf{fma}\left(x\_m \cdot x\_m, -0.16666666666666666 \cdot x\_m, x\_m\right)\\
                                                        
                                                        \mathbf{else}:\\
                                                        \;\;\;\;\left(\left(\left(\left(x\_m \cdot x\_m\right) \cdot x\_m\right) \cdot x\_m\right) \cdot 0.008333333333333333\right) \cdot x\_m\\
                                                        
                                                        
                                                        \end{array}
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Split input into 2 regimes
                                                        2. if (sin.f64 x) < 2.00000000000000016e-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.f6457.2

                                                              \[\leadsto \color{blue}{\sin x} \]
                                                          5. Applied rewrites57.2%

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

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

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

                                                              if 2.00000000000000016e-5 < (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.f6441.5

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

                                                                \[\leadsto \color{blue}{\sin x} \]
                                                              6. 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)} \]
                                                              7. Step-by-step derivation
                                                                1. Applied rewrites29.2%

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

                                                                  \[\leadsto \left(\frac{1}{120} \cdot {x}^{4}\right) \cdot x \]
                                                                3. Step-by-step derivation
                                                                  1. Applied rewrites29.2%

                                                                    \[\leadsto \left(\left(\left(\left(x \cdot x\right) \cdot x\right) \cdot x\right) \cdot 0.008333333333333333\right) \cdot x \]
                                                                4. Recombined 2 regimes into one program.
                                                                5. Add Preprocessing

                                                                Alternative 16: 42.9% accurate, 5.7× speedup?

                                                                \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;y \leq 11500000000:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, x\_m \cdot x\_m, -0.16666666666666666\right), x\_m \cdot x\_m, 1\right) \cdot x\_m\\ \mathbf{else}:\\ \;\;\;\;\left(\left(y \cdot y\right) \cdot 0.16666666666666666\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\ \end{array} \end{array} \]
                                                                x\_m = (fabs.f64 x)
                                                                x\_s = (copysign.f64 #s(literal 1 binary64) x)
                                                                (FPCore (x_s x_m y)
                                                                 :precision binary64
                                                                 (*
                                                                  x_s
                                                                  (if (<= y 11500000000.0)
                                                                    (*
                                                                     (fma
                                                                      (fma 0.008333333333333333 (* x_m x_m) -0.16666666666666666)
                                                                      (* x_m x_m)
                                                                      1.0)
                                                                     x_m)
                                                                    (*
                                                                     (* (* y y) 0.16666666666666666)
                                                                     (fma (* (* x_m x_m) x_m) -0.16666666666666666 x_m)))))
                                                                x\_m = fabs(x);
                                                                x\_s = copysign(1.0, x);
                                                                double code(double x_s, double x_m, double y) {
                                                                	double tmp;
                                                                	if (y <= 11500000000.0) {
                                                                		tmp = fma(fma(0.008333333333333333, (x_m * x_m), -0.16666666666666666), (x_m * x_m), 1.0) * x_m;
                                                                	} else {
                                                                		tmp = ((y * y) * 0.16666666666666666) * fma(((x_m * x_m) * x_m), -0.16666666666666666, x_m);
                                                                	}
                                                                	return x_s * tmp;
                                                                }
                                                                
                                                                x\_m = abs(x)
                                                                x\_s = copysign(1.0, x)
                                                                function code(x_s, x_m, y)
                                                                	tmp = 0.0
                                                                	if (y <= 11500000000.0)
                                                                		tmp = Float64(fma(fma(0.008333333333333333, Float64(x_m * x_m), -0.16666666666666666), Float64(x_m * x_m), 1.0) * x_m);
                                                                	else
                                                                		tmp = Float64(Float64(Float64(y * y) * 0.16666666666666666) * fma(Float64(Float64(x_m * x_m) * x_m), -0.16666666666666666, x_m));
                                                                	end
                                                                	return Float64(x_s * tmp)
                                                                end
                                                                
                                                                x\_m = N[Abs[x], $MachinePrecision]
                                                                x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                                code[x$95$s_, x$95$m_, y_] := N[(x$95$s * If[LessEqual[y, 11500000000.0], N[(N[(N[(0.008333333333333333 * N[(x$95$m * x$95$m), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] * N[(x$95$m * x$95$m), $MachinePrecision] + 1.0), $MachinePrecision] * x$95$m), $MachinePrecision], N[(N[(N[(y * y), $MachinePrecision] * 0.16666666666666666), $MachinePrecision] * N[(N[(N[(x$95$m * x$95$m), $MachinePrecision] * x$95$m), $MachinePrecision] * -0.16666666666666666 + x$95$m), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
                                                                
                                                                \begin{array}{l}
                                                                x\_m = \left|x\right|
                                                                \\
                                                                x\_s = \mathsf{copysign}\left(1, x\right)
                                                                
                                                                \\
                                                                x\_s \cdot \begin{array}{l}
                                                                \mathbf{if}\;y \leq 11500000000:\\
                                                                \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, x\_m \cdot x\_m, -0.16666666666666666\right), x\_m \cdot x\_m, 1\right) \cdot x\_m\\
                                                                
                                                                \mathbf{else}:\\
                                                                \;\;\;\;\left(\left(y \cdot y\right) \cdot 0.16666666666666666\right) \cdot \mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot x\_m, -0.16666666666666666, x\_m\right)\\
                                                                
                                                                
                                                                \end{array}
                                                                \end{array}
                                                                
                                                                Derivation
                                                                1. Split input into 2 regimes
                                                                2. if y < 1.15e10

                                                                  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.f6470.7

                                                                      \[\leadsto \color{blue}{\sin x} \]
                                                                  5. Applied rewrites70.7%

                                                                    \[\leadsto \color{blue}{\sin x} \]
                                                                  6. 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)} \]
                                                                  7. Step-by-step derivation
                                                                    1. Applied rewrites52.1%

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

                                                                    if 1.15e10 < 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 + \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. *-commutativeN/A

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

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

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

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

                                                                      \[\leadsto \sin x \cdot \color{blue}{\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 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 \cdot y, \frac{1}{6}, 1\right) \]
                                                                    7. Step-by-step derivation
                                                                      1. distribute-lft-inN/A

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

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

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

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

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

                                                                        \[\leadsto \left(\left(x \cdot \color{blue}{\left(x \cdot x\right)}\right) \cdot \frac{-1}{6} + x\right) \cdot \mathsf{fma}\left(y \cdot y, \frac{1}{6}, 1\right) \]
                                                                      7. cube-multN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                    Alternative 17: 34.0% accurate, 12.8× speedup?

                                                                    \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \mathsf{fma}\left(x\_m \cdot x\_m, -0.16666666666666666 \cdot x\_m, x\_m\right) \end{array} \]
                                                                    x\_m = (fabs.f64 x)
                                                                    x\_s = (copysign.f64 #s(literal 1 binary64) x)
                                                                    (FPCore (x_s x_m y)
                                                                     :precision binary64
                                                                     (* x_s (fma (* x_m x_m) (* -0.16666666666666666 x_m) x_m)))
                                                                    x\_m = fabs(x);
                                                                    x\_s = copysign(1.0, x);
                                                                    double code(double x_s, double x_m, double y) {
                                                                    	return x_s * fma((x_m * x_m), (-0.16666666666666666 * x_m), x_m);
                                                                    }
                                                                    
                                                                    x\_m = abs(x)
                                                                    x\_s = copysign(1.0, x)
                                                                    function code(x_s, x_m, y)
                                                                    	return Float64(x_s * fma(Float64(x_m * x_m), Float64(-0.16666666666666666 * x_m), x_m))
                                                                    end
                                                                    
                                                                    x\_m = N[Abs[x], $MachinePrecision]
                                                                    x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                                    code[x$95$s_, x$95$m_, y_] := N[(x$95$s * N[(N[(x$95$m * x$95$m), $MachinePrecision] * N[(-0.16666666666666666 * x$95$m), $MachinePrecision] + x$95$m), $MachinePrecision]), $MachinePrecision]
                                                                    
                                                                    \begin{array}{l}
                                                                    x\_m = \left|x\right|
                                                                    \\
                                                                    x\_s = \mathsf{copysign}\left(1, x\right)
                                                                    
                                                                    \\
                                                                    x\_s \cdot \mathsf{fma}\left(x\_m \cdot x\_m, -0.16666666666666666 \cdot x\_m, x\_m\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.f6453.9

                                                                        \[\leadsto \color{blue}{\sin x} \]
                                                                    5. Applied rewrites53.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 rewrites41.9%

                                                                        \[\leadsto \mathsf{fma}\left(\left(x \cdot x\right) \cdot x, \color{blue}{-0.16666666666666666}, x\right) \]
                                                                      2. Step-by-step derivation
                                                                        1. Applied rewrites41.9%

                                                                          \[\leadsto \mathsf{fma}\left(x \cdot x, -0.16666666666666666 \cdot \color{blue}{x}, x\right) \]
                                                                        2. Add Preprocessing

                                                                        Alternative 18: 26.4% accurate, 36.2× speedup?

                                                                        \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \left(1 \cdot x\_m\right) \end{array} \]
                                                                        x\_m = (fabs.f64 x)
                                                                        x\_s = (copysign.f64 #s(literal 1 binary64) x)
                                                                        (FPCore (x_s x_m y) :precision binary64 (* x_s (* 1.0 x_m)))
                                                                        x\_m = fabs(x);
                                                                        x\_s = copysign(1.0, x);
                                                                        double code(double x_s, double x_m, double y) {
                                                                        	return x_s * (1.0 * x_m);
                                                                        }
                                                                        
                                                                        x\_m = abs(x)
                                                                        x\_s = copysign(1.0d0, x)
                                                                        real(8) function code(x_s, x_m, y)
                                                                            real(8), intent (in) :: x_s
                                                                            real(8), intent (in) :: x_m
                                                                            real(8), intent (in) :: y
                                                                            code = x_s * (1.0d0 * x_m)
                                                                        end function
                                                                        
                                                                        x\_m = Math.abs(x);
                                                                        x\_s = Math.copySign(1.0, x);
                                                                        public static double code(double x_s, double x_m, double y) {
                                                                        	return x_s * (1.0 * x_m);
                                                                        }
                                                                        
                                                                        x\_m = math.fabs(x)
                                                                        x\_s = math.copysign(1.0, x)
                                                                        def code(x_s, x_m, y):
                                                                        	return x_s * (1.0 * x_m)
                                                                        
                                                                        x\_m = abs(x)
                                                                        x\_s = copysign(1.0, x)
                                                                        function code(x_s, x_m, y)
                                                                        	return Float64(x_s * Float64(1.0 * x_m))
                                                                        end
                                                                        
                                                                        x\_m = abs(x);
                                                                        x\_s = sign(x) * abs(1.0);
                                                                        function tmp = code(x_s, x_m, y)
                                                                        	tmp = x_s * (1.0 * x_m);
                                                                        end
                                                                        
                                                                        x\_m = N[Abs[x], $MachinePrecision]
                                                                        x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                                                                        code[x$95$s_, x$95$m_, y_] := N[(x$95$s * N[(1.0 * x$95$m), $MachinePrecision]), $MachinePrecision]
                                                                        
                                                                        \begin{array}{l}
                                                                        x\_m = \left|x\right|
                                                                        \\
                                                                        x\_s = \mathsf{copysign}\left(1, x\right)
                                                                        
                                                                        \\
                                                                        x\_s \cdot \left(1 \cdot x\_m\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.f6453.9

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

                                                                          \[\leadsto \color{blue}{\sin x} \]
                                                                        6. 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)} \]
                                                                        7. Step-by-step derivation
                                                                          1. Applied rewrites44.3%

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

                                                                            \[\leadsto 1 \cdot x \]
                                                                          3. Step-by-step derivation
                                                                            1. Applied rewrites34.2%

                                                                              \[\leadsto 1 \cdot x \]
                                                                            2. Add Preprocessing

                                                                            Reproduce

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