
(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 29 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 90.9%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* (* y y) 0.0001984126984126984))
(t_1
(/
x
(* y (+ 1.0 (* (* y y) (+ 0.16666666666666666 (* y (* y t_0)))))))))
(if (<= y 22.0)
(*
(sin x)
(/
(*
y
(+
1.0
(*
(* y y)
(+ 0.16666666666666666 (* y (* y (+ 0.008333333333333333 t_0)))))))
x))
(if (<= y 9e+19)
(/ (* (* x (+ 1.0 (* x (* x -0.16666666666666666)))) (sinh y)) x)
(if (<= y 1.1e+42)
(/
(*
x
(+
1.0
(*
x
(* x (+ -0.16666666666666666 (* 0.008333333333333333 (* x x)))))))
t_1)
(/ (sin x) t_1))))))
double code(double x, double y) {
double t_0 = (y * y) * 0.0001984126984126984;
double t_1 = x / (y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * t_0))))));
double tmp;
if (y <= 22.0) {
tmp = sin(x) * ((y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + t_0))))))) / x);
} else if (y <= 9e+19) {
tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * sinh(y)) / x;
} else if (y <= 1.1e+42) {
tmp = (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))))) / t_1;
} else {
tmp = sin(x) / t_1;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (y * y) * 0.0001984126984126984d0
t_1 = x / (y * (1.0d0 + ((y * y) * (0.16666666666666666d0 + (y * (y * t_0))))))
if (y <= 22.0d0) then
tmp = sin(x) * ((y * (1.0d0 + ((y * y) * (0.16666666666666666d0 + (y * (y * (0.008333333333333333d0 + t_0))))))) / x)
else if (y <= 9d+19) then
tmp = ((x * (1.0d0 + (x * (x * (-0.16666666666666666d0))))) * sinh(y)) / x
else if (y <= 1.1d+42) then
tmp = (x * (1.0d0 + (x * (x * ((-0.16666666666666666d0) + (0.008333333333333333d0 * (x * x))))))) / t_1
else
tmp = sin(x) / t_1
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = (y * y) * 0.0001984126984126984;
double t_1 = x / (y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * t_0))))));
double tmp;
if (y <= 22.0) {
tmp = Math.sin(x) * ((y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + t_0))))))) / x);
} else if (y <= 9e+19) {
tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * Math.sinh(y)) / x;
} else if (y <= 1.1e+42) {
tmp = (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))))) / t_1;
} else {
tmp = Math.sin(x) / t_1;
}
return tmp;
}
def code(x, y): t_0 = (y * y) * 0.0001984126984126984 t_1 = x / (y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * t_0)))))) tmp = 0 if y <= 22.0: tmp = math.sin(x) * ((y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + t_0))))))) / x) elif y <= 9e+19: tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * math.sinh(y)) / x elif y <= 1.1e+42: tmp = (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))))) / t_1 else: tmp = math.sin(x) / t_1 return tmp
function code(x, y) t_0 = Float64(Float64(y * y) * 0.0001984126984126984) t_1 = Float64(x / Float64(y * Float64(1.0 + Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(y * Float64(y * t_0))))))) tmp = 0.0 if (y <= 22.0) tmp = Float64(sin(x) * Float64(Float64(y * Float64(1.0 + Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(y * Float64(y * Float64(0.008333333333333333 + t_0))))))) / x)); elseif (y <= 9e+19) tmp = Float64(Float64(Float64(x * Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666)))) * sinh(y)) / x); elseif (y <= 1.1e+42) tmp = Float64(Float64(x * Float64(1.0 + Float64(x * Float64(x * Float64(-0.16666666666666666 + Float64(0.008333333333333333 * Float64(x * x))))))) / t_1); else tmp = Float64(sin(x) / t_1); end return tmp end
function tmp_2 = code(x, y) t_0 = (y * y) * 0.0001984126984126984; t_1 = x / (y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * t_0)))))); tmp = 0.0; if (y <= 22.0) tmp = sin(x) * ((y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + t_0))))))) / x); elseif (y <= 9e+19) tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * sinh(y)) / x; elseif (y <= 1.1e+42) tmp = (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))))) / t_1; else tmp = sin(x) / t_1; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]}, Block[{t$95$1 = N[(x / N[(y * N[(1.0 + N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(y * N[(y * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 22.0], N[(N[Sin[x], $MachinePrecision] * N[(N[(y * N[(1.0 + N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(y * N[(y * N[(0.008333333333333333 + t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9e+19], N[(N[(N[(x * N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], If[LessEqual[y, 1.1e+42], N[(N[(x * N[(1.0 + N[(x * N[(x * N[(-0.16666666666666666 + N[(0.008333333333333333 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], N[(N[Sin[x], $MachinePrecision] / t$95$1), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(y \cdot y\right) \cdot 0.0001984126984126984\\
t_1 := \frac{x}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot t\_0\right)\right)\right)}\\
\mathbf{if}\;y \leq 22:\\
\;\;\;\;\sin x \cdot \frac{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + t\_0\right)\right)\right)\right)}{x}\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+19}:\\
\;\;\;\;\frac{\left(x \cdot \left(1 + x \cdot \left(x \cdot -0.16666666666666666\right)\right)\right) \cdot \sinh y}{x}\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{+42}:\\
\;\;\;\;\frac{x \cdot \left(1 + x \cdot \left(x \cdot \left(-0.16666666666666666 + 0.008333333333333333 \cdot \left(x \cdot x\right)\right)\right)\right)}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin x}{t\_1}\\
\end{array}
\end{array}
if y < 22Initial program 88.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6495.4%
Simplified95.4%
if 22 < y < 9e19Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64100.0%
Simplified100.0%
if 9e19 < y < 1.1000000000000001e42Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Applied egg-rr100.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f643.7%
Simplified3.7%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f643.7%
Simplified3.7%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
if 1.1000000000000001e42 < y Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Applied egg-rr100.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
Final simplification96.5%
(FPCore (x y)
:precision binary64
(let* ((t_0
(/
x
(*
y
(+
1.0
(*
(* y y)
(+
0.16666666666666666
(* y (* y (* (* y y) 0.0001984126984126984))))))))))
(if (<= y 22.0)
(*
(sin x)
(/
(*
y
(+
1.0
(* y (* y (+ 0.16666666666666666 (* (* y y) 0.008333333333333333))))))
x))
(if (<= y 1.7e+22)
(/ (* (* x (+ 1.0 (* x (* x -0.16666666666666666)))) (sinh y)) x)
(if (<= y 1.1e+42)
(/
(*
x
(+
1.0
(*
x
(* x (+ -0.16666666666666666 (* 0.008333333333333333 (* x x)))))))
t_0)
(/ (sin x) t_0))))))
double code(double x, double y) {
double t_0 = x / (y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984)))))));
double tmp;
if (y <= 22.0) {
tmp = sin(x) * ((y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))))) / x);
} else if (y <= 1.7e+22) {
tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * sinh(y)) / x;
} else if (y <= 1.1e+42) {
tmp = (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))))) / 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 = x / (y * (1.0d0 + ((y * y) * (0.16666666666666666d0 + (y * (y * ((y * y) * 0.0001984126984126984d0)))))))
if (y <= 22.0d0) then
tmp = sin(x) * ((y * (1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * 0.008333333333333333d0)))))) / x)
else if (y <= 1.7d+22) then
tmp = ((x * (1.0d0 + (x * (x * (-0.16666666666666666d0))))) * sinh(y)) / x
else if (y <= 1.1d+42) then
tmp = (x * (1.0d0 + (x * (x * ((-0.16666666666666666d0) + (0.008333333333333333d0 * (x * x))))))) / 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 = x / (y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984)))))));
double tmp;
if (y <= 22.0) {
tmp = Math.sin(x) * ((y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))))) / x);
} else if (y <= 1.7e+22) {
tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * Math.sinh(y)) / x;
} else if (y <= 1.1e+42) {
tmp = (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))))) / t_0;
} else {
tmp = Math.sin(x) / t_0;
}
return tmp;
}
def code(x, y): t_0 = x / (y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984))))))) tmp = 0 if y <= 22.0: tmp = math.sin(x) * ((y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))))) / x) elif y <= 1.7e+22: tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * math.sinh(y)) / x elif y <= 1.1e+42: tmp = (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))))) / t_0 else: tmp = math.sin(x) / t_0 return tmp
function code(x, y) t_0 = Float64(x / Float64(y * Float64(1.0 + Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(y * Float64(y * Float64(Float64(y * y) * 0.0001984126984126984)))))))) tmp = 0.0 if (y <= 22.0) tmp = Float64(sin(x) * Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * 0.008333333333333333)))))) / x)); elseif (y <= 1.7e+22) tmp = Float64(Float64(Float64(x * Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666)))) * sinh(y)) / x); elseif (y <= 1.1e+42) tmp = Float64(Float64(x * Float64(1.0 + Float64(x * Float64(x * Float64(-0.16666666666666666 + Float64(0.008333333333333333 * Float64(x * x))))))) / t_0); else tmp = Float64(sin(x) / t_0); end return tmp end
function tmp_2 = code(x, y) t_0 = x / (y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984))))))); tmp = 0.0; if (y <= 22.0) tmp = sin(x) * ((y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))))) / x); elseif (y <= 1.7e+22) tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * sinh(y)) / x; elseif (y <= 1.1e+42) tmp = (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))))) / t_0; else tmp = sin(x) / t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(x / N[(y * N[(1.0 + N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 22.0], N[(N[Sin[x], $MachinePrecision] * N[(N[(y * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.7e+22], N[(N[(N[(x * N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], If[LessEqual[y, 1.1e+42], N[(N[(x * N[(1.0 + N[(x * N[(x * N[(-0.16666666666666666 + N[(0.008333333333333333 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], N[(N[Sin[x], $MachinePrecision] / t$95$0), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(\left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}\\
\mathbf{if}\;y \leq 22:\\
\;\;\;\;\sin x \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\right)}{x}\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{+22}:\\
\;\;\;\;\frac{\left(x \cdot \left(1 + x \cdot \left(x \cdot -0.16666666666666666\right)\right)\right) \cdot \sinh y}{x}\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{+42}:\\
\;\;\;\;\frac{x \cdot \left(1 + x \cdot \left(x \cdot \left(-0.16666666666666666 + 0.008333333333333333 \cdot \left(x \cdot x\right)\right)\right)\right)}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin x}{t\_0}\\
\end{array}
\end{array}
if y < 22Initial program 88.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6493.7%
Simplified93.7%
if 22 < y < 1.7e22Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64100.0%
Simplified100.0%
if 1.7e22 < y < 1.1000000000000001e42Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Applied egg-rr100.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f643.7%
Simplified3.7%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f643.7%
Simplified3.7%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
if 1.1000000000000001e42 < y Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Applied egg-rr100.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
Final simplification95.2%
(FPCore (x y)
:precision binary64
(let* ((t_0
(*
(sin x)
(/
(*
y
(+
1.0
(*
y
(* y (+ 0.16666666666666666 (* (* y y) 0.008333333333333333))))))
x))))
(if (<= y 22.0)
t_0
(if (<= y 1.8e+61)
(/ (* (* x (+ 1.0 (* x (* x -0.16666666666666666)))) (sinh y)) x)
t_0))))
double code(double x, double y) {
double t_0 = sin(x) * ((y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))))) / x);
double tmp;
if (y <= 22.0) {
tmp = t_0;
} else if (y <= 1.8e+61) {
tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * sinh(y)) / x;
} else {
tmp = 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 = sin(x) * ((y * (1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * 0.008333333333333333d0)))))) / x)
if (y <= 22.0d0) then
tmp = t_0
else if (y <= 1.8d+61) then
tmp = ((x * (1.0d0 + (x * (x * (-0.16666666666666666d0))))) * sinh(y)) / x
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = Math.sin(x) * ((y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))))) / x);
double tmp;
if (y <= 22.0) {
tmp = t_0;
} else if (y <= 1.8e+61) {
tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * Math.sinh(y)) / x;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = math.sin(x) * ((y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))))) / x) tmp = 0 if y <= 22.0: tmp = t_0 elif y <= 1.8e+61: tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * math.sinh(y)) / x else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(sin(x) * Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * 0.008333333333333333)))))) / x)) tmp = 0.0 if (y <= 22.0) tmp = t_0; elseif (y <= 1.8e+61) tmp = Float64(Float64(Float64(x * Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666)))) * sinh(y)) / x); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = sin(x) * ((y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))))) / x); tmp = 0.0; if (y <= 22.0) tmp = t_0; elseif (y <= 1.8e+61) tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * sinh(y)) / x; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(N[Sin[x], $MachinePrecision] * N[(N[(y * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 22.0], t$95$0, If[LessEqual[y, 1.8e+61], N[(N[(N[(x * N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin x \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\right)}{x}\\
\mathbf{if}\;y \leq 22:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{+61}:\\
\;\;\;\;\frac{\left(x \cdot \left(1 + x \cdot \left(x \cdot -0.16666666666666666\right)\right)\right) \cdot \sinh y}{x}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y < 22 or 1.80000000000000005e61 < y Initial program 90.4%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6494.9%
Simplified94.9%
if 22 < y < 1.80000000000000005e61Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6473.3%
Simplified73.3%
(FPCore (x y)
:precision binary64
(if (<= y 22.0)
(*
(sin x)
(*
y
(/
(+
1.0
(* y (* y (+ 0.16666666666666666 (* y (* y 0.008333333333333333))))))
x)))
(if (<= y 5.6e+102)
(/ (* (* x (+ 1.0 (* x (* x -0.16666666666666666)))) (sinh y)) x)
(* (/ (* (sin x) 0.16666666666666666) x) (* y (* y y))))))
double code(double x, double y) {
double tmp;
if (y <= 22.0) {
tmp = sin(x) * (y * ((1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333)))))) / x));
} else if (y <= 5.6e+102) {
tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * sinh(y)) / x;
} else {
tmp = ((sin(x) * 0.16666666666666666) / x) * (y * (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 <= 22.0d0) then
tmp = sin(x) * (y * ((1.0d0 + (y * (y * (0.16666666666666666d0 + (y * (y * 0.008333333333333333d0)))))) / x))
else if (y <= 5.6d+102) then
tmp = ((x * (1.0d0 + (x * (x * (-0.16666666666666666d0))))) * sinh(y)) / x
else
tmp = ((sin(x) * 0.16666666666666666d0) / x) * (y * (y * y))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 22.0) {
tmp = Math.sin(x) * (y * ((1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333)))))) / x));
} else if (y <= 5.6e+102) {
tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * Math.sinh(y)) / x;
} else {
tmp = ((Math.sin(x) * 0.16666666666666666) / x) * (y * (y * y));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 22.0: tmp = math.sin(x) * (y * ((1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333)))))) / x)) elif y <= 5.6e+102: tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * math.sinh(y)) / x else: tmp = ((math.sin(x) * 0.16666666666666666) / x) * (y * (y * y)) return tmp
function code(x, y) tmp = 0.0 if (y <= 22.0) tmp = Float64(sin(x) * Float64(y * Float64(Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(y * Float64(y * 0.008333333333333333)))))) / x))); elseif (y <= 5.6e+102) tmp = Float64(Float64(Float64(x * Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666)))) * sinh(y)) / x); else tmp = Float64(Float64(Float64(sin(x) * 0.16666666666666666) / x) * Float64(y * Float64(y * y))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 22.0) tmp = sin(x) * (y * ((1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333)))))) / x)); elseif (y <= 5.6e+102) tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * sinh(y)) / x; else tmp = ((sin(x) * 0.16666666666666666) / x) * (y * (y * y)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 22.0], N[(N[Sin[x], $MachinePrecision] * N[(y * N[(N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(y * N[(y * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.6e+102], N[(N[(N[(x * N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(N[(N[(N[Sin[x], $MachinePrecision] * 0.16666666666666666), $MachinePrecision] / x), $MachinePrecision] * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 22:\\
\;\;\;\;\sin x \cdot \left(y \cdot \frac{1 + y \cdot \left(y \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot 0.008333333333333333\right)\right)\right)}{x}\right)\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{+102}:\\
\;\;\;\;\frac{\left(x \cdot \left(1 + x \cdot \left(x \cdot -0.16666666666666666\right)\right)\right) \cdot \sinh y}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin x \cdot 0.16666666666666666}{x} \cdot \left(y \cdot \left(y \cdot y\right)\right)\\
\end{array}
\end{array}
if y < 22Initial program 88.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
*-commutativeN/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
Simplified92.7%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6492.7%
Simplified92.7%
if 22 < y < 5.60000000000000037e102Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6471.4%
Simplified71.4%
if 5.60000000000000037e102 < y Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified90.9%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
(FPCore (x y)
:precision binary64
(if (<= y 22.0)
(* y (* (+ 1.0 (* (* y y) 0.16666666666666666)) (/ (sin x) x)))
(if (<= y 5.6e+102)
(/ (* (* x (+ 1.0 (* x (* x -0.16666666666666666)))) (sinh y)) x)
(* (/ (* (sin x) 0.16666666666666666) x) (* y (* y y))))))
double code(double x, double y) {
double tmp;
if (y <= 22.0) {
tmp = y * ((1.0 + ((y * y) * 0.16666666666666666)) * (sin(x) / x));
} else if (y <= 5.6e+102) {
tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * sinh(y)) / x;
} else {
tmp = ((sin(x) * 0.16666666666666666) / x) * (y * (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 <= 22.0d0) then
tmp = y * ((1.0d0 + ((y * y) * 0.16666666666666666d0)) * (sin(x) / x))
else if (y <= 5.6d+102) then
tmp = ((x * (1.0d0 + (x * (x * (-0.16666666666666666d0))))) * sinh(y)) / x
else
tmp = ((sin(x) * 0.16666666666666666d0) / x) * (y * (y * y))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 22.0) {
tmp = y * ((1.0 + ((y * y) * 0.16666666666666666)) * (Math.sin(x) / x));
} else if (y <= 5.6e+102) {
tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * Math.sinh(y)) / x;
} else {
tmp = ((Math.sin(x) * 0.16666666666666666) / x) * (y * (y * y));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 22.0: tmp = y * ((1.0 + ((y * y) * 0.16666666666666666)) * (math.sin(x) / x)) elif y <= 5.6e+102: tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * math.sinh(y)) / x else: tmp = ((math.sin(x) * 0.16666666666666666) / x) * (y * (y * y)) return tmp
function code(x, y) tmp = 0.0 if (y <= 22.0) tmp = Float64(y * Float64(Float64(1.0 + Float64(Float64(y * y) * 0.16666666666666666)) * Float64(sin(x) / x))); elseif (y <= 5.6e+102) tmp = Float64(Float64(Float64(x * Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666)))) * sinh(y)) / x); else tmp = Float64(Float64(Float64(sin(x) * 0.16666666666666666) / x) * Float64(y * Float64(y * y))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 22.0) tmp = y * ((1.0 + ((y * y) * 0.16666666666666666)) * (sin(x) / x)); elseif (y <= 5.6e+102) tmp = ((x * (1.0 + (x * (x * -0.16666666666666666)))) * sinh(y)) / x; else tmp = ((sin(x) * 0.16666666666666666) / x) * (y * (y * y)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 22.0], N[(y * N[(N[(1.0 + N[(N[(y * y), $MachinePrecision] * 0.16666666666666666), $MachinePrecision]), $MachinePrecision] * N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.6e+102], N[(N[(N[(x * N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(N[(N[(N[Sin[x], $MachinePrecision] * 0.16666666666666666), $MachinePrecision] / x), $MachinePrecision] * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 22:\\
\;\;\;\;y \cdot \left(\left(1 + \left(y \cdot y\right) \cdot 0.16666666666666666\right) \cdot \frac{\sin x}{x}\right)\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{+102}:\\
\;\;\;\;\frac{\left(x \cdot \left(1 + x \cdot \left(x \cdot -0.16666666666666666\right)\right)\right) \cdot \sinh y}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin x \cdot 0.16666666666666666}{x} \cdot \left(y \cdot \left(y \cdot y\right)\right)\\
\end{array}
\end{array}
if y < 22Initial program 88.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified86.1%
if 22 < y < 5.60000000000000037e102Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6471.4%
Simplified71.4%
if 5.60000000000000037e102 < y Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified90.9%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
Final simplification87.1%
(FPCore (x y)
:precision binary64
(let* ((t_0 (+ 1.0 (* (* y y) 0.16666666666666666))))
(if (<= y 22.0)
(* y (* t_0 (/ (sin x) x)))
(if (<= y 3.2e+71) (sinh y) (* (sin x) (/ (* y t_0) x))))))
double code(double x, double y) {
double t_0 = 1.0 + ((y * y) * 0.16666666666666666);
double tmp;
if (y <= 22.0) {
tmp = y * (t_0 * (sin(x) / x));
} else if (y <= 3.2e+71) {
tmp = sinh(y);
} else {
tmp = sin(x) * ((y * t_0) / x);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = 1.0d0 + ((y * y) * 0.16666666666666666d0)
if (y <= 22.0d0) then
tmp = y * (t_0 * (sin(x) / x))
else if (y <= 3.2d+71) then
tmp = sinh(y)
else
tmp = sin(x) * ((y * t_0) / x)
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = 1.0 + ((y * y) * 0.16666666666666666);
double tmp;
if (y <= 22.0) {
tmp = y * (t_0 * (Math.sin(x) / x));
} else if (y <= 3.2e+71) {
tmp = Math.sinh(y);
} else {
tmp = Math.sin(x) * ((y * t_0) / x);
}
return tmp;
}
def code(x, y): t_0 = 1.0 + ((y * y) * 0.16666666666666666) tmp = 0 if y <= 22.0: tmp = y * (t_0 * (math.sin(x) / x)) elif y <= 3.2e+71: tmp = math.sinh(y) else: tmp = math.sin(x) * ((y * t_0) / x) return tmp
function code(x, y) t_0 = Float64(1.0 + Float64(Float64(y * y) * 0.16666666666666666)) tmp = 0.0 if (y <= 22.0) tmp = Float64(y * Float64(t_0 * Float64(sin(x) / x))); elseif (y <= 3.2e+71) tmp = sinh(y); else tmp = Float64(sin(x) * Float64(Float64(y * t_0) / x)); end return tmp end
function tmp_2 = code(x, y) t_0 = 1.0 + ((y * y) * 0.16666666666666666); tmp = 0.0; if (y <= 22.0) tmp = y * (t_0 * (sin(x) / x)); elseif (y <= 3.2e+71) tmp = sinh(y); else tmp = sin(x) * ((y * t_0) / x); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(1.0 + N[(N[(y * y), $MachinePrecision] * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 22.0], N[(y * N[(t$95$0 * N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.2e+71], N[Sinh[y], $MachinePrecision], N[(N[Sin[x], $MachinePrecision] * N[(N[(y * t$95$0), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 + \left(y \cdot y\right) \cdot 0.16666666666666666\\
\mathbf{if}\;y \leq 22:\\
\;\;\;\;y \cdot \left(t\_0 \cdot \frac{\sin x}{x}\right)\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{+71}:\\
\;\;\;\;\sinh y\\
\mathbf{else}:\\
\;\;\;\;\sin x \cdot \frac{y \cdot t\_0}{x}\\
\end{array}
\end{array}
if y < 22Initial program 88.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified86.1%
if 22 < y < 3.20000000000000023e71Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in x around 0
Simplified73.7%
*-commutativeN/A
div-invN/A
associate-*l*N/A
inv-powN/A
pow-plusN/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
sinh-lowering-sinh.f6473.7%
Applied egg-rr73.7%
if 3.20000000000000023e71 < y Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
Final simplification87.5%
(FPCore (x y)
:precision binary64
(if (<= y 22.0)
(* y (* (+ 1.0 (* (* y y) 0.16666666666666666)) (/ (sin x) x)))
(if (<= y 5.6e+102)
(sinh y)
(* (/ (* (sin x) 0.16666666666666666) x) (* y (* y y))))))
double code(double x, double y) {
double tmp;
if (y <= 22.0) {
tmp = y * ((1.0 + ((y * y) * 0.16666666666666666)) * (sin(x) / x));
} else if (y <= 5.6e+102) {
tmp = sinh(y);
} else {
tmp = ((sin(x) * 0.16666666666666666) / x) * (y * (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 <= 22.0d0) then
tmp = y * ((1.0d0 + ((y * y) * 0.16666666666666666d0)) * (sin(x) / x))
else if (y <= 5.6d+102) then
tmp = sinh(y)
else
tmp = ((sin(x) * 0.16666666666666666d0) / x) * (y * (y * y))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 22.0) {
tmp = y * ((1.0 + ((y * y) * 0.16666666666666666)) * (Math.sin(x) / x));
} else if (y <= 5.6e+102) {
tmp = Math.sinh(y);
} else {
tmp = ((Math.sin(x) * 0.16666666666666666) / x) * (y * (y * y));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 22.0: tmp = y * ((1.0 + ((y * y) * 0.16666666666666666)) * (math.sin(x) / x)) elif y <= 5.6e+102: tmp = math.sinh(y) else: tmp = ((math.sin(x) * 0.16666666666666666) / x) * (y * (y * y)) return tmp
function code(x, y) tmp = 0.0 if (y <= 22.0) tmp = Float64(y * Float64(Float64(1.0 + Float64(Float64(y * y) * 0.16666666666666666)) * Float64(sin(x) / x))); elseif (y <= 5.6e+102) tmp = sinh(y); else tmp = Float64(Float64(Float64(sin(x) * 0.16666666666666666) / x) * Float64(y * Float64(y * y))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 22.0) tmp = y * ((1.0 + ((y * y) * 0.16666666666666666)) * (sin(x) / x)); elseif (y <= 5.6e+102) tmp = sinh(y); else tmp = ((sin(x) * 0.16666666666666666) / x) * (y * (y * y)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 22.0], N[(y * N[(N[(1.0 + N[(N[(y * y), $MachinePrecision] * 0.16666666666666666), $MachinePrecision]), $MachinePrecision] * N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.6e+102], N[Sinh[y], $MachinePrecision], N[(N[(N[(N[Sin[x], $MachinePrecision] * 0.16666666666666666), $MachinePrecision] / x), $MachinePrecision] * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 22:\\
\;\;\;\;y \cdot \left(\left(1 + \left(y \cdot y\right) \cdot 0.16666666666666666\right) \cdot \frac{\sin x}{x}\right)\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{+102}:\\
\;\;\;\;\sinh y\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin x \cdot 0.16666666666666666}{x} \cdot \left(y \cdot \left(y \cdot y\right)\right)\\
\end{array}
\end{array}
if y < 22Initial program 88.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified86.1%
if 22 < y < 5.60000000000000037e102Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in x around 0
Simplified76.2%
*-commutativeN/A
div-invN/A
associate-*l*N/A
inv-powN/A
pow-plusN/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
sinh-lowering-sinh.f6476.2%
Applied egg-rr76.2%
if 5.60000000000000037e102 < y Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified90.9%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
Final simplification87.5%
(FPCore (x y)
:precision binary64
(if (<= y 1.85e-31)
(* y (/ (sin x) x))
(if (<= y 5.6e+102)
(sinh y)
(* (/ (* (sin x) 0.16666666666666666) x) (* y (* y y))))))
double code(double x, double y) {
double tmp;
if (y <= 1.85e-31) {
tmp = y * (sin(x) / x);
} else if (y <= 5.6e+102) {
tmp = sinh(y);
} else {
tmp = ((sin(x) * 0.16666666666666666) / x) * (y * (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 <= 1.85d-31) then
tmp = y * (sin(x) / x)
else if (y <= 5.6d+102) then
tmp = sinh(y)
else
tmp = ((sin(x) * 0.16666666666666666d0) / x) * (y * (y * y))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 1.85e-31) {
tmp = y * (Math.sin(x) / x);
} else if (y <= 5.6e+102) {
tmp = Math.sinh(y);
} else {
tmp = ((Math.sin(x) * 0.16666666666666666) / x) * (y * (y * y));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 1.85e-31: tmp = y * (math.sin(x) / x) elif y <= 5.6e+102: tmp = math.sinh(y) else: tmp = ((math.sin(x) * 0.16666666666666666) / x) * (y * (y * y)) return tmp
function code(x, y) tmp = 0.0 if (y <= 1.85e-31) tmp = Float64(y * Float64(sin(x) / x)); elseif (y <= 5.6e+102) tmp = sinh(y); else tmp = Float64(Float64(Float64(sin(x) * 0.16666666666666666) / x) * Float64(y * Float64(y * y))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 1.85e-31) tmp = y * (sin(x) / x); elseif (y <= 5.6e+102) tmp = sinh(y); else tmp = ((sin(x) * 0.16666666666666666) / x) * (y * (y * y)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 1.85e-31], N[(y * N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.6e+102], N[Sinh[y], $MachinePrecision], N[(N[(N[(N[Sin[x], $MachinePrecision] * 0.16666666666666666), $MachinePrecision] / x), $MachinePrecision] * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.85 \cdot 10^{-31}:\\
\;\;\;\;y \cdot \frac{\sin x}{x}\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{+102}:\\
\;\;\;\;\sinh y\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin x \cdot 0.16666666666666666}{x} \cdot \left(y \cdot \left(y \cdot y\right)\right)\\
\end{array}
\end{array}
if y < 1.8499999999999999e-31Initial program 87.6%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified86.3%
Taylor expanded in y around 0
/-lowering-/.f64N/A
sin-lowering-sin.f6461.1%
Simplified61.1%
if 1.8499999999999999e-31 < y < 5.60000000000000037e102Initial program 99.9%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified74.5%
*-commutativeN/A
div-invN/A
associate-*l*N/A
inv-powN/A
pow-plusN/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
sinh-lowering-sinh.f6474.5%
Applied egg-rr74.5%
if 5.60000000000000037e102 < y Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified90.9%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
Final simplification68.9%
(FPCore (x y)
:precision binary64
(if (<= y 1.85e-31)
(* y (/ (sin x) x))
(if (<= y 3.6e+231)
(sinh y)
(*
y
(*
(* y y)
(*
0.16666666666666666
(+
1.0
(*
x
(*
x
(+
-0.16666666666666666
(*
(* x x)
(+
0.008333333333333333
(* x (* x -0.0001984126984126984))))))))))))))
double code(double x, double y) {
double tmp;
if (y <= 1.85e-31) {
tmp = y * (sin(x) / x);
} else if (y <= 3.6e+231) {
tmp = sinh(y);
} else {
tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984))))))))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 1.85d-31) then
tmp = y * (sin(x) / x)
else if (y <= 3.6d+231) then
tmp = sinh(y)
else
tmp = y * ((y * y) * (0.16666666666666666d0 * (1.0d0 + (x * (x * ((-0.16666666666666666d0) + ((x * x) * (0.008333333333333333d0 + (x * (x * (-0.0001984126984126984d0)))))))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 1.85e-31) {
tmp = y * (Math.sin(x) / x);
} else if (y <= 3.6e+231) {
tmp = Math.sinh(y);
} else {
tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984))))))))));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 1.85e-31: tmp = y * (math.sin(x) / x) elif y <= 3.6e+231: tmp = math.sinh(y) else: tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984)))))))))) return tmp
function code(x, y) tmp = 0.0 if (y <= 1.85e-31) tmp = Float64(y * Float64(sin(x) / x)); elseif (y <= 3.6e+231) tmp = sinh(y); else tmp = Float64(y * Float64(Float64(y * y) * Float64(0.16666666666666666 * Float64(1.0 + Float64(x * Float64(x * Float64(-0.16666666666666666 + Float64(Float64(x * x) * Float64(0.008333333333333333 + Float64(x * Float64(x * -0.0001984126984126984))))))))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 1.85e-31) tmp = y * (sin(x) / x); elseif (y <= 3.6e+231) tmp = sinh(y); else tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984)))))))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 1.85e-31], N[(y * N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.6e+231], N[Sinh[y], $MachinePrecision], N[(y * N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 * N[(1.0 + N[(x * N[(x * N[(-0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * N[(0.008333333333333333 + N[(x * N[(x * -0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.85 \cdot 10^{-31}:\\
\;\;\;\;y \cdot \frac{\sin x}{x}\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{+231}:\\
\;\;\;\;\sinh y\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 \cdot \left(1 + x \cdot \left(x \cdot \left(-0.16666666666666666 + \left(x \cdot x\right) \cdot \left(0.008333333333333333 + x \cdot \left(x \cdot -0.0001984126984126984\right)\right)\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 1.8499999999999999e-31Initial program 87.6%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified86.3%
Taylor expanded in y around 0
/-lowering-/.f64N/A
sin-lowering-sin.f6461.1%
Simplified61.1%
if 1.8499999999999999e-31 < y < 3.5999999999999999e231Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified77.4%
*-commutativeN/A
div-invN/A
associate-*l*N/A
inv-powN/A
pow-plusN/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
sinh-lowering-sinh.f6477.4%
Applied egg-rr77.4%
if 3.5999999999999999e231 < y Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6483.3%
Simplified83.3%
Taylor expanded in y around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6483.3%
Simplified83.3%
associate-*r*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6483.3%
Applied egg-rr83.3%
Final simplification65.8%
(FPCore (x y)
:precision binary64
(if (<= y 2.2e+231)
(* x (/ (sinh y) x))
(*
y
(*
(* y y)
(*
0.16666666666666666
(+
1.0
(*
x
(*
x
(+
-0.16666666666666666
(*
(* x x)
(+
0.008333333333333333
(* x (* x -0.0001984126984126984)))))))))))))
double code(double x, double y) {
double tmp;
if (y <= 2.2e+231) {
tmp = x * (sinh(y) / x);
} else {
tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984))))))))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 2.2d+231) then
tmp = x * (sinh(y) / x)
else
tmp = y * ((y * y) * (0.16666666666666666d0 * (1.0d0 + (x * (x * ((-0.16666666666666666d0) + ((x * x) * (0.008333333333333333d0 + (x * (x * (-0.0001984126984126984d0)))))))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 2.2e+231) {
tmp = x * (Math.sinh(y) / x);
} else {
tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984))))))))));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 2.2e+231: tmp = x * (math.sinh(y) / x) else: tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984)))))))))) return tmp
function code(x, y) tmp = 0.0 if (y <= 2.2e+231) tmp = Float64(x * Float64(sinh(y) / x)); else tmp = Float64(y * Float64(Float64(y * y) * Float64(0.16666666666666666 * Float64(1.0 + Float64(x * Float64(x * Float64(-0.16666666666666666 + Float64(Float64(x * x) * Float64(0.008333333333333333 + Float64(x * Float64(x * -0.0001984126984126984))))))))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 2.2e+231) tmp = x * (sinh(y) / x); else tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984)))))))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 2.2e+231], N[(x * N[(N[Sinh[y], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 * N[(1.0 + N[(x * N[(x * N[(-0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * N[(0.008333333333333333 + N[(x * N[(x * -0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.2 \cdot 10^{+231}:\\
\;\;\;\;x \cdot \frac{\sinh y}{x}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 \cdot \left(1 + x \cdot \left(x \cdot \left(-0.16666666666666666 + \left(x \cdot x\right) \cdot \left(0.008333333333333333 + x \cdot \left(x \cdot -0.0001984126984126984\right)\right)\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 2.19999999999999992e231Initial program 90.5%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified73.5%
if 2.19999999999999992e231 < y Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6483.3%
Simplified83.3%
Taylor expanded in y around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6483.3%
Simplified83.3%
associate-*r*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6483.3%
Applied egg-rr83.3%
(FPCore (x y)
:precision binary64
(if (<= x 8.5e+34)
(sinh y)
(if (<= x 1.1e+142)
(/
(* x (+ 1.0 (* -0.16666666666666666 (* x x))))
(/
x
(*
y
(+
1.0
(*
(* y y)
(+
0.16666666666666666
(*
(* y y)
(+ 0.008333333333333333 (* (* y y) 0.0001984126984126984)))))))))
(* x (/ (* y (* y (* 0.008333333333333333 (* y (* y y))))) x)))))
double code(double x, double y) {
double tmp;
if (x <= 8.5e+34) {
tmp = sinh(y);
} else if (x <= 1.1e+142) {
tmp = (x * (1.0 + (-0.16666666666666666 * (x * x)))) / (x / (y * (1.0 + ((y * y) * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))));
} else {
tmp = x * ((y * (y * (0.008333333333333333 * (y * (y * y))))) / x);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 8.5d+34) then
tmp = sinh(y)
else if (x <= 1.1d+142) then
tmp = (x * (1.0d0 + ((-0.16666666666666666d0) * (x * x)))) / (x / (y * (1.0d0 + ((y * y) * (0.16666666666666666d0 + ((y * y) * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0))))))))
else
tmp = x * ((y * (y * (0.008333333333333333d0 * (y * (y * y))))) / x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 8.5e+34) {
tmp = Math.sinh(y);
} else if (x <= 1.1e+142) {
tmp = (x * (1.0 + (-0.16666666666666666 * (x * x)))) / (x / (y * (1.0 + ((y * y) * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))));
} else {
tmp = x * ((y * (y * (0.008333333333333333 * (y * (y * y))))) / x);
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 8.5e+34: tmp = math.sinh(y) elif x <= 1.1e+142: tmp = (x * (1.0 + (-0.16666666666666666 * (x * x)))) / (x / (y * (1.0 + ((y * y) * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))))) else: tmp = x * ((y * (y * (0.008333333333333333 * (y * (y * y))))) / x) return tmp
function code(x, y) tmp = 0.0 if (x <= 8.5e+34) tmp = sinh(y); elseif (x <= 1.1e+142) tmp = Float64(Float64(x * Float64(1.0 + Float64(-0.16666666666666666 * Float64(x * x)))) / Float64(x / Float64(y * Float64(1.0 + Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(y * y) * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984))))))))); else tmp = Float64(x * Float64(Float64(y * Float64(y * Float64(0.008333333333333333 * Float64(y * Float64(y * y))))) / x)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 8.5e+34) tmp = sinh(y); elseif (x <= 1.1e+142) tmp = (x * (1.0 + (-0.16666666666666666 * (x * x)))) / (x / (y * (1.0 + ((y * y) * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))))); else tmp = x * ((y * (y * (0.008333333333333333 * (y * (y * y))))) / x); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 8.5e+34], N[Sinh[y], $MachinePrecision], If[LessEqual[x, 1.1e+142], N[(N[(x * N[(1.0 + N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x / N[(y * N[(1.0 + N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * N[(y * N[(0.008333333333333333 * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 8.5 \cdot 10^{+34}:\\
\;\;\;\;\sinh y\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+142}:\\
\;\;\;\;\frac{x \cdot \left(1 + -0.16666666666666666 \cdot \left(x \cdot x\right)\right)}{\frac{x}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y \cdot \left(y \cdot \left(0.008333333333333333 \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)}{x}\\
\end{array}
\end{array}
if x < 8.5000000000000003e34Initial program 88.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified78.3%
*-commutativeN/A
div-invN/A
associate-*l*N/A
inv-powN/A
pow-plusN/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
sinh-lowering-sinh.f6471.0%
Applied egg-rr71.0%
if 8.5000000000000003e34 < x < 1.09999999999999993e142Initial program 99.8%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.7%
Simplified99.7%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.7%
Applied egg-rr99.7%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6490.6%
Simplified90.6%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6439.5%
Simplified39.5%
if 1.09999999999999993e142 < x Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified64.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6461.7%
Simplified61.7%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
unpow2N/A
unpow3N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6462.0%
Simplified62.0%
Final simplification67.0%
(FPCore (x y)
:precision binary64
(if (<= y 28.0)
(*
x
(/
(+
y
(*
(+ 0.16666666666666666 (* (* y y) 0.008333333333333333))
(* y (* y y))))
x))
(if (<= y 3.2e+141)
(*
(*
y
(+
1.0
(*
(* y y)
(+
0.16666666666666666
(*
y
(*
y
(+ 0.008333333333333333 (* (* y y) 0.0001984126984126984))))))))
(+ 1.0 (* -0.16666666666666666 (* x x))))
(if (<= y 6e+231)
(* x (/ (* y (+ 1.0 (* y (* y 0.16666666666666666)))) x))
(*
y
(*
(* y y)
(*
0.16666666666666666
(+
1.0
(*
x
(*
x
(+
-0.16666666666666666
(*
(* x x)
(+
0.008333333333333333
(* x (* x -0.0001984126984126984)))))))))))))))
double code(double x, double y) {
double tmp;
if (y <= 28.0) {
tmp = x * ((y + ((0.16666666666666666 + ((y * y) * 0.008333333333333333)) * (y * (y * y)))) / x);
} else if (y <= 3.2e+141) {
tmp = (y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))))) * (1.0 + (-0.16666666666666666 * (x * x)));
} else if (y <= 6e+231) {
tmp = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x);
} else {
tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984))))))))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 28.0d0) then
tmp = x * ((y + ((0.16666666666666666d0 + ((y * y) * 0.008333333333333333d0)) * (y * (y * y)))) / x)
else if (y <= 3.2d+141) then
tmp = (y * (1.0d0 + ((y * y) * (0.16666666666666666d0 + (y * (y * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)))))))) * (1.0d0 + ((-0.16666666666666666d0) * (x * x)))
else if (y <= 6d+231) then
tmp = x * ((y * (1.0d0 + (y * (y * 0.16666666666666666d0)))) / x)
else
tmp = y * ((y * y) * (0.16666666666666666d0 * (1.0d0 + (x * (x * ((-0.16666666666666666d0) + ((x * x) * (0.008333333333333333d0 + (x * (x * (-0.0001984126984126984d0)))))))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 28.0) {
tmp = x * ((y + ((0.16666666666666666 + ((y * y) * 0.008333333333333333)) * (y * (y * y)))) / x);
} else if (y <= 3.2e+141) {
tmp = (y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))))) * (1.0 + (-0.16666666666666666 * (x * x)));
} else if (y <= 6e+231) {
tmp = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x);
} else {
tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984))))))))));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 28.0: tmp = x * ((y + ((0.16666666666666666 + ((y * y) * 0.008333333333333333)) * (y * (y * y)))) / x) elif y <= 3.2e+141: tmp = (y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))))) * (1.0 + (-0.16666666666666666 * (x * x))) elif y <= 6e+231: tmp = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x) else: tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984)))))))))) return tmp
function code(x, y) tmp = 0.0 if (y <= 28.0) tmp = Float64(x * Float64(Float64(y + Float64(Float64(0.16666666666666666 + Float64(Float64(y * y) * 0.008333333333333333)) * Float64(y * Float64(y * y)))) / x)); elseif (y <= 3.2e+141) tmp = Float64(Float64(y * Float64(1.0 + Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(y * Float64(y * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984)))))))) * Float64(1.0 + Float64(-0.16666666666666666 * Float64(x * x)))); elseif (y <= 6e+231) tmp = Float64(x * Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666)))) / x)); else tmp = Float64(y * Float64(Float64(y * y) * Float64(0.16666666666666666 * Float64(1.0 + Float64(x * Float64(x * Float64(-0.16666666666666666 + Float64(Float64(x * x) * Float64(0.008333333333333333 + Float64(x * Float64(x * -0.0001984126984126984))))))))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 28.0) tmp = x * ((y + ((0.16666666666666666 + ((y * y) * 0.008333333333333333)) * (y * (y * y)))) / x); elseif (y <= 3.2e+141) tmp = (y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))))) * (1.0 + (-0.16666666666666666 * (x * x))); elseif (y <= 6e+231) tmp = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x); else tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984)))))))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 28.0], N[(x * N[(N[(y + N[(N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision] * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.2e+141], N[(N[(y * N[(1.0 + N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(y * N[(y * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.0 + N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e+231], N[(x * N[(N[(y * N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 * N[(1.0 + N[(x * N[(x * N[(-0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * N[(0.008333333333333333 + N[(x * N[(x * -0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 28:\\
\;\;\;\;x \cdot \frac{y + \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right) \cdot \left(y \cdot \left(y \cdot y\right)\right)}{x}\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{+141}:\\
\;\;\;\;\left(y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\right) \cdot \left(1 + -0.16666666666666666 \cdot \left(x \cdot x\right)\right)\\
\mathbf{elif}\;y \leq 6 \cdot 10^{+231}:\\
\;\;\;\;x \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 \cdot \left(1 + x \cdot \left(x \cdot \left(-0.16666666666666666 + \left(x \cdot x\right) \cdot \left(0.008333333333333333 + x \cdot \left(x \cdot -0.0001984126984126984\right)\right)\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 28Initial program 88.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified72.2%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6470.3%
Simplified70.3%
+-commutativeN/A
distribute-rgt-inN/A
*-lft-identityN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
cube-unmultN/A
*-lowering-*.f64N/A
cube-unmultN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6470.3%
Applied egg-rr70.3%
if 28 < y < 3.20000000000000019e141Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Applied egg-rr100.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6471.1%
Simplified71.1%
Taylor expanded in x around 0
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
Simplified57.7%
if 3.20000000000000019e141 < y < 6.0000000000000003e231Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in x around 0
Simplified85.7%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6485.7%
Simplified85.7%
if 6.0000000000000003e231 < y Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6483.3%
Simplified83.3%
Taylor expanded in y around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6483.3%
Simplified83.3%
associate-*r*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6483.3%
Applied egg-rr83.3%
Final simplification70.7%
(FPCore (x y)
:precision binary64
(if (<= y 28.0)
(*
x
(/
(+
y
(*
(+ 0.16666666666666666 (* (* y y) 0.008333333333333333))
(* y (* y y))))
x))
(if (<= y 3.1e+141)
(*
(+ 1.0 (* -0.16666666666666666 (* x x)))
(*
y
(+
1.0
(* y (* y (+ 0.16666666666666666 (* y (* y 0.008333333333333333))))))))
(if (<= y 5.8e+231)
(* x (/ (* y (+ 1.0 (* y (* y 0.16666666666666666)))) x))
(*
y
(*
(* y y)
(*
0.16666666666666666
(+
1.0
(*
x
(*
x
(+
-0.16666666666666666
(*
(* x x)
(+
0.008333333333333333
(* x (* x -0.0001984126984126984)))))))))))))))
double code(double x, double y) {
double tmp;
if (y <= 28.0) {
tmp = x * ((y + ((0.16666666666666666 + ((y * y) * 0.008333333333333333)) * (y * (y * y)))) / x);
} else if (y <= 3.1e+141) {
tmp = (1.0 + (-0.16666666666666666 * (x * x))) * (y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333)))))));
} else if (y <= 5.8e+231) {
tmp = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x);
} else {
tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984))))))))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 28.0d0) then
tmp = x * ((y + ((0.16666666666666666d0 + ((y * y) * 0.008333333333333333d0)) * (y * (y * y)))) / x)
else if (y <= 3.1d+141) then
tmp = (1.0d0 + ((-0.16666666666666666d0) * (x * x))) * (y * (1.0d0 + (y * (y * (0.16666666666666666d0 + (y * (y * 0.008333333333333333d0)))))))
else if (y <= 5.8d+231) then
tmp = x * ((y * (1.0d0 + (y * (y * 0.16666666666666666d0)))) / x)
else
tmp = y * ((y * y) * (0.16666666666666666d0 * (1.0d0 + (x * (x * ((-0.16666666666666666d0) + ((x * x) * (0.008333333333333333d0 + (x * (x * (-0.0001984126984126984d0)))))))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 28.0) {
tmp = x * ((y + ((0.16666666666666666 + ((y * y) * 0.008333333333333333)) * (y * (y * y)))) / x);
} else if (y <= 3.1e+141) {
tmp = (1.0 + (-0.16666666666666666 * (x * x))) * (y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333)))))));
} else if (y <= 5.8e+231) {
tmp = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x);
} else {
tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984))))))))));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 28.0: tmp = x * ((y + ((0.16666666666666666 + ((y * y) * 0.008333333333333333)) * (y * (y * y)))) / x) elif y <= 3.1e+141: tmp = (1.0 + (-0.16666666666666666 * (x * x))) * (y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) elif y <= 5.8e+231: tmp = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x) else: tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984)))))))))) return tmp
function code(x, y) tmp = 0.0 if (y <= 28.0) tmp = Float64(x * Float64(Float64(y + Float64(Float64(0.16666666666666666 + Float64(Float64(y * y) * 0.008333333333333333)) * Float64(y * Float64(y * y)))) / x)); elseif (y <= 3.1e+141) tmp = Float64(Float64(1.0 + Float64(-0.16666666666666666 * Float64(x * x))) * Float64(y * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(y * Float64(y * 0.008333333333333333)))))))); elseif (y <= 5.8e+231) tmp = Float64(x * Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666)))) / x)); else tmp = Float64(y * Float64(Float64(y * y) * Float64(0.16666666666666666 * Float64(1.0 + Float64(x * Float64(x * Float64(-0.16666666666666666 + Float64(Float64(x * x) * Float64(0.008333333333333333 + Float64(x * Float64(x * -0.0001984126984126984))))))))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 28.0) tmp = x * ((y + ((0.16666666666666666 + ((y * y) * 0.008333333333333333)) * (y * (y * y)))) / x); elseif (y <= 3.1e+141) tmp = (1.0 + (-0.16666666666666666 * (x * x))) * (y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))); elseif (y <= 5.8e+231) tmp = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x); else tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984)))))))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 28.0], N[(x * N[(N[(y + N[(N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision] * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.1e+141], N[(N[(1.0 + N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(y * N[(y * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.8e+231], N[(x * N[(N[(y * N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 * N[(1.0 + N[(x * N[(x * N[(-0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * N[(0.008333333333333333 + N[(x * N[(x * -0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 28:\\
\;\;\;\;x \cdot \frac{y + \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right) \cdot \left(y \cdot \left(y \cdot y\right)\right)}{x}\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{+141}:\\
\;\;\;\;\left(1 + -0.16666666666666666 \cdot \left(x \cdot x\right)\right) \cdot \left(y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot 0.008333333333333333\right)\right)\right)\right)\right)\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{+231}:\\
\;\;\;\;x \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 \cdot \left(1 + x \cdot \left(x \cdot \left(-0.16666666666666666 + \left(x \cdot x\right) \cdot \left(0.008333333333333333 + x \cdot \left(x \cdot -0.0001984126984126984\right)\right)\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 28Initial program 88.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified72.2%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6470.3%
Simplified70.3%
+-commutativeN/A
distribute-rgt-inN/A
*-lft-identityN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
cube-unmultN/A
*-lowering-*.f64N/A
cube-unmultN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6470.3%
Applied egg-rr70.3%
if 28 < y < 3.10000000000000004e141Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
*-commutativeN/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
Simplified52.4%
Taylor expanded in x around 0
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
Simplified51.3%
if 3.10000000000000004e141 < y < 5.8000000000000002e231Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in x around 0
Simplified85.7%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6485.7%
Simplified85.7%
if 5.8000000000000002e231 < y Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6483.3%
Simplified83.3%
Taylor expanded in y around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6483.3%
Simplified83.3%
associate-*r*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6483.3%
Applied egg-rr83.3%
Final simplification70.0%
(FPCore (x y)
:precision binary64
(if (<= x 1.1e+142)
(/
(* x (+ 1.0 (* -0.16666666666666666 (* x x))))
(/
x
(*
y
(+
1.0
(*
(* y y)
(+
0.16666666666666666
(*
(* y y)
(+ 0.008333333333333333 (* (* y y) 0.0001984126984126984)))))))))
(* x (/ (* y (* y (* 0.008333333333333333 (* y (* y y))))) x))))
double code(double x, double y) {
double tmp;
if (x <= 1.1e+142) {
tmp = (x * (1.0 + (-0.16666666666666666 * (x * x)))) / (x / (y * (1.0 + ((y * y) * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))));
} else {
tmp = x * ((y * (y * (0.008333333333333333 * (y * (y * y))))) / x);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 1.1d+142) then
tmp = (x * (1.0d0 + ((-0.16666666666666666d0) * (x * x)))) / (x / (y * (1.0d0 + ((y * y) * (0.16666666666666666d0 + ((y * y) * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0))))))))
else
tmp = x * ((y * (y * (0.008333333333333333d0 * (y * (y * y))))) / x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 1.1e+142) {
tmp = (x * (1.0 + (-0.16666666666666666 * (x * x)))) / (x / (y * (1.0 + ((y * y) * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))));
} else {
tmp = x * ((y * (y * (0.008333333333333333 * (y * (y * y))))) / x);
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 1.1e+142: tmp = (x * (1.0 + (-0.16666666666666666 * (x * x)))) / (x / (y * (1.0 + ((y * y) * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))))) else: tmp = x * ((y * (y * (0.008333333333333333 * (y * (y * y))))) / x) return tmp
function code(x, y) tmp = 0.0 if (x <= 1.1e+142) tmp = Float64(Float64(x * Float64(1.0 + Float64(-0.16666666666666666 * Float64(x * x)))) / Float64(x / Float64(y * Float64(1.0 + Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(y * y) * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984))))))))); else tmp = Float64(x * Float64(Float64(y * Float64(y * Float64(0.008333333333333333 * Float64(y * Float64(y * y))))) / x)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 1.1e+142) tmp = (x * (1.0 + (-0.16666666666666666 * (x * x)))) / (x / (y * (1.0 + ((y * y) * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))))); else tmp = x * ((y * (y * (0.008333333333333333 * (y * (y * y))))) / x); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 1.1e+142], N[(N[(x * N[(1.0 + N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x / N[(y * N[(1.0 + N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * N[(y * N[(0.008333333333333333 * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.1 \cdot 10^{+142}:\\
\;\;\;\;\frac{x \cdot \left(1 + -0.16666666666666666 \cdot \left(x \cdot x\right)\right)}{\frac{x}{y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y \cdot \left(y \cdot \left(0.008333333333333333 \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)}{x}\\
\end{array}
\end{array}
if x < 1.09999999999999993e142Initial program 89.2%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Applied egg-rr99.9%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6494.1%
Simplified94.1%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6466.1%
Simplified66.1%
if 1.09999999999999993e142 < x Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified64.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6461.7%
Simplified61.7%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
unpow2N/A
unpow3N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6462.0%
Simplified62.0%
(FPCore (x y)
:precision binary64
(if (<= y 2.8e+231)
(*
x
(*
y
(+
(/ 1.0 x)
(*
y
(*
y
(+
(/ 0.16666666666666666 x)
(*
(+ 0.008333333333333333 (* (* y y) 0.0001984126984126984))
(/ (* y y) x))))))))
(*
y
(*
(* y y)
(*
0.16666666666666666
(+
1.0
(*
x
(*
x
(+
-0.16666666666666666
(*
(* x x)
(+
0.008333333333333333
(* x (* x -0.0001984126984126984)))))))))))))
double code(double x, double y) {
double tmp;
if (y <= 2.8e+231) {
tmp = x * (y * ((1.0 / x) + (y * (y * ((0.16666666666666666 / x) + ((0.008333333333333333 + ((y * y) * 0.0001984126984126984)) * ((y * y) / x)))))));
} else {
tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984))))))))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 2.8d+231) then
tmp = x * (y * ((1.0d0 / x) + (y * (y * ((0.16666666666666666d0 / x) + ((0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)) * ((y * y) / x)))))))
else
tmp = y * ((y * y) * (0.16666666666666666d0 * (1.0d0 + (x * (x * ((-0.16666666666666666d0) + ((x * x) * (0.008333333333333333d0 + (x * (x * (-0.0001984126984126984d0)))))))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 2.8e+231) {
tmp = x * (y * ((1.0 / x) + (y * (y * ((0.16666666666666666 / x) + ((0.008333333333333333 + ((y * y) * 0.0001984126984126984)) * ((y * y) / x)))))));
} else {
tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984))))))))));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 2.8e+231: tmp = x * (y * ((1.0 / x) + (y * (y * ((0.16666666666666666 / x) + ((0.008333333333333333 + ((y * y) * 0.0001984126984126984)) * ((y * y) / x))))))) else: tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984)))))))))) return tmp
function code(x, y) tmp = 0.0 if (y <= 2.8e+231) tmp = Float64(x * Float64(y * Float64(Float64(1.0 / x) + Float64(y * Float64(y * Float64(Float64(0.16666666666666666 / x) + Float64(Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984)) * Float64(Float64(y * y) / x)))))))); else tmp = Float64(y * Float64(Float64(y * y) * Float64(0.16666666666666666 * Float64(1.0 + Float64(x * Float64(x * Float64(-0.16666666666666666 + Float64(Float64(x * x) * Float64(0.008333333333333333 + Float64(x * Float64(x * -0.0001984126984126984))))))))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 2.8e+231) tmp = x * (y * ((1.0 / x) + (y * (y * ((0.16666666666666666 / x) + ((0.008333333333333333 + ((y * y) * 0.0001984126984126984)) * ((y * y) / x))))))); else tmp = y * ((y * y) * (0.16666666666666666 * (1.0 + (x * (x * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + (x * (x * -0.0001984126984126984)))))))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 2.8e+231], N[(x * N[(y * N[(N[(1.0 / x), $MachinePrecision] + N[(y * N[(y * N[(N[(0.16666666666666666 / x), $MachinePrecision] + N[(N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision] * N[(N[(y * y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 * N[(1.0 + N[(x * N[(x * N[(-0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * N[(0.008333333333333333 + N[(x * N[(x * -0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.8 \cdot 10^{+231}:\\
\;\;\;\;x \cdot \left(y \cdot \left(\frac{1}{x} + y \cdot \left(y \cdot \left(\frac{0.16666666666666666}{x} + \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right) \cdot \frac{y \cdot y}{x}\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 \cdot \left(1 + x \cdot \left(x \cdot \left(-0.16666666666666666 + \left(x \cdot x\right) \cdot \left(0.008333333333333333 + x \cdot \left(x \cdot -0.0001984126984126984\right)\right)\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 2.8e231Initial program 90.5%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified73.5%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
Simplified69.7%
if 2.8e231 < y Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6483.3%
Simplified83.3%
Taylor expanded in y around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6483.3%
Simplified83.3%
associate-*r*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6483.3%
Applied egg-rr83.3%
Final simplification70.3%
(FPCore (x y)
:precision binary64
(let* ((t_0 (+ 1.0 (* -0.16666666666666666 (* x x)))))
(if (<= y 26.0)
(*
x
(/
(+
y
(*
(+ 0.16666666666666666 (* (* y y) 0.008333333333333333))
(* y (* y y))))
x))
(if (<= y 3.2e+141)
(*
t_0
(*
y
(+
1.0
(*
y
(* y (+ 0.16666666666666666 (* y (* y 0.008333333333333333))))))))
(if (<= y 4.5e+231)
(* x (/ (* y (+ 1.0 (* y (* y 0.16666666666666666)))) x))
(* y (* (+ 1.0 (* (* y y) 0.16666666666666666)) t_0)))))))
double code(double x, double y) {
double t_0 = 1.0 + (-0.16666666666666666 * (x * x));
double tmp;
if (y <= 26.0) {
tmp = x * ((y + ((0.16666666666666666 + ((y * y) * 0.008333333333333333)) * (y * (y * y)))) / x);
} else if (y <= 3.2e+141) {
tmp = t_0 * (y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333)))))));
} else if (y <= 4.5e+231) {
tmp = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x);
} else {
tmp = y * ((1.0 + ((y * y) * 0.16666666666666666)) * 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 = 1.0d0 + ((-0.16666666666666666d0) * (x * x))
if (y <= 26.0d0) then
tmp = x * ((y + ((0.16666666666666666d0 + ((y * y) * 0.008333333333333333d0)) * (y * (y * y)))) / x)
else if (y <= 3.2d+141) then
tmp = t_0 * (y * (1.0d0 + (y * (y * (0.16666666666666666d0 + (y * (y * 0.008333333333333333d0)))))))
else if (y <= 4.5d+231) then
tmp = x * ((y * (1.0d0 + (y * (y * 0.16666666666666666d0)))) / x)
else
tmp = y * ((1.0d0 + ((y * y) * 0.16666666666666666d0)) * t_0)
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = 1.0 + (-0.16666666666666666 * (x * x));
double tmp;
if (y <= 26.0) {
tmp = x * ((y + ((0.16666666666666666 + ((y * y) * 0.008333333333333333)) * (y * (y * y)))) / x);
} else if (y <= 3.2e+141) {
tmp = t_0 * (y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333)))))));
} else if (y <= 4.5e+231) {
tmp = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x);
} else {
tmp = y * ((1.0 + ((y * y) * 0.16666666666666666)) * t_0);
}
return tmp;
}
def code(x, y): t_0 = 1.0 + (-0.16666666666666666 * (x * x)) tmp = 0 if y <= 26.0: tmp = x * ((y + ((0.16666666666666666 + ((y * y) * 0.008333333333333333)) * (y * (y * y)))) / x) elif y <= 3.2e+141: tmp = t_0 * (y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) elif y <= 4.5e+231: tmp = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x) else: tmp = y * ((1.0 + ((y * y) * 0.16666666666666666)) * t_0) return tmp
function code(x, y) t_0 = Float64(1.0 + Float64(-0.16666666666666666 * Float64(x * x))) tmp = 0.0 if (y <= 26.0) tmp = Float64(x * Float64(Float64(y + Float64(Float64(0.16666666666666666 + Float64(Float64(y * y) * 0.008333333333333333)) * Float64(y * Float64(y * y)))) / x)); elseif (y <= 3.2e+141) tmp = Float64(t_0 * Float64(y * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(y * Float64(y * 0.008333333333333333)))))))); elseif (y <= 4.5e+231) tmp = Float64(x * Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666)))) / x)); else tmp = Float64(y * Float64(Float64(1.0 + Float64(Float64(y * y) * 0.16666666666666666)) * t_0)); end return tmp end
function tmp_2 = code(x, y) t_0 = 1.0 + (-0.16666666666666666 * (x * x)); tmp = 0.0; if (y <= 26.0) tmp = x * ((y + ((0.16666666666666666 + ((y * y) * 0.008333333333333333)) * (y * (y * y)))) / x); elseif (y <= 3.2e+141) tmp = t_0 * (y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))); elseif (y <= 4.5e+231) tmp = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x); else tmp = y * ((1.0 + ((y * y) * 0.16666666666666666)) * t_0); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(1.0 + N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 26.0], N[(x * N[(N[(y + N[(N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision] * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.2e+141], N[(t$95$0 * N[(y * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(y * N[(y * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e+231], N[(x * N[(N[(y * N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(1.0 + N[(N[(y * y), $MachinePrecision] * 0.16666666666666666), $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 + -0.16666666666666666 \cdot \left(x \cdot x\right)\\
\mathbf{if}\;y \leq 26:\\
\;\;\;\;x \cdot \frac{y + \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right) \cdot \left(y \cdot \left(y \cdot y\right)\right)}{x}\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{+141}:\\
\;\;\;\;t\_0 \cdot \left(y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot 0.008333333333333333\right)\right)\right)\right)\right)\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{+231}:\\
\;\;\;\;x \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(1 + \left(y \cdot y\right) \cdot 0.16666666666666666\right) \cdot t\_0\right)\\
\end{array}
\end{array}
if y < 26Initial program 88.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified72.2%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6470.3%
Simplified70.3%
+-commutativeN/A
distribute-rgt-inN/A
*-lft-identityN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
cube-unmultN/A
*-lowering-*.f64N/A
cube-unmultN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6470.3%
Applied egg-rr70.3%
if 26 < y < 3.20000000000000019e141Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
*-commutativeN/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
Simplified52.4%
Taylor expanded in x around 0
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
Simplified51.3%
if 3.20000000000000019e141 < y < 4.49999999999999991e231Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in x around 0
Simplified85.7%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6485.7%
Simplified85.7%
if 4.49999999999999991e231 < y Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6483.3%
Simplified83.3%
Final simplification70.0%
(FPCore (x y)
:precision binary64
(if (<= x 1.1e+142)
(*
(* x (+ 1.0 (* -0.16666666666666666 (* x x))))
(* y (* (+ 1.0 (* (* y y) 0.16666666666666666)) (/ 1.0 x))))
(* x (/ (* y (* y (* 0.008333333333333333 (* y (* y y))))) x))))
double code(double x, double y) {
double tmp;
if (x <= 1.1e+142) {
tmp = (x * (1.0 + (-0.16666666666666666 * (x * x)))) * (y * ((1.0 + ((y * y) * 0.16666666666666666)) * (1.0 / x)));
} else {
tmp = x * ((y * (y * (0.008333333333333333 * (y * (y * y))))) / x);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 1.1d+142) then
tmp = (x * (1.0d0 + ((-0.16666666666666666d0) * (x * x)))) * (y * ((1.0d0 + ((y * y) * 0.16666666666666666d0)) * (1.0d0 / x)))
else
tmp = x * ((y * (y * (0.008333333333333333d0 * (y * (y * y))))) / x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 1.1e+142) {
tmp = (x * (1.0 + (-0.16666666666666666 * (x * x)))) * (y * ((1.0 + ((y * y) * 0.16666666666666666)) * (1.0 / x)));
} else {
tmp = x * ((y * (y * (0.008333333333333333 * (y * (y * y))))) / x);
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 1.1e+142: tmp = (x * (1.0 + (-0.16666666666666666 * (x * x)))) * (y * ((1.0 + ((y * y) * 0.16666666666666666)) * (1.0 / x))) else: tmp = x * ((y * (y * (0.008333333333333333 * (y * (y * y))))) / x) return tmp
function code(x, y) tmp = 0.0 if (x <= 1.1e+142) tmp = Float64(Float64(x * Float64(1.0 + Float64(-0.16666666666666666 * Float64(x * x)))) * Float64(y * Float64(Float64(1.0 + Float64(Float64(y * y) * 0.16666666666666666)) * Float64(1.0 / x)))); else tmp = Float64(x * Float64(Float64(y * Float64(y * Float64(0.008333333333333333 * Float64(y * Float64(y * y))))) / x)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 1.1e+142) tmp = (x * (1.0 + (-0.16666666666666666 * (x * x)))) * (y * ((1.0 + ((y * y) * 0.16666666666666666)) * (1.0 / x))); else tmp = x * ((y * (y * (0.008333333333333333 * (y * (y * y))))) / x); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 1.1e+142], N[(N[(x * N[(1.0 + N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y * N[(N[(1.0 + N[(N[(y * y), $MachinePrecision] * 0.16666666666666666), $MachinePrecision]), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * N[(y * N[(0.008333333333333333 * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.1 \cdot 10^{+142}:\\
\;\;\;\;\left(x \cdot \left(1 + -0.16666666666666666 \cdot \left(x \cdot x\right)\right)\right) \cdot \left(y \cdot \left(\left(1 + \left(y \cdot y\right) \cdot 0.16666666666666666\right) \cdot \frac{1}{x}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y \cdot \left(y \cdot \left(0.008333333333333333 \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)}{x}\\
\end{array}
\end{array}
if x < 1.09999999999999993e142Initial program 89.2%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in y around 0
associate-*r/N/A
*-commutativeN/A
associate-*r/N/A
metadata-evalN/A
associate-*r/N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f6485.0%
Simplified85.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6463.5%
Simplified63.5%
if 1.09999999999999993e142 < x Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified64.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6461.7%
Simplified61.7%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
unpow2N/A
unpow3N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6462.0%
Simplified62.0%
Final simplification63.2%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* y (* y y))))
(if (<= x 6.9e+22)
(*
y
(+
1.0
(*
(* y y)
(+
0.16666666666666666
(*
y
(* y (+ 0.008333333333333333 (* (* y y) 0.0001984126984126984))))))))
(if (<= x 1.1e+142)
(* t_0 (+ 0.16666666666666666 (* (* x x) -0.027777777777777776)))
(* x (/ (* y (* y (* 0.008333333333333333 t_0))) x))))))
double code(double x, double y) {
double t_0 = y * (y * y);
double tmp;
if (x <= 6.9e+22) {
tmp = y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
} else if (x <= 1.1e+142) {
tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776));
} else {
tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = y * (y * y)
if (x <= 6.9d+22) then
tmp = y * (1.0d0 + ((y * y) * (0.16666666666666666d0 + (y * (y * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)))))))
else if (x <= 1.1d+142) then
tmp = t_0 * (0.16666666666666666d0 + ((x * x) * (-0.027777777777777776d0)))
else
tmp = x * ((y * (y * (0.008333333333333333d0 * t_0))) / x)
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = y * (y * y);
double tmp;
if (x <= 6.9e+22) {
tmp = y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
} else if (x <= 1.1e+142) {
tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776));
} else {
tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x);
}
return tmp;
}
def code(x, y): t_0 = y * (y * y) tmp = 0 if x <= 6.9e+22: tmp = y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))) elif x <= 1.1e+142: tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776)) else: tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x) return tmp
function code(x, y) t_0 = Float64(y * Float64(y * y)) tmp = 0.0 if (x <= 6.9e+22) tmp = Float64(y * Float64(1.0 + Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(y * Float64(y * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984)))))))); elseif (x <= 1.1e+142) tmp = Float64(t_0 * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.027777777777777776))); else tmp = Float64(x * Float64(Float64(y * Float64(y * Float64(0.008333333333333333 * t_0))) / x)); end return tmp end
function tmp_2 = code(x, y) t_0 = y * (y * y); tmp = 0.0; if (x <= 6.9e+22) tmp = y * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))); elseif (x <= 1.1e+142) tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776)); else tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 6.9e+22], N[(y * N[(1.0 + N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(y * N[(y * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.1e+142], N[(t$95$0 * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.027777777777777776), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * N[(y * N[(0.008333333333333333 * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y \cdot \left(y \cdot y\right)\\
\mathbf{if}\;x \leq 6.9 \cdot 10^{+22}:\\
\;\;\;\;y \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+142}:\\
\;\;\;\;t\_0 \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.027777777777777776\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y \cdot \left(y \cdot \left(0.008333333333333333 \cdot t\_0\right)\right)}{x}\\
\end{array}
\end{array}
if x < 6.8999999999999998e22Initial program 87.7%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Applied egg-rr99.9%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6494.3%
Simplified94.3%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6467.9%
Simplified67.9%
if 6.8999999999999998e22 < x < 1.09999999999999993e142Initial program 99.8%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.7%
Simplified99.7%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified70.4%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6435.6%
Simplified35.6%
Taylor expanded in x around 0
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6429.1%
Simplified29.1%
Taylor expanded in y around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
distribute-lft-inN/A
metadata-evalN/A
associate-*r*N/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6437.0%
Simplified37.0%
if 1.09999999999999993e142 < x Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified64.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6461.7%
Simplified61.7%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
unpow2N/A
unpow3N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6462.0%
Simplified62.0%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* y (* y y))))
(if (<= x 6.9e+22)
(*
x
(/
(+ y (* (+ 0.16666666666666666 (* (* y y) 0.008333333333333333)) t_0))
x))
(if (<= x 1.1e+142)
(* t_0 (+ 0.16666666666666666 (* (* x x) -0.027777777777777776)))
(* x (/ (* y (* y (* 0.008333333333333333 t_0))) x))))))
double code(double x, double y) {
double t_0 = y * (y * y);
double tmp;
if (x <= 6.9e+22) {
tmp = x * ((y + ((0.16666666666666666 + ((y * y) * 0.008333333333333333)) * t_0)) / x);
} else if (x <= 1.1e+142) {
tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776));
} else {
tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = y * (y * y)
if (x <= 6.9d+22) then
tmp = x * ((y + ((0.16666666666666666d0 + ((y * y) * 0.008333333333333333d0)) * t_0)) / x)
else if (x <= 1.1d+142) then
tmp = t_0 * (0.16666666666666666d0 + ((x * x) * (-0.027777777777777776d0)))
else
tmp = x * ((y * (y * (0.008333333333333333d0 * t_0))) / x)
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = y * (y * y);
double tmp;
if (x <= 6.9e+22) {
tmp = x * ((y + ((0.16666666666666666 + ((y * y) * 0.008333333333333333)) * t_0)) / x);
} else if (x <= 1.1e+142) {
tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776));
} else {
tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x);
}
return tmp;
}
def code(x, y): t_0 = y * (y * y) tmp = 0 if x <= 6.9e+22: tmp = x * ((y + ((0.16666666666666666 + ((y * y) * 0.008333333333333333)) * t_0)) / x) elif x <= 1.1e+142: tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776)) else: tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x) return tmp
function code(x, y) t_0 = Float64(y * Float64(y * y)) tmp = 0.0 if (x <= 6.9e+22) tmp = Float64(x * Float64(Float64(y + Float64(Float64(0.16666666666666666 + Float64(Float64(y * y) * 0.008333333333333333)) * t_0)) / x)); elseif (x <= 1.1e+142) tmp = Float64(t_0 * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.027777777777777776))); else tmp = Float64(x * Float64(Float64(y * Float64(y * Float64(0.008333333333333333 * t_0))) / x)); end return tmp end
function tmp_2 = code(x, y) t_0 = y * (y * y); tmp = 0.0; if (x <= 6.9e+22) tmp = x * ((y + ((0.16666666666666666 + ((y * y) * 0.008333333333333333)) * t_0)) / x); elseif (x <= 1.1e+142) tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776)); else tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 6.9e+22], N[(x * N[(N[(y + N[(N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.1e+142], N[(t$95$0 * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.027777777777777776), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * N[(y * N[(0.008333333333333333 * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y \cdot \left(y \cdot y\right)\\
\mathbf{if}\;x \leq 6.9 \cdot 10^{+22}:\\
\;\;\;\;x \cdot \frac{y + \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right) \cdot t\_0}{x}\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+142}:\\
\;\;\;\;t\_0 \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.027777777777777776\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y \cdot \left(y \cdot \left(0.008333333333333333 \cdot t\_0\right)\right)}{x}\\
\end{array}
\end{array}
if x < 6.8999999999999998e22Initial program 87.7%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified79.8%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6475.3%
Simplified75.3%
+-commutativeN/A
distribute-rgt-inN/A
*-lft-identityN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
cube-unmultN/A
*-lowering-*.f64N/A
cube-unmultN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6475.3%
Applied egg-rr75.3%
if 6.8999999999999998e22 < x < 1.09999999999999993e142Initial program 99.8%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.7%
Simplified99.7%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified70.4%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6435.6%
Simplified35.6%
Taylor expanded in x around 0
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6429.1%
Simplified29.1%
Taylor expanded in y around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
distribute-lft-inN/A
metadata-evalN/A
associate-*r*N/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6437.0%
Simplified37.0%
if 1.09999999999999993e142 < x Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified64.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6461.7%
Simplified61.7%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
unpow2N/A
unpow3N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6462.0%
Simplified62.0%
Final simplification69.3%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* y (* y y))))
(if (<= x 6.9e+22)
(*
x
(/
(*
y
(+
1.0
(* y (* y (+ 0.16666666666666666 (* y (* y 0.008333333333333333)))))))
x))
(if (<= x 1.1e+142)
(* t_0 (+ 0.16666666666666666 (* (* x x) -0.027777777777777776)))
(* x (/ (* y (* y (* 0.008333333333333333 t_0))) x))))))
double code(double x, double y) {
double t_0 = y * (y * y);
double tmp;
if (x <= 6.9e+22) {
tmp = x * ((y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) / x);
} else if (x <= 1.1e+142) {
tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776));
} else {
tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = y * (y * y)
if (x <= 6.9d+22) then
tmp = x * ((y * (1.0d0 + (y * (y * (0.16666666666666666d0 + (y * (y * 0.008333333333333333d0))))))) / x)
else if (x <= 1.1d+142) then
tmp = t_0 * (0.16666666666666666d0 + ((x * x) * (-0.027777777777777776d0)))
else
tmp = x * ((y * (y * (0.008333333333333333d0 * t_0))) / x)
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = y * (y * y);
double tmp;
if (x <= 6.9e+22) {
tmp = x * ((y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) / x);
} else if (x <= 1.1e+142) {
tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776));
} else {
tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x);
}
return tmp;
}
def code(x, y): t_0 = y * (y * y) tmp = 0 if x <= 6.9e+22: tmp = x * ((y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) / x) elif x <= 1.1e+142: tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776)) else: tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x) return tmp
function code(x, y) t_0 = Float64(y * Float64(y * y)) tmp = 0.0 if (x <= 6.9e+22) tmp = Float64(x * Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(y * Float64(y * 0.008333333333333333))))))) / x)); elseif (x <= 1.1e+142) tmp = Float64(t_0 * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.027777777777777776))); else tmp = Float64(x * Float64(Float64(y * Float64(y * Float64(0.008333333333333333 * t_0))) / x)); end return tmp end
function tmp_2 = code(x, y) t_0 = y * (y * y); tmp = 0.0; if (x <= 6.9e+22) tmp = x * ((y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) / x); elseif (x <= 1.1e+142) tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776)); else tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 6.9e+22], N[(x * N[(N[(y * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(y * N[(y * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.1e+142], N[(t$95$0 * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.027777777777777776), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * N[(y * N[(0.008333333333333333 * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y \cdot \left(y \cdot y\right)\\
\mathbf{if}\;x \leq 6.9 \cdot 10^{+22}:\\
\;\;\;\;x \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot 0.008333333333333333\right)\right)\right)\right)}{x}\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+142}:\\
\;\;\;\;t\_0 \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.027777777777777776\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y \cdot \left(y \cdot \left(0.008333333333333333 \cdot t\_0\right)\right)}{x}\\
\end{array}
\end{array}
if x < 6.8999999999999998e22Initial program 87.7%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified79.8%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6475.3%
Simplified75.3%
if 6.8999999999999998e22 < x < 1.09999999999999993e142Initial program 99.8%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.7%
Simplified99.7%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified70.4%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6435.6%
Simplified35.6%
Taylor expanded in x around 0
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6429.1%
Simplified29.1%
Taylor expanded in y around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
distribute-lft-inN/A
metadata-evalN/A
associate-*r*N/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6437.0%
Simplified37.0%
if 1.09999999999999993e142 < x Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified64.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6461.7%
Simplified61.7%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
unpow2N/A
unpow3N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6462.0%
Simplified62.0%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* y (* y y))))
(if (<= x 6.9e+22)
(*
y
(+
1.0
(* y (* y (+ 0.16666666666666666 (* y (* y 0.008333333333333333)))))))
(if (<= x 1.1e+142)
(* t_0 (+ 0.16666666666666666 (* (* x x) -0.027777777777777776)))
(* x (/ (* y (* y (* 0.008333333333333333 t_0))) x))))))
double code(double x, double y) {
double t_0 = y * (y * y);
double tmp;
if (x <= 6.9e+22) {
tmp = y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))));
} else if (x <= 1.1e+142) {
tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776));
} else {
tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = y * (y * y)
if (x <= 6.9d+22) then
tmp = y * (1.0d0 + (y * (y * (0.16666666666666666d0 + (y * (y * 0.008333333333333333d0))))))
else if (x <= 1.1d+142) then
tmp = t_0 * (0.16666666666666666d0 + ((x * x) * (-0.027777777777777776d0)))
else
tmp = x * ((y * (y * (0.008333333333333333d0 * t_0))) / x)
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = y * (y * y);
double tmp;
if (x <= 6.9e+22) {
tmp = y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))));
} else if (x <= 1.1e+142) {
tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776));
} else {
tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x);
}
return tmp;
}
def code(x, y): t_0 = y * (y * y) tmp = 0 if x <= 6.9e+22: tmp = y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333)))))) elif x <= 1.1e+142: tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776)) else: tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x) return tmp
function code(x, y) t_0 = Float64(y * Float64(y * y)) tmp = 0.0 if (x <= 6.9e+22) tmp = Float64(y * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(y * Float64(y * 0.008333333333333333))))))); elseif (x <= 1.1e+142) tmp = Float64(t_0 * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.027777777777777776))); else tmp = Float64(x * Float64(Float64(y * Float64(y * Float64(0.008333333333333333 * t_0))) / x)); end return tmp end
function tmp_2 = code(x, y) t_0 = y * (y * y); tmp = 0.0; if (x <= 6.9e+22) tmp = y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333)))))); elseif (x <= 1.1e+142) tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776)); else tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 6.9e+22], N[(y * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(y * N[(y * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.1e+142], N[(t$95$0 * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.027777777777777776), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * N[(y * N[(0.008333333333333333 * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y \cdot \left(y \cdot y\right)\\
\mathbf{if}\;x \leq 6.9 \cdot 10^{+22}:\\
\;\;\;\;y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot 0.008333333333333333\right)\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+142}:\\
\;\;\;\;t\_0 \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.027777777777777776\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y \cdot \left(y \cdot \left(0.008333333333333333 \cdot t\_0\right)\right)}{x}\\
\end{array}
\end{array}
if x < 6.8999999999999998e22Initial program 87.7%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified79.8%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6466.3%
Simplified66.3%
if 6.8999999999999998e22 < x < 1.09999999999999993e142Initial program 99.8%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.7%
Simplified99.7%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified70.4%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6435.6%
Simplified35.6%
Taylor expanded in x around 0
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6429.1%
Simplified29.1%
Taylor expanded in y around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
distribute-lft-inN/A
metadata-evalN/A
associate-*r*N/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6437.0%
Simplified37.0%
if 1.09999999999999993e142 < x Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified64.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6461.7%
Simplified61.7%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
unpow2N/A
unpow3N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6462.0%
Simplified62.0%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* y (* y y))))
(if (<= x 6.9e+22)
(* x (/ (* y (+ 1.0 (* y (* y 0.16666666666666666)))) x))
(if (<= x 1.1e+142)
(* t_0 (+ 0.16666666666666666 (* (* x x) -0.027777777777777776)))
(* x (/ (* y (* y (* 0.008333333333333333 t_0))) x))))))
double code(double x, double y) {
double t_0 = y * (y * y);
double tmp;
if (x <= 6.9e+22) {
tmp = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x);
} else if (x <= 1.1e+142) {
tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776));
} else {
tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = y * (y * y)
if (x <= 6.9d+22) then
tmp = x * ((y * (1.0d0 + (y * (y * 0.16666666666666666d0)))) / x)
else if (x <= 1.1d+142) then
tmp = t_0 * (0.16666666666666666d0 + ((x * x) * (-0.027777777777777776d0)))
else
tmp = x * ((y * (y * (0.008333333333333333d0 * t_0))) / x)
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = y * (y * y);
double tmp;
if (x <= 6.9e+22) {
tmp = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x);
} else if (x <= 1.1e+142) {
tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776));
} else {
tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x);
}
return tmp;
}
def code(x, y): t_0 = y * (y * y) tmp = 0 if x <= 6.9e+22: tmp = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x) elif x <= 1.1e+142: tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776)) else: tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x) return tmp
function code(x, y) t_0 = Float64(y * Float64(y * y)) tmp = 0.0 if (x <= 6.9e+22) tmp = Float64(x * Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666)))) / x)); elseif (x <= 1.1e+142) tmp = Float64(t_0 * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.027777777777777776))); else tmp = Float64(x * Float64(Float64(y * Float64(y * Float64(0.008333333333333333 * t_0))) / x)); end return tmp end
function tmp_2 = code(x, y) t_0 = y * (y * y); tmp = 0.0; if (x <= 6.9e+22) tmp = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x); elseif (x <= 1.1e+142) tmp = t_0 * (0.16666666666666666 + ((x * x) * -0.027777777777777776)); else tmp = x * ((y * (y * (0.008333333333333333 * t_0))) / x); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 6.9e+22], N[(x * N[(N[(y * N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.1e+142], N[(t$95$0 * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.027777777777777776), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * N[(y * N[(0.008333333333333333 * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y \cdot \left(y \cdot y\right)\\
\mathbf{if}\;x \leq 6.9 \cdot 10^{+22}:\\
\;\;\;\;x \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}{x}\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+142}:\\
\;\;\;\;t\_0 \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.027777777777777776\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y \cdot \left(y \cdot \left(0.008333333333333333 \cdot t\_0\right)\right)}{x}\\
\end{array}
\end{array}
if x < 6.8999999999999998e22Initial program 87.7%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified79.8%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6473.7%
Simplified73.7%
if 6.8999999999999998e22 < x < 1.09999999999999993e142Initial program 99.8%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.7%
Simplified99.7%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified70.4%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6435.6%
Simplified35.6%
Taylor expanded in x around 0
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6429.1%
Simplified29.1%
Taylor expanded in y around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
distribute-lft-inN/A
metadata-evalN/A
associate-*r*N/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6437.0%
Simplified37.0%
if 1.09999999999999993e142 < x Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified64.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6461.7%
Simplified61.7%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*r*N/A
unpow2N/A
unpow3N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6462.0%
Simplified62.0%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* x (/ (* y (+ 1.0 (* y (* y 0.16666666666666666)))) x))))
(if (<= x 6.9e+22)
t_0
(if (<= x 1.1e+142)
(*
(* y (* y y))
(+ 0.16666666666666666 (* (* x x) -0.027777777777777776)))
t_0))))
double code(double x, double y) {
double t_0 = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x);
double tmp;
if (x <= 6.9e+22) {
tmp = t_0;
} else if (x <= 1.1e+142) {
tmp = (y * (y * y)) * (0.16666666666666666 + ((x * x) * -0.027777777777777776));
} else {
tmp = 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 = x * ((y * (1.0d0 + (y * (y * 0.16666666666666666d0)))) / x)
if (x <= 6.9d+22) then
tmp = t_0
else if (x <= 1.1d+142) then
tmp = (y * (y * y)) * (0.16666666666666666d0 + ((x * x) * (-0.027777777777777776d0)))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x);
double tmp;
if (x <= 6.9e+22) {
tmp = t_0;
} else if (x <= 1.1e+142) {
tmp = (y * (y * y)) * (0.16666666666666666 + ((x * x) * -0.027777777777777776));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x) tmp = 0 if x <= 6.9e+22: tmp = t_0 elif x <= 1.1e+142: tmp = (y * (y * y)) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)) else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(x * Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666)))) / x)) tmp = 0.0 if (x <= 6.9e+22) tmp = t_0; elseif (x <= 1.1e+142) tmp = Float64(Float64(y * Float64(y * y)) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.027777777777777776))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x); tmp = 0.0; if (x <= 6.9e+22) tmp = t_0; elseif (x <= 1.1e+142) tmp = (y * (y * y)) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(x * N[(N[(y * N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 6.9e+22], t$95$0, If[LessEqual[x, 1.1e+142], N[(N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.027777777777777776), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}{x}\\
\mathbf{if}\;x \leq 6.9 \cdot 10^{+22}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+142}:\\
\;\;\;\;\left(y \cdot \left(y \cdot y\right)\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.027777777777777776\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < 6.8999999999999998e22 or 1.09999999999999993e142 < x Initial program 89.9%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified77.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6471.1%
Simplified71.1%
if 6.8999999999999998e22 < x < 1.09999999999999993e142Initial program 99.8%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.7%
Simplified99.7%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified70.4%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6435.6%
Simplified35.6%
Taylor expanded in x around 0
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6429.1%
Simplified29.1%
Taylor expanded in y around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
distribute-lft-inN/A
metadata-evalN/A
associate-*r*N/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6437.0%
Simplified37.0%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* x (/ (* y (+ 1.0 (* y (* y 0.16666666666666666)))) x))))
(if (<= x 6.9e+22)
t_0
(if (<= x 1.1e+142)
(*
y
(* (* y y) (+ 0.16666666666666666 (* (* x x) -0.027777777777777776))))
t_0))))
double code(double x, double y) {
double t_0 = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x);
double tmp;
if (x <= 6.9e+22) {
tmp = t_0;
} else if (x <= 1.1e+142) {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
} else {
tmp = 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 = x * ((y * (1.0d0 + (y * (y * 0.16666666666666666d0)))) / x)
if (x <= 6.9d+22) then
tmp = t_0
else if (x <= 1.1d+142) then
tmp = y * ((y * y) * (0.16666666666666666d0 + ((x * x) * (-0.027777777777777776d0))))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x);
double tmp;
if (x <= 6.9e+22) {
tmp = t_0;
} else if (x <= 1.1e+142) {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x) tmp = 0 if x <= 6.9e+22: tmp = t_0 elif x <= 1.1e+142: tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))) else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(x * Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666)))) / x)) tmp = 0.0 if (x <= 6.9e+22) tmp = t_0; elseif (x <= 1.1e+142) tmp = Float64(y * Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.027777777777777776)))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x); tmp = 0.0; if (x <= 6.9e+22) tmp = t_0; elseif (x <= 1.1e+142) tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(x * N[(N[(y * N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 6.9e+22], t$95$0, If[LessEqual[x, 1.1e+142], N[(y * N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.027777777777777776), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}{x}\\
\mathbf{if}\;x \leq 6.9 \cdot 10^{+22}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+142}:\\
\;\;\;\;y \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.027777777777777776\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < 6.8999999999999998e22 or 1.09999999999999993e142 < x Initial program 89.9%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified77.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6471.1%
Simplified71.1%
if 6.8999999999999998e22 < x < 1.09999999999999993e142Initial program 99.8%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.7%
Simplified99.7%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified70.4%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6435.6%
Simplified35.6%
Taylor expanded in y around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6436.0%
Simplified36.0%
Taylor expanded in x around 0
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
metadata-evalN/A
associate-*r*N/A
metadata-evalN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
distribute-lft-inN/A
metadata-evalN/A
associate-*r*N/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6437.0%
Simplified37.0%
(FPCore (x y) :precision binary64 (* x (/ (* y (+ 1.0 (* y (* y 0.16666666666666666)))) x)))
double code(double x, double y) {
return x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = x * ((y * (1.0d0 + (y * (y * 0.16666666666666666d0)))) / x)
end function
public static double code(double x, double y) {
return x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x);
}
def code(x, y): return x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x)
function code(x, y) return Float64(x * Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666)))) / x)) end
function tmp = code(x, y) tmp = x * ((y * (1.0 + (y * (y * 0.16666666666666666)))) / x); end
code[x_, y_] := N[(x * N[(N[(y * N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)}{x}
\end{array}
Initial program 90.9%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified72.4%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6466.1%
Simplified66.1%
(FPCore (x y) :precision binary64 (if (<= y 3.8e+102) (* x (/ y x)) (* y (* (* y y) 0.16666666666666666))))
double code(double x, double y) {
double tmp;
if (y <= 3.8e+102) {
tmp = x * (y / x);
} else {
tmp = y * ((y * y) * 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.8d+102) then
tmp = x * (y / x)
else
tmp = y * ((y * y) * 0.16666666666666666d0)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 3.8e+102) {
tmp = x * (y / x);
} else {
tmp = y * ((y * y) * 0.16666666666666666);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 3.8e+102: tmp = x * (y / x) else: tmp = y * ((y * y) * 0.16666666666666666) return tmp
function code(x, y) tmp = 0.0 if (y <= 3.8e+102) tmp = Float64(x * Float64(y / x)); else tmp = Float64(y * Float64(Float64(y * y) * 0.16666666666666666)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 3.8e+102) tmp = x * (y / x); else tmp = y * ((y * y) * 0.16666666666666666); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 3.8e+102], N[(x * N[(y / x), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(y * y), $MachinePrecision] * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 3.8 \cdot 10^{+102}:\\
\;\;\;\;x \cdot \frac{y}{x}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(y \cdot y\right) \cdot 0.16666666666666666\right)\\
\end{array}
\end{array}
if y < 3.79999999999999979e102Initial program 89.1%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified72.6%
Taylor expanded in y around 0
Simplified51.7%
if 3.79999999999999979e102 < y Initial program 100.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
fma-defineN/A
associate-/l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
fma-defineN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
Simplified90.9%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6473.8%
Simplified73.8%
Taylor expanded in y around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6473.8%
Simplified73.8%
Taylor expanded in x around 0
unpow3N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6471.4%
Simplified71.4%
(FPCore (x y) :precision binary64 (* x (/ y x)))
double code(double x, double y) {
return x * (y / x);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = x * (y / x)
end function
public static double code(double x, double y) {
return x * (y / x);
}
def code(x, y): return x * (y / x)
function code(x, y) return Float64(x * Float64(y / x)) end
function tmp = code(x, y) tmp = x * (y / x); end
code[x_, y_] := N[(x * N[(y / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{y}{x}
\end{array}
Initial program 90.9%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified72.4%
Taylor expanded in y around 0
Simplified48.7%
(FPCore (x y) :precision binary64 y)
double code(double x, double y) {
return y;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = y
end function
public static double code(double x, double y) {
return y;
}
def code(x, y): return y
function code(x, y) return y end
function tmp = code(x, y) tmp = y; end
code[x_, y_] := y
\begin{array}{l}
\\
y
\end{array}
Initial program 90.9%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.9%
Simplified99.9%
Taylor expanded in x around 0
Simplified72.4%
Taylor expanded in y around 0
Simplified23.5%
(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 2024155
(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))