Linear.Quaternion:$ccos from linear-1.19.1.3

Percentage Accurate: 100.0% → 100.0%
Time: 7.8s
Alternatives: 11
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 11 alternatives:

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

Initial Program: 100.0% accurate, 1.0× speedup?

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

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

Alternative 1: 100.0% accurate, 1.0× speedup?

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

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

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

    \[\leadsto \sin x \cdot \frac{\sinh y}{y} \]

Alternative 2: 78.5% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 3.9 \cdot 10^{+30} \lor \neg \left(y \leq 8 \cdot 10^{+150}\right):\\ \;\;\;\;\sin x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot x - \left(x \cdot x\right) \cdot \left({y}^{4} \cdot 0.027777777777777776\right)}{x - \left(y \cdot y\right) \cdot \left(x \cdot 0.16666666666666666\right)}\\ \end{array} \end{array} \]
(FPCore (x y)
 :precision binary64
 (if (or (<= y 3.9e+30) (not (<= y 8e+150)))
   (* (sin x) (+ 1.0 (* 0.16666666666666666 (* y y))))
   (/
    (- (* x x) (* (* x x) (* (pow y 4.0) 0.027777777777777776)))
    (- x (* (* y y) (* x 0.16666666666666666))))))
double code(double x, double y) {
	double tmp;
	if ((y <= 3.9e+30) || !(y <= 8e+150)) {
		tmp = sin(x) * (1.0 + (0.16666666666666666 * (y * y)));
	} else {
		tmp = ((x * x) - ((x * x) * (pow(y, 4.0) * 0.027777777777777776))) / (x - ((y * y) * (x * 0.16666666666666666)));
	}
	return tmp;
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8) :: tmp
    if ((y <= 3.9d+30) .or. (.not. (y <= 8d+150))) then
        tmp = sin(x) * (1.0d0 + (0.16666666666666666d0 * (y * y)))
    else
        tmp = ((x * x) - ((x * x) * ((y ** 4.0d0) * 0.027777777777777776d0))) / (x - ((y * y) * (x * 0.16666666666666666d0)))
    end if
    code = tmp
end function
public static double code(double x, double y) {
	double tmp;
	if ((y <= 3.9e+30) || !(y <= 8e+150)) {
		tmp = Math.sin(x) * (1.0 + (0.16666666666666666 * (y * y)));
	} else {
		tmp = ((x * x) - ((x * x) * (Math.pow(y, 4.0) * 0.027777777777777776))) / (x - ((y * y) * (x * 0.16666666666666666)));
	}
	return tmp;
}
def code(x, y):
	tmp = 0
	if (y <= 3.9e+30) or not (y <= 8e+150):
		tmp = math.sin(x) * (1.0 + (0.16666666666666666 * (y * y)))
	else:
		tmp = ((x * x) - ((x * x) * (math.pow(y, 4.0) * 0.027777777777777776))) / (x - ((y * y) * (x * 0.16666666666666666)))
	return tmp
function code(x, y)
	tmp = 0.0
	if ((y <= 3.9e+30) || !(y <= 8e+150))
		tmp = Float64(sin(x) * Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y))));
	else
		tmp = Float64(Float64(Float64(x * x) - Float64(Float64(x * x) * Float64((y ^ 4.0) * 0.027777777777777776))) / Float64(x - Float64(Float64(y * y) * Float64(x * 0.16666666666666666))));
	end
	return tmp
end
function tmp_2 = code(x, y)
	tmp = 0.0;
	if ((y <= 3.9e+30) || ~((y <= 8e+150)))
		tmp = sin(x) * (1.0 + (0.16666666666666666 * (y * y)));
	else
		tmp = ((x * x) - ((x * x) * ((y ^ 4.0) * 0.027777777777777776))) / (x - ((y * y) * (x * 0.16666666666666666)));
	end
	tmp_2 = tmp;
end
code[x_, y_] := If[Or[LessEqual[y, 3.9e+30], N[Not[LessEqual[y, 8e+150]], $MachinePrecision]], N[(N[Sin[x], $MachinePrecision] * N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * x), $MachinePrecision] - N[(N[(x * x), $MachinePrecision] * N[(N[Power[y, 4.0], $MachinePrecision] * 0.027777777777777776), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x - N[(N[(y * y), $MachinePrecision] * N[(x * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq 3.9 \cdot 10^{+30} \lor \neg \left(y \leq 8 \cdot 10^{+150}\right):\\
\;\;\;\;\sin x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\frac{x \cdot x - \left(x \cdot x\right) \cdot \left({y}^{4} \cdot 0.027777777777777776\right)}{x - \left(y \cdot y\right) \cdot \left(x \cdot 0.16666666666666666\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 3.90000000000000011e30 or 7.99999999999999985e150 < y

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 85.7%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right)} \]
    3. Step-by-step derivation
      1. unpow285.7%

        \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)}\right) \]
    4. Simplified85.7%

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

    if 3.90000000000000011e30 < y < 7.99999999999999985e150

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 4.5%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right)} \]
    3. Step-by-step derivation
      1. unpow24.5%

        \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)}\right) \]
    4. Simplified4.5%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)} \]
    5. Taylor expanded in x around 0 18.3%

      \[\leadsto \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right) \cdot x} \]
    6. Step-by-step derivation
      1. +-commutative18.3%

        \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot {y}^{2} + 1\right)} \cdot x \]
      2. unpow218.3%

        \[\leadsto \left(0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)} + 1\right) \cdot x \]
      3. fma-udef18.3%

        \[\leadsto \color{blue}{\mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right)} \cdot x \]
    7. Simplified18.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right) \cdot x} \]
    8. Step-by-step derivation
      1. fma-udef18.3%

        \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot \left(y \cdot y\right) + 1\right)} \cdot x \]
    9. Applied egg-rr18.3%

      \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot \left(y \cdot y\right) + 1\right)} \cdot x \]
    10. Step-by-step derivation
      1. distribute-rgt1-in18.3%

        \[\leadsto \color{blue}{x + \left(0.16666666666666666 \cdot \left(y \cdot y\right)\right) \cdot x} \]
      2. associate-*r*18.3%

        \[\leadsto x + \color{blue}{0.16666666666666666 \cdot \left(\left(y \cdot y\right) \cdot x\right)} \]
      3. associate-*r*18.3%

        \[\leadsto x + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot \left(y \cdot x\right)\right)} \]
      4. flip-+21.0%

        \[\leadsto \color{blue}{\frac{x \cdot x - \left(0.16666666666666666 \cdot \left(y \cdot \left(y \cdot x\right)\right)\right) \cdot \left(0.16666666666666666 \cdot \left(y \cdot \left(y \cdot x\right)\right)\right)}{x - 0.16666666666666666 \cdot \left(y \cdot \left(y \cdot x\right)\right)}} \]
    11. Applied egg-rr46.7%

      \[\leadsto \color{blue}{\frac{x \cdot x - \left(\left(x \cdot x\right) \cdot {y}^{4}\right) \cdot 0.027777777777777776}{x - y \cdot \left(y \cdot \left(0.16666666666666666 \cdot x\right)\right)}} \]
    12. Step-by-step derivation
      1. associate-*l*46.7%

        \[\leadsto \frac{x \cdot x - \color{blue}{\left(x \cdot x\right) \cdot \left({y}^{4} \cdot 0.027777777777777776\right)}}{x - y \cdot \left(y \cdot \left(0.16666666666666666 \cdot x\right)\right)} \]
      2. associate-*r*46.7%

        \[\leadsto \frac{x \cdot x - \left(x \cdot x\right) \cdot \left({y}^{4} \cdot 0.027777777777777776\right)}{x - \color{blue}{\left(y \cdot y\right) \cdot \left(0.16666666666666666 \cdot x\right)}} \]
      3. *-commutative46.7%

        \[\leadsto \frac{x \cdot x - \left(x \cdot x\right) \cdot \left({y}^{4} \cdot 0.027777777777777776\right)}{x - \left(y \cdot y\right) \cdot \color{blue}{\left(x \cdot 0.16666666666666666\right)}} \]
    13. Simplified46.7%

      \[\leadsto \color{blue}{\frac{x \cdot x - \left(x \cdot x\right) \cdot \left({y}^{4} \cdot 0.027777777777777776\right)}{x - \left(y \cdot y\right) \cdot \left(x \cdot 0.16666666666666666\right)}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification81.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 3.9 \cdot 10^{+30} \lor \neg \left(y \leq 8 \cdot 10^{+150}\right):\\ \;\;\;\;\sin x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot x - \left(x \cdot x\right) \cdot \left({y}^{4} \cdot 0.027777777777777776\right)}{x - \left(y \cdot y\right) \cdot \left(x \cdot 0.16666666666666666\right)}\\ \end{array} \]

Alternative 3: 65.3% accurate, 1.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := 0.16666666666666666 \cdot \left(y \cdot y\right)\\ \mathbf{if}\;y \leq 38000000:\\ \;\;\;\;\sin x\\ \mathbf{elif}\;y \leq 6.6 \cdot 10^{+78}:\\ \;\;\;\;y \cdot \left(\left(y \cdot -0.027777777777777776\right) \cdot {x}^{3}\right)\\ \mathbf{elif}\;y \leq 1.35 \cdot 10^{+154}:\\ \;\;\;\;x \cdot \left(1 + t_0\right)\\ \mathbf{else}:\\ \;\;\;\;\sin x \cdot t_0\\ \end{array} \end{array} \]
(FPCore (x y)
 :precision binary64
 (let* ((t_0 (* 0.16666666666666666 (* y y))))
   (if (<= y 38000000.0)
     (sin x)
     (if (<= y 6.6e+78)
       (* y (* (* y -0.027777777777777776) (pow x 3.0)))
       (if (<= y 1.35e+154) (* x (+ 1.0 t_0)) (* (sin x) t_0))))))
double code(double x, double y) {
	double t_0 = 0.16666666666666666 * (y * y);
	double tmp;
	if (y <= 38000000.0) {
		tmp = sin(x);
	} else if (y <= 6.6e+78) {
		tmp = y * ((y * -0.027777777777777776) * pow(x, 3.0));
	} else if (y <= 1.35e+154) {
		tmp = x * (1.0 + t_0);
	} else {
		tmp = sin(x) * t_0;
	}
	return tmp;
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8) :: t_0
    real(8) :: tmp
    t_0 = 0.16666666666666666d0 * (y * y)
    if (y <= 38000000.0d0) then
        tmp = sin(x)
    else if (y <= 6.6d+78) then
        tmp = y * ((y * (-0.027777777777777776d0)) * (x ** 3.0d0))
    else if (y <= 1.35d+154) then
        tmp = x * (1.0d0 + t_0)
    else
        tmp = sin(x) * t_0
    end if
    code = tmp
end function
public static double code(double x, double y) {
	double t_0 = 0.16666666666666666 * (y * y);
	double tmp;
	if (y <= 38000000.0) {
		tmp = Math.sin(x);
	} else if (y <= 6.6e+78) {
		tmp = y * ((y * -0.027777777777777776) * Math.pow(x, 3.0));
	} else if (y <= 1.35e+154) {
		tmp = x * (1.0 + t_0);
	} else {
		tmp = Math.sin(x) * t_0;
	}
	return tmp;
}
def code(x, y):
	t_0 = 0.16666666666666666 * (y * y)
	tmp = 0
	if y <= 38000000.0:
		tmp = math.sin(x)
	elif y <= 6.6e+78:
		tmp = y * ((y * -0.027777777777777776) * math.pow(x, 3.0))
	elif y <= 1.35e+154:
		tmp = x * (1.0 + t_0)
	else:
		tmp = math.sin(x) * t_0
	return tmp
function code(x, y)
	t_0 = Float64(0.16666666666666666 * Float64(y * y))
	tmp = 0.0
	if (y <= 38000000.0)
		tmp = sin(x);
	elseif (y <= 6.6e+78)
		tmp = Float64(y * Float64(Float64(y * -0.027777777777777776) * (x ^ 3.0)));
	elseif (y <= 1.35e+154)
		tmp = Float64(x * Float64(1.0 + t_0));
	else
		tmp = Float64(sin(x) * t_0);
	end
	return tmp
end
function tmp_2 = code(x, y)
	t_0 = 0.16666666666666666 * (y * y);
	tmp = 0.0;
	if (y <= 38000000.0)
		tmp = sin(x);
	elseif (y <= 6.6e+78)
		tmp = y * ((y * -0.027777777777777776) * (x ^ 3.0));
	elseif (y <= 1.35e+154)
		tmp = x * (1.0 + t_0);
	else
		tmp = sin(x) * t_0;
	end
	tmp_2 = tmp;
end
code[x_, y_] := Block[{t$95$0 = N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 38000000.0], N[Sin[x], $MachinePrecision], If[LessEqual[y, 6.6e+78], N[(y * N[(N[(y * -0.027777777777777776), $MachinePrecision] * N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.35e+154], N[(x * N[(1.0 + t$95$0), $MachinePrecision]), $MachinePrecision], N[(N[Sin[x], $MachinePrecision] * t$95$0), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := 0.16666666666666666 \cdot \left(y \cdot y\right)\\
\mathbf{if}\;y \leq 38000000:\\
\;\;\;\;\sin x\\

\mathbf{elif}\;y \leq 6.6 \cdot 10^{+78}:\\
\;\;\;\;y \cdot \left(\left(y \cdot -0.027777777777777776\right) \cdot {x}^{3}\right)\\

\mathbf{elif}\;y \leq 1.35 \cdot 10^{+154}:\\
\;\;\;\;x \cdot \left(1 + t_0\right)\\

\mathbf{else}:\\
\;\;\;\;\sin x \cdot t_0\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < 3.8e7

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 67.7%

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

    if 3.8e7 < y < 6.6e78

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 3.7%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right)} \]
    3. Step-by-step derivation
      1. unpow23.7%

        \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)}\right) \]
    4. Simplified3.7%

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

      \[\leadsto \color{blue}{0.16666666666666666 \cdot \left({y}^{2} \cdot \sin x\right)} \]
    6. Step-by-step derivation
      1. unpow23.7%

        \[\leadsto 0.16666666666666666 \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot \sin x\right) \]
      2. associate-*l*3.7%

        \[\leadsto 0.16666666666666666 \cdot \color{blue}{\left(y \cdot \left(y \cdot \sin x\right)\right)} \]
    7. Simplified3.7%

      \[\leadsto \color{blue}{0.16666666666666666 \cdot \left(y \cdot \left(y \cdot \sin x\right)\right)} \]
    8. Taylor expanded in x around 0 23.0%

      \[\leadsto \color{blue}{0.16666666666666666 \cdot \left({y}^{2} \cdot x\right) + -0.027777777777777776 \cdot \left({y}^{2} \cdot {x}^{3}\right)} \]
    9. Step-by-step derivation
      1. *-commutative23.0%

        \[\leadsto \color{blue}{\left({y}^{2} \cdot x\right) \cdot 0.16666666666666666} + -0.027777777777777776 \cdot \left({y}^{2} \cdot {x}^{3}\right) \]
      2. associate-*l*23.0%

        \[\leadsto \color{blue}{{y}^{2} \cdot \left(x \cdot 0.16666666666666666\right)} + -0.027777777777777776 \cdot \left({y}^{2} \cdot {x}^{3}\right) \]
      3. *-commutative23.0%

        \[\leadsto {y}^{2} \cdot \left(x \cdot 0.16666666666666666\right) + \color{blue}{\left({y}^{2} \cdot {x}^{3}\right) \cdot -0.027777777777777776} \]
      4. associate-*l*23.0%

        \[\leadsto {y}^{2} \cdot \left(x \cdot 0.16666666666666666\right) + \color{blue}{{y}^{2} \cdot \left({x}^{3} \cdot -0.027777777777777776\right)} \]
      5. distribute-lft-out30.2%

        \[\leadsto \color{blue}{{y}^{2} \cdot \left(x \cdot 0.16666666666666666 + {x}^{3} \cdot -0.027777777777777776\right)} \]
      6. unpow230.2%

        \[\leadsto \color{blue}{\left(y \cdot y\right)} \cdot \left(x \cdot 0.16666666666666666 + {x}^{3} \cdot -0.027777777777777776\right) \]
      7. *-commutative30.2%

        \[\leadsto \left(y \cdot y\right) \cdot \left(\color{blue}{0.16666666666666666 \cdot x} + {x}^{3} \cdot -0.027777777777777776\right) \]
    10. Simplified30.2%

      \[\leadsto \color{blue}{\left(y \cdot y\right) \cdot \left(0.16666666666666666 \cdot x + {x}^{3} \cdot -0.027777777777777776\right)} \]
    11. Taylor expanded in x around inf 29.6%

      \[\leadsto \color{blue}{-0.027777777777777776 \cdot \left({y}^{2} \cdot {x}^{3}\right)} \]
    12. Step-by-step derivation
      1. *-commutative29.6%

        \[\leadsto \color{blue}{\left({y}^{2} \cdot {x}^{3}\right) \cdot -0.027777777777777776} \]
      2. unpow229.6%

        \[\leadsto \left(\color{blue}{\left(y \cdot y\right)} \cdot {x}^{3}\right) \cdot -0.027777777777777776 \]
      3. associate-*r*29.6%

        \[\leadsto \color{blue}{\left(y \cdot y\right) \cdot \left({x}^{3} \cdot -0.027777777777777776\right)} \]
      4. associate-*r*29.6%

        \[\leadsto \color{blue}{y \cdot \left(y \cdot \left({x}^{3} \cdot -0.027777777777777776\right)\right)} \]
      5. *-commutative29.6%

        \[\leadsto y \cdot \left(y \cdot \color{blue}{\left(-0.027777777777777776 \cdot {x}^{3}\right)}\right) \]
      6. associate-*r*29.6%

        \[\leadsto y \cdot \color{blue}{\left(\left(y \cdot -0.027777777777777776\right) \cdot {x}^{3}\right)} \]
    13. Simplified29.6%

      \[\leadsto \color{blue}{y \cdot \left(\left(y \cdot -0.027777777777777776\right) \cdot {x}^{3}\right)} \]

    if 6.6e78 < y < 1.35000000000000003e154

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 6.3%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right)} \]
    3. Step-by-step derivation
      1. unpow26.3%

        \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)}\right) \]
    4. Simplified6.3%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)} \]
    5. Taylor expanded in x around 0 34.6%

      \[\leadsto \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right) \cdot x} \]
    6. Step-by-step derivation
      1. +-commutative34.6%

        \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot {y}^{2} + 1\right)} \cdot x \]
      2. unpow234.6%

        \[\leadsto \left(0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)} + 1\right) \cdot x \]
      3. fma-udef34.6%

        \[\leadsto \color{blue}{\mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right)} \cdot x \]
    7. Simplified34.6%

      \[\leadsto \color{blue}{\mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right) \cdot x} \]
    8. Step-by-step derivation
      1. fma-udef34.6%

        \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot \left(y \cdot y\right) + 1\right)} \cdot x \]
    9. Applied egg-rr34.6%

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

    if 1.35000000000000003e154 < y

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 100.0%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right)} \]
    3. Step-by-step derivation
      1. unpow2100.0%

        \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)}\right) \]
    4. Simplified100.0%

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

      \[\leadsto \color{blue}{0.16666666666666666 \cdot \left({y}^{2} \cdot \sin x\right)} \]
    6. Step-by-step derivation
      1. unpow2100.0%

        \[\leadsto 0.16666666666666666 \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot \sin x\right) \]
      2. associate-*r*100.0%

        \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot \left(y \cdot y\right)\right) \cdot \sin x} \]
      3. *-commutative100.0%

        \[\leadsto \color{blue}{\sin x \cdot \left(0.16666666666666666 \cdot \left(y \cdot y\right)\right)} \]
    7. Simplified100.0%

      \[\leadsto \color{blue}{\sin x \cdot \left(0.16666666666666666 \cdot \left(y \cdot y\right)\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification66.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 38000000:\\ \;\;\;\;\sin x\\ \mathbf{elif}\;y \leq 6.6 \cdot 10^{+78}:\\ \;\;\;\;y \cdot \left(\left(y \cdot -0.027777777777777776\right) \cdot {x}^{3}\right)\\ \mathbf{elif}\;y \leq 1.35 \cdot 10^{+154}:\\ \;\;\;\;x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\sin x \cdot \left(0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\ \end{array} \]

Alternative 4: 62.3% accurate, 1.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq 3.9 \cdot 10^{-5}:\\
\;\;\;\;\sin x\\

\mathbf{elif}\;y \leq 1.8 \cdot 10^{+258}:\\
\;\;\;\;x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\

\mathbf{else}:\\
\;\;\;\;0.16666666666666666 \cdot \left(y \cdot \left(\sin x \cdot y\right)\right)\\


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

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 68.5%

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

    if 3.8999999999999999e-5 < y < 1.8e258

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 41.3%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right)} \]
    3. Step-by-step derivation
      1. unpow241.3%

        \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)}\right) \]
    4. Simplified41.3%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)} \]
    5. Taylor expanded in x around 0 46.4%

      \[\leadsto \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right) \cdot x} \]
    6. Step-by-step derivation
      1. +-commutative46.4%

        \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot {y}^{2} + 1\right)} \cdot x \]
      2. unpow246.4%

        \[\leadsto \left(0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)} + 1\right) \cdot x \]
      3. fma-udef46.4%

        \[\leadsto \color{blue}{\mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right)} \cdot x \]
    7. Simplified46.4%

      \[\leadsto \color{blue}{\mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right) \cdot x} \]
    8. Step-by-step derivation
      1. fma-udef46.4%

        \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot \left(y \cdot y\right) + 1\right)} \cdot x \]
    9. Applied egg-rr46.4%

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

    if 1.8e258 < y

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 100.0%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right)} \]
    3. Step-by-step derivation
      1. unpow2100.0%

        \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)}\right) \]
    4. Simplified100.0%

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

      \[\leadsto \color{blue}{0.16666666666666666 \cdot \left({y}^{2} \cdot \sin x\right)} \]
    6. Step-by-step derivation
      1. unpow2100.0%

        \[\leadsto 0.16666666666666666 \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot \sin x\right) \]
      2. associate-*l*100.0%

        \[\leadsto 0.16666666666666666 \cdot \color{blue}{\left(y \cdot \left(y \cdot \sin x\right)\right)} \]
    7. Simplified100.0%

      \[\leadsto \color{blue}{0.16666666666666666 \cdot \left(y \cdot \left(y \cdot \sin x\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification64.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 3.9 \cdot 10^{-5}:\\ \;\;\;\;\sin x\\ \mathbf{elif}\;y \leq 1.8 \cdot 10^{+258}:\\ \;\;\;\;x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;0.16666666666666666 \cdot \left(y \cdot \left(\sin x \cdot y\right)\right)\\ \end{array} \]

Alternative 5: 64.8% accurate, 1.8× speedup?

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

\\
\begin{array}{l}
t_0 := 0.16666666666666666 \cdot \left(y \cdot y\right)\\
\mathbf{if}\;y \leq 5.7 \cdot 10^{-5}:\\
\;\;\;\;\sin x\\

\mathbf{elif}\;y \leq 1.35 \cdot 10^{+154}:\\
\;\;\;\;x \cdot \left(1 + t_0\right)\\

\mathbf{else}:\\
\;\;\;\;\sin x \cdot t_0\\


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

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 68.5%

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

    if 5.7000000000000003e-5 < y < 1.35000000000000003e154

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 7.0%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right)} \]
    3. Step-by-step derivation
      1. unpow27.0%

        \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)}\right) \]
    4. Simplified7.0%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)} \]
    5. Taylor expanded in x around 0 23.5%

      \[\leadsto \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right) \cdot x} \]
    6. Step-by-step derivation
      1. +-commutative23.5%

        \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot {y}^{2} + 1\right)} \cdot x \]
      2. unpow223.5%

        \[\leadsto \left(0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)} + 1\right) \cdot x \]
      3. fma-udef23.5%

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right) \cdot x} \]
    8. Step-by-step derivation
      1. fma-udef23.5%

        \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot \left(y \cdot y\right) + 1\right)} \cdot x \]
    9. Applied egg-rr23.5%

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

    if 1.35000000000000003e154 < y

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 100.0%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right)} \]
    3. Step-by-step derivation
      1. unpow2100.0%

        \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)}\right) \]
    4. Simplified100.0%

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

      \[\leadsto \color{blue}{0.16666666666666666 \cdot \left({y}^{2} \cdot \sin x\right)} \]
    6. Step-by-step derivation
      1. unpow2100.0%

        \[\leadsto 0.16666666666666666 \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot \sin x\right) \]
      2. associate-*r*100.0%

        \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot \left(y \cdot y\right)\right) \cdot \sin x} \]
      3. *-commutative100.0%

        \[\leadsto \color{blue}{\sin x \cdot \left(0.16666666666666666 \cdot \left(y \cdot y\right)\right)} \]
    7. Simplified100.0%

      \[\leadsto \color{blue}{\sin x \cdot \left(0.16666666666666666 \cdot \left(y \cdot y\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification65.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 5.7 \cdot 10^{-5}:\\ \;\;\;\;\sin x\\ \mathbf{elif}\;y \leq 1.35 \cdot 10^{+154}:\\ \;\;\;\;x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\sin x \cdot \left(0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\ \end{array} \]

Alternative 6: 76.5% accurate, 1.9× speedup?

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

\\
\sin x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)
\end{array}
Derivation
  1. Initial program 100.0%

    \[\sin x \cdot \frac{\sinh y}{y} \]
  2. Taylor expanded in y around 0 77.5%

    \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right)} \]
  3. Step-by-step derivation
    1. unpow277.5%

      \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)}\right) \]
  4. Simplified77.5%

    \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)} \]
  5. Final simplification77.5%

    \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right) \]

Alternative 7: 61.7% accurate, 2.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq 3.5 \cdot 10^{-5}:\\
\;\;\;\;\sin x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 3.4999999999999997e-5

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 68.5%

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

    if 3.4999999999999997e-5 < y

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 46.9%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right)} \]
    3. Step-by-step derivation
      1. unpow246.9%

        \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)}\right) \]
    4. Simplified46.9%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)} \]
    5. Taylor expanded in x around 0 48.4%

      \[\leadsto \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right) \cdot x} \]
    6. Step-by-step derivation
      1. +-commutative48.4%

        \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot {y}^{2} + 1\right)} \cdot x \]
      2. unpow248.4%

        \[\leadsto \left(0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)} + 1\right) \cdot x \]
      3. fma-udef48.4%

        \[\leadsto \color{blue}{\mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right)} \cdot x \]
    7. Simplified48.4%

      \[\leadsto \color{blue}{\mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right) \cdot x} \]
    8. Step-by-step derivation
      1. fma-udef48.4%

        \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot \left(y \cdot y\right) + 1\right)} \cdot x \]
    9. Applied egg-rr48.4%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 3.5 \cdot 10^{-5}:\\ \;\;\;\;\sin x\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\ \end{array} \]

Alternative 8: 34.7% accurate, 22.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 0.96:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;0.16666666666666666 \cdot \left(y \cdot \left(x \cdot y\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y)
 :precision binary64
 (if (<= y 0.96) x (* 0.16666666666666666 (* y (* x y)))))
double code(double x, double y) {
	double tmp;
	if (y <= 0.96) {
		tmp = x;
	} else {
		tmp = 0.16666666666666666 * (y * (x * y));
	}
	return tmp;
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8) :: tmp
    if (y <= 0.96d0) then
        tmp = x
    else
        tmp = 0.16666666666666666d0 * (y * (x * y))
    end if
    code = tmp
end function
public static double code(double x, double y) {
	double tmp;
	if (y <= 0.96) {
		tmp = x;
	} else {
		tmp = 0.16666666666666666 * (y * (x * y));
	}
	return tmp;
}
def code(x, y):
	tmp = 0
	if y <= 0.96:
		tmp = x
	else:
		tmp = 0.16666666666666666 * (y * (x * y))
	return tmp
function code(x, y)
	tmp = 0.0
	if (y <= 0.96)
		tmp = x;
	else
		tmp = Float64(0.16666666666666666 * Float64(y * Float64(x * y)));
	end
	return tmp
end
function tmp_2 = code(x, y)
	tmp = 0.0;
	if (y <= 0.96)
		tmp = x;
	else
		tmp = 0.16666666666666666 * (y * (x * y));
	end
	tmp_2 = tmp;
end
code[x_, y_] := If[LessEqual[y, 0.96], x, N[(0.16666666666666666 * N[(y * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq 0.96:\\
\;\;\;\;x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 0.95999999999999996

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 87.3%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right)} \]
    3. Step-by-step derivation
      1. unpow287.3%

        \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)}\right) \]
    4. Simplified87.3%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)} \]
    5. Taylor expanded in x around 0 51.8%

      \[\leadsto \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right) \cdot x} \]
    6. Step-by-step derivation
      1. +-commutative51.8%

        \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot {y}^{2} + 1\right)} \cdot x \]
      2. unpow251.8%

        \[\leadsto \left(0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)} + 1\right) \cdot x \]
      3. fma-udef51.8%

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

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

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

    if 0.95999999999999996 < y

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 46.8%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right)} \]
    3. Step-by-step derivation
      1. unpow246.8%

        \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)}\right) \]
    4. Simplified46.8%

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

      \[\leadsto \color{blue}{0.16666666666666666 \cdot \left({y}^{2} \cdot \sin x\right)} \]
    6. Step-by-step derivation
      1. unpow246.6%

        \[\leadsto 0.16666666666666666 \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot \sin x\right) \]
      2. associate-*l*42.1%

        \[\leadsto 0.16666666666666666 \cdot \color{blue}{\left(y \cdot \left(y \cdot \sin x\right)\right)} \]
    7. Simplified42.1%

      \[\leadsto \color{blue}{0.16666666666666666 \cdot \left(y \cdot \left(y \cdot \sin x\right)\right)} \]
    8. Taylor expanded in x around 0 48.3%

      \[\leadsto \color{blue}{0.16666666666666666 \cdot \left({y}^{2} \cdot x\right)} \]
    9. Step-by-step derivation
      1. unpow248.3%

        \[\leadsto 0.16666666666666666 \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot x\right) \]
      2. associate-*l*43.8%

        \[\leadsto 0.16666666666666666 \cdot \color{blue}{\left(y \cdot \left(y \cdot x\right)\right)} \]
    10. Simplified43.8%

      \[\leadsto \color{blue}{0.16666666666666666 \cdot \left(y \cdot \left(y \cdot x\right)\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification38.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 0.96:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;0.16666666666666666 \cdot \left(y \cdot \left(x \cdot y\right)\right)\\ \end{array} \]

Alternative 9: 37.8% accurate, 22.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 0.96:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;0.16666666666666666 \cdot \left(x \cdot \left(y \cdot y\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y)
 :precision binary64
 (if (<= y 0.96) x (* 0.16666666666666666 (* x (* y y)))))
double code(double x, double y) {
	double tmp;
	if (y <= 0.96) {
		tmp = x;
	} else {
		tmp = 0.16666666666666666 * (x * (y * y));
	}
	return tmp;
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8) :: tmp
    if (y <= 0.96d0) then
        tmp = x
    else
        tmp = 0.16666666666666666d0 * (x * (y * y))
    end if
    code = tmp
end function
public static double code(double x, double y) {
	double tmp;
	if (y <= 0.96) {
		tmp = x;
	} else {
		tmp = 0.16666666666666666 * (x * (y * y));
	}
	return tmp;
}
def code(x, y):
	tmp = 0
	if y <= 0.96:
		tmp = x
	else:
		tmp = 0.16666666666666666 * (x * (y * y))
	return tmp
function code(x, y)
	tmp = 0.0
	if (y <= 0.96)
		tmp = x;
	else
		tmp = Float64(0.16666666666666666 * Float64(x * Float64(y * y)));
	end
	return tmp
end
function tmp_2 = code(x, y)
	tmp = 0.0;
	if (y <= 0.96)
		tmp = x;
	else
		tmp = 0.16666666666666666 * (x * (y * y));
	end
	tmp_2 = tmp;
end
code[x_, y_] := If[LessEqual[y, 0.96], x, N[(0.16666666666666666 * N[(x * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq 0.96:\\
\;\;\;\;x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 0.95999999999999996

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 87.3%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right)} \]
    3. Step-by-step derivation
      1. unpow287.3%

        \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)}\right) \]
    4. Simplified87.3%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)} \]
    5. Taylor expanded in x around 0 51.8%

      \[\leadsto \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right) \cdot x} \]
    6. Step-by-step derivation
      1. +-commutative51.8%

        \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot {y}^{2} + 1\right)} \cdot x \]
      2. unpow251.8%

        \[\leadsto \left(0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)} + 1\right) \cdot x \]
      3. fma-udef51.8%

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

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

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

    if 0.95999999999999996 < y

    1. Initial program 100.0%

      \[\sin x \cdot \frac{\sinh y}{y} \]
    2. Taylor expanded in y around 0 46.8%

      \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right)} \]
    3. Step-by-step derivation
      1. unpow246.8%

        \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)}\right) \]
    4. Simplified46.8%

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

      \[\leadsto \color{blue}{0.16666666666666666 \cdot \left({y}^{2} \cdot \sin x\right)} \]
    6. Step-by-step derivation
      1. unpow246.6%

        \[\leadsto 0.16666666666666666 \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot \sin x\right) \]
      2. associate-*l*42.1%

        \[\leadsto 0.16666666666666666 \cdot \color{blue}{\left(y \cdot \left(y \cdot \sin x\right)\right)} \]
    7. Simplified42.1%

      \[\leadsto \color{blue}{0.16666666666666666 \cdot \left(y \cdot \left(y \cdot \sin x\right)\right)} \]
    8. Taylor expanded in x around 0 48.3%

      \[\leadsto 0.16666666666666666 \cdot \color{blue}{\left({y}^{2} \cdot x\right)} \]
    9. Step-by-step derivation
      1. unpow248.3%

        \[\leadsto 0.16666666666666666 \cdot \left(\color{blue}{\left(y \cdot y\right)} \cdot x\right) \]
    10. Simplified48.3%

      \[\leadsto 0.16666666666666666 \cdot \color{blue}{\left(\left(y \cdot y\right) \cdot x\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification39.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 0.96:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;0.16666666666666666 \cdot \left(x \cdot \left(y \cdot y\right)\right)\\ \end{array} \]

Alternative 10: 49.0% accurate, 22.8× speedup?

\[\begin{array}{l} \\ x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right) \end{array} \]
(FPCore (x y)
 :precision binary64
 (* x (+ 1.0 (* 0.16666666666666666 (* y y)))))
double code(double x, double y) {
	return x * (1.0 + (0.16666666666666666 * (y * y)));
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = x * (1.0d0 + (0.16666666666666666d0 * (y * y)))
end function
public static double code(double x, double y) {
	return x * (1.0 + (0.16666666666666666 * (y * y)));
}
def code(x, y):
	return x * (1.0 + (0.16666666666666666 * (y * y)))
function code(x, y)
	return Float64(x * Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y))))
end
function tmp = code(x, y)
	tmp = x * (1.0 + (0.16666666666666666 * (y * y)));
end
code[x_, y_] := N[(x * N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)
\end{array}
Derivation
  1. Initial program 100.0%

    \[\sin x \cdot \frac{\sinh y}{y} \]
  2. Taylor expanded in y around 0 77.5%

    \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right)} \]
  3. Step-by-step derivation
    1. unpow277.5%

      \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)}\right) \]
  4. Simplified77.5%

    \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)} \]
  5. Taylor expanded in x around 0 51.0%

    \[\leadsto \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right) \cdot x} \]
  6. Step-by-step derivation
    1. +-commutative51.0%

      \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot {y}^{2} + 1\right)} \cdot x \]
    2. unpow251.0%

      \[\leadsto \left(0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)} + 1\right) \cdot x \]
    3. fma-udef51.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right)} \cdot x \]
  7. Simplified51.0%

    \[\leadsto \color{blue}{\mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right) \cdot x} \]
  8. Step-by-step derivation
    1. fma-udef51.0%

      \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot \left(y \cdot y\right) + 1\right)} \cdot x \]
  9. Applied egg-rr51.0%

    \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot \left(y \cdot y\right) + 1\right)} \cdot x \]
  10. Final simplification51.0%

    \[\leadsto x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right) \]

Alternative 11: 26.6% accurate, 205.0× speedup?

\[\begin{array}{l} \\ x \end{array} \]
(FPCore (x y) :precision binary64 x)
double code(double x, double y) {
	return x;
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = x
end function
public static double code(double x, double y) {
	return x;
}
def code(x, y):
	return x
function code(x, y)
	return x
end
function tmp = code(x, y)
	tmp = x;
end
code[x_, y_] := x
\begin{array}{l}

\\
x
\end{array}
Derivation
  1. Initial program 100.0%

    \[\sin x \cdot \frac{\sinh y}{y} \]
  2. Taylor expanded in y around 0 77.5%

    \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right)} \]
  3. Step-by-step derivation
    1. unpow277.5%

      \[\leadsto \sin x \cdot \left(1 + 0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)}\right) \]
  4. Simplified77.5%

    \[\leadsto \sin x \cdot \color{blue}{\left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)} \]
  5. Taylor expanded in x around 0 51.0%

    \[\leadsto \color{blue}{\left(1 + 0.16666666666666666 \cdot {y}^{2}\right) \cdot x} \]
  6. Step-by-step derivation
    1. +-commutative51.0%

      \[\leadsto \color{blue}{\left(0.16666666666666666 \cdot {y}^{2} + 1\right)} \cdot x \]
    2. unpow251.0%

      \[\leadsto \left(0.16666666666666666 \cdot \color{blue}{\left(y \cdot y\right)} + 1\right) \cdot x \]
    3. fma-udef51.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(0.16666666666666666, y \cdot y, 1\right)} \cdot x \]
  7. Simplified51.0%

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

    \[\leadsto \color{blue}{x} \]
  9. Final simplification29.0%

    \[\leadsto x \]

Reproduce

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