
(FPCore (x y z)
:precision binary64
(+
(+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
(/
(+
(* (- (* (+ y 0.0007936500793651) z) 0.0027777777777778) z)
0.083333333333333)
x)))
double code(double x, double y, double z) {
return ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + ((((((y + 0.0007936500793651d0) * z) - 0.0027777777777778d0) * z) + 0.083333333333333d0) / x)
end function
public static double code(double x, double y, double z) {
return ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
def code(x, y, z): return ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x)
function code(x, y, z) return Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(Float64(Float64(Float64(Float64(Float64(y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x)) end
function tmp = code(x, y, z) tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x); end
code[x_, y_, z_] := N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(N[(N[(N[(N[(N[(y + 0.0007936500793651), $MachinePrecision] * z), $MachinePrecision] - 0.0027777777777778), $MachinePrecision] * z), $MachinePrecision] + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 15 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(+
(+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
(/
(+
(* (- (* (+ y 0.0007936500793651) z) 0.0027777777777778) z)
0.083333333333333)
x)))
double code(double x, double y, double z) {
return ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + ((((((y + 0.0007936500793651d0) * z) - 0.0027777777777778d0) * z) + 0.083333333333333d0) / x)
end function
public static double code(double x, double y, double z) {
return ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
def code(x, y, z): return ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x)
function code(x, y, z) return Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(Float64(Float64(Float64(Float64(Float64(y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x)) end
function tmp = code(x, y, z) tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x); end
code[x_, y_, z_] := N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(N[(N[(N[(N[(N[(y + 0.0007936500793651), $MachinePrecision] * z), $MachinePrecision] - 0.0027777777777778), $MachinePrecision] * z), $MachinePrecision] + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\end{array}
(FPCore (x y z)
:precision binary64
(if (<= x 2e+55)
(+
(fma (+ x -0.5) (log x) (- x))
(+
0.91893853320467
(/
(fma
(fma (+ y 0.0007936500793651) z -0.0027777777777778)
z
0.083333333333333)
x)))
(-
(+
(+ 0.91893853320467 (/ 0.083333333333333 x))
(+
(*
z
(- (* z (+ (/ 0.0007936500793651 x) (/ y x))) (/ 0.0027777777777778 x)))
(* (+ x -0.5) (log x))))
x)))
double code(double x, double y, double z) {
double tmp;
if (x <= 2e+55) {
tmp = fma((x + -0.5), log(x), -x) + (0.91893853320467 + (fma(fma((y + 0.0007936500793651), z, -0.0027777777777778), z, 0.083333333333333) / x));
} else {
tmp = ((0.91893853320467 + (0.083333333333333 / x)) + ((z * ((z * ((0.0007936500793651 / x) + (y / x))) - (0.0027777777777778 / x))) + ((x + -0.5) * log(x)))) - x;
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (x <= 2e+55) tmp = Float64(fma(Float64(x + -0.5), log(x), Float64(-x)) + Float64(0.91893853320467 + Float64(fma(fma(Float64(y + 0.0007936500793651), z, -0.0027777777777778), z, 0.083333333333333) / x))); else tmp = Float64(Float64(Float64(0.91893853320467 + Float64(0.083333333333333 / x)) + Float64(Float64(z * Float64(Float64(z * Float64(Float64(0.0007936500793651 / x) + Float64(y / x))) - Float64(0.0027777777777778 / x))) + Float64(Float64(x + -0.5) * log(x)))) - x); end return tmp end
code[x_, y_, z_] := If[LessEqual[x, 2e+55], N[(N[(N[(x + -0.5), $MachinePrecision] * N[Log[x], $MachinePrecision] + (-x)), $MachinePrecision] + N[(0.91893853320467 + N[(N[(N[(N[(y + 0.0007936500793651), $MachinePrecision] * z + -0.0027777777777778), $MachinePrecision] * z + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(0.91893853320467 + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(N[(z * N[(N[(0.0007936500793651 / x), $MachinePrecision] + N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(0.0027777777777778 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x + -0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2 \cdot 10^{+55}:\\
\;\;\;\;\mathsf{fma}\left(x + -0.5, \log x, -x\right) + \left(0.91893853320467 + \frac{\mathsf{fma}\left(\mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), z, 0.083333333333333\right)}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(0.91893853320467 + \frac{0.083333333333333}{x}\right) + \left(z \cdot \left(z \cdot \left(\frac{0.0007936500793651}{x} + \frac{y}{x}\right) - \frac{0.0027777777777778}{x}\right) + \left(x + -0.5\right) \cdot \log x\right)\right) - x\\
\end{array}
\end{array}
if x < 2.00000000000000002e55Initial program 99.7%
associate-+l+99.7%
fma-neg99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-neg99.7%
metadata-eval99.7%
Simplified99.7%
if 2.00000000000000002e55 < x Initial program 87.2%
associate-+l+87.2%
fma-neg87.3%
sub-neg87.3%
metadata-eval87.3%
fma-define87.3%
fma-neg87.3%
metadata-eval87.3%
Simplified87.3%
Taylor expanded in z around 0 99.5%
Simplified99.5%
fma-undefine99.5%
Applied egg-rr99.5%
Final simplification99.6%
(FPCore (x y z)
:precision binary64
(if (<= x 1e+52)
(+
(+ (fma (+ x -0.5) (log x) (- x)) 0.91893853320467)
(/
(-
0.083333333333333
(* z (- 0.0027777777777778 (* z (+ y 0.0007936500793651)))))
x))
(-
(+
(+ 0.91893853320467 (/ 0.083333333333333 x))
(+
(*
z
(- (* z (+ (/ 0.0007936500793651 x) (/ y x))) (/ 0.0027777777777778 x)))
(* (+ x -0.5) (log x))))
x)))
double code(double x, double y, double z) {
double tmp;
if (x <= 1e+52) {
tmp = (fma((x + -0.5), log(x), -x) + 0.91893853320467) + ((0.083333333333333 - (z * (0.0027777777777778 - (z * (y + 0.0007936500793651))))) / x);
} else {
tmp = ((0.91893853320467 + (0.083333333333333 / x)) + ((z * ((z * ((0.0007936500793651 / x) + (y / x))) - (0.0027777777777778 / x))) + ((x + -0.5) * log(x)))) - x;
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (x <= 1e+52) tmp = Float64(Float64(fma(Float64(x + -0.5), log(x), Float64(-x)) + 0.91893853320467) + Float64(Float64(0.083333333333333 - Float64(z * Float64(0.0027777777777778 - Float64(z * Float64(y + 0.0007936500793651))))) / x)); else tmp = Float64(Float64(Float64(0.91893853320467 + Float64(0.083333333333333 / x)) + Float64(Float64(z * Float64(Float64(z * Float64(Float64(0.0007936500793651 / x) + Float64(y / x))) - Float64(0.0027777777777778 / x))) + Float64(Float64(x + -0.5) * log(x)))) - x); end return tmp end
code[x_, y_, z_] := If[LessEqual[x, 1e+52], N[(N[(N[(N[(x + -0.5), $MachinePrecision] * N[Log[x], $MachinePrecision] + (-x)), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(N[(0.083333333333333 - N[(z * N[(0.0027777777777778 - N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(N[(N[(0.91893853320467 + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(N[(z * N[(N[(0.0007936500793651 / x), $MachinePrecision] + N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(0.0027777777777778 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x + -0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 10^{+52}:\\
\;\;\;\;\left(\mathsf{fma}\left(x + -0.5, \log x, -x\right) + 0.91893853320467\right) + \frac{0.083333333333333 - z \cdot \left(0.0027777777777778 - z \cdot \left(y + 0.0007936500793651\right)\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;\left(\left(0.91893853320467 + \frac{0.083333333333333}{x}\right) + \left(z \cdot \left(z \cdot \left(\frac{0.0007936500793651}{x} + \frac{y}{x}\right) - \frac{0.0027777777777778}{x}\right) + \left(x + -0.5\right) \cdot \log x\right)\right) - x\\
\end{array}
\end{array}
if x < 9.9999999999999999e51Initial program 99.7%
add-cube-cbrt99.5%
pow399.5%
sub-neg99.5%
metadata-eval99.5%
Applied egg-rr99.5%
rem-cube-cbrt99.7%
metadata-eval99.7%
sub-neg99.7%
fma-neg99.7%
sub-neg99.7%
metadata-eval99.7%
Applied egg-rr99.7%
if 9.9999999999999999e51 < x Initial program 87.2%
associate-+l+87.2%
fma-neg87.3%
sub-neg87.3%
metadata-eval87.3%
fma-define87.3%
fma-neg87.3%
metadata-eval87.3%
Simplified87.3%
Taylor expanded in z around 0 99.5%
Simplified99.5%
fma-undefine99.5%
Applied egg-rr99.5%
Final simplification99.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ 0.91893853320467 (/ 0.083333333333333 x))))
(if (<= x 3.5e-33)
(-
(+ t_0 (* (fma z (+ y 0.0007936500793651) -0.0027777777777778) (/ z x)))
x)
(-
(+
t_0
(+
(*
z
(-
(* z (+ (/ 0.0007936500793651 x) (/ y x)))
(/ 0.0027777777777778 x)))
(* (+ x -0.5) (log x))))
x))))
double code(double x, double y, double z) {
double t_0 = 0.91893853320467 + (0.083333333333333 / x);
double tmp;
if (x <= 3.5e-33) {
tmp = (t_0 + (fma(z, (y + 0.0007936500793651), -0.0027777777777778) * (z / x))) - x;
} else {
tmp = (t_0 + ((z * ((z * ((0.0007936500793651 / x) + (y / x))) - (0.0027777777777778 / x))) + ((x + -0.5) * log(x)))) - x;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(0.91893853320467 + Float64(0.083333333333333 / x)) tmp = 0.0 if (x <= 3.5e-33) tmp = Float64(Float64(t_0 + Float64(fma(z, Float64(y + 0.0007936500793651), -0.0027777777777778) * Float64(z / x))) - x); else tmp = Float64(Float64(t_0 + Float64(Float64(z * Float64(Float64(z * Float64(Float64(0.0007936500793651 / x) + Float64(y / x))) - Float64(0.0027777777777778 / x))) + Float64(Float64(x + -0.5) * log(x)))) - x); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(0.91893853320467 + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 3.5e-33], N[(N[(t$95$0 + N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision] + -0.0027777777777778), $MachinePrecision] * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision], N[(N[(t$95$0 + N[(N[(z * N[(N[(z * N[(N[(0.0007936500793651 / x), $MachinePrecision] + N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(0.0027777777777778 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x + -0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 0.91893853320467 + \frac{0.083333333333333}{x}\\
\mathbf{if}\;x \leq 3.5 \cdot 10^{-33}:\\
\;\;\;\;\left(t\_0 + \mathsf{fma}\left(z, y + 0.0007936500793651, -0.0027777777777778\right) \cdot \frac{z}{x}\right) - x\\
\mathbf{else}:\\
\;\;\;\;\left(t\_0 + \left(z \cdot \left(z \cdot \left(\frac{0.0007936500793651}{x} + \frac{y}{x}\right) - \frac{0.0027777777777778}{x}\right) + \left(x + -0.5\right) \cdot \log x\right)\right) - x\\
\end{array}
\end{array}
if x < 3.4999999999999999e-33Initial program 99.7%
associate-+l+99.7%
fma-neg99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in z around 0 91.0%
Simplified91.0%
Taylor expanded in x around 0 99.7%
*-commutative99.7%
associate-/l*99.7%
fma-neg99.7%
metadata-eval99.7%
Simplified99.7%
if 3.4999999999999999e-33 < x Initial program 90.9%
associate-+l+90.9%
fma-neg91.0%
sub-neg91.0%
metadata-eval91.0%
fma-define91.0%
fma-neg91.0%
metadata-eval91.0%
Simplified91.0%
Taylor expanded in z around 0 99.5%
Simplified99.5%
fma-undefine99.6%
Applied egg-rr99.6%
Final simplification99.6%
(FPCore (x y z)
:precision binary64
(if (or (<= z -1.5e+20) (not (<= z 8.2e+39)))
(-
(+
(+ 0.91893853320467 (/ 0.083333333333333 x))
(*
z
(+
(* z (+ (/ y x) (* 0.0007936500793651 (/ 1.0 x))))
(* 0.0027777777777778 (/ -1.0 x)))))
x)
(-
(+
0.91893853320467
(+ (* 0.083333333333333 (/ 1.0 x)) (* (log x) (- x 0.5))))
x)))
double code(double x, double y, double z) {
double tmp;
if ((z <= -1.5e+20) || !(z <= 8.2e+39)) {
tmp = ((0.91893853320467 + (0.083333333333333 / x)) + (z * ((z * ((y / x) + (0.0007936500793651 * (1.0 / x)))) + (0.0027777777777778 * (-1.0 / x))))) - x;
} else {
tmp = (0.91893853320467 + ((0.083333333333333 * (1.0 / x)) + (log(x) * (x - 0.5)))) - x;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((z <= (-1.5d+20)) .or. (.not. (z <= 8.2d+39))) then
tmp = ((0.91893853320467d0 + (0.083333333333333d0 / x)) + (z * ((z * ((y / x) + (0.0007936500793651d0 * (1.0d0 / x)))) + (0.0027777777777778d0 * ((-1.0d0) / x))))) - x
else
tmp = (0.91893853320467d0 + ((0.083333333333333d0 * (1.0d0 / x)) + (log(x) * (x - 0.5d0)))) - x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -1.5e+20) || !(z <= 8.2e+39)) {
tmp = ((0.91893853320467 + (0.083333333333333 / x)) + (z * ((z * ((y / x) + (0.0007936500793651 * (1.0 / x)))) + (0.0027777777777778 * (-1.0 / x))))) - x;
} else {
tmp = (0.91893853320467 + ((0.083333333333333 * (1.0 / x)) + (Math.log(x) * (x - 0.5)))) - x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -1.5e+20) or not (z <= 8.2e+39): tmp = ((0.91893853320467 + (0.083333333333333 / x)) + (z * ((z * ((y / x) + (0.0007936500793651 * (1.0 / x)))) + (0.0027777777777778 * (-1.0 / x))))) - x else: tmp = (0.91893853320467 + ((0.083333333333333 * (1.0 / x)) + (math.log(x) * (x - 0.5)))) - x return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -1.5e+20) || !(z <= 8.2e+39)) tmp = Float64(Float64(Float64(0.91893853320467 + Float64(0.083333333333333 / x)) + Float64(z * Float64(Float64(z * Float64(Float64(y / x) + Float64(0.0007936500793651 * Float64(1.0 / x)))) + Float64(0.0027777777777778 * Float64(-1.0 / x))))) - x); else tmp = Float64(Float64(0.91893853320467 + Float64(Float64(0.083333333333333 * Float64(1.0 / x)) + Float64(log(x) * Float64(x - 0.5)))) - x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -1.5e+20) || ~((z <= 8.2e+39))) tmp = ((0.91893853320467 + (0.083333333333333 / x)) + (z * ((z * ((y / x) + (0.0007936500793651 * (1.0 / x)))) + (0.0027777777777778 * (-1.0 / x))))) - x; else tmp = (0.91893853320467 + ((0.083333333333333 * (1.0 / x)) + (log(x) * (x - 0.5)))) - x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -1.5e+20], N[Not[LessEqual[z, 8.2e+39]], $MachinePrecision]], N[(N[(N[(0.91893853320467 + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(z * N[(N[(y / x), $MachinePrecision] + N[(0.0007936500793651 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.0027777777777778 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision], N[(N[(0.91893853320467 + N[(N[(0.083333333333333 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] + N[(N[Log[x], $MachinePrecision] * N[(x - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.5 \cdot 10^{+20} \lor \neg \left(z \leq 8.2 \cdot 10^{+39}\right):\\
\;\;\;\;\left(\left(0.91893853320467 + \frac{0.083333333333333}{x}\right) + z \cdot \left(z \cdot \left(\frac{y}{x} + 0.0007936500793651 \cdot \frac{1}{x}\right) + 0.0027777777777778 \cdot \frac{-1}{x}\right)\right) - x\\
\mathbf{else}:\\
\;\;\;\;\left(0.91893853320467 + \left(0.083333333333333 \cdot \frac{1}{x} + \log x \cdot \left(x - 0.5\right)\right)\right) - x\\
\end{array}
\end{array}
if z < -1.5e20 or 8.20000000000000008e39 < z Initial program 89.3%
associate-+l+89.3%
fma-neg89.3%
sub-neg89.3%
metadata-eval89.3%
fma-define89.3%
fma-neg89.3%
metadata-eval89.3%
Simplified89.3%
Taylor expanded in z around 0 99.8%
Simplified99.8%
Taylor expanded in x around 0 78.3%
Taylor expanded in z around 0 81.5%
if -1.5e20 < z < 8.20000000000000008e39Initial program 99.4%
associate-+l+99.4%
fma-neg99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-neg99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in z around 0 91.0%
Final simplification86.5%
(FPCore (x y z)
:precision binary64
(if (<= x 150.0)
(-
(+
(+ 0.91893853320467 (/ 0.083333333333333 x))
(/ (* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)) x))
x)
(if (or (<= x 3.6e+29) (not (<= x 7e+79)))
(* x (+ (log x) -1.0))
(* (pow z 2.0) (/ (+ y 0.0007936500793651) x)))))
double code(double x, double y, double z) {
double tmp;
if (x <= 150.0) {
tmp = ((0.91893853320467 + (0.083333333333333 / x)) + ((z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)) / x)) - x;
} else if ((x <= 3.6e+29) || !(x <= 7e+79)) {
tmp = x * (log(x) + -1.0);
} else {
tmp = pow(z, 2.0) * ((y + 0.0007936500793651) / x);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= 150.0d0) then
tmp = ((0.91893853320467d0 + (0.083333333333333d0 / x)) + ((z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0)) / x)) - x
else if ((x <= 3.6d+29) .or. (.not. (x <= 7d+79))) then
tmp = x * (log(x) + (-1.0d0))
else
tmp = (z ** 2.0d0) * ((y + 0.0007936500793651d0) / x)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 150.0) {
tmp = ((0.91893853320467 + (0.083333333333333 / x)) + ((z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)) / x)) - x;
} else if ((x <= 3.6e+29) || !(x <= 7e+79)) {
tmp = x * (Math.log(x) + -1.0);
} else {
tmp = Math.pow(z, 2.0) * ((y + 0.0007936500793651) / x);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 150.0: tmp = ((0.91893853320467 + (0.083333333333333 / x)) + ((z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)) / x)) - x elif (x <= 3.6e+29) or not (x <= 7e+79): tmp = x * (math.log(x) + -1.0) else: tmp = math.pow(z, 2.0) * ((y + 0.0007936500793651) / x) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 150.0) tmp = Float64(Float64(Float64(0.91893853320467 + Float64(0.083333333333333 / x)) + Float64(Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778)) / x)) - x); elseif ((x <= 3.6e+29) || !(x <= 7e+79)) tmp = Float64(x * Float64(log(x) + -1.0)); else tmp = Float64((z ^ 2.0) * Float64(Float64(y + 0.0007936500793651) / x)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 150.0) tmp = ((0.91893853320467 + (0.083333333333333 / x)) + ((z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)) / x)) - x; elseif ((x <= 3.6e+29) || ~((x <= 7e+79))) tmp = x * (log(x) + -1.0); else tmp = (z ^ 2.0) * ((y + 0.0007936500793651) / x); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 150.0], N[(N[(N[(0.91893853320467 + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision], If[Or[LessEqual[x, 3.6e+29], N[Not[LessEqual[x, 7e+79]], $MachinePrecision]], N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision], N[(N[Power[z, 2.0], $MachinePrecision] * N[(N[(y + 0.0007936500793651), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 150:\\
\;\;\;\;\left(\left(0.91893853320467 + \frac{0.083333333333333}{x}\right) + \frac{z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x}\right) - x\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{+29} \lor \neg \left(x \leq 7 \cdot 10^{+79}\right):\\
\;\;\;\;x \cdot \left(\log x + -1\right)\\
\mathbf{else}:\\
\;\;\;\;{z}^{2} \cdot \frac{y + 0.0007936500793651}{x}\\
\end{array}
\end{array}
if x < 150Initial program 99.7%
associate-+l+99.7%
fma-neg99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in z around 0 91.7%
Simplified91.7%
Taylor expanded in x around 0 99.4%
if 150 < x < 3.59999999999999976e29 or 6.99999999999999961e79 < x Initial program 88.9%
associate-+l+88.9%
fma-neg89.1%
sub-neg89.1%
metadata-eval89.1%
fma-define89.1%
fma-neg89.1%
metadata-eval89.1%
Simplified89.1%
Taylor expanded in y around -inf 65.1%
Taylor expanded in x around inf 74.4%
mul-1-neg74.4%
*-commutative74.4%
distribute-rgt-neg-in74.4%
sub-neg74.4%
mul-1-neg74.4%
log-rec74.4%
remove-double-neg74.4%
metadata-eval74.4%
+-commutative74.4%
Simplified74.4%
if 3.59999999999999976e29 < x < 6.99999999999999961e79Initial program 96.1%
associate-+l+96.1%
fma-neg96.1%
sub-neg96.1%
metadata-eval96.1%
fma-define96.1%
fma-neg96.1%
metadata-eval96.1%
Simplified96.1%
Taylor expanded in z around inf 67.7%
associate-*r/67.7%
metadata-eval67.7%
Simplified67.7%
Taylor expanded in x around 0 64.0%
associate-/l*67.7%
Simplified67.7%
Final simplification85.5%
(FPCore (x y z)
:precision binary64
(if (or (<= z -7.5e+14) (not (<= z 2.05e+41)))
(-
(+
(+ 0.91893853320467 (/ 0.083333333333333 x))
(*
z
(+
(* z (+ (/ y x) (* 0.0007936500793651 (/ 1.0 x))))
(* 0.0027777777777778 (/ -1.0 x)))))
x)
(+
(/ 0.083333333333333 x)
(- 0.91893853320467 (+ x (* (log x) (- 0.5 x)))))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -7.5e+14) || !(z <= 2.05e+41)) {
tmp = ((0.91893853320467 + (0.083333333333333 / x)) + (z * ((z * ((y / x) + (0.0007936500793651 * (1.0 / x)))) + (0.0027777777777778 * (-1.0 / x))))) - x;
} else {
tmp = (0.083333333333333 / x) + (0.91893853320467 - (x + (log(x) * (0.5 - x))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((z <= (-7.5d+14)) .or. (.not. (z <= 2.05d+41))) then
tmp = ((0.91893853320467d0 + (0.083333333333333d0 / x)) + (z * ((z * ((y / x) + (0.0007936500793651d0 * (1.0d0 / x)))) + (0.0027777777777778d0 * ((-1.0d0) / x))))) - x
else
tmp = (0.083333333333333d0 / x) + (0.91893853320467d0 - (x + (log(x) * (0.5d0 - x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -7.5e+14) || !(z <= 2.05e+41)) {
tmp = ((0.91893853320467 + (0.083333333333333 / x)) + (z * ((z * ((y / x) + (0.0007936500793651 * (1.0 / x)))) + (0.0027777777777778 * (-1.0 / x))))) - x;
} else {
tmp = (0.083333333333333 / x) + (0.91893853320467 - (x + (Math.log(x) * (0.5 - x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -7.5e+14) or not (z <= 2.05e+41): tmp = ((0.91893853320467 + (0.083333333333333 / x)) + (z * ((z * ((y / x) + (0.0007936500793651 * (1.0 / x)))) + (0.0027777777777778 * (-1.0 / x))))) - x else: tmp = (0.083333333333333 / x) + (0.91893853320467 - (x + (math.log(x) * (0.5 - x)))) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -7.5e+14) || !(z <= 2.05e+41)) tmp = Float64(Float64(Float64(0.91893853320467 + Float64(0.083333333333333 / x)) + Float64(z * Float64(Float64(z * Float64(Float64(y / x) + Float64(0.0007936500793651 * Float64(1.0 / x)))) + Float64(0.0027777777777778 * Float64(-1.0 / x))))) - x); else tmp = Float64(Float64(0.083333333333333 / x) + Float64(0.91893853320467 - Float64(x + Float64(log(x) * Float64(0.5 - x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -7.5e+14) || ~((z <= 2.05e+41))) tmp = ((0.91893853320467 + (0.083333333333333 / x)) + (z * ((z * ((y / x) + (0.0007936500793651 * (1.0 / x)))) + (0.0027777777777778 * (-1.0 / x))))) - x; else tmp = (0.083333333333333 / x) + (0.91893853320467 - (x + (log(x) * (0.5 - x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -7.5e+14], N[Not[LessEqual[z, 2.05e+41]], $MachinePrecision]], N[(N[(N[(0.91893853320467 + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(z * N[(N[(y / x), $MachinePrecision] + N[(0.0007936500793651 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.0027777777777778 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision], N[(N[(0.083333333333333 / x), $MachinePrecision] + N[(0.91893853320467 - N[(x + N[(N[Log[x], $MachinePrecision] * N[(0.5 - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{+14} \lor \neg \left(z \leq 2.05 \cdot 10^{+41}\right):\\
\;\;\;\;\left(\left(0.91893853320467 + \frac{0.083333333333333}{x}\right) + z \cdot \left(z \cdot \left(\frac{y}{x} + 0.0007936500793651 \cdot \frac{1}{x}\right) + 0.0027777777777778 \cdot \frac{-1}{x}\right)\right) - x\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333}{x} + \left(0.91893853320467 - \left(x + \log x \cdot \left(0.5 - x\right)\right)\right)\\
\end{array}
\end{array}
if z < -7.5e14 or 2.0500000000000002e41 < z Initial program 89.3%
associate-+l+89.3%
fma-neg89.3%
sub-neg89.3%
metadata-eval89.3%
fma-define89.3%
fma-neg89.3%
metadata-eval89.3%
Simplified89.3%
Taylor expanded in z around 0 99.8%
Simplified99.8%
Taylor expanded in x around 0 78.3%
Taylor expanded in z around 0 81.5%
if -7.5e14 < z < 2.0500000000000002e41Initial program 99.4%
Taylor expanded in z around 0 91.0%
Final simplification86.5%
(FPCore (x y z)
:precision binary64
(+
(/
(-
0.083333333333333
(* z (- 0.0027777777777778 (* z (+ y 0.0007936500793651)))))
x)
(- 0.91893853320467 (+ x (* (log x) (- 0.5 x))))))
double code(double x, double y, double z) {
return ((0.083333333333333 - (z * (0.0027777777777778 - (z * (y + 0.0007936500793651))))) / x) + (0.91893853320467 - (x + (log(x) * (0.5 - x))));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((0.083333333333333d0 - (z * (0.0027777777777778d0 - (z * (y + 0.0007936500793651d0))))) / x) + (0.91893853320467d0 - (x + (log(x) * (0.5d0 - x))))
end function
public static double code(double x, double y, double z) {
return ((0.083333333333333 - (z * (0.0027777777777778 - (z * (y + 0.0007936500793651))))) / x) + (0.91893853320467 - (x + (Math.log(x) * (0.5 - x))));
}
def code(x, y, z): return ((0.083333333333333 - (z * (0.0027777777777778 - (z * (y + 0.0007936500793651))))) / x) + (0.91893853320467 - (x + (math.log(x) * (0.5 - x))))
function code(x, y, z) return Float64(Float64(Float64(0.083333333333333 - Float64(z * Float64(0.0027777777777778 - Float64(z * Float64(y + 0.0007936500793651))))) / x) + Float64(0.91893853320467 - Float64(x + Float64(log(x) * Float64(0.5 - x))))) end
function tmp = code(x, y, z) tmp = ((0.083333333333333 - (z * (0.0027777777777778 - (z * (y + 0.0007936500793651))))) / x) + (0.91893853320467 - (x + (log(x) * (0.5 - x)))); end
code[x_, y_, z_] := N[(N[(N[(0.083333333333333 - N[(z * N[(0.0027777777777778 - N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(0.91893853320467 - N[(x + N[(N[Log[x], $MachinePrecision] * N[(0.5 - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{0.083333333333333 - z \cdot \left(0.0027777777777778 - z \cdot \left(y + 0.0007936500793651\right)\right)}{x} + \left(0.91893853320467 - \left(x + \log x \cdot \left(0.5 - x\right)\right)\right)
\end{array}
Initial program 94.6%
Final simplification94.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ 0.91893853320467 (/ 0.083333333333333 x))))
(if (<= x 150.0)
(-
(+ t_0 (/ (* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)) x))
x)
(if (or (<= x 1.35e+29) (not (<= x 7.6e+78)))
(* x (+ (log x) -1.0))
(-
(+
t_0
(*
z
(+
(* z (+ (/ y x) (* 0.0007936500793651 (/ 1.0 x))))
(* 0.0027777777777778 (/ -1.0 x)))))
x)))))
double code(double x, double y, double z) {
double t_0 = 0.91893853320467 + (0.083333333333333 / x);
double tmp;
if (x <= 150.0) {
tmp = (t_0 + ((z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)) / x)) - x;
} else if ((x <= 1.35e+29) || !(x <= 7.6e+78)) {
tmp = x * (log(x) + -1.0);
} else {
tmp = (t_0 + (z * ((z * ((y / x) + (0.0007936500793651 * (1.0 / x)))) + (0.0027777777777778 * (-1.0 / x))))) - x;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 0.91893853320467d0 + (0.083333333333333d0 / x)
if (x <= 150.0d0) then
tmp = (t_0 + ((z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0)) / x)) - x
else if ((x <= 1.35d+29) .or. (.not. (x <= 7.6d+78))) then
tmp = x * (log(x) + (-1.0d0))
else
tmp = (t_0 + (z * ((z * ((y / x) + (0.0007936500793651d0 * (1.0d0 / x)))) + (0.0027777777777778d0 * ((-1.0d0) / x))))) - x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 0.91893853320467 + (0.083333333333333 / x);
double tmp;
if (x <= 150.0) {
tmp = (t_0 + ((z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)) / x)) - x;
} else if ((x <= 1.35e+29) || !(x <= 7.6e+78)) {
tmp = x * (Math.log(x) + -1.0);
} else {
tmp = (t_0 + (z * ((z * ((y / x) + (0.0007936500793651 * (1.0 / x)))) + (0.0027777777777778 * (-1.0 / x))))) - x;
}
return tmp;
}
def code(x, y, z): t_0 = 0.91893853320467 + (0.083333333333333 / x) tmp = 0 if x <= 150.0: tmp = (t_0 + ((z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)) / x)) - x elif (x <= 1.35e+29) or not (x <= 7.6e+78): tmp = x * (math.log(x) + -1.0) else: tmp = (t_0 + (z * ((z * ((y / x) + (0.0007936500793651 * (1.0 / x)))) + (0.0027777777777778 * (-1.0 / x))))) - x return tmp
function code(x, y, z) t_0 = Float64(0.91893853320467 + Float64(0.083333333333333 / x)) tmp = 0.0 if (x <= 150.0) tmp = Float64(Float64(t_0 + Float64(Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778)) / x)) - x); elseif ((x <= 1.35e+29) || !(x <= 7.6e+78)) tmp = Float64(x * Float64(log(x) + -1.0)); else tmp = Float64(Float64(t_0 + Float64(z * Float64(Float64(z * Float64(Float64(y / x) + Float64(0.0007936500793651 * Float64(1.0 / x)))) + Float64(0.0027777777777778 * Float64(-1.0 / x))))) - x); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 0.91893853320467 + (0.083333333333333 / x); tmp = 0.0; if (x <= 150.0) tmp = (t_0 + ((z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)) / x)) - x; elseif ((x <= 1.35e+29) || ~((x <= 7.6e+78))) tmp = x * (log(x) + -1.0); else tmp = (t_0 + (z * ((z * ((y / x) + (0.0007936500793651 * (1.0 / x)))) + (0.0027777777777778 * (-1.0 / x))))) - x; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(0.91893853320467 + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 150.0], N[(N[(t$95$0 + N[(N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision], If[Or[LessEqual[x, 1.35e+29], N[Not[LessEqual[x, 7.6e+78]], $MachinePrecision]], N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision], N[(N[(t$95$0 + N[(z * N[(N[(z * N[(N[(y / x), $MachinePrecision] + N[(0.0007936500793651 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.0027777777777778 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 0.91893853320467 + \frac{0.083333333333333}{x}\\
\mathbf{if}\;x \leq 150:\\
\;\;\;\;\left(t\_0 + \frac{z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x}\right) - x\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{+29} \lor \neg \left(x \leq 7.6 \cdot 10^{+78}\right):\\
\;\;\;\;x \cdot \left(\log x + -1\right)\\
\mathbf{else}:\\
\;\;\;\;\left(t\_0 + z \cdot \left(z \cdot \left(\frac{y}{x} + 0.0007936500793651 \cdot \frac{1}{x}\right) + 0.0027777777777778 \cdot \frac{-1}{x}\right)\right) - x\\
\end{array}
\end{array}
if x < 150Initial program 99.7%
associate-+l+99.7%
fma-neg99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in z around 0 91.7%
Simplified91.7%
Taylor expanded in x around 0 99.4%
if 150 < x < 1.35e29 or 7.5999999999999998e78 < x Initial program 88.9%
associate-+l+88.9%
fma-neg89.1%
sub-neg89.1%
metadata-eval89.1%
fma-define89.1%
fma-neg89.1%
metadata-eval89.1%
Simplified89.1%
Taylor expanded in y around -inf 65.1%
Taylor expanded in x around inf 74.4%
mul-1-neg74.4%
*-commutative74.4%
distribute-rgt-neg-in74.4%
sub-neg74.4%
mul-1-neg74.4%
log-rec74.4%
remove-double-neg74.4%
metadata-eval74.4%
+-commutative74.4%
Simplified74.4%
if 1.35e29 < x < 7.5999999999999998e78Initial program 96.1%
associate-+l+96.1%
fma-neg96.1%
sub-neg96.1%
metadata-eval96.1%
fma-define96.1%
fma-neg96.1%
metadata-eval96.1%
Simplified96.1%
Taylor expanded in z around 0 99.5%
Simplified99.5%
Taylor expanded in x around 0 63.3%
Taylor expanded in z around 0 66.7%
Final simplification85.4%
(FPCore (x y z)
:precision binary64
(+
(/
(-
0.083333333333333
(* z (- 0.0027777777777778 (* z (+ y 0.0007936500793651)))))
x)
(* x (+ (log x) -1.0))))
double code(double x, double y, double z) {
return ((0.083333333333333 - (z * (0.0027777777777778 - (z * (y + 0.0007936500793651))))) / x) + (x * (log(x) + -1.0));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((0.083333333333333d0 - (z * (0.0027777777777778d0 - (z * (y + 0.0007936500793651d0))))) / x) + (x * (log(x) + (-1.0d0)))
end function
public static double code(double x, double y, double z) {
return ((0.083333333333333 - (z * (0.0027777777777778 - (z * (y + 0.0007936500793651))))) / x) + (x * (Math.log(x) + -1.0));
}
def code(x, y, z): return ((0.083333333333333 - (z * (0.0027777777777778 - (z * (y + 0.0007936500793651))))) / x) + (x * (math.log(x) + -1.0))
function code(x, y, z) return Float64(Float64(Float64(0.083333333333333 - Float64(z * Float64(0.0027777777777778 - Float64(z * Float64(y + 0.0007936500793651))))) / x) + Float64(x * Float64(log(x) + -1.0))) end
function tmp = code(x, y, z) tmp = ((0.083333333333333 - (z * (0.0027777777777778 - (z * (y + 0.0007936500793651))))) / x) + (x * (log(x) + -1.0)); end
code[x_, y_, z_] := N[(N[(N[(0.083333333333333 - N[(z * N[(0.0027777777777778 - N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{0.083333333333333 - z \cdot \left(0.0027777777777778 - z \cdot \left(y + 0.0007936500793651\right)\right)}{x} + x \cdot \left(\log x + -1\right)
\end{array}
Initial program 94.6%
add-cube-cbrt94.2%
pow394.2%
sub-neg94.2%
metadata-eval94.2%
Applied egg-rr94.2%
Taylor expanded in x around inf 93.4%
sub-neg93.4%
mul-1-neg93.4%
log-rec93.4%
remove-double-neg93.4%
metadata-eval93.4%
+-commutative93.4%
Simplified93.4%
Final simplification93.4%
(FPCore (x y z)
:precision binary64
(+
(* 0.083333333333333 (/ 1.0 x))
(*
z
(+
(/ (* y (* z (+ 1.0 (* 0.0007936500793651 (/ 1.0 y))))) x)
(* 0.0027777777777778 (/ -1.0 x))))))
double code(double x, double y, double z) {
return (0.083333333333333 * (1.0 / x)) + (z * (((y * (z * (1.0 + (0.0007936500793651 * (1.0 / y))))) / x) + (0.0027777777777778 * (-1.0 / x))));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (0.083333333333333d0 * (1.0d0 / x)) + (z * (((y * (z * (1.0d0 + (0.0007936500793651d0 * (1.0d0 / y))))) / x) + (0.0027777777777778d0 * ((-1.0d0) / x))))
end function
public static double code(double x, double y, double z) {
return (0.083333333333333 * (1.0 / x)) + (z * (((y * (z * (1.0 + (0.0007936500793651 * (1.0 / y))))) / x) + (0.0027777777777778 * (-1.0 / x))));
}
def code(x, y, z): return (0.083333333333333 * (1.0 / x)) + (z * (((y * (z * (1.0 + (0.0007936500793651 * (1.0 / y))))) / x) + (0.0027777777777778 * (-1.0 / x))))
function code(x, y, z) return Float64(Float64(0.083333333333333 * Float64(1.0 / x)) + Float64(z * Float64(Float64(Float64(y * Float64(z * Float64(1.0 + Float64(0.0007936500793651 * Float64(1.0 / y))))) / x) + Float64(0.0027777777777778 * Float64(-1.0 / x))))) end
function tmp = code(x, y, z) tmp = (0.083333333333333 * (1.0 / x)) + (z * (((y * (z * (1.0 + (0.0007936500793651 * (1.0 / y))))) / x) + (0.0027777777777778 * (-1.0 / x)))); end
code[x_, y_, z_] := N[(N[(0.083333333333333 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(N[(y * N[(z * N[(1.0 + N[(0.0007936500793651 * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(0.0027777777777778 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
0.083333333333333 \cdot \frac{1}{x} + z \cdot \left(\frac{y \cdot \left(z \cdot \left(1 + 0.0007936500793651 \cdot \frac{1}{y}\right)\right)}{x} + 0.0027777777777778 \cdot \frac{-1}{x}\right)
\end{array}
Initial program 94.6%
associate-+l+94.6%
fma-neg94.7%
sub-neg94.7%
metadata-eval94.7%
fma-define94.7%
fma-neg94.7%
metadata-eval94.7%
Simplified94.7%
Taylor expanded in y around -inf 66.3%
Taylor expanded in x around 0 48.7%
*-commutative48.7%
associate-/l*44.7%
mul-1-neg44.7%
unsub-neg44.7%
mul-1-neg44.7%
distribute-neg-frac244.7%
+-commutative44.7%
fma-define44.7%
*-commutative44.7%
fma-neg44.7%
metadata-eval44.7%
Simplified44.7%
Taylor expanded in z around 0 61.5%
Final simplification61.5%
(FPCore (x y z) :precision binary64 (- (+ (+ 0.91893853320467 (/ 0.083333333333333 x)) (/ (* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)) x)) x))
double code(double x, double y, double z) {
return ((0.91893853320467 + (0.083333333333333 / x)) + ((z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)) / x)) - x;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((0.91893853320467d0 + (0.083333333333333d0 / x)) + ((z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0)) / x)) - x
end function
public static double code(double x, double y, double z) {
return ((0.91893853320467 + (0.083333333333333 / x)) + ((z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)) / x)) - x;
}
def code(x, y, z): return ((0.91893853320467 + (0.083333333333333 / x)) + ((z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)) / x)) - x
function code(x, y, z) return Float64(Float64(Float64(0.91893853320467 + Float64(0.083333333333333 / x)) + Float64(Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778)) / x)) - x) end
function tmp = code(x, y, z) tmp = ((0.91893853320467 + (0.083333333333333 / x)) + ((z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)) / x)) - x; end
code[x_, y_, z_] := N[(N[(N[(0.91893853320467 + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(0.91893853320467 + \frac{0.083333333333333}{x}\right) + \frac{z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x}\right) - x
\end{array}
Initial program 94.6%
associate-+l+94.6%
fma-neg94.7%
sub-neg94.7%
metadata-eval94.7%
fma-define94.7%
fma-neg94.7%
metadata-eval94.7%
Simplified94.7%
Taylor expanded in z around 0 95.8%
Simplified95.9%
Taylor expanded in x around 0 61.1%
Final simplification61.1%
(FPCore (x y z)
:precision binary64
(if (<= y -8.6e+27)
(-
(+
(+ 0.91893853320467 (/ 0.083333333333333 x))
(* -0.0027777777777778 (/ z x)))
x)
(/
(+ 0.083333333333333 (* z (- (* 0.0007936500793651 z) 0.0027777777777778)))
x)))
double code(double x, double y, double z) {
double tmp;
if (y <= -8.6e+27) {
tmp = ((0.91893853320467 + (0.083333333333333 / x)) + (-0.0027777777777778 * (z / x))) - x;
} else {
tmp = (0.083333333333333 + (z * ((0.0007936500793651 * z) - 0.0027777777777778))) / x;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (y <= (-8.6d+27)) then
tmp = ((0.91893853320467d0 + (0.083333333333333d0 / x)) + ((-0.0027777777777778d0) * (z / x))) - x
else
tmp = (0.083333333333333d0 + (z * ((0.0007936500793651d0 * z) - 0.0027777777777778d0))) / x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -8.6e+27) {
tmp = ((0.91893853320467 + (0.083333333333333 / x)) + (-0.0027777777777778 * (z / x))) - x;
} else {
tmp = (0.083333333333333 + (z * ((0.0007936500793651 * z) - 0.0027777777777778))) / x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -8.6e+27: tmp = ((0.91893853320467 + (0.083333333333333 / x)) + (-0.0027777777777778 * (z / x))) - x else: tmp = (0.083333333333333 + (z * ((0.0007936500793651 * z) - 0.0027777777777778))) / x return tmp
function code(x, y, z) tmp = 0.0 if (y <= -8.6e+27) tmp = Float64(Float64(Float64(0.91893853320467 + Float64(0.083333333333333 / x)) + Float64(-0.0027777777777778 * Float64(z / x))) - x); else tmp = Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(0.0007936500793651 * z) - 0.0027777777777778))) / x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -8.6e+27) tmp = ((0.91893853320467 + (0.083333333333333 / x)) + (-0.0027777777777778 * (z / x))) - x; else tmp = (0.083333333333333 + (z * ((0.0007936500793651 * z) - 0.0027777777777778))) / x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -8.6e+27], N[(N[(N[(0.91893853320467 + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision] + N[(-0.0027777777777778 * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision], N[(N[(0.083333333333333 + N[(z * N[(N[(0.0007936500793651 * z), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.6 \cdot 10^{+27}:\\
\;\;\;\;\left(\left(0.91893853320467 + \frac{0.083333333333333}{x}\right) + -0.0027777777777778 \cdot \frac{z}{x}\right) - x\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(0.0007936500793651 \cdot z - 0.0027777777777778\right)}{x}\\
\end{array}
\end{array}
if y < -8.60000000000000017e27Initial program 98.2%
associate-+l+98.2%
fma-neg98.2%
sub-neg98.2%
metadata-eval98.2%
fma-define98.2%
fma-neg98.2%
metadata-eval98.2%
Simplified98.2%
Taylor expanded in z around 0 88.9%
Simplified88.9%
Taylor expanded in x around 0 72.5%
Taylor expanded in z around 0 26.0%
if -8.60000000000000017e27 < y Initial program 93.7%
associate-+l+93.7%
fma-neg93.8%
sub-neg93.8%
metadata-eval93.8%
fma-define93.8%
fma-neg93.8%
metadata-eval93.8%
Simplified93.8%
Taylor expanded in y around -inf 67.3%
Taylor expanded in x around 0 51.1%
*-commutative51.1%
associate-/l*48.4%
mul-1-neg48.4%
unsub-neg48.4%
mul-1-neg48.4%
distribute-neg-frac248.4%
+-commutative48.4%
fma-define48.4%
*-commutative48.4%
fma-neg48.4%
metadata-eval48.4%
Simplified48.4%
Taylor expanded in y around 0 50.5%
(FPCore (x y z)
:precision binary64
(if (<= y -8.5e-17)
(+ (* 0.083333333333333 (/ 1.0 x)) (* -0.0027777777777778 (/ z x)))
(/
(+ 0.083333333333333 (* z (- (* 0.0007936500793651 z) 0.0027777777777778)))
x)))
double code(double x, double y, double z) {
double tmp;
if (y <= -8.5e-17) {
tmp = (0.083333333333333 * (1.0 / x)) + (-0.0027777777777778 * (z / x));
} else {
tmp = (0.083333333333333 + (z * ((0.0007936500793651 * z) - 0.0027777777777778))) / x;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (y <= (-8.5d-17)) then
tmp = (0.083333333333333d0 * (1.0d0 / x)) + ((-0.0027777777777778d0) * (z / x))
else
tmp = (0.083333333333333d0 + (z * ((0.0007936500793651d0 * z) - 0.0027777777777778d0))) / x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -8.5e-17) {
tmp = (0.083333333333333 * (1.0 / x)) + (-0.0027777777777778 * (z / x));
} else {
tmp = (0.083333333333333 + (z * ((0.0007936500793651 * z) - 0.0027777777777778))) / x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -8.5e-17: tmp = (0.083333333333333 * (1.0 / x)) + (-0.0027777777777778 * (z / x)) else: tmp = (0.083333333333333 + (z * ((0.0007936500793651 * z) - 0.0027777777777778))) / x return tmp
function code(x, y, z) tmp = 0.0 if (y <= -8.5e-17) tmp = Float64(Float64(0.083333333333333 * Float64(1.0 / x)) + Float64(-0.0027777777777778 * Float64(z / x))); else tmp = Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(0.0007936500793651 * z) - 0.0027777777777778))) / x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -8.5e-17) tmp = (0.083333333333333 * (1.0 / x)) + (-0.0027777777777778 * (z / x)); else tmp = (0.083333333333333 + (z * ((0.0007936500793651 * z) - 0.0027777777777778))) / x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -8.5e-17], N[(N[(0.083333333333333 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] + N[(-0.0027777777777778 * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(0.083333333333333 + N[(z * N[(N[(0.0007936500793651 * z), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.5 \cdot 10^{-17}:\\
\;\;\;\;0.083333333333333 \cdot \frac{1}{x} + -0.0027777777777778 \cdot \frac{z}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(0.0007936500793651 \cdot z - 0.0027777777777778\right)}{x}\\
\end{array}
\end{array}
if y < -8.5e-17Initial program 98.3%
associate-+l+98.3%
fma-neg98.3%
sub-neg98.3%
metadata-eval98.3%
fma-define98.3%
fma-neg98.3%
metadata-eval98.3%
Simplified98.3%
Taylor expanded in y around -inf 64.8%
Taylor expanded in x around 0 43.7%
*-commutative43.7%
associate-/l*36.3%
mul-1-neg36.3%
unsub-neg36.3%
mul-1-neg36.3%
distribute-neg-frac236.3%
+-commutative36.3%
fma-define36.3%
*-commutative36.3%
fma-neg36.3%
metadata-eval36.3%
Simplified36.3%
Taylor expanded in z around 0 28.6%
if -8.5e-17 < y Initial program 93.4%
associate-+l+93.4%
fma-neg93.5%
sub-neg93.5%
metadata-eval93.5%
fma-define93.5%
fma-neg93.5%
metadata-eval93.5%
Simplified93.5%
Taylor expanded in y around -inf 66.8%
Taylor expanded in x around 0 50.3%
*-commutative50.3%
associate-/l*47.5%
mul-1-neg47.5%
unsub-neg47.5%
mul-1-neg47.5%
distribute-neg-frac247.5%
+-commutative47.5%
fma-define47.5%
*-commutative47.5%
fma-neg47.5%
metadata-eval47.5%
Simplified47.5%
Taylor expanded in y around 0 50.8%
Final simplification45.3%
(FPCore (x y z) :precision binary64 (+ (* 0.083333333333333 (/ 1.0 x)) (* -0.0027777777777778 (/ z x))))
double code(double x, double y, double z) {
return (0.083333333333333 * (1.0 / x)) + (-0.0027777777777778 * (z / x));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (0.083333333333333d0 * (1.0d0 / x)) + ((-0.0027777777777778d0) * (z / x))
end function
public static double code(double x, double y, double z) {
return (0.083333333333333 * (1.0 / x)) + (-0.0027777777777778 * (z / x));
}
def code(x, y, z): return (0.083333333333333 * (1.0 / x)) + (-0.0027777777777778 * (z / x))
function code(x, y, z) return Float64(Float64(0.083333333333333 * Float64(1.0 / x)) + Float64(-0.0027777777777778 * Float64(z / x))) end
function tmp = code(x, y, z) tmp = (0.083333333333333 * (1.0 / x)) + (-0.0027777777777778 * (z / x)); end
code[x_, y_, z_] := N[(N[(0.083333333333333 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] + N[(-0.0027777777777778 * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
0.083333333333333 \cdot \frac{1}{x} + -0.0027777777777778 \cdot \frac{z}{x}
\end{array}
Initial program 94.6%
associate-+l+94.6%
fma-neg94.7%
sub-neg94.7%
metadata-eval94.7%
fma-define94.7%
fma-neg94.7%
metadata-eval94.7%
Simplified94.7%
Taylor expanded in y around -inf 66.3%
Taylor expanded in x around 0 48.7%
*-commutative48.7%
associate-/l*44.7%
mul-1-neg44.7%
unsub-neg44.7%
mul-1-neg44.7%
distribute-neg-frac244.7%
+-commutative44.7%
fma-define44.7%
*-commutative44.7%
fma-neg44.7%
metadata-eval44.7%
Simplified44.7%
Taylor expanded in z around 0 29.6%
Final simplification29.6%
(FPCore (x y z) :precision binary64 (/ 0.083333333333333 x))
double code(double x, double y, double z) {
return 0.083333333333333 / x;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = 0.083333333333333d0 / x
end function
public static double code(double x, double y, double z) {
return 0.083333333333333 / x;
}
def code(x, y, z): return 0.083333333333333 / x
function code(x, y, z) return Float64(0.083333333333333 / x) end
function tmp = code(x, y, z) tmp = 0.083333333333333 / x; end
code[x_, y_, z_] := N[(0.083333333333333 / x), $MachinePrecision]
\begin{array}{l}
\\
\frac{0.083333333333333}{x}
\end{array}
Initial program 94.6%
associate-+l+94.6%
fma-neg94.7%
sub-neg94.7%
metadata-eval94.7%
fma-define94.7%
fma-neg94.7%
metadata-eval94.7%
Simplified94.7%
Taylor expanded in y around -inf 66.3%
Taylor expanded in x around 0 48.7%
*-commutative48.7%
associate-/l*44.7%
mul-1-neg44.7%
unsub-neg44.7%
mul-1-neg44.7%
distribute-neg-frac244.7%
+-commutative44.7%
fma-define44.7%
*-commutative44.7%
fma-neg44.7%
metadata-eval44.7%
Simplified44.7%
Taylor expanded in z around 0 22.4%
(FPCore (x y z) :precision binary64 (+ (+ (+ (* (- x 0.5) (log x)) (- 0.91893853320467 x)) (/ 0.083333333333333 x)) (* (/ z x) (- (* z (+ y 0.0007936500793651)) 0.0027777777777778))))
double code(double x, double y, double z) {
return ((((x - 0.5) * log(x)) + (0.91893853320467 - x)) + (0.083333333333333 / x)) + ((z / x) * ((z * (y + 0.0007936500793651)) - 0.0027777777777778));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((((x - 0.5d0) * log(x)) + (0.91893853320467d0 - x)) + (0.083333333333333d0 / x)) + ((z / x) * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))
end function
public static double code(double x, double y, double z) {
return ((((x - 0.5) * Math.log(x)) + (0.91893853320467 - x)) + (0.083333333333333 / x)) + ((z / x) * ((z * (y + 0.0007936500793651)) - 0.0027777777777778));
}
def code(x, y, z): return ((((x - 0.5) * math.log(x)) + (0.91893853320467 - x)) + (0.083333333333333 / x)) + ((z / x) * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))
function code(x, y, z) return Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) + Float64(0.91893853320467 - x)) + Float64(0.083333333333333 / x)) + Float64(Float64(z / x) * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) end
function tmp = code(x, y, z) tmp = ((((x - 0.5) * log(x)) + (0.91893853320467 - x)) + (0.083333333333333 / x)) + ((z / x) * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)); end
code[x_, y_, z_] := N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] + N[(0.91893853320467 - x), $MachinePrecision]), $MachinePrecision] + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(z / x), $MachinePrecision] * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(x - 0.5\right) \cdot \log x + \left(0.91893853320467 - x\right)\right) + \frac{0.083333333333333}{x}\right) + \frac{z}{x} \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)
\end{array}
herbie shell --seed 2024111
(FPCore (x y z)
:name "Numeric.SpecFunctions:$slogFactorial from math-functions-0.1.5.2, B"
:precision binary64
:alt
(+ (+ (+ (* (- x 0.5) (log x)) (- 0.91893853320467 x)) (/ 0.083333333333333 x)) (* (/ z x) (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
(+ (+ (- (* (- x 0.5) (log x)) x) 0.91893853320467) (/ (+ (* (- (* (+ y 0.0007936500793651) z) 0.0027777777777778) z) 0.083333333333333) x)))