
(FPCore (x y) :precision binary64 (/ (* (sin x) (sinh y)) x))
double code(double x, double y) {
return (sin(x) * sinh(y)) / x;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (sin(x) * sinh(y)) / x
end function
public static double code(double x, double y) {
return (Math.sin(x) * Math.sinh(y)) / x;
}
def code(x, y): return (math.sin(x) * math.sinh(y)) / x
function code(x, y) return Float64(Float64(sin(x) * sinh(y)) / x) end
function tmp = code(x, y) tmp = (sin(x) * sinh(y)) / x; end
code[x_, y_] := N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sin x \cdot \sinh y}{x}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (/ (* (sin x) (sinh y)) x))
double code(double x, double y) {
return (sin(x) * sinh(y)) / x;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (sin(x) * sinh(y)) / x
end function
public static double code(double x, double y) {
return (Math.sin(x) * Math.sinh(y)) / x;
}
def code(x, y): return (math.sin(x) * math.sinh(y)) / x
function code(x, y) return Float64(Float64(sin(x) * sinh(y)) / x) end
function tmp = code(x, y) tmp = (sin(x) * sinh(y)) / x; end
code[x_, y_] := N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sin x \cdot \sinh y}{x}
\end{array}
(FPCore (x y) :precision binary64 (* (sin x) (/ (sinh y) x)))
double code(double x, double y) {
return sin(x) * (sinh(y) / x);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = sin(x) * (sinh(y) / x)
end function
public static double code(double x, double y) {
return Math.sin(x) * (Math.sinh(y) / x);
}
def code(x, y): return math.sin(x) * (math.sinh(y) / x)
function code(x, y) return Float64(sin(x) * Float64(sinh(y) / x)) end
function tmp = code(x, y) tmp = sin(x) * (sinh(y) / x); end
code[x_, y_] := N[(N[Sin[x], $MachinePrecision] * N[(N[Sinh[y], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sin x \cdot \frac{\sinh y}{x}
\end{array}
Initial program 89.7%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6499.9
Applied rewrites99.9%
Final simplification99.9%
(FPCore (x y)
:precision binary64
(let* ((t_0
(fma
(fma 0.008333333333333333 (* y y) 0.16666666666666666)
(* y y)
1.0))
(t_1 (/ (* (sin x) (sinh y)) x)))
(if (<= t_1 (- INFINITY))
(/ (* (* (* t_0 (fma -0.16666666666666666 (* x x) 1.0)) x) y) x)
(if (<= t_1 2e-8)
(* (* (/ (sin x) x) t_0) y)
(* 0.5 (- (exp y) (exp (- y))))))))
double code(double x, double y) {
double t_0 = fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0);
double t_1 = (sin(x) * sinh(y)) / x;
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (((t_0 * fma(-0.16666666666666666, (x * x), 1.0)) * x) * y) / x;
} else if (t_1 <= 2e-8) {
tmp = ((sin(x) / x) * t_0) * y;
} else {
tmp = 0.5 * (exp(y) - exp(-y));
}
return tmp;
}
function code(x, y) t_0 = fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) t_1 = Float64(Float64(sin(x) * sinh(y)) / x) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(Float64(Float64(t_0 * fma(-0.16666666666666666, Float64(x * x), 1.0)) * x) * y) / x); elseif (t_1 <= 2e-8) tmp = Float64(Float64(Float64(sin(x) / x) * t_0) * y); else tmp = Float64(0.5 * Float64(exp(y) - exp(Float64(-y)))); end return tmp end
code[x_, y_] := Block[{t$95$0 = N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(N[(N[(t$95$0 * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] * y), $MachinePrecision] / x), $MachinePrecision], If[LessEqual[t$95$1, 2e-8], N[(N[(N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision] * t$95$0), $MachinePrecision] * y), $MachinePrecision], N[(0.5 * N[(N[Exp[y], $MachinePrecision] - N[Exp[(-y)], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right)\\
t_1 := \frac{\sin x \cdot \sinh y}{x}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{\left(\left(t\_0 \cdot \mathsf{fma}\left(-0.16666666666666666, x \cdot x, 1\right)\right) \cdot x\right) \cdot y}{x}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{-8}:\\
\;\;\;\;\left(\frac{\sin x}{x} \cdot t\_0\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \left(e^{y} - e^{-y}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -inf.0Initial program 100.0%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites78.8%
Taylor expanded in x around 0
Applied rewrites67.5%
if -inf.0 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 2e-8Initial program 79.0%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites98.3%
if 2e-8 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 100.0%
Taylor expanded in x around 0
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-exp.f64N/A
rec-expN/A
lower-exp.f64N/A
lower-neg.f6473.1
Applied rewrites73.1%
Final simplification84.1%
(FPCore (x y)
:precision binary64
(let* ((t_0
(fma
(fma 0.008333333333333333 (* y y) 0.16666666666666666)
(* y y)
1.0))
(t_1 (/ (* (sin x) (sinh y)) x)))
(if (<= t_1 (- INFINITY))
(/ (* (* (* t_0 (fma -0.16666666666666666 (* x x) 1.0)) x) y) x)
(if (<= t_1 1e-43)
(* (* (fma (* y y) 0.16666666666666666 1.0) (/ y x)) (sin x))
(/ (* (* t_0 x) y) x)))))
double code(double x, double y) {
double t_0 = fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0);
double t_1 = (sin(x) * sinh(y)) / x;
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (((t_0 * fma(-0.16666666666666666, (x * x), 1.0)) * x) * y) / x;
} else if (t_1 <= 1e-43) {
tmp = (fma((y * y), 0.16666666666666666, 1.0) * (y / x)) * sin(x);
} else {
tmp = ((t_0 * x) * y) / x;
}
return tmp;
}
function code(x, y) t_0 = fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) t_1 = Float64(Float64(sin(x) * sinh(y)) / x) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(Float64(Float64(t_0 * fma(-0.16666666666666666, Float64(x * x), 1.0)) * x) * y) / x); elseif (t_1 <= 1e-43) tmp = Float64(Float64(fma(Float64(y * y), 0.16666666666666666, 1.0) * Float64(y / x)) * sin(x)); else tmp = Float64(Float64(Float64(t_0 * x) * y) / x); end return tmp end
code[x_, y_] := Block[{t$95$0 = N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(N[(N[(t$95$0 * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] * y), $MachinePrecision] / x), $MachinePrecision], If[LessEqual[t$95$1, 1e-43], N[(N[(N[(N[(y * y), $MachinePrecision] * 0.16666666666666666 + 1.0), $MachinePrecision] * N[(y / x), $MachinePrecision]), $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision], N[(N[(N[(t$95$0 * x), $MachinePrecision] * y), $MachinePrecision] / x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right)\\
t_1 := \frac{\sin x \cdot \sinh y}{x}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{\left(\left(t\_0 \cdot \mathsf{fma}\left(-0.16666666666666666, x \cdot x, 1\right)\right) \cdot x\right) \cdot y}{x}\\
\mathbf{elif}\;t\_1 \leq 10^{-43}:\\
\;\;\;\;\left(\mathsf{fma}\left(y \cdot y, 0.16666666666666666, 1\right) \cdot \frac{y}{x}\right) \cdot \sin x\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(t\_0 \cdot x\right) \cdot y}{x}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -inf.0Initial program 100.0%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites78.8%
Taylor expanded in x around 0
Applied rewrites67.5%
if -inf.0 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 1.00000000000000008e-43Initial program 78.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6499.8
Applied rewrites99.8%
Taylor expanded in y around 0
+-commutativeN/A
associate-*r/N/A
*-commutativeN/A
associate-*r/N/A
metadata-evalN/A
associate-*r/N/A
distribute-lft-inN/A
*-commutativeN/A
*-rgt-identityN/A
associate-*r/N/A
metadata-evalN/A
associate-*r/N/A
*-commutativeN/A
associate-*r/N/A
associate-*l/N/A
*-lft-identityN/A
associate-*l/N/A
distribute-lft-outN/A
lower-*.f64N/A
Applied rewrites98.1%
if 1.00000000000000008e-43 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 100.0%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites79.6%
Taylor expanded in x around 0
Applied rewrites62.2%
Final simplification80.7%
(FPCore (x y)
:precision binary64
(let* ((t_0
(fma
(fma 0.008333333333333333 (* y y) 0.16666666666666666)
(* y y)
1.0))
(t_1 (/ (* (sin x) (sinh y)) x)))
(if (<= t_1 (- INFINITY))
(/ (* (* (* t_0 (fma -0.16666666666666666 (* x x) 1.0)) x) y) x)
(if (<= t_1 1e-43) (* (/ y x) (sin x)) (/ (* (* t_0 x) y) x)))))
double code(double x, double y) {
double t_0 = fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0);
double t_1 = (sin(x) * sinh(y)) / x;
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (((t_0 * fma(-0.16666666666666666, (x * x), 1.0)) * x) * y) / x;
} else if (t_1 <= 1e-43) {
tmp = (y / x) * sin(x);
} else {
tmp = ((t_0 * x) * y) / x;
}
return tmp;
}
function code(x, y) t_0 = fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) t_1 = Float64(Float64(sin(x) * sinh(y)) / x) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(Float64(Float64(t_0 * fma(-0.16666666666666666, Float64(x * x), 1.0)) * x) * y) / x); elseif (t_1 <= 1e-43) tmp = Float64(Float64(y / x) * sin(x)); else tmp = Float64(Float64(Float64(t_0 * x) * y) / x); end return tmp end
code[x_, y_] := Block[{t$95$0 = N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(N[(N[(t$95$0 * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] * y), $MachinePrecision] / x), $MachinePrecision], If[LessEqual[t$95$1, 1e-43], N[(N[(y / x), $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision], N[(N[(N[(t$95$0 * x), $MachinePrecision] * y), $MachinePrecision] / x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right)\\
t_1 := \frac{\sin x \cdot \sinh y}{x}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{\left(\left(t\_0 \cdot \mathsf{fma}\left(-0.16666666666666666, x \cdot x, 1\right)\right) \cdot x\right) \cdot y}{x}\\
\mathbf{elif}\;t\_1 \leq 10^{-43}:\\
\;\;\;\;\frac{y}{x} \cdot \sin x\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(t\_0 \cdot x\right) \cdot y}{x}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -inf.0Initial program 100.0%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites78.8%
Taylor expanded in x around 0
Applied rewrites67.5%
if -inf.0 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 1.00000000000000008e-43Initial program 78.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6499.8
Applied rewrites99.8%
Taylor expanded in y around 0
lower-/.f6497.9
Applied rewrites97.9%
if 1.00000000000000008e-43 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 100.0%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites79.6%
Taylor expanded in x around 0
Applied rewrites62.2%
Final simplification80.7%
(FPCore (x y)
:precision binary64
(let* ((t_0
(fma
(fma 0.008333333333333333 (* y y) 0.16666666666666666)
(* y y)
1.0))
(t_1 (/ (* (sin x) (sinh y)) x)))
(if (<= t_1 (- INFINITY))
(/ (* (* (* t_0 (fma -0.16666666666666666 (* x x) 1.0)) x) y) x)
(if (<= t_1 1e-43) (* (/ (sin x) x) y) (/ (* (* t_0 x) y) x)))))
double code(double x, double y) {
double t_0 = fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0);
double t_1 = (sin(x) * sinh(y)) / x;
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (((t_0 * fma(-0.16666666666666666, (x * x), 1.0)) * x) * y) / x;
} else if (t_1 <= 1e-43) {
tmp = (sin(x) / x) * y;
} else {
tmp = ((t_0 * x) * y) / x;
}
return tmp;
}
function code(x, y) t_0 = fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) t_1 = Float64(Float64(sin(x) * sinh(y)) / x) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(Float64(Float64(t_0 * fma(-0.16666666666666666, Float64(x * x), 1.0)) * x) * y) / x); elseif (t_1 <= 1e-43) tmp = Float64(Float64(sin(x) / x) * y); else tmp = Float64(Float64(Float64(t_0 * x) * y) / x); end return tmp end
code[x_, y_] := Block[{t$95$0 = N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(N[(N[(t$95$0 * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] * y), $MachinePrecision] / x), $MachinePrecision], If[LessEqual[t$95$1, 1e-43], N[(N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision] * y), $MachinePrecision], N[(N[(N[(t$95$0 * x), $MachinePrecision] * y), $MachinePrecision] / x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right)\\
t_1 := \frac{\sin x \cdot \sinh y}{x}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{\left(\left(t\_0 \cdot \mathsf{fma}\left(-0.16666666666666666, x \cdot x, 1\right)\right) \cdot x\right) \cdot y}{x}\\
\mathbf{elif}\;t\_1 \leq 10^{-43}:\\
\;\;\;\;\frac{\sin x}{x} \cdot y\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(t\_0 \cdot x\right) \cdot y}{x}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -inf.0Initial program 100.0%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites78.8%
Taylor expanded in x around 0
Applied rewrites67.5%
if -inf.0 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 1.00000000000000008e-43Initial program 78.5%
Taylor expanded in y around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
lower-sin.f6497.9
Applied rewrites97.9%
if 1.00000000000000008e-43 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 100.0%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites79.6%
Taylor expanded in x around 0
Applied rewrites62.2%
Final simplification80.6%
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ (* (sin x) (sinh y)) x))
(t_1
(fma
(fma 0.008333333333333333 (* y y) 0.16666666666666666)
(* y y)
1.0)))
(if (<= t_0 -2e-170)
(/ (* (* (* t_1 (fma -0.16666666666666666 (* x x) 1.0)) x) y) x)
(if (<= t_0 1e-43)
(*
(/
1.0
(fma
(fma
(fma 0.00205026455026455 (* x x) 0.019444444444444445)
(* x x)
0.16666666666666666)
(* x x)
1.0))
y)
(/ (* (* t_1 x) y) x)))))
double code(double x, double y) {
double t_0 = (sin(x) * sinh(y)) / x;
double t_1 = fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0);
double tmp;
if (t_0 <= -2e-170) {
tmp = (((t_1 * fma(-0.16666666666666666, (x * x), 1.0)) * x) * y) / x;
} else if (t_0 <= 1e-43) {
tmp = (1.0 / fma(fma(fma(0.00205026455026455, (x * x), 0.019444444444444445), (x * x), 0.16666666666666666), (x * x), 1.0)) * y;
} else {
tmp = ((t_1 * x) * y) / x;
}
return tmp;
}
function code(x, y) t_0 = Float64(Float64(sin(x) * sinh(y)) / x) t_1 = fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) tmp = 0.0 if (t_0 <= -2e-170) tmp = Float64(Float64(Float64(Float64(t_1 * fma(-0.16666666666666666, Float64(x * x), 1.0)) * x) * y) / x); elseif (t_0 <= 1e-43) tmp = Float64(Float64(1.0 / fma(fma(fma(0.00205026455026455, Float64(x * x), 0.019444444444444445), Float64(x * x), 0.16666666666666666), Float64(x * x), 1.0)) * y); else tmp = Float64(Float64(Float64(t_1 * x) * y) / x); end return tmp end
code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, Block[{t$95$1 = N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision]}, If[LessEqual[t$95$0, -2e-170], N[(N[(N[(N[(t$95$1 * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] * y), $MachinePrecision] / x), $MachinePrecision], If[LessEqual[t$95$0, 1e-43], N[(N[(1.0 / N[(N[(N[(0.00205026455026455 * N[(x * x), $MachinePrecision] + 0.019444444444444445), $MachinePrecision] * N[(x * x), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], N[(N[(N[(t$95$1 * x), $MachinePrecision] * y), $MachinePrecision] / x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sin x \cdot \sinh y}{x}\\
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right)\\
\mathbf{if}\;t\_0 \leq -2 \cdot 10^{-170}:\\
\;\;\;\;\frac{\left(\left(t\_1 \cdot \mathsf{fma}\left(-0.16666666666666666, x \cdot x, 1\right)\right) \cdot x\right) \cdot y}{x}\\
\mathbf{elif}\;t\_0 \leq 10^{-43}:\\
\;\;\;\;\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(0.00205026455026455, x \cdot x, 0.019444444444444445\right), x \cdot x, 0.16666666666666666\right), x \cdot x, 1\right)} \cdot y\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(t\_1 \cdot x\right) \cdot y}{x}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1.99999999999999997e-170Initial program 99.9%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites83.8%
Taylor expanded in x around 0
Applied rewrites65.5%
if -1.99999999999999997e-170 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 1.00000000000000008e-43Initial program 74.4%
Taylor expanded in y around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
lower-sin.f6497.6
Applied rewrites97.6%
Applied rewrites97.5%
Taylor expanded in x around 0
Applied rewrites67.4%
if 1.00000000000000008e-43 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 100.0%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites79.6%
Taylor expanded in x around 0
Applied rewrites62.2%
Final simplification65.4%
(FPCore (x y)
:precision binary64
(let* ((t_0
(fma
(fma 0.008333333333333333 (* y y) 0.16666666666666666)
(* y y)
1.0))
(t_1 (/ (* (sin x) (sinh y)) x)))
(if (<= t_1 -2e-170)
(* (* (fma -0.16666666666666666 (* x x) 1.0) t_0) y)
(if (<= t_1 1e-43)
(*
(/
1.0
(fma
(fma
(fma 0.00205026455026455 (* x x) 0.019444444444444445)
(* x x)
0.16666666666666666)
(* x x)
1.0))
y)
(/ (* (* t_0 x) y) x)))))
double code(double x, double y) {
double t_0 = fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0);
double t_1 = (sin(x) * sinh(y)) / x;
double tmp;
if (t_1 <= -2e-170) {
tmp = (fma(-0.16666666666666666, (x * x), 1.0) * t_0) * y;
} else if (t_1 <= 1e-43) {
tmp = (1.0 / fma(fma(fma(0.00205026455026455, (x * x), 0.019444444444444445), (x * x), 0.16666666666666666), (x * x), 1.0)) * y;
} else {
tmp = ((t_0 * x) * y) / x;
}
return tmp;
}
function code(x, y) t_0 = fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) t_1 = Float64(Float64(sin(x) * sinh(y)) / x) tmp = 0.0 if (t_1 <= -2e-170) tmp = Float64(Float64(fma(-0.16666666666666666, Float64(x * x), 1.0) * t_0) * y); elseif (t_1 <= 1e-43) tmp = Float64(Float64(1.0 / fma(fma(fma(0.00205026455026455, Float64(x * x), 0.019444444444444445), Float64(x * x), 0.16666666666666666), Float64(x * x), 1.0)) * y); else tmp = Float64(Float64(Float64(t_0 * x) * y) / x); end return tmp end
code[x_, y_] := Block[{t$95$0 = N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$1, -2e-170], N[(N[(N[(-0.16666666666666666 * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision] * t$95$0), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t$95$1, 1e-43], N[(N[(1.0 / N[(N[(N[(0.00205026455026455 * N[(x * x), $MachinePrecision] + 0.019444444444444445), $MachinePrecision] * N[(x * x), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], N[(N[(N[(t$95$0 * x), $MachinePrecision] * y), $MachinePrecision] / x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right)\\
t_1 := \frac{\sin x \cdot \sinh y}{x}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{-170}:\\
\;\;\;\;\left(\mathsf{fma}\left(-0.16666666666666666, x \cdot x, 1\right) \cdot t\_0\right) \cdot y\\
\mathbf{elif}\;t\_1 \leq 10^{-43}:\\
\;\;\;\;\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(0.00205026455026455, x \cdot x, 0.019444444444444445\right), x \cdot x, 0.16666666666666666\right), x \cdot x, 1\right)} \cdot y\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(t\_0 \cdot x\right) \cdot y}{x}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1.99999999999999997e-170Initial program 99.9%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites83.9%
Taylor expanded in x around 0
Applied rewrites65.6%
if -1.99999999999999997e-170 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 1.00000000000000008e-43Initial program 74.4%
Taylor expanded in y around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
lower-sin.f6497.6
Applied rewrites97.6%
Applied rewrites97.5%
Taylor expanded in x around 0
Applied rewrites67.4%
if 1.00000000000000008e-43 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 100.0%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites79.6%
Taylor expanded in x around 0
Applied rewrites62.2%
(FPCore (x y)
:precision binary64
(let* ((t_0
(fma
(fma 0.008333333333333333 (* y y) 0.16666666666666666)
(* y y)
1.0))
(t_1 (/ (* (sin x) (sinh y)) x)))
(if (<= t_1 -2e-170)
(* (* (fma -0.16666666666666666 (* x x) 1.0) t_0) y)
(if (<= t_1 1e-43)
(*
(/
1.0
(fma
(fma 0.019444444444444445 (* x x) 0.16666666666666666)
(* x x)
1.0))
y)
(/ (* (* t_0 x) y) x)))))
double code(double x, double y) {
double t_0 = fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0);
double t_1 = (sin(x) * sinh(y)) / x;
double tmp;
if (t_1 <= -2e-170) {
tmp = (fma(-0.16666666666666666, (x * x), 1.0) * t_0) * y;
} else if (t_1 <= 1e-43) {
tmp = (1.0 / fma(fma(0.019444444444444445, (x * x), 0.16666666666666666), (x * x), 1.0)) * y;
} else {
tmp = ((t_0 * x) * y) / x;
}
return tmp;
}
function code(x, y) t_0 = fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) t_1 = Float64(Float64(sin(x) * sinh(y)) / x) tmp = 0.0 if (t_1 <= -2e-170) tmp = Float64(Float64(fma(-0.16666666666666666, Float64(x * x), 1.0) * t_0) * y); elseif (t_1 <= 1e-43) tmp = Float64(Float64(1.0 / fma(fma(0.019444444444444445, Float64(x * x), 0.16666666666666666), Float64(x * x), 1.0)) * y); else tmp = Float64(Float64(Float64(t_0 * x) * y) / x); end return tmp end
code[x_, y_] := Block[{t$95$0 = N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$1, -2e-170], N[(N[(N[(-0.16666666666666666 * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision] * t$95$0), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t$95$1, 1e-43], N[(N[(1.0 / N[(N[(0.019444444444444445 * N[(x * x), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], N[(N[(N[(t$95$0 * x), $MachinePrecision] * y), $MachinePrecision] / x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right)\\
t_1 := \frac{\sin x \cdot \sinh y}{x}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{-170}:\\
\;\;\;\;\left(\mathsf{fma}\left(-0.16666666666666666, x \cdot x, 1\right) \cdot t\_0\right) \cdot y\\
\mathbf{elif}\;t\_1 \leq 10^{-43}:\\
\;\;\;\;\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(0.019444444444444445, x \cdot x, 0.16666666666666666\right), x \cdot x, 1\right)} \cdot y\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(t\_0 \cdot x\right) \cdot y}{x}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1.99999999999999997e-170Initial program 99.9%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites83.9%
Taylor expanded in x around 0
Applied rewrites65.6%
if -1.99999999999999997e-170 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 1.00000000000000008e-43Initial program 74.4%
Taylor expanded in y around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
lower-sin.f6497.6
Applied rewrites97.6%
Applied rewrites97.5%
Taylor expanded in x around 0
Applied rewrites67.4%
if 1.00000000000000008e-43 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 100.0%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites79.6%
Taylor expanded in x around 0
Applied rewrites62.2%
(FPCore (x y)
:precision binary64
(let* ((t_0
(fma
(fma 0.008333333333333333 (* y y) 0.16666666666666666)
(* y y)
1.0))
(t_1 (/ (* (sin x) (sinh y)) x)))
(if (<= t_1 -2e-170)
(* (* (fma -0.16666666666666666 (* x x) 1.0) t_0) y)
(if (<= t_1 1e-50)
(*
(/
1.0
(fma
(fma 0.019444444444444445 (* x x) 0.16666666666666666)
(* x x)
1.0))
y)
(* t_0 y)))))
double code(double x, double y) {
double t_0 = fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0);
double t_1 = (sin(x) * sinh(y)) / x;
double tmp;
if (t_1 <= -2e-170) {
tmp = (fma(-0.16666666666666666, (x * x), 1.0) * t_0) * y;
} else if (t_1 <= 1e-50) {
tmp = (1.0 / fma(fma(0.019444444444444445, (x * x), 0.16666666666666666), (x * x), 1.0)) * y;
} else {
tmp = t_0 * y;
}
return tmp;
}
function code(x, y) t_0 = fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) t_1 = Float64(Float64(sin(x) * sinh(y)) / x) tmp = 0.0 if (t_1 <= -2e-170) tmp = Float64(Float64(fma(-0.16666666666666666, Float64(x * x), 1.0) * t_0) * y); elseif (t_1 <= 1e-50) tmp = Float64(Float64(1.0 / fma(fma(0.019444444444444445, Float64(x * x), 0.16666666666666666), Float64(x * x), 1.0)) * y); else tmp = Float64(t_0 * y); end return tmp end
code[x_, y_] := Block[{t$95$0 = N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$1, -2e-170], N[(N[(N[(-0.16666666666666666 * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision] * t$95$0), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t$95$1, 1e-50], N[(N[(1.0 / N[(N[(0.019444444444444445 * N[(x * x), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], N[(t$95$0 * y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right)\\
t_1 := \frac{\sin x \cdot \sinh y}{x}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{-170}:\\
\;\;\;\;\left(\mathsf{fma}\left(-0.16666666666666666, x \cdot x, 1\right) \cdot t\_0\right) \cdot y\\
\mathbf{elif}\;t\_1 \leq 10^{-50}:\\
\;\;\;\;\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(0.019444444444444445, x \cdot x, 0.16666666666666666\right), x \cdot x, 1\right)} \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_0 \cdot y\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1.99999999999999997e-170Initial program 99.9%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites83.9%
Taylor expanded in x around 0
Applied rewrites65.6%
if -1.99999999999999997e-170 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 1.00000000000000001e-50Initial program 74.3%
Taylor expanded in y around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
lower-sin.f6497.5
Applied rewrites97.5%
Applied rewrites97.5%
Taylor expanded in x around 0
Applied rewrites67.1%
if 1.00000000000000001e-50 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 99.9%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites77.3%
Taylor expanded in x around 0
Applied rewrites61.4%
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ (* (sin x) (sinh y)) x)))
(if (<= t_0 -2e-90)
(fma
(*
(fma (* -0.0001984126984126984 (* x x)) (* x x) -0.16666666666666666)
y)
(* x x)
y)
(if (<= t_0 1e-50)
(*
(/
1.0
(fma
(fma 0.019444444444444445 (* x x) 0.16666666666666666)
(* x x)
1.0))
y)
(*
(fma
(fma 0.008333333333333333 (* y y) 0.16666666666666666)
(* y y)
1.0)
y)))))
double code(double x, double y) {
double t_0 = (sin(x) * sinh(y)) / x;
double tmp;
if (t_0 <= -2e-90) {
tmp = fma((fma((-0.0001984126984126984 * (x * x)), (x * x), -0.16666666666666666) * y), (x * x), y);
} else if (t_0 <= 1e-50) {
tmp = (1.0 / fma(fma(0.019444444444444445, (x * x), 0.16666666666666666), (x * x), 1.0)) * y;
} else {
tmp = fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0) * y;
}
return tmp;
}
function code(x, y) t_0 = Float64(Float64(sin(x) * sinh(y)) / x) tmp = 0.0 if (t_0 <= -2e-90) tmp = fma(Float64(fma(Float64(-0.0001984126984126984 * Float64(x * x)), Float64(x * x), -0.16666666666666666) * y), Float64(x * x), y); elseif (t_0 <= 1e-50) tmp = Float64(Float64(1.0 / fma(fma(0.019444444444444445, Float64(x * x), 0.16666666666666666), Float64(x * x), 1.0)) * y); else tmp = Float64(fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) * y); end return tmp end
code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, -2e-90], N[(N[(N[(N[(-0.0001984126984126984 * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] * y), $MachinePrecision] * N[(x * x), $MachinePrecision] + y), $MachinePrecision], If[LessEqual[t$95$0, 1e-50], N[(N[(1.0 / N[(N[(0.019444444444444445 * N[(x * x), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], N[(N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision] * y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sin x \cdot \sinh y}{x}\\
\mathbf{if}\;t\_0 \leq -2 \cdot 10^{-90}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-0.0001984126984126984 \cdot \left(x \cdot x\right), x \cdot x, -0.16666666666666666\right) \cdot y, x \cdot x, y\right)\\
\mathbf{elif}\;t\_0 \leq 10^{-50}:\\
\;\;\;\;\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(0.019444444444444445, x \cdot x, 0.16666666666666666\right), x \cdot x, 1\right)} \cdot y\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1.99999999999999999e-90Initial program 100.0%
Taylor expanded in y around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
lower-sin.f6416.4
Applied rewrites16.4%
Taylor expanded in x around 0
Applied rewrites25.3%
Taylor expanded in x around inf
Applied rewrites24.7%
if -1.99999999999999999e-90 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 1.00000000000000001e-50Initial program 76.7%
Taylor expanded in y around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
lower-sin.f6497.7
Applied rewrites97.7%
Applied rewrites97.7%
Taylor expanded in x around 0
Applied rewrites65.3%
if 1.00000000000000001e-50 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 99.9%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites77.3%
Taylor expanded in x around 0
Applied rewrites61.4%
Final simplification52.8%
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ (* (sin x) (sinh y)) x)))
(if (<= t_0 -2e-90)
(fma
(*
(fma (* -0.0001984126984126984 (* x x)) (* x x) -0.16666666666666666)
y)
(* x x)
y)
(if (<= t_0 1e-50)
(* (/ 1.0 (fma (* x x) 0.16666666666666666 1.0)) y)
(*
(fma
(fma 0.008333333333333333 (* y y) 0.16666666666666666)
(* y y)
1.0)
y)))))
double code(double x, double y) {
double t_0 = (sin(x) * sinh(y)) / x;
double tmp;
if (t_0 <= -2e-90) {
tmp = fma((fma((-0.0001984126984126984 * (x * x)), (x * x), -0.16666666666666666) * y), (x * x), y);
} else if (t_0 <= 1e-50) {
tmp = (1.0 / fma((x * x), 0.16666666666666666, 1.0)) * y;
} else {
tmp = fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0) * y;
}
return tmp;
}
function code(x, y) t_0 = Float64(Float64(sin(x) * sinh(y)) / x) tmp = 0.0 if (t_0 <= -2e-90) tmp = fma(Float64(fma(Float64(-0.0001984126984126984 * Float64(x * x)), Float64(x * x), -0.16666666666666666) * y), Float64(x * x), y); elseif (t_0 <= 1e-50) tmp = Float64(Float64(1.0 / fma(Float64(x * x), 0.16666666666666666, 1.0)) * y); else tmp = Float64(fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) * y); end return tmp end
code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, -2e-90], N[(N[(N[(N[(-0.0001984126984126984 * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision] + -0.16666666666666666), $MachinePrecision] * y), $MachinePrecision] * N[(x * x), $MachinePrecision] + y), $MachinePrecision], If[LessEqual[t$95$0, 1e-50], N[(N[(1.0 / N[(N[(x * x), $MachinePrecision] * 0.16666666666666666 + 1.0), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], N[(N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision] * y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sin x \cdot \sinh y}{x}\\
\mathbf{if}\;t\_0 \leq -2 \cdot 10^{-90}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-0.0001984126984126984 \cdot \left(x \cdot x\right), x \cdot x, -0.16666666666666666\right) \cdot y, x \cdot x, y\right)\\
\mathbf{elif}\;t\_0 \leq 10^{-50}:\\
\;\;\;\;\frac{1}{\mathsf{fma}\left(x \cdot x, 0.16666666666666666, 1\right)} \cdot y\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1.99999999999999999e-90Initial program 100.0%
Taylor expanded in y around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
lower-sin.f6416.4
Applied rewrites16.4%
Taylor expanded in x around 0
Applied rewrites25.3%
Taylor expanded in x around inf
Applied rewrites24.7%
if -1.99999999999999999e-90 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 1.00000000000000001e-50Initial program 76.7%
Taylor expanded in y around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
lower-sin.f6497.7
Applied rewrites97.7%
Applied rewrites97.7%
Taylor expanded in x around 0
Applied rewrites65.4%
if 1.00000000000000001e-50 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 99.9%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites77.3%
Taylor expanded in x around 0
Applied rewrites61.4%
Final simplification52.8%
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ (* (sin x) (sinh y)) x)))
(if (<= t_0 -1e-219)
(fma (* -0.16666666666666666 y) (* x x) y)
(if (<= t_0 1e-50)
(* (/ 1.0 (fma (* x x) 0.16666666666666666 1.0)) y)
(*
(fma
(fma 0.008333333333333333 (* y y) 0.16666666666666666)
(* y y)
1.0)
y)))))
double code(double x, double y) {
double t_0 = (sin(x) * sinh(y)) / x;
double tmp;
if (t_0 <= -1e-219) {
tmp = fma((-0.16666666666666666 * y), (x * x), y);
} else if (t_0 <= 1e-50) {
tmp = (1.0 / fma((x * x), 0.16666666666666666, 1.0)) * y;
} else {
tmp = fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0) * y;
}
return tmp;
}
function code(x, y) t_0 = Float64(Float64(sin(x) * sinh(y)) / x) tmp = 0.0 if (t_0 <= -1e-219) tmp = fma(Float64(-0.16666666666666666 * y), Float64(x * x), y); elseif (t_0 <= 1e-50) tmp = Float64(Float64(1.0 / fma(Float64(x * x), 0.16666666666666666, 1.0)) * y); else tmp = Float64(fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) * y); end return tmp end
code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, -1e-219], N[(N[(-0.16666666666666666 * y), $MachinePrecision] * N[(x * x), $MachinePrecision] + y), $MachinePrecision], If[LessEqual[t$95$0, 1e-50], N[(N[(1.0 / N[(N[(x * x), $MachinePrecision] * 0.16666666666666666 + 1.0), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], N[(N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision] * y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sin x \cdot \sinh y}{x}\\
\mathbf{if}\;t\_0 \leq -1 \cdot 10^{-219}:\\
\;\;\;\;\mathsf{fma}\left(-0.16666666666666666 \cdot y, x \cdot x, y\right)\\
\mathbf{elif}\;t\_0 \leq 10^{-50}:\\
\;\;\;\;\frac{1}{\mathsf{fma}\left(x \cdot x, 0.16666666666666666, 1\right)} \cdot y\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -1e-219Initial program 99.1%
Taylor expanded in y around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
lower-sin.f6429.1
Applied rewrites29.1%
Taylor expanded in x around 0
Applied rewrites28.7%
Taylor expanded in x around 0
Applied rewrites26.1%
if -1e-219 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 1.00000000000000001e-50Initial program 74.5%
Taylor expanded in y around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
lower-sin.f6497.5
Applied rewrites97.5%
Applied rewrites97.5%
Taylor expanded in x around 0
Applied rewrites67.5%
if 1.00000000000000001e-50 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 99.9%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites77.3%
Taylor expanded in x around 0
Applied rewrites61.4%
(FPCore (x y)
:precision binary64
(let* ((t_0 (fma 0.008333333333333333 (* y y) 0.16666666666666666)))
(if (<= (/ (* (sin x) (sinh y)) x) (- INFINITY))
(/
(*
(* (* (fma t_0 (* y y) 1.0) (fma -0.16666666666666666 (* x x) 1.0)) x)
y)
x)
(* (* (/ (fma (* t_0 y) y 1.0) x) y) (sin x)))))
double code(double x, double y) {
double t_0 = fma(0.008333333333333333, (y * y), 0.16666666666666666);
double tmp;
if (((sin(x) * sinh(y)) / x) <= -((double) INFINITY)) {
tmp = (((fma(t_0, (y * y), 1.0) * fma(-0.16666666666666666, (x * x), 1.0)) * x) * y) / x;
} else {
tmp = ((fma((t_0 * y), y, 1.0) / x) * y) * sin(x);
}
return tmp;
}
function code(x, y) t_0 = fma(0.008333333333333333, Float64(y * y), 0.16666666666666666) tmp = 0.0 if (Float64(Float64(sin(x) * sinh(y)) / x) <= Float64(-Inf)) tmp = Float64(Float64(Float64(Float64(fma(t_0, Float64(y * y), 1.0) * fma(-0.16666666666666666, Float64(x * x), 1.0)) * x) * y) / x); else tmp = Float64(Float64(Float64(fma(Float64(t_0 * y), y, 1.0) / x) * y) * sin(x)); end return tmp end
code[x_, y_] := Block[{t$95$0 = N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision]}, If[LessEqual[N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], (-Infinity)], N[(N[(N[(N[(N[(t$95$0 * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision] * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] * y), $MachinePrecision] / x), $MachinePrecision], N[(N[(N[(N[(N[(t$95$0 * y), $MachinePrecision] * y + 1.0), $MachinePrecision] / x), $MachinePrecision] * y), $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right)\\
\mathbf{if}\;\frac{\sin x \cdot \sinh y}{x} \leq -\infty:\\
\;\;\;\;\frac{\left(\left(\mathsf{fma}\left(t\_0, y \cdot y, 1\right) \cdot \mathsf{fma}\left(-0.16666666666666666, x \cdot x, 1\right)\right) \cdot x\right) \cdot y}{x}\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{\mathsf{fma}\left(t\_0 \cdot y, y, 1\right)}{x} \cdot y\right) \cdot \sin x\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -inf.0Initial program 100.0%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites78.8%
Taylor expanded in x around 0
Applied rewrites67.5%
if -inf.0 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 86.3%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites90.6%
Applied rewrites92.4%
Applied rewrites93.3%
Final simplification87.0%
(FPCore (x y)
:precision binary64
(if (<= (/ (* (sin x) (sinh y)) x) (- INFINITY))
(/
(*
(*
(*
(fma (fma 0.008333333333333333 (* y y) 0.16666666666666666) (* y y) 1.0)
(fma -0.16666666666666666 (* x x) 1.0))
x)
y)
x)
(* (* (/ (fma (* (* y y) 0.008333333333333333) (* y y) 1.0) x) (sin x)) y)))
double code(double x, double y) {
double tmp;
if (((sin(x) * sinh(y)) / x) <= -((double) INFINITY)) {
tmp = (((fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0) * fma(-0.16666666666666666, (x * x), 1.0)) * x) * y) / x;
} else {
tmp = ((fma(((y * y) * 0.008333333333333333), (y * y), 1.0) / x) * sin(x)) * y;
}
return tmp;
}
function code(x, y) tmp = 0.0 if (Float64(Float64(sin(x) * sinh(y)) / x) <= Float64(-Inf)) tmp = Float64(Float64(Float64(Float64(fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) * fma(-0.16666666666666666, Float64(x * x), 1.0)) * x) * y) / x); else tmp = Float64(Float64(Float64(fma(Float64(Float64(y * y) * 0.008333333333333333), Float64(y * y), 1.0) / x) * sin(x)) * y); end return tmp end
code[x_, y_] := If[LessEqual[N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], (-Infinity)], N[(N[(N[(N[(N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision] * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] * y), $MachinePrecision] / x), $MachinePrecision], N[(N[(N[(N[(N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision] / x), $MachinePrecision] * N[Sin[x], $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\sin x \cdot \sinh y}{x} \leq -\infty:\\
\;\;\;\;\frac{\left(\left(\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot \mathsf{fma}\left(-0.16666666666666666, x \cdot x, 1\right)\right) \cdot x\right) \cdot y}{x}\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{\mathsf{fma}\left(\left(y \cdot y\right) \cdot 0.008333333333333333, y \cdot y, 1\right)}{x} \cdot \sin x\right) \cdot y\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -inf.0Initial program 100.0%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites78.8%
Taylor expanded in x around 0
Applied rewrites67.5%
if -inf.0 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 86.3%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites90.6%
Applied rewrites92.4%
Taylor expanded in y around inf
Applied rewrites92.2%
Final simplification86.1%
(FPCore (x y)
:precision binary64
(if (<= (/ (* (sin x) (sinh y)) x) -5e-230)
(fma (* (* -0.16666666666666666 y) x) x y)
(*
(fma (fma 0.008333333333333333 (* y y) 0.16666666666666666) (* y y) 1.0)
y)))
double code(double x, double y) {
double tmp;
if (((sin(x) * sinh(y)) / x) <= -5e-230) {
tmp = fma(((-0.16666666666666666 * y) * x), x, y);
} else {
tmp = fma(fma(0.008333333333333333, (y * y), 0.16666666666666666), (y * y), 1.0) * y;
}
return tmp;
}
function code(x, y) tmp = 0.0 if (Float64(Float64(sin(x) * sinh(y)) / x) <= -5e-230) tmp = fma(Float64(Float64(-0.16666666666666666 * y) * x), x, y); else tmp = Float64(fma(fma(0.008333333333333333, Float64(y * y), 0.16666666666666666), Float64(y * y), 1.0) * y); end return tmp end
code[x_, y_] := If[LessEqual[N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], -5e-230], N[(N[(N[(-0.16666666666666666 * y), $MachinePrecision] * x), $MachinePrecision] * x + y), $MachinePrecision], N[(N[(N[(0.008333333333333333 * N[(y * y), $MachinePrecision] + 0.16666666666666666), $MachinePrecision] * N[(y * y), $MachinePrecision] + 1.0), $MachinePrecision] * y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\sin x \cdot \sinh y}{x} \leq -5 \cdot 10^{-230}:\\
\;\;\;\;\mathsf{fma}\left(\left(-0.16666666666666666 \cdot y\right) \cdot x, x, y\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333, y \cdot y, 0.16666666666666666\right), y \cdot y, 1\right) \cdot y\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < -5.00000000000000035e-230Initial program 99.1%
Taylor expanded in y around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
lower-sin.f6432.3
Applied rewrites32.3%
Taylor expanded in x around 0
Applied rewrites27.6%
Taylor expanded in x around 0
Applied rewrites25.1%
Applied rewrites25.1%
if -5.00000000000000035e-230 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 84.7%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites89.1%
Taylor expanded in x around 0
Applied rewrites49.6%
(FPCore (x y) :precision binary64 (if (<= (/ (* (sin x) (sinh y)) x) 2e-205) (fma (* (* -0.16666666666666666 y) x) x y) (/ (* x y) x)))
double code(double x, double y) {
double tmp;
if (((sin(x) * sinh(y)) / x) <= 2e-205) {
tmp = fma(((-0.16666666666666666 * y) * x), x, y);
} else {
tmp = (x * y) / x;
}
return tmp;
}
function code(x, y) tmp = 0.0 if (Float64(Float64(sin(x) * sinh(y)) / x) <= 2e-205) tmp = fma(Float64(Float64(-0.16666666666666666 * y) * x), x, y); else tmp = Float64(Float64(x * y) / x); end return tmp end
code[x_, y_] := If[LessEqual[N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], 2e-205], N[(N[(N[(-0.16666666666666666 * y), $MachinePrecision] * x), $MachinePrecision] * x + y), $MachinePrecision], N[(N[(x * y), $MachinePrecision] / x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\sin x \cdot \sinh y}{x} \leq 2 \cdot 10^{-205}:\\
\;\;\;\;\mathsf{fma}\left(\left(-0.16666666666666666 \cdot y\right) \cdot x, x, y\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot y}{x}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) < 2e-205Initial program 84.4%
Taylor expanded in y around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
lower-sin.f6463.7
Applied rewrites63.7%
Taylor expanded in x around 0
Applied rewrites31.8%
Taylor expanded in x around 0
Applied rewrites30.7%
Applied rewrites30.7%
if 2e-205 < (/.f64 (*.f64 (sin.f64 x) (sinh.f64 y)) x) Initial program 99.8%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
lower-sin.f6425.1
Applied rewrites25.1%
Taylor expanded in x around 0
Applied rewrites23.4%
(FPCore (x y) :precision binary64 (fma (* (* -0.16666666666666666 y) x) x y))
double code(double x, double y) {
return fma(((-0.16666666666666666 * y) * x), x, y);
}
function code(x, y) return fma(Float64(Float64(-0.16666666666666666 * y) * x), x, y) end
code[x_, y_] := N[(N[(N[(-0.16666666666666666 * y), $MachinePrecision] * x), $MachinePrecision] * x + y), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(\left(-0.16666666666666666 \cdot y\right) \cdot x, x, y\right)
\end{array}
Initial program 89.7%
Taylor expanded in y around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
lower-sin.f6450.4
Applied rewrites50.4%
Taylor expanded in x around 0
Applied rewrites33.0%
Taylor expanded in x around 0
Applied rewrites30.1%
Applied rewrites30.1%
(FPCore (x y) :precision binary64 (fma (* -0.16666666666666666 y) (* x x) y))
double code(double x, double y) {
return fma((-0.16666666666666666 * y), (x * x), y);
}
function code(x, y) return fma(Float64(-0.16666666666666666 * y), Float64(x * x), y) end
code[x_, y_] := N[(N[(-0.16666666666666666 * y), $MachinePrecision] * N[(x * x), $MachinePrecision] + y), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(-0.16666666666666666 \cdot y, x \cdot x, y\right)
\end{array}
Initial program 89.7%
Taylor expanded in y around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
lower-sin.f6450.4
Applied rewrites50.4%
Taylor expanded in x around 0
Applied rewrites33.0%
Taylor expanded in x around 0
Applied rewrites30.1%
(FPCore (x y) :precision binary64 (* 1.0 y))
double code(double x, double y) {
return 1.0 * y;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 * y
end function
public static double code(double x, double y) {
return 1.0 * y;
}
def code(x, y): return 1.0 * y
function code(x, y) return Float64(1.0 * y) end
function tmp = code(x, y) tmp = 1.0 * y; end
code[x_, y_] := N[(1.0 * y), $MachinePrecision]
\begin{array}{l}
\\
1 \cdot y
\end{array}
Initial program 89.7%
Taylor expanded in y around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
lower-sin.f6450.4
Applied rewrites50.4%
Taylor expanded in x around 0
Applied rewrites24.2%
(FPCore (x y) :precision binary64 (* (sin x) (/ (sinh y) x)))
double code(double x, double y) {
return sin(x) * (sinh(y) / x);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = sin(x) * (sinh(y) / x)
end function
public static double code(double x, double y) {
return Math.sin(x) * (Math.sinh(y) / x);
}
def code(x, y): return math.sin(x) * (math.sinh(y) / x)
function code(x, y) return Float64(sin(x) * Float64(sinh(y) / x)) end
function tmp = code(x, y) tmp = sin(x) * (sinh(y) / x); end
code[x_, y_] := N[(N[Sin[x], $MachinePrecision] * N[(N[Sinh[y], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sin x \cdot \frac{\sinh y}{x}
\end{array}
herbie shell --seed 2024244
(FPCore (x y)
:name "Linear.Quaternion:$ccosh from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (* (sin x) (/ (sinh y) x)))
(/ (* (sin x) (sinh y)) x))