
(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 23 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 87.1%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
(FPCore (x y)
:precision binary64
(let* ((t_0 (+ 1.0 (* 0.16666666666666666 (* y y))))
(t_1 (+ 1.0 (* x (* x -0.16666666666666666)))))
(if (<= y 1.35e-8)
(/ y (/ x (sin x)))
(if (<= y 2.6e+48)
(sinh y)
(if (<= y 4.8e+124)
(*
y
(+
(* t_0 t_1)
(*
(* y y)
(*
y
(*
y
(*
t_1
(+ 0.008333333333333333 (* (* y y) 0.0001984126984126984))))))))
(* y (* t_0 (/ (sin x) x))))))))
double code(double x, double y) {
double t_0 = 1.0 + (0.16666666666666666 * (y * y));
double t_1 = 1.0 + (x * (x * -0.16666666666666666));
double tmp;
if (y <= 1.35e-8) {
tmp = y / (x / sin(x));
} else if (y <= 2.6e+48) {
tmp = sinh(y);
} else if (y <= 4.8e+124) {
tmp = y * ((t_0 * t_1) + ((y * y) * (y * (y * (t_1 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
} else {
tmp = y * (t_0 * (sin(x) / 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) :: t_1
real(8) :: tmp
t_0 = 1.0d0 + (0.16666666666666666d0 * (y * y))
t_1 = 1.0d0 + (x * (x * (-0.16666666666666666d0)))
if (y <= 1.35d-8) then
tmp = y / (x / sin(x))
else if (y <= 2.6d+48) then
tmp = sinh(y)
else if (y <= 4.8d+124) then
tmp = y * ((t_0 * t_1) + ((y * y) * (y * (y * (t_1 * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)))))))
else
tmp = y * (t_0 * (sin(x) / x))
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = 1.0 + (0.16666666666666666 * (y * y));
double t_1 = 1.0 + (x * (x * -0.16666666666666666));
double tmp;
if (y <= 1.35e-8) {
tmp = y / (x / Math.sin(x));
} else if (y <= 2.6e+48) {
tmp = Math.sinh(y);
} else if (y <= 4.8e+124) {
tmp = y * ((t_0 * t_1) + ((y * y) * (y * (y * (t_1 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
} else {
tmp = y * (t_0 * (Math.sin(x) / x));
}
return tmp;
}
def code(x, y): t_0 = 1.0 + (0.16666666666666666 * (y * y)) t_1 = 1.0 + (x * (x * -0.16666666666666666)) tmp = 0 if y <= 1.35e-8: tmp = y / (x / math.sin(x)) elif y <= 2.6e+48: tmp = math.sinh(y) elif y <= 4.8e+124: tmp = y * ((t_0 * t_1) + ((y * y) * (y * (y * (t_1 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))) else: tmp = y * (t_0 * (math.sin(x) / x)) return tmp
function code(x, y) t_0 = Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y))) t_1 = Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666))) tmp = 0.0 if (y <= 1.35e-8) tmp = Float64(y / Float64(x / sin(x))); elseif (y <= 2.6e+48) tmp = sinh(y); elseif (y <= 4.8e+124) tmp = Float64(y * Float64(Float64(t_0 * t_1) + Float64(Float64(y * y) * Float64(y * Float64(y * Float64(t_1 * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984)))))))); else tmp = Float64(y * Float64(t_0 * Float64(sin(x) / x))); end return tmp end
function tmp_2 = code(x, y) t_0 = 1.0 + (0.16666666666666666 * (y * y)); t_1 = 1.0 + (x * (x * -0.16666666666666666)); tmp = 0.0; if (y <= 1.35e-8) tmp = y / (x / sin(x)); elseif (y <= 2.6e+48) tmp = sinh(y); elseif (y <= 4.8e+124) tmp = y * ((t_0 * t_1) + ((y * y) * (y * (y * (t_1 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))); else tmp = y * (t_0 * (sin(x) / x)); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 1.35e-8], N[(y / N[(x / N[Sin[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.6e+48], N[Sinh[y], $MachinePrecision], If[LessEqual[y, 4.8e+124], N[(y * N[(N[(t$95$0 * t$95$1), $MachinePrecision] + N[(N[(y * y), $MachinePrecision] * N[(y * N[(y * N[(t$95$1 * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(t$95$0 * N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\\
t_1 := 1 + x \cdot \left(x \cdot -0.16666666666666666\right)\\
\mathbf{if}\;y \leq 1.35 \cdot 10^{-8}:\\
\;\;\;\;\frac{y}{\frac{x}{\sin x}}\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{+48}:\\
\;\;\;\;\sinh y\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{+124}:\\
\;\;\;\;y \cdot \left(t\_0 \cdot t\_1 + \left(y \cdot y\right) \cdot \left(y \cdot \left(y \cdot \left(t\_1 \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(t\_0 \cdot \frac{\sin x}{x}\right)\\
\end{array}
\end{array}
if y < 1.35000000000000001e-8Initial program 82.5%
Taylor expanded in y around 0
Simplified55.2%
*-commutativeN/A
associate-/l*N/A
clear-numN/A
*-lft-identityN/A
associate-*l/N/A
un-div-invN/A
/-lowering-/.f64N/A
associate-*l/N/A
*-lft-identityN/A
/-lowering-/.f64N/A
sin-lowering-sin.f6472.6%
Applied egg-rr72.6%
if 1.35000000000000001e-8 < y < 2.59999999999999995e48Initial 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
Simplified100.0%
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
sinh-lowering-sinh.f64100.0%
Applied egg-rr100.0%
if 2.59999999999999995e48 < y < 4.80000000000000013e124Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6480.0%
Simplified80.0%
Taylor expanded in y around 0
Simplified80.0%
if 4.80000000000000013e124 < 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%
(FPCore (x y)
:precision binary64
(if (<= y 8e-8)
(/ y (/ x (sin x)))
(if (<= y 8.2e+124)
(/ (* (sinh y) (* x (+ 1.0 (* (* x x) -0.16666666666666666)))) x)
(* y (* (+ 1.0 (* 0.16666666666666666 (* y y))) (/ (sin x) x))))))
double code(double x, double y) {
double tmp;
if (y <= 8e-8) {
tmp = y / (x / sin(x));
} else if (y <= 8.2e+124) {
tmp = (sinh(y) * (x * (1.0 + ((x * x) * -0.16666666666666666)))) / x;
} else {
tmp = y * ((1.0 + (0.16666666666666666 * (y * y))) * (sin(x) / x));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 8d-8) then
tmp = y / (x / sin(x))
else if (y <= 8.2d+124) then
tmp = (sinh(y) * (x * (1.0d0 + ((x * x) * (-0.16666666666666666d0))))) / x
else
tmp = y * ((1.0d0 + (0.16666666666666666d0 * (y * y))) * (sin(x) / x))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 8e-8) {
tmp = y / (x / Math.sin(x));
} else if (y <= 8.2e+124) {
tmp = (Math.sinh(y) * (x * (1.0 + ((x * x) * -0.16666666666666666)))) / x;
} else {
tmp = y * ((1.0 + (0.16666666666666666 * (y * y))) * (Math.sin(x) / x));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 8e-8: tmp = y / (x / math.sin(x)) elif y <= 8.2e+124: tmp = (math.sinh(y) * (x * (1.0 + ((x * x) * -0.16666666666666666)))) / x else: tmp = y * ((1.0 + (0.16666666666666666 * (y * y))) * (math.sin(x) / x)) return tmp
function code(x, y) tmp = 0.0 if (y <= 8e-8) tmp = Float64(y / Float64(x / sin(x))); elseif (y <= 8.2e+124) tmp = Float64(Float64(sinh(y) * Float64(x * Float64(1.0 + Float64(Float64(x * x) * -0.16666666666666666)))) / x); else tmp = Float64(y * Float64(Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y))) * Float64(sin(x) / x))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 8e-8) tmp = y / (x / sin(x)); elseif (y <= 8.2e+124) tmp = (sinh(y) * (x * (1.0 + ((x * x) * -0.16666666666666666)))) / x; else tmp = y * ((1.0 + (0.16666666666666666 * (y * y))) * (sin(x) / x)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 8e-8], N[(y / N[(x / N[Sin[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.2e+124], N[(N[(N[Sinh[y], $MachinePrecision] * N[(x * N[(1.0 + N[(N[(x * x), $MachinePrecision] * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(y * N[(N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 8 \cdot 10^{-8}:\\
\;\;\;\;\frac{y}{\frac{x}{\sin x}}\\
\mathbf{elif}\;y \leq 8.2 \cdot 10^{+124}:\\
\;\;\;\;\frac{\sinh y \cdot \left(x \cdot \left(1 + \left(x \cdot x\right) \cdot -0.16666666666666666\right)\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right) \cdot \frac{\sin x}{x}\right)\\
\end{array}
\end{array}
if y < 8.0000000000000002e-8Initial program 82.5%
Taylor expanded in y around 0
Simplified55.2%
*-commutativeN/A
associate-/l*N/A
clear-numN/A
*-lft-identityN/A
associate-*l/N/A
un-div-invN/A
/-lowering-/.f64N/A
associate-*l/N/A
*-lft-identityN/A
/-lowering-/.f64N/A
sin-lowering-sin.f6472.6%
Applied egg-rr72.6%
if 8.0000000000000002e-8 < y < 8.20000000000000002e124Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6485.7%
Simplified85.7%
if 8.20000000000000002e124 < 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%
Final simplification78.6%
(FPCore (x y)
:precision binary64
(let* ((t_0 (+ 1.0 (* x (* x -0.16666666666666666)))))
(if (<= y 1.35e-8)
(/ y (/ x (sin x)))
(if (<= y 1.6e+49)
(sinh y)
(*
y
(+
(* (+ 1.0 (* 0.16666666666666666 (* y y))) t_0)
(*
(* y y)
(*
y
(*
y
(*
t_0
(+
0.008333333333333333
(* (* y y) 0.0001984126984126984))))))))))))
double code(double x, double y) {
double t_0 = 1.0 + (x * (x * -0.16666666666666666));
double tmp;
if (y <= 1.35e-8) {
tmp = y / (x / sin(x));
} else if (y <= 1.6e+49) {
tmp = sinh(y);
} else {
tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
}
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 + (x * (x * (-0.16666666666666666d0)))
if (y <= 1.35d-8) then
tmp = y / (x / sin(x))
else if (y <= 1.6d+49) then
tmp = sinh(y)
else
tmp = y * (((1.0d0 + (0.16666666666666666d0 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = 1.0 + (x * (x * -0.16666666666666666));
double tmp;
if (y <= 1.35e-8) {
tmp = y / (x / Math.sin(x));
} else if (y <= 1.6e+49) {
tmp = Math.sinh(y);
} else {
tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
}
return tmp;
}
def code(x, y): t_0 = 1.0 + (x * (x * -0.16666666666666666)) tmp = 0 if y <= 1.35e-8: tmp = y / (x / math.sin(x)) elif y <= 1.6e+49: tmp = math.sinh(y) else: tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))) return tmp
function code(x, y) t_0 = Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666))) tmp = 0.0 if (y <= 1.35e-8) tmp = Float64(y / Float64(x / sin(x))); elseif (y <= 1.6e+49) tmp = sinh(y); else tmp = Float64(y * Float64(Float64(Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y))) * t_0) + Float64(Float64(y * y) * Float64(y * Float64(y * Float64(t_0 * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984)))))))); end return tmp end
function tmp_2 = code(x, y) t_0 = 1.0 + (x * (x * -0.16666666666666666)); tmp = 0.0; if (y <= 1.35e-8) tmp = y / (x / sin(x)); elseif (y <= 1.6e+49) tmp = sinh(y); else tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 1.35e-8], N[(y / N[(x / N[Sin[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e+49], N[Sinh[y], $MachinePrecision], N[(y * N[(N[(N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision] + N[(N[(y * y), $MachinePrecision] * N[(y * N[(y * N[(t$95$0 * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 + x \cdot \left(x \cdot -0.16666666666666666\right)\\
\mathbf{if}\;y \leq 1.35 \cdot 10^{-8}:\\
\;\;\;\;\frac{y}{\frac{x}{\sin x}}\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{+49}:\\
\;\;\;\;\sinh y\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right) \cdot t\_0 + \left(y \cdot y\right) \cdot \left(y \cdot \left(y \cdot \left(t\_0 \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 1.35000000000000001e-8Initial program 82.5%
Taylor expanded in y around 0
Simplified55.2%
*-commutativeN/A
associate-/l*N/A
clear-numN/A
*-lft-identityN/A
associate-*l/N/A
un-div-invN/A
/-lowering-/.f64N/A
associate-*l/N/A
*-lft-identityN/A
/-lowering-/.f64N/A
sin-lowering-sin.f6472.6%
Applied egg-rr72.6%
if 1.35000000000000001e-8 < y < 1.60000000000000007e49Initial 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
Simplified100.0%
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
sinh-lowering-sinh.f64100.0%
Applied egg-rr100.0%
if 1.60000000000000007e49 < y Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6480.3%
Simplified80.3%
Taylor expanded in y around 0
Simplified80.3%
(FPCore (x y)
:precision binary64
(let* ((t_0 (+ 1.0 (* x (* x -0.16666666666666666)))))
(if (<= y 1.35e-8)
(* y (/ (sin x) x))
(if (<= y 5e+44)
(sinh y)
(*
y
(+
(* (+ 1.0 (* 0.16666666666666666 (* y y))) t_0)
(*
(* y y)
(*
y
(*
y
(*
t_0
(+
0.008333333333333333
(* (* y y) 0.0001984126984126984))))))))))))
double code(double x, double y) {
double t_0 = 1.0 + (x * (x * -0.16666666666666666));
double tmp;
if (y <= 1.35e-8) {
tmp = y * (sin(x) / x);
} else if (y <= 5e+44) {
tmp = sinh(y);
} else {
tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
}
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 + (x * (x * (-0.16666666666666666d0)))
if (y <= 1.35d-8) then
tmp = y * (sin(x) / x)
else if (y <= 5d+44) then
tmp = sinh(y)
else
tmp = y * (((1.0d0 + (0.16666666666666666d0 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = 1.0 + (x * (x * -0.16666666666666666));
double tmp;
if (y <= 1.35e-8) {
tmp = y * (Math.sin(x) / x);
} else if (y <= 5e+44) {
tmp = Math.sinh(y);
} else {
tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
}
return tmp;
}
def code(x, y): t_0 = 1.0 + (x * (x * -0.16666666666666666)) tmp = 0 if y <= 1.35e-8: tmp = y * (math.sin(x) / x) elif y <= 5e+44: tmp = math.sinh(y) else: tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))) return tmp
function code(x, y) t_0 = Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666))) tmp = 0.0 if (y <= 1.35e-8) tmp = Float64(y * Float64(sin(x) / x)); elseif (y <= 5e+44) tmp = sinh(y); else tmp = Float64(y * Float64(Float64(Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y))) * t_0) + Float64(Float64(y * y) * Float64(y * Float64(y * Float64(t_0 * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984)))))))); end return tmp end
function tmp_2 = code(x, y) t_0 = 1.0 + (x * (x * -0.16666666666666666)); tmp = 0.0; if (y <= 1.35e-8) tmp = y * (sin(x) / x); elseif (y <= 5e+44) tmp = sinh(y); else tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 1.35e-8], N[(y * N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5e+44], N[Sinh[y], $MachinePrecision], N[(y * N[(N[(N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision] + N[(N[(y * y), $MachinePrecision] * N[(y * N[(y * N[(t$95$0 * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 + x \cdot \left(x \cdot -0.16666666666666666\right)\\
\mathbf{if}\;y \leq 1.35 \cdot 10^{-8}:\\
\;\;\;\;y \cdot \frac{\sin x}{x}\\
\mathbf{elif}\;y \leq 5 \cdot 10^{+44}:\\
\;\;\;\;\sinh y\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right) \cdot t\_0 + \left(y \cdot y\right) \cdot \left(y \cdot \left(y \cdot \left(t\_0 \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 1.35000000000000001e-8Initial program 82.5%
Taylor expanded in y around 0
Simplified55.2%
*-commutativeN/A
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f6472.5%
Applied egg-rr72.5%
if 1.35000000000000001e-8 < y < 4.9999999999999996e44Initial 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
Simplified100.0%
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
sinh-lowering-sinh.f64100.0%
Applied egg-rr100.0%
if 4.9999999999999996e44 < y Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6480.3%
Simplified80.3%
Taylor expanded in y around 0
Simplified80.3%
Final simplification75.0%
(FPCore (x y)
:precision binary64
(let* ((t_0 (+ 1.0 (* x (* x -0.16666666666666666)))))
(if (<= y 1.35e-8)
(* (sin x) (/ y x))
(if (<= y 1e+48)
(sinh y)
(*
y
(+
(* (+ 1.0 (* 0.16666666666666666 (* y y))) t_0)
(*
(* y y)
(*
y
(*
y
(*
t_0
(+
0.008333333333333333
(* (* y y) 0.0001984126984126984))))))))))))
double code(double x, double y) {
double t_0 = 1.0 + (x * (x * -0.16666666666666666));
double tmp;
if (y <= 1.35e-8) {
tmp = sin(x) * (y / x);
} else if (y <= 1e+48) {
tmp = sinh(y);
} else {
tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
}
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 + (x * (x * (-0.16666666666666666d0)))
if (y <= 1.35d-8) then
tmp = sin(x) * (y / x)
else if (y <= 1d+48) then
tmp = sinh(y)
else
tmp = y * (((1.0d0 + (0.16666666666666666d0 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = 1.0 + (x * (x * -0.16666666666666666));
double tmp;
if (y <= 1.35e-8) {
tmp = Math.sin(x) * (y / x);
} else if (y <= 1e+48) {
tmp = Math.sinh(y);
} else {
tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
}
return tmp;
}
def code(x, y): t_0 = 1.0 + (x * (x * -0.16666666666666666)) tmp = 0 if y <= 1.35e-8: tmp = math.sin(x) * (y / x) elif y <= 1e+48: tmp = math.sinh(y) else: tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))) return tmp
function code(x, y) t_0 = Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666))) tmp = 0.0 if (y <= 1.35e-8) tmp = Float64(sin(x) * Float64(y / x)); elseif (y <= 1e+48) tmp = sinh(y); else tmp = Float64(y * Float64(Float64(Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y))) * t_0) + Float64(Float64(y * y) * Float64(y * Float64(y * Float64(t_0 * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984)))))))); end return tmp end
function tmp_2 = code(x, y) t_0 = 1.0 + (x * (x * -0.16666666666666666)); tmp = 0.0; if (y <= 1.35e-8) tmp = sin(x) * (y / x); elseif (y <= 1e+48) tmp = sinh(y); else tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 1.35e-8], N[(N[Sin[x], $MachinePrecision] * N[(y / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e+48], N[Sinh[y], $MachinePrecision], N[(y * N[(N[(N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision] + N[(N[(y * y), $MachinePrecision] * N[(y * N[(y * N[(t$95$0 * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 + x \cdot \left(x \cdot -0.16666666666666666\right)\\
\mathbf{if}\;y \leq 1.35 \cdot 10^{-8}:\\
\;\;\;\;\sin x \cdot \frac{y}{x}\\
\mathbf{elif}\;y \leq 10^{+48}:\\
\;\;\;\;\sinh y\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right) \cdot t\_0 + \left(y \cdot y\right) \cdot \left(y \cdot \left(y \cdot \left(t\_0 \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 1.35000000000000001e-8Initial program 82.5%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
Taylor expanded in y around 0
/-lowering-/.f6479.8%
Simplified79.8%
if 1.35000000000000001e-8 < y < 1.00000000000000004e48Initial 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
Simplified100.0%
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
sinh-lowering-sinh.f64100.0%
Applied egg-rr100.0%
if 1.00000000000000004e48 < y Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6480.3%
Simplified80.3%
Taylor expanded in y around 0
Simplified80.3%
(FPCore (x y)
:precision binary64
(let* ((t_0 (+ 1.0 (* x (* x -0.16666666666666666)))))
(if (<= y 4e-52)
(/ x (/ x y))
(if (<= y 1e+48)
(sinh y)
(*
y
(+
(* (+ 1.0 (* 0.16666666666666666 (* y y))) t_0)
(*
(* y y)
(*
y
(*
y
(*
t_0
(+
0.008333333333333333
(* (* y y) 0.0001984126984126984))))))))))))
double code(double x, double y) {
double t_0 = 1.0 + (x * (x * -0.16666666666666666));
double tmp;
if (y <= 4e-52) {
tmp = x / (x / y);
} else if (y <= 1e+48) {
tmp = sinh(y);
} else {
tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
}
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 + (x * (x * (-0.16666666666666666d0)))
if (y <= 4d-52) then
tmp = x / (x / y)
else if (y <= 1d+48) then
tmp = sinh(y)
else
tmp = y * (((1.0d0 + (0.16666666666666666d0 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = 1.0 + (x * (x * -0.16666666666666666));
double tmp;
if (y <= 4e-52) {
tmp = x / (x / y);
} else if (y <= 1e+48) {
tmp = Math.sinh(y);
} else {
tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
}
return tmp;
}
def code(x, y): t_0 = 1.0 + (x * (x * -0.16666666666666666)) tmp = 0 if y <= 4e-52: tmp = x / (x / y) elif y <= 1e+48: tmp = math.sinh(y) else: tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))) return tmp
function code(x, y) t_0 = Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666))) tmp = 0.0 if (y <= 4e-52) tmp = Float64(x / Float64(x / y)); elseif (y <= 1e+48) tmp = sinh(y); else tmp = Float64(y * Float64(Float64(Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y))) * t_0) + Float64(Float64(y * y) * Float64(y * Float64(y * Float64(t_0 * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984)))))))); end return tmp end
function tmp_2 = code(x, y) t_0 = 1.0 + (x * (x * -0.16666666666666666)); tmp = 0.0; if (y <= 4e-52) tmp = x / (x / y); elseif (y <= 1e+48) tmp = sinh(y); else tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 4e-52], N[(x / N[(x / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e+48], N[Sinh[y], $MachinePrecision], N[(y * N[(N[(N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision] + N[(N[(y * y), $MachinePrecision] * N[(y * N[(y * N[(t$95$0 * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 + x \cdot \left(x \cdot -0.16666666666666666\right)\\
\mathbf{if}\;y \leq 4 \cdot 10^{-52}:\\
\;\;\;\;\frac{x}{\frac{x}{y}}\\
\mathbf{elif}\;y \leq 10^{+48}:\\
\;\;\;\;\sinh y\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right) \cdot t\_0 + \left(y \cdot y\right) \cdot \left(y \cdot \left(y \cdot \left(t\_0 \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 4e-52Initial program 82.5%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
Taylor expanded in x around 0
Simplified68.1%
Taylor expanded in y around 0
/-lowering-/.f6456.7%
Simplified56.7%
clear-numN/A
div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6458.0%
Applied egg-rr58.0%
if 4e-52 < y < 1.00000000000000004e48Initial program 93.3%
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
Simplified69.4%
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
sinh-lowering-sinh.f6469.4%
Applied egg-rr69.4%
if 1.00000000000000004e48 < y Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6480.3%
Simplified80.3%
Taylor expanded in y around 0
Simplified80.3%
(FPCore (x y)
:precision binary64
(let* ((t_0 (+ 1.0 (* x (* x -0.16666666666666666)))))
(if (<= y 3.6e+44)
(* x (/ (sinh y) x))
(*
y
(+
(* (+ 1.0 (* 0.16666666666666666 (* y y))) t_0)
(*
(* y y)
(*
y
(*
y
(*
t_0
(+ 0.008333333333333333 (* (* y y) 0.0001984126984126984)))))))))))
double code(double x, double y) {
double t_0 = 1.0 + (x * (x * -0.16666666666666666));
double tmp;
if (y <= 3.6e+44) {
tmp = x * (sinh(y) / x);
} else {
tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
}
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 + (x * (x * (-0.16666666666666666d0)))
if (y <= 3.6d+44) then
tmp = x * (sinh(y) / x)
else
tmp = y * (((1.0d0 + (0.16666666666666666d0 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = 1.0 + (x * (x * -0.16666666666666666));
double tmp;
if (y <= 3.6e+44) {
tmp = x * (Math.sinh(y) / x);
} else {
tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
}
return tmp;
}
def code(x, y): t_0 = 1.0 + (x * (x * -0.16666666666666666)) tmp = 0 if y <= 3.6e+44: tmp = x * (math.sinh(y) / x) else: tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))) return tmp
function code(x, y) t_0 = Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666))) tmp = 0.0 if (y <= 3.6e+44) tmp = Float64(x * Float64(sinh(y) / x)); else tmp = Float64(y * Float64(Float64(Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y))) * t_0) + Float64(Float64(y * y) * Float64(y * Float64(y * Float64(t_0 * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984)))))))); end return tmp end
function tmp_2 = code(x, y) t_0 = 1.0 + (x * (x * -0.16666666666666666)); tmp = 0.0; if (y <= 3.6e+44) tmp = x * (sinh(y) / x); else tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 3.6e+44], N[(x * N[(N[Sinh[y], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision] + N[(N[(y * y), $MachinePrecision] * N[(y * N[(y * N[(t$95$0 * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 + x \cdot \left(x \cdot -0.16666666666666666\right)\\
\mathbf{if}\;y \leq 3.6 \cdot 10^{+44}:\\
\;\;\;\;x \cdot \frac{\sinh y}{x}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right) \cdot t\_0 + \left(y \cdot y\right) \cdot \left(y \cdot \left(y \cdot \left(t\_0 \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 3.6e44Initial program 83.1%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
Taylor expanded in x around 0
Simplified68.2%
if 3.6e44 < y Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6480.3%
Simplified80.3%
Taylor expanded in y around 0
Simplified80.3%
(FPCore (x y)
:precision binary64
(let* ((t_0 (+ 1.0 (* x (* x -0.16666666666666666)))))
(if (<= y 5e+44)
(/
x
(/
(/ x y)
(+
1.0
(*
y
(*
y
(+
0.16666666666666666
(*
y
(*
y
(+ 0.008333333333333333 (* y (* y 0.0001984126984126984)))))))))))
(*
y
(+
(* (+ 1.0 (* 0.16666666666666666 (* y y))) t_0)
(*
(* y y)
(*
y
(*
y
(*
t_0
(+ 0.008333333333333333 (* (* y y) 0.0001984126984126984)))))))))))
double code(double x, double y) {
double t_0 = 1.0 + (x * (x * -0.16666666666666666));
double tmp;
if (y <= 5e+44) {
tmp = x / ((x / y) / (1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + (y * (y * 0.0001984126984126984))))))))));
} else {
tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
}
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 + (x * (x * (-0.16666666666666666d0)))
if (y <= 5d+44) then
tmp = x / ((x / y) / (1.0d0 + (y * (y * (0.16666666666666666d0 + (y * (y * (0.008333333333333333d0 + (y * (y * 0.0001984126984126984d0))))))))))
else
tmp = y * (((1.0d0 + (0.16666666666666666d0 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = 1.0 + (x * (x * -0.16666666666666666));
double tmp;
if (y <= 5e+44) {
tmp = x / ((x / y) / (1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + (y * (y * 0.0001984126984126984))))))))));
} else {
tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
}
return tmp;
}
def code(x, y): t_0 = 1.0 + (x * (x * -0.16666666666666666)) tmp = 0 if y <= 5e+44: tmp = x / ((x / y) / (1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + (y * (y * 0.0001984126984126984)))))))))) else: tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))) return tmp
function code(x, y) t_0 = Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666))) tmp = 0.0 if (y <= 5e+44) tmp = Float64(x / Float64(Float64(x / y) / Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(y * Float64(y * Float64(0.008333333333333333 + Float64(y * Float64(y * 0.0001984126984126984))))))))))); else tmp = Float64(y * Float64(Float64(Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y))) * t_0) + Float64(Float64(y * y) * Float64(y * Float64(y * Float64(t_0 * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984)))))))); end return tmp end
function tmp_2 = code(x, y) t_0 = 1.0 + (x * (x * -0.16666666666666666)); tmp = 0.0; if (y <= 5e+44) tmp = x / ((x / y) / (1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + (y * (y * 0.0001984126984126984)))))))))); else tmp = y * (((1.0 + (0.16666666666666666 * (y * y))) * t_0) + ((y * y) * (y * (y * (t_0 * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 5e+44], N[(x / N[(N[(x / y), $MachinePrecision] / N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(y * N[(y * N[(0.008333333333333333 + N[(y * N[(y * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision] + N[(N[(y * y), $MachinePrecision] * N[(y * N[(y * N[(t$95$0 * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 + x \cdot \left(x \cdot -0.16666666666666666\right)\\
\mathbf{if}\;y \leq 5 \cdot 10^{+44}:\\
\;\;\;\;\frac{x}{\frac{\frac{x}{y}}{1 + y \cdot \left(y \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right) \cdot t\_0 + \left(y \cdot y\right) \cdot \left(y \cdot \left(y \cdot \left(t\_0 \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 4.9999999999999996e44Initial program 83.1%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
Taylor expanded in x around 0
Simplified68.2%
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-*.f6466.2%
Simplified66.2%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
Applied egg-rr66.9%
if 4.9999999999999996e44 < y Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6480.3%
Simplified80.3%
Taylor expanded in y around 0
Simplified80.3%
(FPCore (x y)
:precision binary64
(if (<= y 2.1e+114)
(/
x
(/
(/ x y)
(+
1.0
(*
y
(*
y
(+
0.16666666666666666
(*
y
(*
y
(+ 0.008333333333333333 (* y (* y 0.0001984126984126984)))))))))))
(*
y
(* (* y y) (+ 0.16666666666666666 (* (* x x) -0.027777777777777776))))))
double code(double x, double y) {
double tmp;
if (y <= 2.1e+114) {
tmp = x / ((x / y) / (1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + (y * (y * 0.0001984126984126984))))))))));
} else {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 2.1d+114) then
tmp = x / ((x / y) / (1.0d0 + (y * (y * (0.16666666666666666d0 + (y * (y * (0.008333333333333333d0 + (y * (y * 0.0001984126984126984d0))))))))))
else
tmp = y * ((y * y) * (0.16666666666666666d0 + ((x * x) * (-0.027777777777777776d0))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 2.1e+114) {
tmp = x / ((x / y) / (1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + (y * (y * 0.0001984126984126984))))))))));
} else {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 2.1e+114: tmp = x / ((x / y) / (1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + (y * (y * 0.0001984126984126984)))))))))) else: tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))) return tmp
function code(x, y) tmp = 0.0 if (y <= 2.1e+114) tmp = Float64(x / Float64(Float64(x / y) / Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(y * Float64(y * Float64(0.008333333333333333 + Float64(y * Float64(y * 0.0001984126984126984))))))))))); else tmp = Float64(y * Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.027777777777777776)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 2.1e+114) tmp = x / ((x / y) / (1.0 + (y * (y * (0.16666666666666666 + (y * (y * (0.008333333333333333 + (y * (y * 0.0001984126984126984)))))))))); else tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 2.1e+114], N[(x / N[(N[(x / y), $MachinePrecision] / N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(y * N[(y * N[(0.008333333333333333 + N[(y * N[(y * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.027777777777777776), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.1 \cdot 10^{+114}:\\
\;\;\;\;\frac{x}{\frac{\frac{x}{y}}{1 + y \cdot \left(y \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.027777777777777776\right)\right)\\
\end{array}
\end{array}
if y < 2.1e114Initial program 84.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
Taylor expanded in x around 0
Simplified68.6%
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-*.f6466.7%
Simplified66.7%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
Applied egg-rr67.4%
if 2.1e114 < y Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6481.6%
Simplified81.6%
Taylor expanded in y around 0
associate-+r+N/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt1-inN/A
+-commutativeN/A
Simplified81.6%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6481.6%
Simplified81.6%
Final simplification70.1%
(FPCore (x y)
:precision binary64
(if (<= x 1.65e+48)
(*
x
(/
(*
y
(+
1.0
(*
(* y y)
(+
0.16666666666666666
(*
(* y y)
(+ 0.008333333333333333 (* (* y y) 0.0001984126984126984)))))))
x))
(if (<= x 5.5e+126)
(*
y
(* (* y y) (+ 0.16666666666666666 (* (* x x) -0.027777777777777776))))
(* x (/ (* y (* 0.008333333333333333 (* y (* y (* y y))))) x)))))
double code(double x, double y) {
double tmp;
if (x <= 1.65e+48) {
tmp = x * ((y * (1.0 + ((y * y) * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))) / x);
} else if (x <= 5.5e+126) {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
} else {
tmp = x * ((y * (0.008333333333333333 * (y * (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.65d+48) then
tmp = x * ((y * (1.0d0 + ((y * y) * (0.16666666666666666d0 + ((y * y) * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0))))))) / x)
else if (x <= 5.5d+126) then
tmp = y * ((y * y) * (0.16666666666666666d0 + ((x * x) * (-0.027777777777777776d0))))
else
tmp = x * ((y * (0.008333333333333333d0 * (y * (y * (y * y))))) / x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 1.65e+48) {
tmp = x * ((y * (1.0 + ((y * y) * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))) / x);
} else if (x <= 5.5e+126) {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
} else {
tmp = x * ((y * (0.008333333333333333 * (y * (y * (y * y))))) / x);
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 1.65e+48: tmp = x * ((y * (1.0 + ((y * y) * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))) / x) elif x <= 5.5e+126: tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))) else: tmp = x * ((y * (0.008333333333333333 * (y * (y * (y * y))))) / x) return tmp
function code(x, y) tmp = 0.0 if (x <= 1.65e+48) tmp = Float64(x * Float64(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))))))) / x)); elseif (x <= 5.5e+126) tmp = Float64(y * Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.027777777777777776)))); else tmp = Float64(x * Float64(Float64(y * Float64(0.008333333333333333 * Float64(y * Float64(y * Float64(y * y))))) / x)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 1.65e+48) tmp = x * ((y * (1.0 + ((y * y) * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))) / x); elseif (x <= 5.5e+126) tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))); else tmp = x * ((y * (0.008333333333333333 * (y * (y * (y * y))))) / x); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 1.65e+48], N[(x * N[(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] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.5e+126], N[(y * N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.027777777777777776), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * N[(0.008333333333333333 * N[(y * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.65 \cdot 10^{+48}:\\
\;\;\;\;x \cdot \frac{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)}{x}\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{+126}:\\
\;\;\;\;y \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.027777777777777776\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y \cdot \left(0.008333333333333333 \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)}{x}\\
\end{array}
\end{array}
if x < 1.65000000000000011e48Initial program 84.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
Simplified76.2%
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-*.f6474.4%
Simplified74.4%
if 1.65000000000000011e48 < x < 5.5000000000000004e126Initial program 99.5%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6440.3%
Simplified40.3%
Taylor expanded in y around 0
associate-+r+N/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt1-inN/A
+-commutativeN/A
Simplified40.4%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6442.9%
Simplified42.9%
if 5.5000000000000004e126 < x Initial program 99.9%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
Taylor expanded in x around 0
Simplified51.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-*.f6451.0%
Simplified51.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
unpow2N/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6455.0%
Simplified55.0%
Final simplification70.5%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* x (* (+ 1.0 (* x (* x -0.16666666666666666))) (/ y x)))))
(if (<= y 1.8e-14)
(/ x (/ x y))
(if (<= y 4e+92)
t_0
(if (<= y 7.7e+239)
(* y (+ 1.0 (* 0.16666666666666666 (* y y))))
t_0)))))
double code(double x, double y) {
double t_0 = x * ((1.0 + (x * (x * -0.16666666666666666))) * (y / x));
double tmp;
if (y <= 1.8e-14) {
tmp = x / (x / y);
} else if (y <= 4e+92) {
tmp = t_0;
} else if (y <= 7.7e+239) {
tmp = y * (1.0 + (0.16666666666666666 * (y * y)));
} 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 * ((1.0d0 + (x * (x * (-0.16666666666666666d0)))) * (y / x))
if (y <= 1.8d-14) then
tmp = x / (x / y)
else if (y <= 4d+92) then
tmp = t_0
else if (y <= 7.7d+239) then
tmp = y * (1.0d0 + (0.16666666666666666d0 * (y * y)))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = x * ((1.0 + (x * (x * -0.16666666666666666))) * (y / x));
double tmp;
if (y <= 1.8e-14) {
tmp = x / (x / y);
} else if (y <= 4e+92) {
tmp = t_0;
} else if (y <= 7.7e+239) {
tmp = y * (1.0 + (0.16666666666666666 * (y * y)));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = x * ((1.0 + (x * (x * -0.16666666666666666))) * (y / x)) tmp = 0 if y <= 1.8e-14: tmp = x / (x / y) elif y <= 4e+92: tmp = t_0 elif y <= 7.7e+239: tmp = y * (1.0 + (0.16666666666666666 * (y * y))) else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(x * Float64(Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666))) * Float64(y / x))) tmp = 0.0 if (y <= 1.8e-14) tmp = Float64(x / Float64(x / y)); elseif (y <= 4e+92) tmp = t_0; elseif (y <= 7.7e+239) tmp = Float64(y * Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y)))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = x * ((1.0 + (x * (x * -0.16666666666666666))) * (y / x)); tmp = 0.0; if (y <= 1.8e-14) tmp = x / (x / y); elseif (y <= 4e+92) tmp = t_0; elseif (y <= 7.7e+239) tmp = y * (1.0 + (0.16666666666666666 * (y * y))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(x * N[(N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 1.8e-14], N[(x / N[(x / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4e+92], t$95$0, If[LessEqual[y, 7.7e+239], N[(y * N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(\left(1 + x \cdot \left(x \cdot -0.16666666666666666\right)\right) \cdot \frac{y}{x}\right)\\
\mathbf{if}\;y \leq 1.8 \cdot 10^{-14}:\\
\;\;\;\;\frac{x}{\frac{x}{y}}\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+92}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 7.7 \cdot 10^{+239}:\\
\;\;\;\;y \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y < 1.7999999999999999e-14Initial program 82.3%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
Taylor expanded in x around 0
Simplified67.6%
Taylor expanded in y around 0
/-lowering-/.f6456.4%
Simplified56.4%
clear-numN/A
div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6457.6%
Applied egg-rr57.6%
if 1.7999999999999999e-14 < y < 4.0000000000000002e92 or 7.69999999999999994e239 < y Initial program 100.0%
Taylor expanded in y around 0
Simplified16.2%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
metadata-evalN/A
distribute-rgt-neg-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
metadata-evalN/A
*-lowering-*.f6429.5%
Simplified29.5%
associate-/l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6460.9%
Applied egg-rr60.9%
if 4.0000000000000002e92 < y < 7.69999999999999994e239Initial 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
Simplified81.1%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6474.0%
Simplified74.0%
(FPCore (x y)
:precision binary64
(if (<= y 3.05e+113)
(*
x
(/
1.0
(/
1.0
(/
(+
y
(*
y
(* y (* y (+ 0.16666666666666666 (* y (* y 0.008333333333333333)))))))
x))))
(*
y
(* (* y y) (+ 0.16666666666666666 (* (* x x) -0.027777777777777776))))))
double code(double x, double y) {
double tmp;
if (y <= 3.05e+113) {
tmp = x * (1.0 / (1.0 / ((y + (y * (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) / x)));
} else {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 3.05d+113) then
tmp = x * (1.0d0 / (1.0d0 / ((y + (y * (y * (y * (0.16666666666666666d0 + (y * (y * 0.008333333333333333d0))))))) / x)))
else
tmp = y * ((y * y) * (0.16666666666666666d0 + ((x * x) * (-0.027777777777777776d0))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 3.05e+113) {
tmp = x * (1.0 / (1.0 / ((y + (y * (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) / x)));
} else {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 3.05e+113: tmp = x * (1.0 / (1.0 / ((y + (y * (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) / x))) else: tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))) return tmp
function code(x, y) tmp = 0.0 if (y <= 3.05e+113) tmp = Float64(x * Float64(1.0 / Float64(1.0 / Float64(Float64(y + Float64(y * Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(y * Float64(y * 0.008333333333333333))))))) / x)))); else tmp = Float64(y * Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.027777777777777776)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 3.05e+113) tmp = x * (1.0 / (1.0 / ((y + (y * (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) / x))); else tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 3.05e+113], N[(x * N[(1.0 / N[(1.0 / N[(N[(y + N[(y * N[(y * N[(y * N[(0.16666666666666666 + N[(y * N[(y * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.027777777777777776), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 3.05 \cdot 10^{+113}:\\
\;\;\;\;x \cdot \frac{1}{\frac{1}{\frac{y + y \cdot \left(y \cdot \left(y \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot 0.008333333333333333\right)\right)\right)\right)}{x}}}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.027777777777777776\right)\right)\\
\end{array}
\end{array}
if y < 3.04999999999999998e113Initial program 84.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
Taylor expanded in x around 0
Simplified68.6%
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-*.f6465.3%
Simplified65.3%
div-invN/A
distribute-rgt-inN/A
*-lft-identityN/A
flip-+N/A
*-rgt-identityN/A
fmm-defN/A
frac-timesN/A
/-lowering-/.f64N/A
Applied egg-rr27.6%
clear-numN/A
/-lowering-/.f64N/A
clear-numN/A
/-lowering-/.f64N/A
Applied egg-rr66.4%
if 3.04999999999999998e113 < y Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6481.6%
Simplified81.6%
Taylor expanded in y around 0
associate-+r+N/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt1-inN/A
+-commutativeN/A
Simplified81.6%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6481.6%
Simplified81.6%
Final simplification69.3%
(FPCore (x y)
:precision binary64
(if (<= y 2.6e+114)
(/
x
(/
1.0
(/
(+
y
(*
y
(* y (* y (+ 0.16666666666666666 (* y (* y 0.008333333333333333)))))))
x)))
(*
y
(* (* y y) (+ 0.16666666666666666 (* (* x x) -0.027777777777777776))))))
double code(double x, double y) {
double tmp;
if (y <= 2.6e+114) {
tmp = x / (1.0 / ((y + (y * (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) / x));
} else {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 2.6d+114) then
tmp = x / (1.0d0 / ((y + (y * (y * (y * (0.16666666666666666d0 + (y * (y * 0.008333333333333333d0))))))) / x))
else
tmp = y * ((y * y) * (0.16666666666666666d0 + ((x * x) * (-0.027777777777777776d0))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 2.6e+114) {
tmp = x / (1.0 / ((y + (y * (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) / x));
} else {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 2.6e+114: tmp = x / (1.0 / ((y + (y * (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) / x)) else: tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))) return tmp
function code(x, y) tmp = 0.0 if (y <= 2.6e+114) tmp = Float64(x / Float64(1.0 / Float64(Float64(y + Float64(y * Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(y * Float64(y * 0.008333333333333333))))))) / x))); else tmp = Float64(y * Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.027777777777777776)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 2.6e+114) tmp = x / (1.0 / ((y + (y * (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) / x)); else tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 2.6e+114], N[(x / N[(1.0 / N[(N[(y + N[(y * N[(y * N[(y * N[(0.16666666666666666 + N[(y * N[(y * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.027777777777777776), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.6 \cdot 10^{+114}:\\
\;\;\;\;\frac{x}{\frac{1}{\frac{y + y \cdot \left(y \cdot \left(y \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot 0.008333333333333333\right)\right)\right)\right)}{x}}}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.027777777777777776\right)\right)\\
\end{array}
\end{array}
if y < 2.6e114Initial program 84.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
Taylor expanded in x around 0
Simplified68.6%
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-*.f6465.3%
Simplified65.3%
div-invN/A
distribute-rgt-inN/A
*-lft-identityN/A
flip-+N/A
*-rgt-identityN/A
fmm-defN/A
frac-timesN/A
/-lowering-/.f64N/A
Applied egg-rr27.6%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
clear-numN/A
Applied egg-rr66.4%
if 2.6e114 < y Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6481.6%
Simplified81.6%
Taylor expanded in y around 0
associate-+r+N/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt1-inN/A
+-commutativeN/A
Simplified81.6%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6481.6%
Simplified81.6%
Final simplification69.3%
(FPCore (x y)
:precision binary64
(if (<= x 1.65e+48)
(*
x
(/
(*
y
(+
1.0
(* y (* y (+ 0.16666666666666666 (* y (* y 0.008333333333333333)))))))
x))
(if (<= x 5.5e+126)
(*
y
(* (* y y) (+ 0.16666666666666666 (* (* x x) -0.027777777777777776))))
(* x (/ (* y (* 0.008333333333333333 (* y (* y (* y y))))) x)))))
double code(double x, double y) {
double tmp;
if (x <= 1.65e+48) {
tmp = x * ((y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) / x);
} else if (x <= 5.5e+126) {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
} else {
tmp = x * ((y * (0.008333333333333333 * (y * (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.65d+48) then
tmp = x * ((y * (1.0d0 + (y * (y * (0.16666666666666666d0 + (y * (y * 0.008333333333333333d0))))))) / x)
else if (x <= 5.5d+126) then
tmp = y * ((y * y) * (0.16666666666666666d0 + ((x * x) * (-0.027777777777777776d0))))
else
tmp = x * ((y * (0.008333333333333333d0 * (y * (y * (y * y))))) / x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 1.65e+48) {
tmp = x * ((y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) / x);
} else if (x <= 5.5e+126) {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
} else {
tmp = x * ((y * (0.008333333333333333 * (y * (y * (y * y))))) / x);
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 1.65e+48: tmp = x * ((y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) / x) elif x <= 5.5e+126: tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))) else: tmp = x * ((y * (0.008333333333333333 * (y * (y * (y * y))))) / x) return tmp
function code(x, y) tmp = 0.0 if (x <= 1.65e+48) 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 <= 5.5e+126) tmp = Float64(y * Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.027777777777777776)))); else tmp = Float64(x * Float64(Float64(y * Float64(0.008333333333333333 * Float64(y * Float64(y * Float64(y * y))))) / x)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 1.65e+48) tmp = x * ((y * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * 0.008333333333333333))))))) / x); elseif (x <= 5.5e+126) tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))); else tmp = x * ((y * (0.008333333333333333 * (y * (y * (y * y))))) / x); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 1.65e+48], 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, 5.5e+126], N[(y * N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.027777777777777776), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * N[(0.008333333333333333 * N[(y * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.65 \cdot 10^{+48}:\\
\;\;\;\;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 5.5 \cdot 10^{+126}:\\
\;\;\;\;y \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.027777777777777776\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y \cdot \left(0.008333333333333333 \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)}{x}\\
\end{array}
\end{array}
if x < 1.65000000000000011e48Initial program 84.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
Simplified76.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-*.f6473.0%
Simplified73.0%
if 1.65000000000000011e48 < x < 5.5000000000000004e126Initial program 99.5%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6440.3%
Simplified40.3%
Taylor expanded in y around 0
associate-+r+N/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt1-inN/A
+-commutativeN/A
Simplified40.4%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6442.9%
Simplified42.9%
if 5.5000000000000004e126 < x Initial program 99.9%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
Taylor expanded in x around 0
Simplified51.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-*.f6451.0%
Simplified51.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
unpow2N/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6455.0%
Simplified55.0%
Final simplification69.4%
(FPCore (x y)
:precision binary64
(if (<= y 2.4)
(/ x (/ (+ x (* y (* y (* x -0.16666666666666666)))) y))
(if (<= y 2.5e+113)
(* x (/ (* y (* 0.008333333333333333 (* y (* y (* y y))))) x))
(*
y
(* (* y y) (+ 0.16666666666666666 (* (* x x) -0.027777777777777776)))))))
double code(double x, double y) {
double tmp;
if (y <= 2.4) {
tmp = x / ((x + (y * (y * (x * -0.16666666666666666)))) / y);
} else if (y <= 2.5e+113) {
tmp = x * ((y * (0.008333333333333333 * (y * (y * (y * y))))) / x);
} else {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 2.4d0) then
tmp = x / ((x + (y * (y * (x * (-0.16666666666666666d0))))) / y)
else if (y <= 2.5d+113) then
tmp = x * ((y * (0.008333333333333333d0 * (y * (y * (y * y))))) / x)
else
tmp = y * ((y * y) * (0.16666666666666666d0 + ((x * x) * (-0.027777777777777776d0))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 2.4) {
tmp = x / ((x + (y * (y * (x * -0.16666666666666666)))) / y);
} else if (y <= 2.5e+113) {
tmp = x * ((y * (0.008333333333333333 * (y * (y * (y * y))))) / x);
} else {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 2.4: tmp = x / ((x + (y * (y * (x * -0.16666666666666666)))) / y) elif y <= 2.5e+113: tmp = x * ((y * (0.008333333333333333 * (y * (y * (y * y))))) / x) else: tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))) return tmp
function code(x, y) tmp = 0.0 if (y <= 2.4) tmp = Float64(x / Float64(Float64(x + Float64(y * Float64(y * Float64(x * -0.16666666666666666)))) / y)); elseif (y <= 2.5e+113) tmp = Float64(x * Float64(Float64(y * Float64(0.008333333333333333 * Float64(y * Float64(y * Float64(y * y))))) / x)); else tmp = Float64(y * Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.027777777777777776)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 2.4) tmp = x / ((x + (y * (y * (x * -0.16666666666666666)))) / y); elseif (y <= 2.5e+113) tmp = x * ((y * (0.008333333333333333 * (y * (y * (y * y))))) / x); else tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 2.4], N[(x / N[(N[(x + N[(y * N[(y * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.5e+113], N[(x * N[(N[(y * N[(0.008333333333333333 * N[(y * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.027777777777777776), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.4:\\
\;\;\;\;\frac{x}{\frac{x + y \cdot \left(y \cdot \left(x \cdot -0.16666666666666666\right)\right)}{y}}\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{+113}:\\
\;\;\;\;x \cdot \frac{y \cdot \left(0.008333333333333333 \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.027777777777777776\right)\right)\\
\end{array}
\end{array}
if y < 2.39999999999999991Initial program 82.7%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
Taylor expanded in x around 0
Simplified67.5%
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-*.f6466.0%
Simplified66.0%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
Applied egg-rr67.2%
Taylor expanded in y around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6449.8%
Simplified49.8%
if 2.39999999999999991 < y < 2.5e113Initial 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
Simplified81.3%
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-*.f6463.3%
Simplified63.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
unpow2N/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6463.3%
Simplified63.3%
if 2.5e113 < y Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6481.6%
Simplified81.6%
Taylor expanded in y around 0
associate-+r+N/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt1-inN/A
+-commutativeN/A
Simplified81.6%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6481.6%
Simplified81.6%
Final simplification56.7%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* x (/ (* y (+ 1.0 (* 0.16666666666666666 (* y y)))) x))))
(if (<= x 1.65e+48)
t_0
(if (<= x 5.5e+126)
(/ (* y (* -0.16666666666666666 (* x (* x x)))) x)
t_0))))
double code(double x, double y) {
double t_0 = x * ((y * (1.0 + (0.16666666666666666 * (y * y)))) / x);
double tmp;
if (x <= 1.65e+48) {
tmp = t_0;
} else if (x <= 5.5e+126) {
tmp = (y * (-0.16666666666666666 * (x * (x * x)))) / 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 = x * ((y * (1.0d0 + (0.16666666666666666d0 * (y * y)))) / x)
if (x <= 1.65d+48) then
tmp = t_0
else if (x <= 5.5d+126) then
tmp = (y * ((-0.16666666666666666d0) * (x * (x * x)))) / x
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 + (0.16666666666666666 * (y * y)))) / x);
double tmp;
if (x <= 1.65e+48) {
tmp = t_0;
} else if (x <= 5.5e+126) {
tmp = (y * (-0.16666666666666666 * (x * (x * x)))) / x;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = x * ((y * (1.0 + (0.16666666666666666 * (y * y)))) / x) tmp = 0 if x <= 1.65e+48: tmp = t_0 elif x <= 5.5e+126: tmp = (y * (-0.16666666666666666 * (x * (x * x)))) / x else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(x * Float64(Float64(y * Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y)))) / x)) tmp = 0.0 if (x <= 1.65e+48) tmp = t_0; elseif (x <= 5.5e+126) tmp = Float64(Float64(y * Float64(-0.16666666666666666 * Float64(x * Float64(x * x)))) / x); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = x * ((y * (1.0 + (0.16666666666666666 * (y * y)))) / x); tmp = 0.0; if (x <= 1.65e+48) tmp = t_0; elseif (x <= 5.5e+126) tmp = (y * (-0.16666666666666666 * (x * (x * x)))) / x; 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[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 1.65e+48], t$95$0, If[LessEqual[x, 5.5e+126], N[(N[(y * N[(-0.16666666666666666 * N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \frac{y \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)}{x}\\
\mathbf{if}\;x \leq 1.65 \cdot 10^{+48}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{+126}:\\
\;\;\;\;\frac{y \cdot \left(-0.16666666666666666 \cdot \left(x \cdot \left(x \cdot x\right)\right)\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < 1.65000000000000011e48 or 5.5000000000000004e126 < x Initial program 86.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 x around 0
Simplified73.1%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6468.4%
Simplified68.4%
if 1.65000000000000011e48 < x < 5.5000000000000004e126Initial program 99.5%
Taylor expanded in y around 0
Simplified55.2%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
metadata-evalN/A
distribute-rgt-neg-inN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
metadata-evalN/A
*-lowering-*.f6440.3%
Simplified40.3%
Taylor expanded in x around inf
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6440.3%
Simplified40.3%
Final simplification67.0%
(FPCore (x y)
:precision binary64
(if (<= y 2e+113)
(/ x (/ (/ x y) (+ 1.0 (* y (* y 0.16666666666666666)))))
(*
y
(* (* y y) (+ 0.16666666666666666 (* (* x x) -0.027777777777777776))))))
double code(double x, double y) {
double tmp;
if (y <= 2e+113) {
tmp = x / ((x / y) / (1.0 + (y * (y * 0.16666666666666666))));
} else {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 2d+113) then
tmp = x / ((x / y) / (1.0d0 + (y * (y * 0.16666666666666666d0))))
else
tmp = y * ((y * y) * (0.16666666666666666d0 + ((x * x) * (-0.027777777777777776d0))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 2e+113) {
tmp = x / ((x / y) / (1.0 + (y * (y * 0.16666666666666666))));
} else {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 2e+113: tmp = x / ((x / y) / (1.0 + (y * (y * 0.16666666666666666)))) else: tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))) return tmp
function code(x, y) tmp = 0.0 if (y <= 2e+113) tmp = Float64(x / Float64(Float64(x / y) / Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666))))); else tmp = Float64(y * Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.027777777777777776)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 2e+113) tmp = x / ((x / y) / (1.0 + (y * (y * 0.16666666666666666)))); else tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 2e+113], N[(x / N[(N[(x / y), $MachinePrecision] / N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.027777777777777776), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2 \cdot 10^{+113}:\\
\;\;\;\;\frac{x}{\frac{\frac{x}{y}}{1 + y \cdot \left(y \cdot 0.16666666666666666\right)}}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.027777777777777776\right)\right)\\
\end{array}
\end{array}
if y < 2e113Initial program 84.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
Taylor expanded in x around 0
Simplified68.6%
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-*.f6466.7%
Simplified66.7%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
Applied egg-rr67.4%
Taylor expanded in y around 0
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6463.8%
Simplified63.8%
if 2e113 < y Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6481.6%
Simplified81.6%
Taylor expanded in y around 0
associate-+r+N/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt1-inN/A
+-commutativeN/A
Simplified81.6%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6481.6%
Simplified81.6%
Final simplification67.2%
(FPCore (x y)
:precision binary64
(if (<= y 5e+114)
(* x (/ (* y (+ 1.0 (* 0.16666666666666666 (* y y)))) x))
(*
y
(* (* y y) (+ 0.16666666666666666 (* (* x x) -0.027777777777777776))))))
double code(double x, double y) {
double tmp;
if (y <= 5e+114) {
tmp = x * ((y * (1.0 + (0.16666666666666666 * (y * y)))) / x);
} else {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 5d+114) then
tmp = x * ((y * (1.0d0 + (0.16666666666666666d0 * (y * y)))) / x)
else
tmp = y * ((y * y) * (0.16666666666666666d0 + ((x * x) * (-0.027777777777777776d0))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 5e+114) {
tmp = x * ((y * (1.0 + (0.16666666666666666 * (y * y)))) / x);
} else {
tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776)));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 5e+114: tmp = x * ((y * (1.0 + (0.16666666666666666 * (y * y)))) / x) else: tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))) return tmp
function code(x, y) tmp = 0.0 if (y <= 5e+114) tmp = Float64(x * Float64(Float64(y * Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y)))) / x)); else tmp = Float64(y * Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(x * x) * -0.027777777777777776)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 5e+114) tmp = x * ((y * (1.0 + (0.16666666666666666 * (y * y)))) / x); else tmp = y * ((y * y) * (0.16666666666666666 + ((x * x) * -0.027777777777777776))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 5e+114], N[(x * N[(N[(y * N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * -0.027777777777777776), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 5 \cdot 10^{+114}:\\
\;\;\;\;x \cdot \frac{y \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(x \cdot x\right) \cdot -0.027777777777777776\right)\right)\\
\end{array}
\end{array}
if y < 5.0000000000000001e114Initial program 84.0%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
Taylor expanded in x around 0
Simplified68.6%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6463.1%
Simplified63.1%
if 5.0000000000000001e114 < y Initial program 100.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6481.6%
Simplified81.6%
Taylor expanded in y around 0
associate-+r+N/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-inN/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt1-inN/A
+-commutativeN/A
Simplified81.6%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6481.6%
Simplified81.6%
Final simplification66.6%
(FPCore (x y) :precision binary64 (if (<= y 4e+92) (/ x (/ x y)) (* y (+ 1.0 (* 0.16666666666666666 (* y y))))))
double code(double x, double y) {
double tmp;
if (y <= 4e+92) {
tmp = x / (x / y);
} else {
tmp = y * (1.0 + (0.16666666666666666 * (y * y)));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 4d+92) then
tmp = x / (x / y)
else
tmp = y * (1.0d0 + (0.16666666666666666d0 * (y * y)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 4e+92) {
tmp = x / (x / y);
} else {
tmp = y * (1.0 + (0.16666666666666666 * (y * y)));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 4e+92: tmp = x / (x / y) else: tmp = y * (1.0 + (0.16666666666666666 * (y * y))) return tmp
function code(x, y) tmp = 0.0 if (y <= 4e+92) tmp = Float64(x / Float64(x / y)); else tmp = Float64(y * Float64(1.0 + Float64(0.16666666666666666 * Float64(y * y)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 4e+92) tmp = x / (x / y); else tmp = y * (1.0 + (0.16666666666666666 * (y * y))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 4e+92], N[(x / N[(x / y), $MachinePrecision]), $MachinePrecision], N[(y * N[(1.0 + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 4 \cdot 10^{+92}:\\
\;\;\;\;\frac{x}{\frac{x}{y}}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\
\end{array}
\end{array}
if y < 4.0000000000000002e92Initial program 83.6%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
Taylor expanded in x around 0
Simplified67.6%
Taylor expanded in y around 0
/-lowering-/.f6454.5%
Simplified54.5%
clear-numN/A
div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6455.7%
Applied egg-rr55.7%
if 4.0000000000000002e92 < 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 x around 0
Simplified78.2%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6473.4%
Simplified73.4%
(FPCore (x y) :precision binary64 (/ x (/ x y)))
double code(double x, double y) {
return x / (x / y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = x / (x / y)
end function
public static double code(double x, double y) {
return x / (x / y);
}
def code(x, y): return x / (x / y)
function code(x, y) return Float64(x / Float64(x / y)) end
function tmp = code(x, y) tmp = x / (x / y); end
code[x_, y_] := N[(x / N[(x / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\frac{x}{y}}
\end{array}
Initial program 87.1%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
Taylor expanded in x around 0
Simplified69.9%
Taylor expanded in y around 0
/-lowering-/.f6450.4%
Simplified50.4%
clear-numN/A
div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6451.3%
Applied egg-rr51.3%
(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 87.1%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
Taylor expanded in x around 0
Simplified69.9%
Taylor expanded in y around 0
/-lowering-/.f6450.4%
Simplified50.4%
(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 87.1%
associate-/l*N/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f6499.8%
Simplified99.8%
Taylor expanded in x around 0
Simplified69.9%
Taylor expanded in y around 0
Simplified29.7%
(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 2024138
(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))