
(FPCore (x y) :precision binary64 (* (sin x) (/ (sinh y) y)))
double code(double x, double y) {
return sin(x) * (sinh(y) / y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = sin(x) * (sinh(y) / y)
end function
public static double code(double x, double y) {
return Math.sin(x) * (Math.sinh(y) / y);
}
def code(x, y): return math.sin(x) * (math.sinh(y) / y)
function code(x, y) return Float64(sin(x) * Float64(sinh(y) / y)) end
function tmp = code(x, y) tmp = sin(x) * (sinh(y) / y); end
code[x_, y_] := N[(N[Sin[x], $MachinePrecision] * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sin x \cdot \frac{\sinh y}{y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 29 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (* (sin x) (/ (sinh y) y)))
double code(double x, double y) {
return sin(x) * (sinh(y) / y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = sin(x) * (sinh(y) / y)
end function
public static double code(double x, double y) {
return Math.sin(x) * (Math.sinh(y) / y);
}
def code(x, y): return math.sin(x) * (math.sinh(y) / y)
function code(x, y) return Float64(sin(x) * Float64(sinh(y) / y)) end
function tmp = code(x, y) tmp = sin(x) * (sinh(y) / y); end
code[x_, y_] := N[(N[Sin[x], $MachinePrecision] * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sin x \cdot \frac{\sinh y}{y}
\end{array}
(FPCore (x y) :precision binary64 (* (sin x) (/ (sinh y) y)))
double code(double x, double y) {
return sin(x) * (sinh(y) / y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = sin(x) * (sinh(y) / y)
end function
public static double code(double x, double y) {
return Math.sin(x) * (Math.sinh(y) / y);
}
def code(x, y): return math.sin(x) * (math.sinh(y) / y)
function code(x, y) return Float64(sin(x) * Float64(sinh(y) / y)) end
function tmp = code(x, y) tmp = sin(x) * (sinh(y) / y); end
code[x_, y_] := N[(N[Sin[x], $MachinePrecision] * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sin x \cdot \frac{\sinh y}{y}
\end{array}
Initial program 100.0%
(FPCore (x y)
:precision binary64
(if (<= y 42.0)
(*
(sin x)
(+
1.0
(*
y
(*
y
(+
0.16666666666666666
(*
(* y y)
(+ 0.008333333333333333 (* y (* y 0.0001984126984126984)))))))))
(if (<= y 3.6e+44)
(* (sinh y) (/ x y))
(/
1.0
(/
(/
y
(*
y
(+
1.0
(*
y
(*
y
(+
0.16666666666666666
(*
(* y y)
(+ 0.008333333333333333 (* (* y y) 0.0001984126984126984)))))))))
(sin x))))))
double code(double x, double y) {
double tmp;
if (y <= 42.0) {
tmp = sin(x) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984))))))));
} else if (y <= 3.6e+44) {
tmp = sinh(y) * (x / y);
} else {
tmp = 1.0 / ((y / (y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))))) / sin(x));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 42.0d0) then
tmp = sin(x) * (1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * (0.008333333333333333d0 + (y * (y * 0.0001984126984126984d0))))))))
else if (y <= 3.6d+44) then
tmp = sinh(y) * (x / y)
else
tmp = 1.0d0 / ((y / (y * (1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0))))))))) / sin(x))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 42.0) {
tmp = Math.sin(x) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984))))))));
} else if (y <= 3.6e+44) {
tmp = Math.sinh(y) * (x / y);
} else {
tmp = 1.0 / ((y / (y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))))) / Math.sin(x));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 42.0: tmp = math.sin(x) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984)))))))) elif y <= 3.6e+44: tmp = math.sinh(y) * (x / y) else: tmp = 1.0 / ((y / (y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))))) / math.sin(x)) return tmp
function code(x, y) tmp = 0.0 if (y <= 42.0) tmp = Float64(sin(x) * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * Float64(0.008333333333333333 + Float64(y * Float64(y * 0.0001984126984126984))))))))); elseif (y <= 3.6e+44) tmp = Float64(sinh(y) * Float64(x / y)); else tmp = Float64(1.0 / Float64(Float64(y / Float64(y * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984))))))))) / sin(x))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 42.0) tmp = sin(x) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984)))))))); elseif (y <= 3.6e+44) tmp = sinh(y) * (x / y); else tmp = 1.0 / ((y / (y * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))))) / sin(x)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 42.0], N[(N[Sin[x], $MachinePrecision] * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * N[(0.008333333333333333 + N[(y * N[(y * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.6e+44], N[(N[Sinh[y], $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(y / N[(y * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Sin[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 42:\\
\;\;\;\;\sin x \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{+44}:\\
\;\;\;\;\sinh y \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{\frac{y}{y \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)}}{\sin x}}\\
\end{array}
\end{array}
if y < 42Initial program 100.0%
Taylor expanded in y around 0
Simplified91.9%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6491.9%
Applied egg-rr91.9%
if 42 < y < 3.6e44Initial program 100.0%
*-commutativeN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*l/N/A
*-lft-identityN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
sinh-lowering-sinh.f64100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0
Simplified66.7%
if 3.6e44 < y Initial program 100.0%
associate-*r/N/A
clear-numN/A
/-lowering-/.f64N/A
associate-/l/N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64N/A
sin-lowering-sin.f64100.0%
Applied egg-rr100.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
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
Final simplification92.7%
(FPCore (x y)
:precision binary64
(if (<= y 42.0)
(*
(sin x)
(+
1.0
(*
y
(*
y
(+
0.16666666666666666
(*
(* y y)
(+ 0.008333333333333333 (* y (* y 0.0001984126984126984)))))))))
(if (<= y 2.4e+49)
(* (sinh y) (/ x y))
(/
(sin x)
(/
1.0
(+
1.0
(*
(* y y)
(+
0.16666666666666666
(*
y
(*
y
(+
0.008333333333333333
(* (* y y) 0.0001984126984126984))))))))))))
double code(double x, double y) {
double tmp;
if (y <= 42.0) {
tmp = sin(x) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984))))))));
} else if (y <= 2.4e+49) {
tmp = sinh(y) * (x / y);
} else {
tmp = sin(x) / (1.0 / (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * (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) :: tmp
if (y <= 42.0d0) then
tmp = sin(x) * (1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * (0.008333333333333333d0 + (y * (y * 0.0001984126984126984d0))))))))
else if (y <= 2.4d+49) then
tmp = sinh(y) * (x / y)
else
tmp = sin(x) / (1.0d0 / (1.0d0 + ((y * y) * (0.16666666666666666d0 + (y * (y * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0))))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 42.0) {
tmp = Math.sin(x) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984))))))));
} else if (y <= 2.4e+49) {
tmp = Math.sinh(y) * (x / y);
} else {
tmp = Math.sin(x) / (1.0 / (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 42.0: tmp = math.sin(x) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984)))))))) elif y <= 2.4e+49: tmp = math.sinh(y) * (x / y) else: tmp = math.sin(x) / (1.0 / (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))))) return tmp
function code(x, y) tmp = 0.0 if (y <= 42.0) tmp = Float64(sin(x) * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * Float64(0.008333333333333333 + Float64(y * Float64(y * 0.0001984126984126984))))))))); elseif (y <= 2.4e+49) tmp = Float64(sinh(y) * Float64(x / y)); else tmp = Float64(sin(x) / Float64(1.0 / Float64(1.0 + Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(y * Float64(y * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984))))))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 42.0) tmp = sin(x) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984)))))))); elseif (y <= 2.4e+49) tmp = sinh(y) * (x / y); else tmp = sin(x) / (1.0 / (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 42.0], N[(N[Sin[x], $MachinePrecision] * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * N[(0.008333333333333333 + N[(y * N[(y * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e+49], N[(N[Sinh[y], $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(N[Sin[x], $MachinePrecision] / N[(1.0 / N[(1.0 + N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(y * N[(y * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 42:\\
\;\;\;\;\sin x \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{+49}:\\
\;\;\;\;\sinh y \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin x}{\frac{1}{1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)}}\\
\end{array}
\end{array}
if y < 42Initial program 100.0%
Taylor expanded in y around 0
Simplified91.9%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6491.9%
Applied egg-rr91.9%
if 42 < y < 2.4e49Initial program 100.0%
*-commutativeN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*l/N/A
*-lft-identityN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
sinh-lowering-sinh.f64100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0
Simplified70.0%
if 2.4e49 < y Initial program 100.0%
associate-*r/N/A
clear-numN/A
/-lowering-/.f64N/A
associate-/l/N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64N/A
sin-lowering-sin.f64100.0%
Applied egg-rr100.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
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
clear-numN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
associate-/r*N/A
*-inversesN/A
/-lowering-/.f64N/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
*-lowering-*.f64N/A
Applied egg-rr98.3%
Final simplification92.4%
(FPCore (x y)
:precision binary64
(if (<= y 42.0)
(*
(sin x)
(+
1.0
(*
y
(*
y
(+
0.16666666666666666
(*
(* y y)
(+ 0.008333333333333333 (* y (* y 0.0001984126984126984)))))))))
(if (<= y 2.4e+49)
(* (sinh y) (/ x y))
(*
(sin x)
(+
1.0
(*
y
(*
y
(+
0.16666666666666666
(* y (* y (* (* y y) 0.0001984126984126984)))))))))))
double code(double x, double y) {
double tmp;
if (y <= 42.0) {
tmp = sin(x) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984))))))));
} else if (y <= 2.4e+49) {
tmp = sinh(y) * (x / y);
} else {
tmp = sin(x) * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984)))))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 42.0d0) then
tmp = sin(x) * (1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * (0.008333333333333333d0 + (y * (y * 0.0001984126984126984d0))))))))
else if (y <= 2.4d+49) then
tmp = sinh(y) * (x / y)
else
tmp = sin(x) * (1.0d0 + (y * (y * (0.16666666666666666d0 + (y * (y * ((y * y) * 0.0001984126984126984d0)))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 42.0) {
tmp = Math.sin(x) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984))))))));
} else if (y <= 2.4e+49) {
tmp = Math.sinh(y) * (x / y);
} else {
tmp = Math.sin(x) * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984)))))));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 42.0: tmp = math.sin(x) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984)))))))) elif y <= 2.4e+49: tmp = math.sinh(y) * (x / y) else: tmp = math.sin(x) * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984))))))) return tmp
function code(x, y) tmp = 0.0 if (y <= 42.0) tmp = Float64(sin(x) * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * Float64(0.008333333333333333 + Float64(y * Float64(y * 0.0001984126984126984))))))))); elseif (y <= 2.4e+49) tmp = Float64(sinh(y) * Float64(x / y)); else tmp = Float64(sin(x) * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(y * Float64(y * Float64(Float64(y * y) * 0.0001984126984126984)))))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 42.0) tmp = sin(x) * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984)))))))); elseif (y <= 2.4e+49) tmp = sinh(y) * (x / y); else tmp = sin(x) * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984))))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 42.0], N[(N[Sin[x], $MachinePrecision] * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * N[(0.008333333333333333 + N[(y * N[(y * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e+49], N[(N[Sinh[y], $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(N[Sin[x], $MachinePrecision] * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 42:\\
\;\;\;\;\sin x \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{+49}:\\
\;\;\;\;\sinh y \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\sin x \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(\left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 42Initial program 100.0%
Taylor expanded in y around 0
Simplified91.9%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6491.9%
Applied egg-rr91.9%
if 42 < y < 2.4e49Initial program 100.0%
*-commutativeN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*l/N/A
*-lft-identityN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
sinh-lowering-sinh.f64100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0
Simplified70.0%
if 2.4e49 < y Initial program 100.0%
Taylor expanded in y around 0
Simplified98.3%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6498.3%
Simplified98.3%
Final simplification92.4%
(FPCore (x y)
:precision binary64
(if (<= y 42.0)
(*
(sin x)
(+
(+ 1.0 (* y (* y (* (* y y) 0.008333333333333333))))
(* 0.16666666666666666 (* y y))))
(if (<= y 2.4e+49)
(* (sinh y) (/ x y))
(*
(sin x)
(+
1.0
(*
y
(*
y
(+
0.16666666666666666
(* y (* y (* (* y y) 0.0001984126984126984)))))))))))
double code(double x, double y) {
double tmp;
if (y <= 42.0) {
tmp = sin(x) * ((1.0 + (y * (y * ((y * y) * 0.008333333333333333)))) + (0.16666666666666666 * (y * y)));
} else if (y <= 2.4e+49) {
tmp = sinh(y) * (x / y);
} else {
tmp = sin(x) * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984)))))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 42.0d0) then
tmp = sin(x) * ((1.0d0 + (y * (y * ((y * y) * 0.008333333333333333d0)))) + (0.16666666666666666d0 * (y * y)))
else if (y <= 2.4d+49) then
tmp = sinh(y) * (x / y)
else
tmp = sin(x) * (1.0d0 + (y * (y * (0.16666666666666666d0 + (y * (y * ((y * y) * 0.0001984126984126984d0)))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 42.0) {
tmp = Math.sin(x) * ((1.0 + (y * (y * ((y * y) * 0.008333333333333333)))) + (0.16666666666666666 * (y * y)));
} else if (y <= 2.4e+49) {
tmp = Math.sinh(y) * (x / y);
} else {
tmp = Math.sin(x) * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984)))))));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 42.0: tmp = math.sin(x) * ((1.0 + (y * (y * ((y * y) * 0.008333333333333333)))) + (0.16666666666666666 * (y * y))) elif y <= 2.4e+49: tmp = math.sinh(y) * (x / y) else: tmp = math.sin(x) * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984))))))) return tmp
function code(x, y) tmp = 0.0 if (y <= 42.0) tmp = Float64(sin(x) * Float64(Float64(1.0 + Float64(y * Float64(y * Float64(Float64(y * y) * 0.008333333333333333)))) + Float64(0.16666666666666666 * Float64(y * y)))); elseif (y <= 2.4e+49) tmp = Float64(sinh(y) * Float64(x / y)); else tmp = Float64(sin(x) * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(y * Float64(y * Float64(Float64(y * y) * 0.0001984126984126984)))))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 42.0) tmp = sin(x) * ((1.0 + (y * (y * ((y * y) * 0.008333333333333333)))) + (0.16666666666666666 * (y * y))); elseif (y <= 2.4e+49) tmp = sinh(y) * (x / y); else tmp = sin(x) * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984))))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 42.0], N[(N[Sin[x], $MachinePrecision] * N[(N[(1.0 + N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e+49], N[(N[Sinh[y], $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(N[Sin[x], $MachinePrecision] * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 42:\\
\;\;\;\;\sin x \cdot \left(\left(1 + y \cdot \left(y \cdot \left(\left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\right) + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{+49}:\\
\;\;\;\;\sinh y \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\sin x \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(\left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 42Initial program 100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
*-rgt-identityN/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
Simplified90.5%
+-commutativeN/A
distribute-lft-inN/A
associate-*r*N/A
associate-+r+N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6490.6%
Applied egg-rr90.6%
if 42 < y < 2.4e49Initial program 100.0%
*-commutativeN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*l/N/A
*-lft-identityN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
sinh-lowering-sinh.f64100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0
Simplified70.0%
if 2.4e49 < y Initial program 100.0%
Taylor expanded in y around 0
Simplified98.3%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6498.3%
Simplified98.3%
Final simplification91.4%
(FPCore (x y)
:precision binary64
(if (<= y 42.0)
(*
(sin x)
(+
1.0
(* (* y y) (+ 0.16666666666666666 (* y (* y 0.008333333333333333))))))
(if (<= y 2.4e+49)
(* (sinh y) (/ x y))
(*
(sin x)
(+
1.0
(*
y
(*
y
(+
0.16666666666666666
(* y (* y (* (* y y) 0.0001984126984126984)))))))))))
double code(double x, double y) {
double tmp;
if (y <= 42.0) {
tmp = sin(x) * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * 0.008333333333333333)))));
} else if (y <= 2.4e+49) {
tmp = sinh(y) * (x / y);
} else {
tmp = sin(x) * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984)))))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 42.0d0) then
tmp = sin(x) * (1.0d0 + ((y * y) * (0.16666666666666666d0 + (y * (y * 0.008333333333333333d0)))))
else if (y <= 2.4d+49) then
tmp = sinh(y) * (x / y)
else
tmp = sin(x) * (1.0d0 + (y * (y * (0.16666666666666666d0 + (y * (y * ((y * y) * 0.0001984126984126984d0)))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 42.0) {
tmp = Math.sin(x) * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * 0.008333333333333333)))));
} else if (y <= 2.4e+49) {
tmp = Math.sinh(y) * (x / y);
} else {
tmp = Math.sin(x) * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984)))))));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 42.0: tmp = math.sin(x) * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * 0.008333333333333333))))) elif y <= 2.4e+49: tmp = math.sinh(y) * (x / y) else: tmp = math.sin(x) * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984))))))) return tmp
function code(x, y) tmp = 0.0 if (y <= 42.0) tmp = Float64(sin(x) * Float64(1.0 + Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(y * Float64(y * 0.008333333333333333)))))); elseif (y <= 2.4e+49) tmp = Float64(sinh(y) * Float64(x / y)); else tmp = Float64(sin(x) * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(y * Float64(y * Float64(Float64(y * y) * 0.0001984126984126984)))))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 42.0) tmp = sin(x) * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * 0.008333333333333333))))); elseif (y <= 2.4e+49) tmp = sinh(y) * (x / y); else tmp = sin(x) * (1.0 + (y * (y * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984))))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 42.0], N[(N[Sin[x], $MachinePrecision] * N[(1.0 + N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(y * N[(y * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e+49], N[(N[Sinh[y], $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(N[Sin[x], $MachinePrecision] * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 42:\\
\;\;\;\;\sin x \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot 0.008333333333333333\right)\right)\right)\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{+49}:\\
\;\;\;\;\sinh y \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\sin x \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(\left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 42Initial program 100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
*-rgt-identityN/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
Simplified90.5%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6490.5%
Applied egg-rr90.5%
if 42 < y < 2.4e49Initial program 100.0%
*-commutativeN/A
div-invN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
associate-*l/N/A
*-lft-identityN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
sinh-lowering-sinh.f64100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0
Simplified70.0%
if 2.4e49 < y Initial program 100.0%
Taylor expanded in y around 0
Simplified98.3%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6498.3%
Simplified98.3%
Final simplification91.4%
(FPCore (x y)
:precision binary64
(let* ((t_0
(*
(sin x)
(+
1.0
(*
(* y y)
(+ 0.16666666666666666 (* y (* y 0.008333333333333333))))))))
(if (<= y 42.0) t_0 (if (<= y 2e+75) (* x (/ (sinh y) y)) t_0))))
double code(double x, double y) {
double t_0 = sin(x) * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * 0.008333333333333333)))));
double tmp;
if (y <= 42.0) {
tmp = t_0;
} else if (y <= 2e+75) {
tmp = x * (sinh(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 = sin(x) * (1.0d0 + ((y * y) * (0.16666666666666666d0 + (y * (y * 0.008333333333333333d0)))))
if (y <= 42.0d0) then
tmp = t_0
else if (y <= 2d+75) then
tmp = x * (sinh(y) / y)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = Math.sin(x) * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * 0.008333333333333333)))));
double tmp;
if (y <= 42.0) {
tmp = t_0;
} else if (y <= 2e+75) {
tmp = x * (Math.sinh(y) / y);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = math.sin(x) * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * 0.008333333333333333))))) tmp = 0 if y <= 42.0: tmp = t_0 elif y <= 2e+75: tmp = x * (math.sinh(y) / y) else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(sin(x) * Float64(1.0 + Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(y * Float64(y * 0.008333333333333333)))))) tmp = 0.0 if (y <= 42.0) tmp = t_0; elseif (y <= 2e+75) tmp = Float64(x * Float64(sinh(y) / y)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = sin(x) * (1.0 + ((y * y) * (0.16666666666666666 + (y * (y * 0.008333333333333333))))); tmp = 0.0; if (y <= 42.0) tmp = t_0; elseif (y <= 2e+75) tmp = x * (sinh(y) / y); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(N[Sin[x], $MachinePrecision] * N[(1.0 + N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(y * N[(y * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 42.0], t$95$0, If[LessEqual[y, 2e+75], N[(x * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin x \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot 0.008333333333333333\right)\right)\right)\\
\mathbf{if}\;y \leq 42:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+75}:\\
\;\;\;\;x \cdot \frac{\sinh y}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y < 42 or 1.99999999999999985e75 < y Initial program 100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
*-rgt-identityN/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
Simplified92.4%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6492.4%
Applied egg-rr92.4%
if 42 < y < 1.99999999999999985e75Initial program 100.0%
Taylor expanded in x around 0
Simplified68.8%
Final simplification91.0%
(FPCore (x y)
:precision binary64
(if (<= y 0.085)
(* (sin x) (+ 1.0 (* y (* y 0.16666666666666666))))
(if (<= y 2e+75)
(* x (/ (sinh y) y))
(* (sin x) (+ 1.0 (* y (* y (* (* y y) 0.008333333333333333))))))))
double code(double x, double y) {
double tmp;
if (y <= 0.085) {
tmp = sin(x) * (1.0 + (y * (y * 0.16666666666666666)));
} else if (y <= 2e+75) {
tmp = x * (sinh(y) / y);
} else {
tmp = sin(x) * (1.0 + (y * (y * ((y * y) * 0.008333333333333333))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 0.085d0) then
tmp = sin(x) * (1.0d0 + (y * (y * 0.16666666666666666d0)))
else if (y <= 2d+75) then
tmp = x * (sinh(y) / y)
else
tmp = sin(x) * (1.0d0 + (y * (y * ((y * y) * 0.008333333333333333d0))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 0.085) {
tmp = Math.sin(x) * (1.0 + (y * (y * 0.16666666666666666)));
} else if (y <= 2e+75) {
tmp = x * (Math.sinh(y) / y);
} else {
tmp = Math.sin(x) * (1.0 + (y * (y * ((y * y) * 0.008333333333333333))));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 0.085: tmp = math.sin(x) * (1.0 + (y * (y * 0.16666666666666666))) elif y <= 2e+75: tmp = x * (math.sinh(y) / y) else: tmp = math.sin(x) * (1.0 + (y * (y * ((y * y) * 0.008333333333333333)))) return tmp
function code(x, y) tmp = 0.0 if (y <= 0.085) tmp = Float64(sin(x) * Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666)))); elseif (y <= 2e+75) tmp = Float64(x * Float64(sinh(y) / y)); else tmp = Float64(sin(x) * Float64(1.0 + Float64(y * Float64(y * Float64(Float64(y * y) * 0.008333333333333333))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 0.085) tmp = sin(x) * (1.0 + (y * (y * 0.16666666666666666))); elseif (y <= 2e+75) tmp = x * (sinh(y) / y); else tmp = sin(x) * (1.0 + (y * (y * ((y * y) * 0.008333333333333333)))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 0.085], N[(N[Sin[x], $MachinePrecision] * N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e+75], N[(x * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[Sin[x], $MachinePrecision] * N[(1.0 + N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 0.085:\\
\;\;\;\;\sin x \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+75}:\\
\;\;\;\;x \cdot \frac{\sinh y}{y}\\
\mathbf{else}:\\
\;\;\;\;\sin x \cdot \left(1 + y \cdot \left(y \cdot \left(\left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\right)\\
\end{array}
\end{array}
if y < 0.0850000000000000061Initial program 100.0%
Taylor expanded in y around 0
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6484.4%
Simplified84.4%
if 0.0850000000000000061 < y < 1.99999999999999985e75Initial program 99.9%
Taylor expanded in x around 0
Simplified64.8%
if 1.99999999999999985e75 < y Initial program 100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
*-rgt-identityN/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
Simplified100.0%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
(FPCore (x y)
:precision binary64
(if (<= y 0.175)
(* (sin x) (+ 1.0 (* y (* y 0.16666666666666666))))
(if (<= y 2e+75)
(* x (/ (sinh y) y))
(* (sin x) (* y (* y (* (* y y) 0.008333333333333333)))))))
double code(double x, double y) {
double tmp;
if (y <= 0.175) {
tmp = sin(x) * (1.0 + (y * (y * 0.16666666666666666)));
} else if (y <= 2e+75) {
tmp = x * (sinh(y) / y);
} else {
tmp = sin(x) * (y * (y * ((y * y) * 0.008333333333333333)));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 0.175d0) then
tmp = sin(x) * (1.0d0 + (y * (y * 0.16666666666666666d0)))
else if (y <= 2d+75) then
tmp = x * (sinh(y) / y)
else
tmp = sin(x) * (y * (y * ((y * y) * 0.008333333333333333d0)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 0.175) {
tmp = Math.sin(x) * (1.0 + (y * (y * 0.16666666666666666)));
} else if (y <= 2e+75) {
tmp = x * (Math.sinh(y) / y);
} else {
tmp = Math.sin(x) * (y * (y * ((y * y) * 0.008333333333333333)));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 0.175: tmp = math.sin(x) * (1.0 + (y * (y * 0.16666666666666666))) elif y <= 2e+75: tmp = x * (math.sinh(y) / y) else: tmp = math.sin(x) * (y * (y * ((y * y) * 0.008333333333333333))) return tmp
function code(x, y) tmp = 0.0 if (y <= 0.175) tmp = Float64(sin(x) * Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666)))); elseif (y <= 2e+75) tmp = Float64(x * Float64(sinh(y) / y)); else tmp = Float64(sin(x) * Float64(y * Float64(y * Float64(Float64(y * y) * 0.008333333333333333)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 0.175) tmp = sin(x) * (1.0 + (y * (y * 0.16666666666666666))); elseif (y <= 2e+75) tmp = x * (sinh(y) / y); else tmp = sin(x) * (y * (y * ((y * y) * 0.008333333333333333))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 0.175], N[(N[Sin[x], $MachinePrecision] * N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e+75], N[(x * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[Sin[x], $MachinePrecision] * N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 0.175:\\
\;\;\;\;\sin x \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+75}:\\
\;\;\;\;x \cdot \frac{\sinh y}{y}\\
\mathbf{else}:\\
\;\;\;\;\sin x \cdot \left(y \cdot \left(y \cdot \left(\left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\right)\\
\end{array}
\end{array}
if y < 0.17499999999999999Initial program 100.0%
Taylor expanded in y around 0
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6484.4%
Simplified84.4%
if 0.17499999999999999 < y < 1.99999999999999985e75Initial program 99.9%
Taylor expanded in x around 0
Simplified64.8%
if 1.99999999999999985e75 < y Initial program 100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
*-rgt-identityN/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
Simplified100.0%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
(FPCore (x y)
:precision binary64
(if (<= y 0.1)
(* (sin x) (+ 1.0 (* y (* y 0.16666666666666666))))
(if (<= y 1.35e+154)
(* x (/ (sinh y) y))
(* (sin x) (* 0.16666666666666666 (* y y))))))
double code(double x, double y) {
double tmp;
if (y <= 0.1) {
tmp = sin(x) * (1.0 + (y * (y * 0.16666666666666666)));
} else if (y <= 1.35e+154) {
tmp = x * (sinh(y) / y);
} else {
tmp = sin(x) * (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 <= 0.1d0) then
tmp = sin(x) * (1.0d0 + (y * (y * 0.16666666666666666d0)))
else if (y <= 1.35d+154) then
tmp = x * (sinh(y) / y)
else
tmp = sin(x) * (0.16666666666666666d0 * (y * y))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 0.1) {
tmp = Math.sin(x) * (1.0 + (y * (y * 0.16666666666666666)));
} else if (y <= 1.35e+154) {
tmp = x * (Math.sinh(y) / y);
} else {
tmp = Math.sin(x) * (0.16666666666666666 * (y * y));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 0.1: tmp = math.sin(x) * (1.0 + (y * (y * 0.16666666666666666))) elif y <= 1.35e+154: tmp = x * (math.sinh(y) / y) else: tmp = math.sin(x) * (0.16666666666666666 * (y * y)) return tmp
function code(x, y) tmp = 0.0 if (y <= 0.1) tmp = Float64(sin(x) * Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666)))); elseif (y <= 1.35e+154) tmp = Float64(x * Float64(sinh(y) / y)); else tmp = Float64(sin(x) * Float64(0.16666666666666666 * Float64(y * y))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 0.1) tmp = sin(x) * (1.0 + (y * (y * 0.16666666666666666))); elseif (y <= 1.35e+154) tmp = x * (sinh(y) / y); else tmp = sin(x) * (0.16666666666666666 * (y * y)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 0.1], N[(N[Sin[x], $MachinePrecision] * N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.35e+154], N[(x * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[Sin[x], $MachinePrecision] * N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 0.1:\\
\;\;\;\;\sin x \cdot \left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right)\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{+154}:\\
\;\;\;\;x \cdot \frac{\sinh y}{y}\\
\mathbf{else}:\\
\;\;\;\;\sin x \cdot \left(0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\
\end{array}
\end{array}
if y < 0.10000000000000001Initial program 100.0%
Taylor expanded in y around 0
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6484.4%
Simplified84.4%
if 0.10000000000000001 < y < 1.35000000000000003e154Initial program 100.0%
Taylor expanded in x around 0
Simplified73.7%
if 1.35000000000000003e154 < y Initial program 100.0%
Taylor expanded in y around 0
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
(FPCore (x y)
:precision binary64
(if (<= y 0.0007)
(sin x)
(if (<= y 1.35e+154)
(* x (/ (sinh y) y))
(* (sin x) (* 0.16666666666666666 (* y y))))))
double code(double x, double y) {
double tmp;
if (y <= 0.0007) {
tmp = sin(x);
} else if (y <= 1.35e+154) {
tmp = x * (sinh(y) / y);
} else {
tmp = sin(x) * (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 <= 0.0007d0) then
tmp = sin(x)
else if (y <= 1.35d+154) then
tmp = x * (sinh(y) / y)
else
tmp = sin(x) * (0.16666666666666666d0 * (y * y))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 0.0007) {
tmp = Math.sin(x);
} else if (y <= 1.35e+154) {
tmp = x * (Math.sinh(y) / y);
} else {
tmp = Math.sin(x) * (0.16666666666666666 * (y * y));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 0.0007: tmp = math.sin(x) elif y <= 1.35e+154: tmp = x * (math.sinh(y) / y) else: tmp = math.sin(x) * (0.16666666666666666 * (y * y)) return tmp
function code(x, y) tmp = 0.0 if (y <= 0.0007) tmp = sin(x); elseif (y <= 1.35e+154) tmp = Float64(x * Float64(sinh(y) / y)); else tmp = Float64(sin(x) * Float64(0.16666666666666666 * Float64(y * y))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 0.0007) tmp = sin(x); elseif (y <= 1.35e+154) tmp = x * (sinh(y) / y); else tmp = sin(x) * (0.16666666666666666 * (y * y)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 0.0007], N[Sin[x], $MachinePrecision], If[LessEqual[y, 1.35e+154], N[(x * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[Sin[x], $MachinePrecision] * N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 0.0007:\\
\;\;\;\;\sin x\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{+154}:\\
\;\;\;\;x \cdot \frac{\sinh y}{y}\\
\mathbf{else}:\\
\;\;\;\;\sin x \cdot \left(0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\
\end{array}
\end{array}
if y < 6.99999999999999993e-4Initial program 100.0%
Taylor expanded in y around 0
sin-lowering-sin.f6467.5%
Simplified67.5%
if 6.99999999999999993e-4 < y < 1.35000000000000003e154Initial program 99.9%
Taylor expanded in x around 0
Simplified74.4%
if 1.35000000000000003e154 < y Initial program 100.0%
Taylor expanded in y around 0
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
(FPCore (x y) :precision binary64 (if (<= y 0.001) (sin x) (* x (/ (sinh y) y))))
double code(double x, double y) {
double tmp;
if (y <= 0.001) {
tmp = sin(x);
} else {
tmp = x * (sinh(y) / y);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 0.001d0) then
tmp = sin(x)
else
tmp = x * (sinh(y) / y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 0.001) {
tmp = Math.sin(x);
} else {
tmp = x * (Math.sinh(y) / y);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 0.001: tmp = math.sin(x) else: tmp = x * (math.sinh(y) / y) return tmp
function code(x, y) tmp = 0.0 if (y <= 0.001) tmp = sin(x); else tmp = Float64(x * Float64(sinh(y) / y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 0.001) tmp = sin(x); else tmp = x * (sinh(y) / y); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 0.001], N[Sin[x], $MachinePrecision], N[(x * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 0.001:\\
\;\;\;\;\sin x\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{\sinh y}{y}\\
\end{array}
\end{array}
if y < 1e-3Initial program 100.0%
Taylor expanded in y around 0
sin-lowering-sin.f6467.5%
Simplified67.5%
if 1e-3 < y Initial program 100.0%
Taylor expanded in x around 0
Simplified78.8%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* y (+ 0.008333333333333333 (* (* y y) 0.0001984126984126984))))
(t_1 (* y t_0)))
(if (<= y 0.00065)
(sin x)
(if (<= y 4e+75)
(*
x
(*
(+ 1.0 (* -0.16666666666666666 (* x x)))
(+
1.0
(/
(* (* y y) (- 0.027777777777777776 (* y (* t_0 t_1))))
(- 0.16666666666666666 t_1)))))
(*
x
(*
(* (* y y) (* y y))
(+ 0.008333333333333333 (/ 0.16666666666666666 (* y y)))))))))
double code(double x, double y) {
double t_0 = y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984));
double t_1 = y * t_0;
double tmp;
if (y <= 0.00065) {
tmp = sin(x);
} else if (y <= 4e+75) {
tmp = x * ((1.0 + (-0.16666666666666666 * (x * x))) * (1.0 + (((y * y) * (0.027777777777777776 - (y * (t_0 * t_1)))) / (0.16666666666666666 - t_1))));
} else {
tmp = x * (((y * y) * (y * y)) * (0.008333333333333333 + (0.16666666666666666 / (y * y))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = y * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0))
t_1 = y * t_0
if (y <= 0.00065d0) then
tmp = sin(x)
else if (y <= 4d+75) then
tmp = x * ((1.0d0 + ((-0.16666666666666666d0) * (x * x))) * (1.0d0 + (((y * y) * (0.027777777777777776d0 - (y * (t_0 * t_1)))) / (0.16666666666666666d0 - t_1))))
else
tmp = x * (((y * y) * (y * y)) * (0.008333333333333333d0 + (0.16666666666666666d0 / (y * y))))
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984));
double t_1 = y * t_0;
double tmp;
if (y <= 0.00065) {
tmp = Math.sin(x);
} else if (y <= 4e+75) {
tmp = x * ((1.0 + (-0.16666666666666666 * (x * x))) * (1.0 + (((y * y) * (0.027777777777777776 - (y * (t_0 * t_1)))) / (0.16666666666666666 - t_1))));
} else {
tmp = x * (((y * y) * (y * y)) * (0.008333333333333333 + (0.16666666666666666 / (y * y))));
}
return tmp;
}
def code(x, y): t_0 = y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)) t_1 = y * t_0 tmp = 0 if y <= 0.00065: tmp = math.sin(x) elif y <= 4e+75: tmp = x * ((1.0 + (-0.16666666666666666 * (x * x))) * (1.0 + (((y * y) * (0.027777777777777776 - (y * (t_0 * t_1)))) / (0.16666666666666666 - t_1)))) else: tmp = x * (((y * y) * (y * y)) * (0.008333333333333333 + (0.16666666666666666 / (y * y)))) return tmp
function code(x, y) t_0 = Float64(y * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984))) t_1 = Float64(y * t_0) tmp = 0.0 if (y <= 0.00065) tmp = sin(x); elseif (y <= 4e+75) tmp = Float64(x * Float64(Float64(1.0 + Float64(-0.16666666666666666 * Float64(x * x))) * Float64(1.0 + Float64(Float64(Float64(y * y) * Float64(0.027777777777777776 - Float64(y * Float64(t_0 * t_1)))) / Float64(0.16666666666666666 - t_1))))); else tmp = Float64(x * Float64(Float64(Float64(y * y) * Float64(y * y)) * Float64(0.008333333333333333 + Float64(0.16666666666666666 / Float64(y * y))))); end return tmp end
function tmp_2 = code(x, y) t_0 = y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)); t_1 = y * t_0; tmp = 0.0; if (y <= 0.00065) tmp = sin(x); elseif (y <= 4e+75) tmp = x * ((1.0 + (-0.16666666666666666 * (x * x))) * (1.0 + (((y * y) * (0.027777777777777776 - (y * (t_0 * t_1)))) / (0.16666666666666666 - t_1)))); else tmp = x * (((y * y) * (y * y)) * (0.008333333333333333 + (0.16666666666666666 / (y * y)))); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(y * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(y * t$95$0), $MachinePrecision]}, If[LessEqual[y, 0.00065], N[Sin[x], $MachinePrecision], If[LessEqual[y, 4e+75], N[(x * N[(N[(1.0 + N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.0 + N[(N[(N[(y * y), $MachinePrecision] * N[(0.027777777777777776 - N[(y * N[(t$95$0 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.16666666666666666 - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[(y * y), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision] * N[(0.008333333333333333 + N[(0.16666666666666666 / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\\
t_1 := y \cdot t\_0\\
\mathbf{if}\;y \leq 0.00065:\\
\;\;\;\;\sin x\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+75}:\\
\;\;\;\;x \cdot \left(\left(1 + -0.16666666666666666 \cdot \left(x \cdot x\right)\right) \cdot \left(1 + \frac{\left(y \cdot y\right) \cdot \left(0.027777777777777776 - y \cdot \left(t\_0 \cdot t\_1\right)\right)}{0.16666666666666666 - t\_1}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\left(\left(y \cdot y\right) \cdot \left(y \cdot y\right)\right) \cdot \left(0.008333333333333333 + \frac{0.16666666666666666}{y \cdot y}\right)\right)\\
\end{array}
\end{array}
if y < 6.4999999999999997e-4Initial program 100.0%
Taylor expanded in y around 0
sin-lowering-sin.f6467.5%
Simplified67.5%
if 6.4999999999999997e-4 < y < 3.99999999999999971e75Initial program 99.8%
associate-*r/N/A
clear-numN/A
/-lowering-/.f64N/A
associate-/l/N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64N/A
sin-lowering-sin.f6499.7%
Applied egg-rr99.7%
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
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6450.3%
Simplified50.3%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-commutativeN/A
associate-+r+N/A
associate-*r*N/A
distribute-rgt1-inN/A
Simplified45.8%
associate-*r*N/A
flip-+N/A
associate-*r/N/A
/-lowering-/.f64N/A
Applied egg-rr67.1%
if 3.99999999999999971e75 < y Initial program 100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
*-rgt-identityN/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
Simplified100.0%
Taylor expanded in x around 0
Simplified83.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6483.3%
Simplified83.3%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* y (+ 0.008333333333333333 (* (* y y) 0.0001984126984126984))))
(t_1 (* y t_0)))
(if (<= y 5.6e+19)
(*
(+ 1.0 (* y (* y 0.16666666666666666)))
(*
x
(+
1.0
(*
x
(* x (+ -0.16666666666666666 (* 0.008333333333333333 (* x x))))))))
(if (<= y 1.8e+77)
(*
x
(*
(+ 1.0 (* -0.16666666666666666 (* x x)))
(+
1.0
(/
(* (* y y) (- 0.027777777777777776 (* y (* t_0 t_1))))
(- 0.16666666666666666 t_1)))))
(*
x
(*
(* (* y y) (* y y))
(+ 0.008333333333333333 (/ 0.16666666666666666 (* y y)))))))))
double code(double x, double y) {
double t_0 = y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984));
double t_1 = y * t_0;
double tmp;
if (y <= 5.6e+19) {
tmp = (1.0 + (y * (y * 0.16666666666666666))) * (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x)))))));
} else if (y <= 1.8e+77) {
tmp = x * ((1.0 + (-0.16666666666666666 * (x * x))) * (1.0 + (((y * y) * (0.027777777777777776 - (y * (t_0 * t_1)))) / (0.16666666666666666 - t_1))));
} else {
tmp = x * (((y * y) * (y * y)) * (0.008333333333333333 + (0.16666666666666666 / (y * y))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = y * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0))
t_1 = y * t_0
if (y <= 5.6d+19) then
tmp = (1.0d0 + (y * (y * 0.16666666666666666d0))) * (x * (1.0d0 + (x * (x * ((-0.16666666666666666d0) + (0.008333333333333333d0 * (x * x)))))))
else if (y <= 1.8d+77) then
tmp = x * ((1.0d0 + ((-0.16666666666666666d0) * (x * x))) * (1.0d0 + (((y * y) * (0.027777777777777776d0 - (y * (t_0 * t_1)))) / (0.16666666666666666d0 - t_1))))
else
tmp = x * (((y * y) * (y * y)) * (0.008333333333333333d0 + (0.16666666666666666d0 / (y * y))))
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984));
double t_1 = y * t_0;
double tmp;
if (y <= 5.6e+19) {
tmp = (1.0 + (y * (y * 0.16666666666666666))) * (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x)))))));
} else if (y <= 1.8e+77) {
tmp = x * ((1.0 + (-0.16666666666666666 * (x * x))) * (1.0 + (((y * y) * (0.027777777777777776 - (y * (t_0 * t_1)))) / (0.16666666666666666 - t_1))));
} else {
tmp = x * (((y * y) * (y * y)) * (0.008333333333333333 + (0.16666666666666666 / (y * y))));
}
return tmp;
}
def code(x, y): t_0 = y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)) t_1 = y * t_0 tmp = 0 if y <= 5.6e+19: tmp = (1.0 + (y * (y * 0.16666666666666666))) * (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))))) elif y <= 1.8e+77: tmp = x * ((1.0 + (-0.16666666666666666 * (x * x))) * (1.0 + (((y * y) * (0.027777777777777776 - (y * (t_0 * t_1)))) / (0.16666666666666666 - t_1)))) else: tmp = x * (((y * y) * (y * y)) * (0.008333333333333333 + (0.16666666666666666 / (y * y)))) return tmp
function code(x, y) t_0 = Float64(y * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984))) t_1 = Float64(y * t_0) tmp = 0.0 if (y <= 5.6e+19) tmp = Float64(Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666))) * Float64(x * Float64(1.0 + Float64(x * Float64(x * Float64(-0.16666666666666666 + Float64(0.008333333333333333 * Float64(x * x)))))))); elseif (y <= 1.8e+77) tmp = Float64(x * Float64(Float64(1.0 + Float64(-0.16666666666666666 * Float64(x * x))) * Float64(1.0 + Float64(Float64(Float64(y * y) * Float64(0.027777777777777776 - Float64(y * Float64(t_0 * t_1)))) / Float64(0.16666666666666666 - t_1))))); else tmp = Float64(x * Float64(Float64(Float64(y * y) * Float64(y * y)) * Float64(0.008333333333333333 + Float64(0.16666666666666666 / Float64(y * y))))); end return tmp end
function tmp_2 = code(x, y) t_0 = y * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)); t_1 = y * t_0; tmp = 0.0; if (y <= 5.6e+19) tmp = (1.0 + (y * (y * 0.16666666666666666))) * (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))))); elseif (y <= 1.8e+77) tmp = x * ((1.0 + (-0.16666666666666666 * (x * x))) * (1.0 + (((y * y) * (0.027777777777777776 - (y * (t_0 * t_1)))) / (0.16666666666666666 - t_1)))); else tmp = x * (((y * y) * (y * y)) * (0.008333333333333333 + (0.16666666666666666 / (y * y)))); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(y * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(y * t$95$0), $MachinePrecision]}, If[LessEqual[y, 5.6e+19], N[(N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x * N[(1.0 + N[(x * N[(x * N[(-0.16666666666666666 + N[(0.008333333333333333 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.8e+77], N[(x * N[(N[(1.0 + N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.0 + N[(N[(N[(y * y), $MachinePrecision] * N[(0.027777777777777776 - N[(y * N[(t$95$0 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.16666666666666666 - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[(y * y), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision] * N[(0.008333333333333333 + N[(0.16666666666666666 / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\\
t_1 := y \cdot t\_0\\
\mathbf{if}\;y \leq 5.6 \cdot 10^{+19}:\\
\;\;\;\;\left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right) \cdot \left(x \cdot \left(1 + x \cdot \left(x \cdot \left(-0.16666666666666666 + 0.008333333333333333 \cdot \left(x \cdot x\right)\right)\right)\right)\right)\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{+77}:\\
\;\;\;\;x \cdot \left(\left(1 + -0.16666666666666666 \cdot \left(x \cdot x\right)\right) \cdot \left(1 + \frac{\left(y \cdot y\right) \cdot \left(0.027777777777777776 - y \cdot \left(t\_0 \cdot t\_1\right)\right)}{0.16666666666666666 - t\_1}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\left(\left(y \cdot y\right) \cdot \left(y \cdot y\right)\right) \cdot \left(0.008333333333333333 + \frac{0.16666666666666666}{y \cdot y}\right)\right)\\
\end{array}
\end{array}
if y < 5.6e19Initial program 100.0%
Taylor expanded in y around 0
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6482.9%
Simplified82.9%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6455.0%
Simplified55.0%
if 5.6e19 < y < 1.7999999999999999e77Initial program 100.0%
associate-*r/N/A
clear-numN/A
/-lowering-/.f64N/A
associate-/l/N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64N/A
sin-lowering-sin.f64100.0%
Applied egg-rr100.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
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6456.0%
Simplified56.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-commutativeN/A
associate-+r+N/A
associate-*r*N/A
distribute-rgt1-inN/A
Simplified55.2%
associate-*r*N/A
flip-+N/A
associate-*r/N/A
/-lowering-/.f64N/A
Applied egg-rr84.6%
if 1.7999999999999999e77 < y Initial program 100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
*-rgt-identityN/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
Simplified100.0%
Taylor expanded in x around 0
Simplified83.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6483.3%
Simplified83.3%
Final simplification61.8%
(FPCore (x y)
:precision binary64
(if (<= x 2.1e+22)
(*
x
(*
(+
1.0
(*
y
(*
y
(+
0.16666666666666666
(*
(* y y)
(+ 0.008333333333333333 (* y (* y 0.0001984126984126984))))))))
(+ 1.0 (* -0.16666666666666666 (* x x)))))
(*
(+ 1.0 (* y (* y 0.16666666666666666)))
(*
x
(+
1.0
(*
x
(* x (+ -0.16666666666666666 (* 0.008333333333333333 (* x x))))))))))
double code(double x, double y) {
double tmp;
if (x <= 2.1e+22) {
tmp = x * ((1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984)))))))) * (1.0 + (-0.16666666666666666 * (x * x))));
} else {
tmp = (1.0 + (y * (y * 0.16666666666666666))) * (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x)))))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 2.1d+22) then
tmp = x * ((1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * (0.008333333333333333d0 + (y * (y * 0.0001984126984126984d0)))))))) * (1.0d0 + ((-0.16666666666666666d0) * (x * x))))
else
tmp = (1.0d0 + (y * (y * 0.16666666666666666d0))) * (x * (1.0d0 + (x * (x * ((-0.16666666666666666d0) + (0.008333333333333333d0 * (x * x)))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 2.1e+22) {
tmp = x * ((1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984)))))))) * (1.0 + (-0.16666666666666666 * (x * x))));
} else {
tmp = (1.0 + (y * (y * 0.16666666666666666))) * (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x)))))));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 2.1e+22: tmp = x * ((1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984)))))))) * (1.0 + (-0.16666666666666666 * (x * x)))) else: tmp = (1.0 + (y * (y * 0.16666666666666666))) * (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))))) return tmp
function code(x, y) tmp = 0.0 if (x <= 2.1e+22) tmp = Float64(x * Float64(Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * Float64(0.008333333333333333 + Float64(y * Float64(y * 0.0001984126984126984)))))))) * Float64(1.0 + Float64(-0.16666666666666666 * Float64(x * x))))); else tmp = Float64(Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666))) * Float64(x * Float64(1.0 + Float64(x * Float64(x * Float64(-0.16666666666666666 + Float64(0.008333333333333333 * Float64(x * x)))))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 2.1e+22) tmp = x * ((1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + (y * (y * 0.0001984126984126984)))))))) * (1.0 + (-0.16666666666666666 * (x * x)))); else tmp = (1.0 + (y * (y * 0.16666666666666666))) * (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 2.1e+22], N[(x * N[(N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * N[(0.008333333333333333 + N[(y * N[(y * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.0 + N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x * N[(1.0 + N[(x * N[(x * N[(-0.16666666666666666 + N[(0.008333333333333333 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.1 \cdot 10^{+22}:\\
\;\;\;\;x \cdot \left(\left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + y \cdot \left(y \cdot 0.0001984126984126984\right)\right)\right)\right)\right) \cdot \left(1 + -0.16666666666666666 \cdot \left(x \cdot x\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right) \cdot \left(x \cdot \left(1 + x \cdot \left(x \cdot \left(-0.16666666666666666 + 0.008333333333333333 \cdot \left(x \cdot x\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if x < 2.0999999999999998e22Initial program 100.0%
associate-*r/N/A
clear-numN/A
/-lowering-/.f64N/A
associate-/l/N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64N/A
sin-lowering-sin.f6499.8%
Applied egg-rr99.8%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6492.6%
Simplified92.6%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-commutativeN/A
associate-+r+N/A
associate-*r*N/A
distribute-rgt1-inN/A
Simplified70.0%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6470.0%
Applied egg-rr70.0%
if 2.0999999999999998e22 < x Initial program 99.9%
Taylor expanded in y around 0
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6468.8%
Simplified68.8%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6428.6%
Simplified28.6%
Final simplification61.1%
(FPCore (x y)
:precision binary64
(if (<= x 1.85e+103)
(*
x
(+
1.0
(*
y
(*
y
(+
0.16666666666666666
(*
(* y y)
(+ 0.008333333333333333 (* (* y y) 0.0001984126984126984))))))))
(if (<= x 1.2e+262)
(*
x
(+
1.0
(*
(* x x)
(+
-0.16666666666666666
(*
(* x x)
(+ 0.008333333333333333 (* (* x x) -0.0001984126984126984)))))))
(*
(+ 1.0 (* y (* y 0.16666666666666666)))
(*
x
(+
1.0
(*
x
(* x (+ -0.16666666666666666 (* 0.008333333333333333 (* x x)))))))))))
double code(double x, double y) {
double tmp;
if (x <= 1.85e+103) {
tmp = x * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
} else if (x <= 1.2e+262) {
tmp = x * (1.0 + ((x * x) * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + ((x * x) * -0.0001984126984126984))))));
} else {
tmp = (1.0 + (y * (y * 0.16666666666666666))) * (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * 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.85d+103) then
tmp = x * (1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)))))))
else if (x <= 1.2d+262) then
tmp = x * (1.0d0 + ((x * x) * ((-0.16666666666666666d0) + ((x * x) * (0.008333333333333333d0 + ((x * x) * (-0.0001984126984126984d0)))))))
else
tmp = (1.0d0 + (y * (y * 0.16666666666666666d0))) * (x * (1.0d0 + (x * (x * ((-0.16666666666666666d0) + (0.008333333333333333d0 * (x * x)))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 1.85e+103) {
tmp = x * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
} else if (x <= 1.2e+262) {
tmp = x * (1.0 + ((x * x) * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + ((x * x) * -0.0001984126984126984))))));
} else {
tmp = (1.0 + (y * (y * 0.16666666666666666))) * (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x)))))));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 1.85e+103: tmp = x * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))) elif x <= 1.2e+262: tmp = x * (1.0 + ((x * x) * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + ((x * x) * -0.0001984126984126984)))))) else: tmp = (1.0 + (y * (y * 0.16666666666666666))) * (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))))) return tmp
function code(x, y) tmp = 0.0 if (x <= 1.85e+103) tmp = Float64(x * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984)))))))); elseif (x <= 1.2e+262) tmp = Float64(x * Float64(1.0 + Float64(Float64(x * x) * Float64(-0.16666666666666666 + Float64(Float64(x * x) * Float64(0.008333333333333333 + Float64(Float64(x * x) * -0.0001984126984126984))))))); else tmp = Float64(Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666))) * Float64(x * Float64(1.0 + Float64(x * Float64(x * Float64(-0.16666666666666666 + Float64(0.008333333333333333 * Float64(x * x)))))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 1.85e+103) tmp = x * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))); elseif (x <= 1.2e+262) tmp = x * (1.0 + ((x * x) * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + ((x * x) * -0.0001984126984126984)))))); else tmp = (1.0 + (y * (y * 0.16666666666666666))) * (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 1.85e+103], N[(x * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e+262], N[(x * N[(1.0 + N[(N[(x * x), $MachinePrecision] * N[(-0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * N[(0.008333333333333333 + N[(N[(x * x), $MachinePrecision] * -0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x * N[(1.0 + N[(x * N[(x * N[(-0.16666666666666666 + N[(0.008333333333333333 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.85 \cdot 10^{+103}:\\
\;\;\;\;x \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{+262}:\\
\;\;\;\;x \cdot \left(1 + \left(x \cdot x\right) \cdot \left(-0.16666666666666666 + \left(x \cdot x\right) \cdot \left(0.008333333333333333 + \left(x \cdot x\right) \cdot -0.0001984126984126984\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right) \cdot \left(x \cdot \left(1 + x \cdot \left(x \cdot \left(-0.16666666666666666 + 0.008333333333333333 \cdot \left(x \cdot x\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if x < 1.85000000000000016e103Initial program 100.0%
associate-*r/N/A
clear-numN/A
/-lowering-/.f64N/A
associate-/l/N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64N/A
sin-lowering-sin.f6499.8%
Applied egg-rr99.8%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6491.3%
Simplified91.3%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.4%
Simplified65.4%
if 1.85000000000000016e103 < x < 1.19999999999999991e262Initial program 99.9%
Taylor expanded in y around 0
sin-lowering-sin.f6449.7%
Simplified49.7%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6430.3%
Simplified30.3%
if 1.19999999999999991e262 < x Initial program 100.0%
Taylor expanded in y around 0
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6473.7%
Simplified73.7%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6455.2%
Simplified55.2%
Final simplification61.2%
(FPCore (x y)
:precision binary64
(if (<= x 2.1e+22)
(*
x
(*
(+
1.0
(*
y
(*
y
(+
0.16666666666666666
(* y (* y (* (* y y) 0.0001984126984126984)))))))
(+ 1.0 (* -0.16666666666666666 (* x x)))))
(*
(+ 1.0 (* y (* y 0.16666666666666666)))
(*
x
(+
1.0
(*
x
(* x (+ -0.16666666666666666 (* 0.008333333333333333 (* x x))))))))))
double code(double x, double y) {
double tmp;
if (x <= 2.1e+22) {
tmp = x * ((1.0 + (y * (y * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984))))))) * (1.0 + (-0.16666666666666666 * (x * x))));
} else {
tmp = (1.0 + (y * (y * 0.16666666666666666))) * (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x)))))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 2.1d+22) then
tmp = x * ((1.0d0 + (y * (y * (0.16666666666666666d0 + (y * (y * ((y * y) * 0.0001984126984126984d0))))))) * (1.0d0 + ((-0.16666666666666666d0) * (x * x))))
else
tmp = (1.0d0 + (y * (y * 0.16666666666666666d0))) * (x * (1.0d0 + (x * (x * ((-0.16666666666666666d0) + (0.008333333333333333d0 * (x * x)))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 2.1e+22) {
tmp = x * ((1.0 + (y * (y * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984))))))) * (1.0 + (-0.16666666666666666 * (x * x))));
} else {
tmp = (1.0 + (y * (y * 0.16666666666666666))) * (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x)))))));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 2.1e+22: tmp = x * ((1.0 + (y * (y * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984))))))) * (1.0 + (-0.16666666666666666 * (x * x)))) else: tmp = (1.0 + (y * (y * 0.16666666666666666))) * (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))))) return tmp
function code(x, y) tmp = 0.0 if (x <= 2.1e+22) tmp = Float64(x * Float64(Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(y * Float64(y * Float64(Float64(y * y) * 0.0001984126984126984))))))) * Float64(1.0 + Float64(-0.16666666666666666 * Float64(x * x))))); else tmp = Float64(Float64(1.0 + Float64(y * Float64(y * 0.16666666666666666))) * Float64(x * Float64(1.0 + Float64(x * Float64(x * Float64(-0.16666666666666666 + Float64(0.008333333333333333 * Float64(x * x)))))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 2.1e+22) tmp = x * ((1.0 + (y * (y * (0.16666666666666666 + (y * (y * ((y * y) * 0.0001984126984126984))))))) * (1.0 + (-0.16666666666666666 * (x * x)))); else tmp = (1.0 + (y * (y * 0.16666666666666666))) * (x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 2.1e+22], N[(x * N[(N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.0 + N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 + N[(y * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x * N[(1.0 + N[(x * N[(x * N[(-0.16666666666666666 + N[(0.008333333333333333 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.1 \cdot 10^{+22}:\\
\;\;\;\;x \cdot \left(\left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot \left(\left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\right) \cdot \left(1 + -0.16666666666666666 \cdot \left(x \cdot x\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(1 + y \cdot \left(y \cdot 0.16666666666666666\right)\right) \cdot \left(x \cdot \left(1 + x \cdot \left(x \cdot \left(-0.16666666666666666 + 0.008333333333333333 \cdot \left(x \cdot x\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if x < 2.0999999999999998e22Initial program 100.0%
associate-*r/N/A
clear-numN/A
/-lowering-/.f64N/A
associate-/l/N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64N/A
sin-lowering-sin.f6499.8%
Applied egg-rr99.8%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6492.6%
Simplified92.6%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-commutativeN/A
associate-+r+N/A
associate-*r*N/A
distribute-rgt1-inN/A
Simplified70.0%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6469.7%
Simplified69.7%
if 2.0999999999999998e22 < x Initial program 99.9%
Taylor expanded in y around 0
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6468.8%
Simplified68.8%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6428.6%
Simplified28.6%
Final simplification60.8%
(FPCore (x y)
:precision binary64
(if (<= x 1.85e+103)
(*
x
(+
1.0
(*
y
(*
y
(+
0.16666666666666666
(*
(* y y)
(+ 0.008333333333333333 (* (* y y) 0.0001984126984126984))))))))
(if (<= x 1.2e+262)
(*
x
(+
1.0
(*
(* x x)
(+
-0.16666666666666666
(*
(* x x)
(+ 0.008333333333333333 (* (* x x) -0.0001984126984126984)))))))
(*
x
(+
1.0
(*
x
(* x (+ -0.16666666666666666 (* 0.008333333333333333 (* x x))))))))))
double code(double x, double y) {
double tmp;
if (x <= 1.85e+103) {
tmp = x * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
} else if (x <= 1.2e+262) {
tmp = x * (1.0 + ((x * x) * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + ((x * x) * -0.0001984126984126984))))));
} else {
tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * 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.85d+103) then
tmp = x * (1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)))))))
else if (x <= 1.2d+262) then
tmp = x * (1.0d0 + ((x * x) * ((-0.16666666666666666d0) + ((x * x) * (0.008333333333333333d0 + ((x * x) * (-0.0001984126984126984d0)))))))
else
tmp = x * (1.0d0 + (x * (x * ((-0.16666666666666666d0) + (0.008333333333333333d0 * (x * x))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 1.85e+103) {
tmp = x * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
} else if (x <= 1.2e+262) {
tmp = x * (1.0 + ((x * x) * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + ((x * x) * -0.0001984126984126984))))));
} else {
tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 1.85e+103: tmp = x * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))) elif x <= 1.2e+262: tmp = x * (1.0 + ((x * x) * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + ((x * x) * -0.0001984126984126984)))))) else: tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x)))))) return tmp
function code(x, y) tmp = 0.0 if (x <= 1.85e+103) tmp = Float64(x * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984)))))))); elseif (x <= 1.2e+262) tmp = Float64(x * Float64(1.0 + Float64(Float64(x * x) * Float64(-0.16666666666666666 + Float64(Float64(x * x) * Float64(0.008333333333333333 + Float64(Float64(x * x) * -0.0001984126984126984))))))); else tmp = Float64(x * Float64(1.0 + Float64(x * Float64(x * Float64(-0.16666666666666666 + Float64(0.008333333333333333 * Float64(x * x))))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 1.85e+103) tmp = x * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))); elseif (x <= 1.2e+262) tmp = x * (1.0 + ((x * x) * (-0.16666666666666666 + ((x * x) * (0.008333333333333333 + ((x * x) * -0.0001984126984126984)))))); else tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x)))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 1.85e+103], N[(x * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e+262], N[(x * N[(1.0 + N[(N[(x * x), $MachinePrecision] * N[(-0.16666666666666666 + N[(N[(x * x), $MachinePrecision] * N[(0.008333333333333333 + N[(N[(x * x), $MachinePrecision] * -0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 + N[(x * N[(x * N[(-0.16666666666666666 + N[(0.008333333333333333 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.85 \cdot 10^{+103}:\\
\;\;\;\;x \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{+262}:\\
\;\;\;\;x \cdot \left(1 + \left(x \cdot x\right) \cdot \left(-0.16666666666666666 + \left(x \cdot x\right) \cdot \left(0.008333333333333333 + \left(x \cdot x\right) \cdot -0.0001984126984126984\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 + x \cdot \left(x \cdot \left(-0.16666666666666666 + 0.008333333333333333 \cdot \left(x \cdot x\right)\right)\right)\right)\\
\end{array}
\end{array}
if x < 1.85000000000000016e103Initial program 100.0%
associate-*r/N/A
clear-numN/A
/-lowering-/.f64N/A
associate-/l/N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64N/A
sin-lowering-sin.f6499.8%
Applied egg-rr99.8%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6491.3%
Simplified91.3%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.4%
Simplified65.4%
if 1.85000000000000016e103 < x < 1.19999999999999991e262Initial program 99.9%
Taylor expanded in y around 0
sin-lowering-sin.f6449.7%
Simplified49.7%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6430.3%
Simplified30.3%
if 1.19999999999999991e262 < x Initial program 100.0%
Taylor expanded in y around 0
sin-lowering-sin.f6438.4%
Simplified38.4%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6455.2%
Simplified55.2%
(FPCore (x y)
:precision binary64
(if (<= x 1.85e+103)
(*
x
(+
1.0
(*
y
(*
y
(+
0.16666666666666666
(*
(* y y)
(+ 0.008333333333333333 (* (* y y) 0.0001984126984126984))))))))
(if (<= x 1.2e+262)
(* x (+ 1.0 (* x (* x -0.16666666666666666))))
(*
x
(+
1.0
(*
x
(* x (+ -0.16666666666666666 (* 0.008333333333333333 (* x x))))))))))
double code(double x, double y) {
double tmp;
if (x <= 1.85e+103) {
tmp = x * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
} else if (x <= 1.2e+262) {
tmp = x * (1.0 + (x * (x * -0.16666666666666666)));
} else {
tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * 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.85d+103) then
tmp = x * (1.0d0 + (y * (y * (0.16666666666666666d0 + ((y * y) * (0.008333333333333333d0 + ((y * y) * 0.0001984126984126984d0)))))))
else if (x <= 1.2d+262) then
tmp = x * (1.0d0 + (x * (x * (-0.16666666666666666d0))))
else
tmp = x * (1.0d0 + (x * (x * ((-0.16666666666666666d0) + (0.008333333333333333d0 * (x * x))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 1.85e+103) {
tmp = x * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984)))))));
} else if (x <= 1.2e+262) {
tmp = x * (1.0 + (x * (x * -0.16666666666666666)));
} else {
tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 1.85e+103: tmp = x * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))) elif x <= 1.2e+262: tmp = x * (1.0 + (x * (x * -0.16666666666666666))) else: tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x)))))) return tmp
function code(x, y) tmp = 0.0 if (x <= 1.85e+103) tmp = Float64(x * Float64(1.0 + Float64(y * Float64(y * Float64(0.16666666666666666 + Float64(Float64(y * y) * Float64(0.008333333333333333 + Float64(Float64(y * y) * 0.0001984126984126984)))))))); elseif (x <= 1.2e+262) tmp = Float64(x * Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666)))); else tmp = Float64(x * Float64(1.0 + Float64(x * Float64(x * Float64(-0.16666666666666666 + Float64(0.008333333333333333 * Float64(x * x))))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 1.85e+103) tmp = x * (1.0 + (y * (y * (0.16666666666666666 + ((y * y) * (0.008333333333333333 + ((y * y) * 0.0001984126984126984))))))); elseif (x <= 1.2e+262) tmp = x * (1.0 + (x * (x * -0.16666666666666666))); else tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x)))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 1.85e+103], N[(x * N[(1.0 + N[(y * N[(y * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * N[(0.008333333333333333 + N[(N[(y * y), $MachinePrecision] * 0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e+262], N[(x * N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 + N[(x * N[(x * N[(-0.16666666666666666 + N[(0.008333333333333333 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.85 \cdot 10^{+103}:\\
\;\;\;\;x \cdot \left(1 + y \cdot \left(y \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot \left(0.008333333333333333 + \left(y \cdot y\right) \cdot 0.0001984126984126984\right)\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{+262}:\\
\;\;\;\;x \cdot \left(1 + x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 + x \cdot \left(x \cdot \left(-0.16666666666666666 + 0.008333333333333333 \cdot \left(x \cdot x\right)\right)\right)\right)\\
\end{array}
\end{array}
if x < 1.85000000000000016e103Initial program 100.0%
associate-*r/N/A
clear-numN/A
/-lowering-/.f64N/A
associate-/l/N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
sinh-lowering-sinh.f64N/A
sin-lowering-sin.f6499.8%
Applied egg-rr99.8%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6491.3%
Simplified91.3%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.4%
Simplified65.4%
if 1.85000000000000016e103 < x < 1.19999999999999991e262Initial program 99.9%
Taylor expanded in y around 0
sin-lowering-sin.f6449.7%
Simplified49.7%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6430.3%
Simplified30.3%
if 1.19999999999999991e262 < x Initial program 100.0%
Taylor expanded in y around 0
sin-lowering-sin.f6438.4%
Simplified38.4%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6455.2%
Simplified55.2%
(FPCore (x y)
:precision binary64
(if (<= x 1.85e+103)
(+
x
(* x (* (* y y) (+ 0.16666666666666666 (* y (* y 0.008333333333333333))))))
(if (<= x 1.2e+262)
(* x (+ 1.0 (* x (* x -0.16666666666666666))))
(*
x
(+
1.0
(*
x
(* x (+ -0.16666666666666666 (* 0.008333333333333333 (* x x))))))))))
double code(double x, double y) {
double tmp;
if (x <= 1.85e+103) {
tmp = x + (x * ((y * y) * (0.16666666666666666 + (y * (y * 0.008333333333333333)))));
} else if (x <= 1.2e+262) {
tmp = x * (1.0 + (x * (x * -0.16666666666666666)));
} else {
tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * 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.85d+103) then
tmp = x + (x * ((y * y) * (0.16666666666666666d0 + (y * (y * 0.008333333333333333d0)))))
else if (x <= 1.2d+262) then
tmp = x * (1.0d0 + (x * (x * (-0.16666666666666666d0))))
else
tmp = x * (1.0d0 + (x * (x * ((-0.16666666666666666d0) + (0.008333333333333333d0 * (x * x))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 1.85e+103) {
tmp = x + (x * ((y * y) * (0.16666666666666666 + (y * (y * 0.008333333333333333)))));
} else if (x <= 1.2e+262) {
tmp = x * (1.0 + (x * (x * -0.16666666666666666)));
} else {
tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 1.85e+103: tmp = x + (x * ((y * y) * (0.16666666666666666 + (y * (y * 0.008333333333333333))))) elif x <= 1.2e+262: tmp = x * (1.0 + (x * (x * -0.16666666666666666))) else: tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x)))))) return tmp
function code(x, y) tmp = 0.0 if (x <= 1.85e+103) tmp = Float64(x + Float64(x * Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(y * Float64(y * 0.008333333333333333)))))); elseif (x <= 1.2e+262) tmp = Float64(x * Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666)))); else tmp = Float64(x * Float64(1.0 + Float64(x * Float64(x * Float64(-0.16666666666666666 + Float64(0.008333333333333333 * Float64(x * x))))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 1.85e+103) tmp = x + (x * ((y * y) * (0.16666666666666666 + (y * (y * 0.008333333333333333))))); elseif (x <= 1.2e+262) tmp = x * (1.0 + (x * (x * -0.16666666666666666))); else tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x)))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 1.85e+103], N[(x + N[(x * N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(y * N[(y * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e+262], N[(x * N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 + N[(x * N[(x * N[(-0.16666666666666666 + N[(0.008333333333333333 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.85 \cdot 10^{+103}:\\
\;\;\;\;x + x \cdot \left(\left(y \cdot y\right) \cdot \left(0.16666666666666666 + y \cdot \left(y \cdot 0.008333333333333333\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{+262}:\\
\;\;\;\;x \cdot \left(1 + x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 + x \cdot \left(x \cdot \left(-0.16666666666666666 + 0.008333333333333333 \cdot \left(x \cdot x\right)\right)\right)\right)\\
\end{array}
\end{array}
if x < 1.85000000000000016e103Initial program 100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
*-rgt-identityN/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
Simplified87.4%
Taylor expanded in x around 0
Simplified63.5%
+-commutativeN/A
distribute-lft-inN/A
*-rgt-identityN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6463.5%
Applied egg-rr63.5%
if 1.85000000000000016e103 < x < 1.19999999999999991e262Initial program 99.9%
Taylor expanded in y around 0
sin-lowering-sin.f6449.7%
Simplified49.7%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6430.3%
Simplified30.3%
if 1.19999999999999991e262 < x Initial program 100.0%
Taylor expanded in y around 0
sin-lowering-sin.f6438.4%
Simplified38.4%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6455.2%
Simplified55.2%
Final simplification59.7%
(FPCore (x y)
:precision binary64
(if (<= x 1.85e+103)
(*
x
(+
1.0
(* (* y y) (+ 0.16666666666666666 (* (* y y) 0.008333333333333333)))))
(if (<= x 1.2e+262)
(* x (+ 1.0 (* x (* x -0.16666666666666666))))
(*
x
(+
1.0
(*
x
(* x (+ -0.16666666666666666 (* 0.008333333333333333 (* x x))))))))))
double code(double x, double y) {
double tmp;
if (x <= 1.85e+103) {
tmp = x * (1.0 + ((y * y) * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
} else if (x <= 1.2e+262) {
tmp = x * (1.0 + (x * (x * -0.16666666666666666)));
} else {
tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * 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.85d+103) then
tmp = x * (1.0d0 + ((y * y) * (0.16666666666666666d0 + ((y * y) * 0.008333333333333333d0))))
else if (x <= 1.2d+262) then
tmp = x * (1.0d0 + (x * (x * (-0.16666666666666666d0))))
else
tmp = x * (1.0d0 + (x * (x * ((-0.16666666666666666d0) + (0.008333333333333333d0 * (x * x))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 1.85e+103) {
tmp = x * (1.0 + ((y * y) * (0.16666666666666666 + ((y * y) * 0.008333333333333333))));
} else if (x <= 1.2e+262) {
tmp = x * (1.0 + (x * (x * -0.16666666666666666)));
} else {
tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 1.85e+103: tmp = x * (1.0 + ((y * y) * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))) elif x <= 1.2e+262: tmp = x * (1.0 + (x * (x * -0.16666666666666666))) else: tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x)))))) return tmp
function code(x, y) tmp = 0.0 if (x <= 1.85e+103) tmp = Float64(x * Float64(1.0 + Float64(Float64(y * y) * Float64(0.16666666666666666 + Float64(Float64(y * y) * 0.008333333333333333))))); elseif (x <= 1.2e+262) tmp = Float64(x * Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666)))); else tmp = Float64(x * Float64(1.0 + Float64(x * Float64(x * Float64(-0.16666666666666666 + Float64(0.008333333333333333 * Float64(x * x))))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 1.85e+103) tmp = x * (1.0 + ((y * y) * (0.16666666666666666 + ((y * y) * 0.008333333333333333)))); elseif (x <= 1.2e+262) tmp = x * (1.0 + (x * (x * -0.16666666666666666))); else tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x)))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 1.85e+103], N[(x * N[(1.0 + N[(N[(y * y), $MachinePrecision] * N[(0.16666666666666666 + N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e+262], N[(x * N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 + N[(x * N[(x * N[(-0.16666666666666666 + N[(0.008333333333333333 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.85 \cdot 10^{+103}:\\
\;\;\;\;x \cdot \left(1 + \left(y \cdot y\right) \cdot \left(0.16666666666666666 + \left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{+262}:\\
\;\;\;\;x \cdot \left(1 + x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 + x \cdot \left(x \cdot \left(-0.16666666666666666 + 0.008333333333333333 \cdot \left(x \cdot x\right)\right)\right)\right)\\
\end{array}
\end{array}
if x < 1.85000000000000016e103Initial program 100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
*-rgt-identityN/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
Simplified87.4%
Taylor expanded in x around 0
Simplified63.5%
if 1.85000000000000016e103 < x < 1.19999999999999991e262Initial program 99.9%
Taylor expanded in y around 0
sin-lowering-sin.f6449.7%
Simplified49.7%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6430.3%
Simplified30.3%
if 1.19999999999999991e262 < x Initial program 100.0%
Taylor expanded in y around 0
sin-lowering-sin.f6438.4%
Simplified38.4%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6455.2%
Simplified55.2%
(FPCore (x y)
:precision binary64
(if (<= x 1.85e+103)
(* x (+ 1.0 (* y (* y (* (* y y) 0.008333333333333333)))))
(if (<= x 1.2e+262)
(* x (+ 1.0 (* x (* x -0.16666666666666666))))
(*
x
(+
1.0
(*
x
(* x (+ -0.16666666666666666 (* 0.008333333333333333 (* x x))))))))))
double code(double x, double y) {
double tmp;
if (x <= 1.85e+103) {
tmp = x * (1.0 + (y * (y * ((y * y) * 0.008333333333333333))));
} else if (x <= 1.2e+262) {
tmp = x * (1.0 + (x * (x * -0.16666666666666666)));
} else {
tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * 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.85d+103) then
tmp = x * (1.0d0 + (y * (y * ((y * y) * 0.008333333333333333d0))))
else if (x <= 1.2d+262) then
tmp = x * (1.0d0 + (x * (x * (-0.16666666666666666d0))))
else
tmp = x * (1.0d0 + (x * (x * ((-0.16666666666666666d0) + (0.008333333333333333d0 * (x * x))))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 1.85e+103) {
tmp = x * (1.0 + (y * (y * ((y * y) * 0.008333333333333333))));
} else if (x <= 1.2e+262) {
tmp = x * (1.0 + (x * (x * -0.16666666666666666)));
} else {
tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x))))));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 1.85e+103: tmp = x * (1.0 + (y * (y * ((y * y) * 0.008333333333333333)))) elif x <= 1.2e+262: tmp = x * (1.0 + (x * (x * -0.16666666666666666))) else: tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x)))))) return tmp
function code(x, y) tmp = 0.0 if (x <= 1.85e+103) tmp = Float64(x * Float64(1.0 + Float64(y * Float64(y * Float64(Float64(y * y) * 0.008333333333333333))))); elseif (x <= 1.2e+262) tmp = Float64(x * Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666)))); else tmp = Float64(x * Float64(1.0 + Float64(x * Float64(x * Float64(-0.16666666666666666 + Float64(0.008333333333333333 * Float64(x * x))))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 1.85e+103) tmp = x * (1.0 + (y * (y * ((y * y) * 0.008333333333333333)))); elseif (x <= 1.2e+262) tmp = x * (1.0 + (x * (x * -0.16666666666666666))); else tmp = x * (1.0 + (x * (x * (-0.16666666666666666 + (0.008333333333333333 * (x * x)))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 1.85e+103], N[(x * N[(1.0 + N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e+262], N[(x * N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 + N[(x * N[(x * N[(-0.16666666666666666 + N[(0.008333333333333333 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.85 \cdot 10^{+103}:\\
\;\;\;\;x \cdot \left(1 + y \cdot \left(y \cdot \left(\left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{+262}:\\
\;\;\;\;x \cdot \left(1 + x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 + x \cdot \left(x \cdot \left(-0.16666666666666666 + 0.008333333333333333 \cdot \left(x \cdot x\right)\right)\right)\right)\\
\end{array}
\end{array}
if x < 1.85000000000000016e103Initial program 100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
*-rgt-identityN/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
Simplified87.4%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6486.9%
Simplified86.9%
Taylor expanded in x around 0
Simplified63.1%
if 1.85000000000000016e103 < x < 1.19999999999999991e262Initial program 99.9%
Taylor expanded in y around 0
sin-lowering-sin.f6449.7%
Simplified49.7%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6430.3%
Simplified30.3%
if 1.19999999999999991e262 < x Initial program 100.0%
Taylor expanded in y around 0
sin-lowering-sin.f6438.4%
Simplified38.4%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6455.2%
Simplified55.2%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* 0.16666666666666666 (* y y))))
(if (<= x 1.85e+103)
(* x (+ 1.0 t_0))
(if (<= x 1.2e+262)
(* x (+ 1.0 (* x (* x -0.16666666666666666))))
(* x t_0)))))
double code(double x, double y) {
double t_0 = 0.16666666666666666 * (y * y);
double tmp;
if (x <= 1.85e+103) {
tmp = x * (1.0 + t_0);
} else if (x <= 1.2e+262) {
tmp = x * (1.0 + (x * (x * -0.16666666666666666)));
} else {
tmp = x * t_0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = 0.16666666666666666d0 * (y * y)
if (x <= 1.85d+103) then
tmp = x * (1.0d0 + t_0)
else if (x <= 1.2d+262) then
tmp = x * (1.0d0 + (x * (x * (-0.16666666666666666d0))))
else
tmp = x * t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = 0.16666666666666666 * (y * y);
double tmp;
if (x <= 1.85e+103) {
tmp = x * (1.0 + t_0);
} else if (x <= 1.2e+262) {
tmp = x * (1.0 + (x * (x * -0.16666666666666666)));
} else {
tmp = x * t_0;
}
return tmp;
}
def code(x, y): t_0 = 0.16666666666666666 * (y * y) tmp = 0 if x <= 1.85e+103: tmp = x * (1.0 + t_0) elif x <= 1.2e+262: tmp = x * (1.0 + (x * (x * -0.16666666666666666))) else: tmp = x * t_0 return tmp
function code(x, y) t_0 = Float64(0.16666666666666666 * Float64(y * y)) tmp = 0.0 if (x <= 1.85e+103) tmp = Float64(x * Float64(1.0 + t_0)); elseif (x <= 1.2e+262) tmp = Float64(x * Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666)))); else tmp = Float64(x * t_0); end return tmp end
function tmp_2 = code(x, y) t_0 = 0.16666666666666666 * (y * y); tmp = 0.0; if (x <= 1.85e+103) tmp = x * (1.0 + t_0); elseif (x <= 1.2e+262) tmp = x * (1.0 + (x * (x * -0.16666666666666666))); else tmp = x * t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 1.85e+103], N[(x * N[(1.0 + t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e+262], N[(x * N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 0.16666666666666666 \cdot \left(y \cdot y\right)\\
\mathbf{if}\;x \leq 1.85 \cdot 10^{+103}:\\
\;\;\;\;x \cdot \left(1 + t\_0\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{+262}:\\
\;\;\;\;x \cdot \left(1 + x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot t\_0\\
\end{array}
\end{array}
if x < 1.85000000000000016e103Initial program 100.0%
Taylor expanded in y around 0
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6474.9%
Simplified74.9%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6455.0%
Simplified55.0%
if 1.85000000000000016e103 < x < 1.19999999999999991e262Initial program 99.9%
Taylor expanded in y around 0
sin-lowering-sin.f6449.7%
Simplified49.7%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6430.3%
Simplified30.3%
if 1.19999999999999991e262 < x Initial program 100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
*-rgt-identityN/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
Simplified73.8%
Taylor expanded in x around 0
Simplified47.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6446.9%
Simplified46.9%
Taylor expanded in y around 0
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6439.4%
Simplified39.4%
Final simplification51.7%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* 0.16666666666666666 (* y y))))
(if (<= x 1.85e+103)
(* x (+ 1.0 t_0))
(if (<= x 1.2e+262) (* x (* -0.16666666666666666 (* x x))) (* x t_0)))))
double code(double x, double y) {
double t_0 = 0.16666666666666666 * (y * y);
double tmp;
if (x <= 1.85e+103) {
tmp = x * (1.0 + t_0);
} else if (x <= 1.2e+262) {
tmp = x * (-0.16666666666666666 * (x * x));
} else {
tmp = x * t_0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = 0.16666666666666666d0 * (y * y)
if (x <= 1.85d+103) then
tmp = x * (1.0d0 + t_0)
else if (x <= 1.2d+262) then
tmp = x * ((-0.16666666666666666d0) * (x * x))
else
tmp = x * t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = 0.16666666666666666 * (y * y);
double tmp;
if (x <= 1.85e+103) {
tmp = x * (1.0 + t_0);
} else if (x <= 1.2e+262) {
tmp = x * (-0.16666666666666666 * (x * x));
} else {
tmp = x * t_0;
}
return tmp;
}
def code(x, y): t_0 = 0.16666666666666666 * (y * y) tmp = 0 if x <= 1.85e+103: tmp = x * (1.0 + t_0) elif x <= 1.2e+262: tmp = x * (-0.16666666666666666 * (x * x)) else: tmp = x * t_0 return tmp
function code(x, y) t_0 = Float64(0.16666666666666666 * Float64(y * y)) tmp = 0.0 if (x <= 1.85e+103) tmp = Float64(x * Float64(1.0 + t_0)); elseif (x <= 1.2e+262) tmp = Float64(x * Float64(-0.16666666666666666 * Float64(x * x))); else tmp = Float64(x * t_0); end return tmp end
function tmp_2 = code(x, y) t_0 = 0.16666666666666666 * (y * y); tmp = 0.0; if (x <= 1.85e+103) tmp = x * (1.0 + t_0); elseif (x <= 1.2e+262) tmp = x * (-0.16666666666666666 * (x * x)); else tmp = x * t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 1.85e+103], N[(x * N[(1.0 + t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e+262], N[(x * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 0.16666666666666666 \cdot \left(y \cdot y\right)\\
\mathbf{if}\;x \leq 1.85 \cdot 10^{+103}:\\
\;\;\;\;x \cdot \left(1 + t\_0\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{+262}:\\
\;\;\;\;x \cdot \left(-0.16666666666666666 \cdot \left(x \cdot x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot t\_0\\
\end{array}
\end{array}
if x < 1.85000000000000016e103Initial program 100.0%
Taylor expanded in y around 0
*-lft-identityN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6474.9%
Simplified74.9%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6455.0%
Simplified55.0%
if 1.85000000000000016e103 < x < 1.19999999999999991e262Initial program 99.9%
Taylor expanded in y around 0
sin-lowering-sin.f6449.7%
Simplified49.7%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6430.3%
Simplified30.3%
Taylor expanded in x around inf
unpow3N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6430.3%
Simplified30.3%
if 1.19999999999999991e262 < x Initial program 100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
*-rgt-identityN/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
Simplified73.8%
Taylor expanded in x around 0
Simplified47.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6446.9%
Simplified46.9%
Taylor expanded in y around 0
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6439.4%
Simplified39.4%
Final simplification51.7%
(FPCore (x y)
:precision binary64
(if (<= y 4.7e+16)
x
(if (<= y 7e+146)
(* x (* -0.16666666666666666 (* x x)))
(* x (* 0.16666666666666666 (* y y))))))
double code(double x, double y) {
double tmp;
if (y <= 4.7e+16) {
tmp = x;
} else if (y <= 7e+146) {
tmp = x * (-0.16666666666666666 * (x * x));
} else {
tmp = x * (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 <= 4.7d+16) then
tmp = x
else if (y <= 7d+146) then
tmp = x * ((-0.16666666666666666d0) * (x * x))
else
tmp = x * (0.16666666666666666d0 * (y * y))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 4.7e+16) {
tmp = x;
} else if (y <= 7e+146) {
tmp = x * (-0.16666666666666666 * (x * x));
} else {
tmp = x * (0.16666666666666666 * (y * y));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 4.7e+16: tmp = x elif y <= 7e+146: tmp = x * (-0.16666666666666666 * (x * x)) else: tmp = x * (0.16666666666666666 * (y * y)) return tmp
function code(x, y) tmp = 0.0 if (y <= 4.7e+16) tmp = x; elseif (y <= 7e+146) tmp = Float64(x * Float64(-0.16666666666666666 * Float64(x * x))); else tmp = Float64(x * Float64(0.16666666666666666 * Float64(y * y))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 4.7e+16) tmp = x; elseif (y <= 7e+146) tmp = x * (-0.16666666666666666 * (x * x)); else tmp = x * (0.16666666666666666 * (y * y)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 4.7e+16], x, If[LessEqual[y, 7e+146], N[(x * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 4.7 \cdot 10^{+16}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+146}:\\
\;\;\;\;x \cdot \left(-0.16666666666666666 \cdot \left(x \cdot x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\
\end{array}
\end{array}
if y < 4.7e16Initial program 100.0%
Taylor expanded in y around 0
sin-lowering-sin.f6466.2%
Simplified66.2%
Taylor expanded in x around 0
Simplified36.1%
if 4.7e16 < y < 7.0000000000000002e146Initial program 100.0%
Taylor expanded in y around 0
sin-lowering-sin.f642.6%
Simplified2.6%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6422.1%
Simplified22.1%
Taylor expanded in x around inf
unpow3N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6421.9%
Simplified21.9%
if 7.0000000000000002e146 < y Initial program 100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
*-rgt-identityN/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
Simplified100.0%
Taylor expanded in x around 0
Simplified87.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6487.5%
Simplified87.5%
Taylor expanded in y around 0
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6478.6%
Simplified78.6%
Final simplification39.8%
(FPCore (x y) :precision binary64 (if (<= y 8e+41) (* x (+ 1.0 (* x (* x -0.16666666666666666)))) (* x (* y (* y (* y (* y 0.008333333333333333)))))))
double code(double x, double y) {
double tmp;
if (y <= 8e+41) {
tmp = x * (1.0 + (x * (x * -0.16666666666666666)));
} else {
tmp = x * (y * (y * (y * (y * 0.008333333333333333))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 8d+41) then
tmp = x * (1.0d0 + (x * (x * (-0.16666666666666666d0))))
else
tmp = x * (y * (y * (y * (y * 0.008333333333333333d0))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 8e+41) {
tmp = x * (1.0 + (x * (x * -0.16666666666666666)));
} else {
tmp = x * (y * (y * (y * (y * 0.008333333333333333))));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 8e+41: tmp = x * (1.0 + (x * (x * -0.16666666666666666))) else: tmp = x * (y * (y * (y * (y * 0.008333333333333333)))) return tmp
function code(x, y) tmp = 0.0 if (y <= 8e+41) tmp = Float64(x * Float64(1.0 + Float64(x * Float64(x * -0.16666666666666666)))); else tmp = Float64(x * Float64(y * Float64(y * Float64(y * Float64(y * 0.008333333333333333))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 8e+41) tmp = x * (1.0 + (x * (x * -0.16666666666666666))); else tmp = x * (y * (y * (y * (y * 0.008333333333333333)))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 8e+41], N[(x * N[(1.0 + N[(x * N[(x * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * N[(y * N[(y * N[(y * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 8 \cdot 10^{+41}:\\
\;\;\;\;x \cdot \left(1 + x \cdot \left(x \cdot -0.16666666666666666\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \left(y \cdot \left(y \cdot \left(y \cdot 0.008333333333333333\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 8.00000000000000005e41Initial program 100.0%
Taylor expanded in y around 0
sin-lowering-sin.f6464.6%
Simplified64.6%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6441.8%
Simplified41.8%
if 8.00000000000000005e41 < y Initial program 100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
*-rgt-identityN/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
Simplified86.5%
Taylor expanded in x around 0
Simplified75.2%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6475.2%
Simplified75.2%
(FPCore (x y) :precision binary64 (* x (+ 1.0 (* y (* y (* (* y y) 0.008333333333333333))))))
double code(double x, double y) {
return x * (1.0 + (y * (y * ((y * y) * 0.008333333333333333))));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = x * (1.0d0 + (y * (y * ((y * y) * 0.008333333333333333d0))))
end function
public static double code(double x, double y) {
return x * (1.0 + (y * (y * ((y * y) * 0.008333333333333333))));
}
def code(x, y): return x * (1.0 + (y * (y * ((y * y) * 0.008333333333333333))))
function code(x, y) return Float64(x * Float64(1.0 + Float64(y * Float64(y * Float64(Float64(y * y) * 0.008333333333333333))))) end
function tmp = code(x, y) tmp = x * (1.0 + (y * (y * ((y * y) * 0.008333333333333333)))); end
code[x_, y_] := N[(x * N[(1.0 + N[(y * N[(y * N[(N[(y * y), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(1 + y \cdot \left(y \cdot \left(\left(y \cdot y\right) \cdot 0.008333333333333333\right)\right)\right)
\end{array}
Initial program 100.0%
Taylor expanded in y around 0
distribute-lft-inN/A
*-rgt-identityN/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
+-commutativeN/A
associate-*l*N/A
*-commutativeN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
sin-lowering-sin.f64N/A
+-lowering-+.f64N/A
Simplified86.9%
Taylor expanded in y around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6486.2%
Simplified86.2%
Taylor expanded in x around 0
Simplified57.9%
(FPCore (x y) :precision binary64 (if (<= x 1.85e+103) x (* x (* -0.16666666666666666 (* x x)))))
double code(double x, double y) {
double tmp;
if (x <= 1.85e+103) {
tmp = x;
} else {
tmp = x * (-0.16666666666666666 * (x * 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.85d+103) then
tmp = x
else
tmp = x * ((-0.16666666666666666d0) * (x * x))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 1.85e+103) {
tmp = x;
} else {
tmp = x * (-0.16666666666666666 * (x * x));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 1.85e+103: tmp = x else: tmp = x * (-0.16666666666666666 * (x * x)) return tmp
function code(x, y) tmp = 0.0 if (x <= 1.85e+103) tmp = x; else tmp = Float64(x * Float64(-0.16666666666666666 * Float64(x * x))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 1.85e+103) tmp = x; else tmp = x * (-0.16666666666666666 * (x * x)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 1.85e+103], x, N[(x * N[(-0.16666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.85 \cdot 10^{+103}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(-0.16666666666666666 \cdot \left(x \cdot x\right)\right)\\
\end{array}
\end{array}
if x < 1.85000000000000016e103Initial program 100.0%
Taylor expanded in y around 0
sin-lowering-sin.f6451.8%
Simplified51.8%
Taylor expanded in x around 0
Simplified32.3%
if 1.85000000000000016e103 < x Initial program 99.9%
Taylor expanded in y around 0
sin-lowering-sin.f6446.4%
Simplified46.4%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6424.4%
Simplified24.4%
Taylor expanded in x around inf
unpow3N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6424.4%
Simplified24.4%
(FPCore (x y) :precision binary64 x)
double code(double x, double y) {
return x;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = x
end function
public static double code(double x, double y) {
return x;
}
def code(x, y): return x
function code(x, y) return x end
function tmp = code(x, y) tmp = x; end
code[x_, y_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 100.0%
Taylor expanded in y around 0
sin-lowering-sin.f6451.0%
Simplified51.0%
Taylor expanded in x around 0
Simplified28.1%
herbie shell --seed 2024158
(FPCore (x y)
:name "Linear.Quaternion:$ccos from linear-1.19.1.3"
:precision binary64
(* (sin x) (/ (sinh y) y)))