
(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 18 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
(let* ((t_0 (+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)))
(if (<= x 2.2e+149)
(+
t_0
(*
(fma
z
(fma (+ y 0.0007936500793651) z -0.0027777777777778)
0.083333333333333)
(/ 1.0 x)))
(+ t_0 (/ y (* (/ 1.0 z) (/ x z)))))))
double code(double x, double y, double z) {
double t_0 = (((x - 0.5) * log(x)) - x) + 0.91893853320467;
double tmp;
if (x <= 2.2e+149) {
tmp = t_0 + (fma(z, fma((y + 0.0007936500793651), z, -0.0027777777777778), 0.083333333333333) * (1.0 / x));
} else {
tmp = t_0 + (y / ((1.0 / z) * (x / z)));
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) tmp = 0.0 if (x <= 2.2e+149) tmp = Float64(t_0 + Float64(fma(z, fma(Float64(y + 0.0007936500793651), z, -0.0027777777777778), 0.083333333333333) * Float64(1.0 / x))); else tmp = Float64(t_0 + Float64(y / Float64(Float64(1.0 / z) * Float64(x / z)))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision]}, If[LessEqual[x, 2.2e+149], N[(t$95$0 + N[(N[(z * N[(N[(y + 0.0007936500793651), $MachinePrecision] * z + -0.0027777777777778), $MachinePrecision] + 0.083333333333333), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$0 + N[(y / N[(N[(1.0 / z), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\\
\mathbf{if}\;x \leq 2.2 \cdot 10^{+149}:\\
\;\;\;\;t\_0 + \mathsf{fma}\left(z, \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right), 0.083333333333333\right) \cdot \frac{1}{x}\\
\mathbf{else}:\\
\;\;\;\;t\_0 + \frac{y}{\frac{1}{z} \cdot \frac{x}{z}}\\
\end{array}
\end{array}
if x < 2.2e149Initial program 98.7%
div-inv98.7%
*-commutative98.7%
fma-udef98.7%
fma-neg98.7%
metadata-eval98.7%
Applied egg-rr98.7%
if 2.2e149 < x Initial program 81.7%
Taylor expanded in y around inf 79.6%
associate-/l*81.0%
Simplified81.0%
*-un-lft-identity81.0%
unpow281.0%
times-frac92.6%
Applied egg-rr92.6%
Final simplification97.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)))
(if (<= x 4.7e+148)
(+
t_0
(+
(* (/ 1.0 x) (* z (fma (+ y 0.0007936500793651) z -0.0027777777777778)))
(/ 0.083333333333333 x)))
(+ t_0 (/ y (* (/ 1.0 z) (/ x z)))))))
double code(double x, double y, double z) {
double t_0 = (((x - 0.5) * log(x)) - x) + 0.91893853320467;
double tmp;
if (x <= 4.7e+148) {
tmp = t_0 + (((1.0 / x) * (z * fma((y + 0.0007936500793651), z, -0.0027777777777778))) + (0.083333333333333 / x));
} else {
tmp = t_0 + (y / ((1.0 / z) * (x / z)));
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) tmp = 0.0 if (x <= 4.7e+148) tmp = Float64(t_0 + Float64(Float64(Float64(1.0 / x) * Float64(z * fma(Float64(y + 0.0007936500793651), z, -0.0027777777777778))) + Float64(0.083333333333333 / x))); else tmp = Float64(t_0 + Float64(y / Float64(Float64(1.0 / z) * Float64(x / z)))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision]}, If[LessEqual[x, 4.7e+148], N[(t$95$0 + N[(N[(N[(1.0 / x), $MachinePrecision] * N[(z * N[(N[(y + 0.0007936500793651), $MachinePrecision] * z + -0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$0 + N[(y / N[(N[(1.0 / z), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\\
\mathbf{if}\;x \leq 4.7 \cdot 10^{+148}:\\
\;\;\;\;t\_0 + \left(\frac{1}{x} \cdot \left(z \cdot \mathsf{fma}\left(y + 0.0007936500793651, z, -0.0027777777777778\right)\right) + \frac{0.083333333333333}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0 + \frac{y}{\frac{1}{z} \cdot \frac{x}{z}}\\
\end{array}
\end{array}
if x < 4.6999999999999997e148Initial program 98.7%
div-inv98.7%
*-commutative98.7%
fma-udef98.7%
fma-neg98.7%
metadata-eval98.7%
Applied egg-rr98.7%
*-commutative98.7%
fma-udef98.7%
distribute-rgt-in98.7%
div-inv98.7%
Applied egg-rr98.7%
if 4.6999999999999997e148 < x Initial program 81.7%
Taylor expanded in y around inf 79.6%
associate-/l*81.0%
Simplified81.0%
*-un-lft-identity81.0%
unpow281.0%
times-frac92.6%
Applied egg-rr92.6%
Final simplification97.1%
(FPCore (x y z)
:precision binary64
(if (<= x 5.9e+149)
(+
(+ 0.91893853320467 (- (/ 1.0 (/ 1.0 (* (log x) (+ x -0.5)))) x))
(/
(+
0.083333333333333
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
x))
(+
(+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
(/ y (* (/ 1.0 z) (/ x z))))))
double code(double x, double y, double z) {
double tmp;
if (x <= 5.9e+149) {
tmp = (0.91893853320467 + ((1.0 / (1.0 / (log(x) * (x + -0.5)))) - x)) + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x);
} else {
tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + (y / ((1.0 / z) * (x / z)));
}
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 <= 5.9d+149) then
tmp = (0.91893853320467d0 + ((1.0d0 / (1.0d0 / (log(x) * (x + (-0.5d0))))) - x)) + ((0.083333333333333d0 + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))) / x)
else
tmp = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + (y / ((1.0d0 / z) * (x / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 5.9e+149) {
tmp = (0.91893853320467 + ((1.0 / (1.0 / (Math.log(x) * (x + -0.5)))) - x)) + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x);
} else {
tmp = ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + (y / ((1.0 / z) * (x / z)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 5.9e+149: tmp = (0.91893853320467 + ((1.0 / (1.0 / (math.log(x) * (x + -0.5)))) - x)) + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) else: tmp = ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + (y / ((1.0 / z) * (x / z))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 5.9e+149) tmp = Float64(Float64(0.91893853320467 + Float64(Float64(1.0 / Float64(1.0 / Float64(log(x) * Float64(x + -0.5)))) - x)) + Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) / x)); else tmp = Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(y / Float64(Float64(1.0 / z) * Float64(x / z)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 5.9e+149) tmp = (0.91893853320467 + ((1.0 / (1.0 / (log(x) * (x + -0.5)))) - x)) + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x); else tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + (y / ((1.0 / z) * (x / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 5.9e+149], N[(N[(0.91893853320467 + N[(N[(1.0 / N[(1.0 / N[(N[Log[x], $MachinePrecision] * N[(x + -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision] + N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(y / N[(N[(1.0 / z), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 5.9 \cdot 10^{+149}:\\
\;\;\;\;\left(0.91893853320467 + \left(\frac{1}{\frac{1}{\log x \cdot \left(x + -0.5\right)}} - x\right)\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{y}{\frac{1}{z} \cdot \frac{x}{z}}\\
\end{array}
\end{array}
if x < 5.9000000000000002e149Initial program 98.7%
add-cube-cbrt98.5%
pow398.5%
sub-neg98.5%
metadata-eval98.5%
Applied egg-rr98.5%
cbrt-prod98.4%
Applied egg-rr98.4%
cbrt-unprod98.5%
*-commutative98.5%
/-rgt-identity98.5%
rem-cube-cbrt98.7%
remove-double-div98.7%
/-rgt-identity98.7%
*-commutative98.7%
Applied egg-rr98.7%
if 5.9000000000000002e149 < x Initial program 81.7%
Taylor expanded in y around inf 79.6%
associate-/l*81.0%
Simplified81.0%
*-un-lft-identity81.0%
unpow281.0%
times-frac92.6%
Applied egg-rr92.6%
Final simplification97.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)))
(if (<= x 1.85e+148)
(+
t_0
(/
(+
0.083333333333333
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
x))
(+ t_0 (/ y (* (/ 1.0 z) (/ x z)))))))
double code(double x, double y, double z) {
double t_0 = (((x - 0.5) * log(x)) - x) + 0.91893853320467;
double tmp;
if (x <= 1.85e+148) {
tmp = t_0 + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x);
} else {
tmp = t_0 + (y / ((1.0 / z) * (x / z)));
}
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 = (((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0
if (x <= 1.85d+148) then
tmp = t_0 + ((0.083333333333333d0 + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))) / x)
else
tmp = t_0 + (y / ((1.0d0 / z) * (x / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (((x - 0.5) * Math.log(x)) - x) + 0.91893853320467;
double tmp;
if (x <= 1.85e+148) {
tmp = t_0 + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x);
} else {
tmp = t_0 + (y / ((1.0 / z) * (x / z)));
}
return tmp;
}
def code(x, y, z): t_0 = (((x - 0.5) * math.log(x)) - x) + 0.91893853320467 tmp = 0 if x <= 1.85e+148: tmp = t_0 + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) else: tmp = t_0 + (y / ((1.0 / z) * (x / z))) return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) tmp = 0.0 if (x <= 1.85e+148) tmp = Float64(t_0 + Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) / x)); else tmp = Float64(t_0 + Float64(y / Float64(Float64(1.0 / z) * Float64(x / z)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (((x - 0.5) * log(x)) - x) + 0.91893853320467; tmp = 0.0; if (x <= 1.85e+148) tmp = t_0 + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x); else tmp = t_0 + (y / ((1.0 / z) * (x / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision]}, If[LessEqual[x, 1.85e+148], N[(t$95$0 + N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(t$95$0 + N[(y / N[(N[(1.0 / z), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\\
\mathbf{if}\;x \leq 1.85 \cdot 10^{+148}:\\
\;\;\;\;t\_0 + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;t\_0 + \frac{y}{\frac{1}{z} \cdot \frac{x}{z}}\\
\end{array}
\end{array}
if x < 1.8500000000000001e148Initial program 98.7%
if 1.8500000000000001e148 < x Initial program 81.7%
Taylor expanded in y around inf 79.6%
associate-/l*81.0%
Simplified81.0%
*-un-lft-identity81.0%
unpow281.0%
times-frac92.6%
Applied egg-rr92.6%
Final simplification97.1%
(FPCore (x y z)
:precision binary64
(if (<= x 7.45e+230)
(+
(/
(+
0.083333333333333
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
x)
(* x (+ (log x) -1.0)))
(+ (+ (- (* (- x 0.5) (log x)) x) 0.91893853320467) (* z (* z (/ y x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= 7.45e+230) {
tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (x * (log(x) + -1.0));
} else {
tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + (z * (z * (y / 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 <= 7.45d+230) then
tmp = ((0.083333333333333d0 + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))) / x) + (x * (log(x) + (-1.0d0)))
else
tmp = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + (z * (z * (y / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 7.45e+230) {
tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (x * (Math.log(x) + -1.0));
} else {
tmp = ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + (z * (z * (y / x)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 7.45e+230: tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (x * (math.log(x) + -1.0)) else: tmp = ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + (z * (z * (y / x))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 7.45e+230) tmp = Float64(Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) / x) + Float64(x * Float64(log(x) + -1.0))); else tmp = Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(z * Float64(z * Float64(y / x)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 7.45e+230) tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (x * (log(x) + -1.0)); else tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + (z * (z * (y / x))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 7.45e+230], N[(N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(z * N[(z * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 7.45 \cdot 10^{+230}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x} + x \cdot \left(\log x + -1\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + z \cdot \left(z \cdot \frac{y}{x}\right)\\
\end{array}
\end{array}
if x < 7.4499999999999997e230Initial program 97.1%
Taylor expanded in x around inf 96.1%
sub-neg49.0%
mul-1-neg49.0%
log-rec49.0%
remove-double-neg49.0%
metadata-eval49.0%
Simplified96.1%
if 7.4499999999999997e230 < x Initial program 73.1%
Taylor expanded in y around inf 69.1%
associate-/l*72.1%
Simplified72.1%
associate-/r/4.2%
unpow24.2%
associate-*r*6.6%
Applied egg-rr93.3%
Final simplification95.8%
(FPCore (x y z)
:precision binary64
(if (<= x 9.2e+147)
(+
(/
(+
0.083333333333333
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
x)
(* x (+ (log x) -1.0)))
(+
(+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
(/ y (* (/ 1.0 z) (/ x z))))))
double code(double x, double y, double z) {
double tmp;
if (x <= 9.2e+147) {
tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (x * (log(x) + -1.0));
} else {
tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + (y / ((1.0 / z) * (x / z)));
}
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 <= 9.2d+147) then
tmp = ((0.083333333333333d0 + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))) / x) + (x * (log(x) + (-1.0d0)))
else
tmp = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + (y / ((1.0d0 / z) * (x / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 9.2e+147) {
tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (x * (Math.log(x) + -1.0));
} else {
tmp = ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + (y / ((1.0 / z) * (x / z)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 9.2e+147: tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (x * (math.log(x) + -1.0)) else: tmp = ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + (y / ((1.0 / z) * (x / z))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 9.2e+147) tmp = Float64(Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) / x) + Float64(x * Float64(log(x) + -1.0))); else tmp = Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(y / Float64(Float64(1.0 / z) * Float64(x / z)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 9.2e+147) tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (x * (log(x) + -1.0)); else tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + (y / ((1.0 / z) * (x / z))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 9.2e+147], N[(N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(y / N[(N[(1.0 / z), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 9.2 \cdot 10^{+147}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x} + x \cdot \left(\log x + -1\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{y}{\frac{1}{z} \cdot \frac{x}{z}}\\
\end{array}
\end{array}
if x < 9.1999999999999997e147Initial program 98.7%
Taylor expanded in x around inf 97.4%
sub-neg44.8%
mul-1-neg44.8%
log-rec44.8%
remove-double-neg44.8%
metadata-eval44.8%
Simplified97.4%
if 9.1999999999999997e147 < x Initial program 81.7%
Taylor expanded in y around inf 79.6%
associate-/l*81.0%
Simplified81.0%
*-un-lft-identity81.0%
unpow281.0%
times-frac92.6%
Applied egg-rr92.6%
Final simplification96.1%
(FPCore (x y z)
:precision binary64
(if (<= x 1.04e+52)
(+
(/
(+
0.083333333333333
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
x)
(- 0.91893853320467 x))
(+ (+ (- (* (- x 0.5) (log x)) x) 0.91893853320467) (* z (* z (/ y x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= 1.04e+52) {
tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 - x);
} else {
tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + (z * (z * (y / 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 <= 1.04d+52) then
tmp = ((0.083333333333333d0 + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))) / x) + (0.91893853320467d0 - x)
else
tmp = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + (z * (z * (y / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 1.04e+52) {
tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 - x);
} else {
tmp = ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + (z * (z * (y / x)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 1.04e+52: tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 - x) else: tmp = ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + (z * (z * (y / x))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 1.04e+52) tmp = Float64(Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) / x) + Float64(0.91893853320467 - x)); else tmp = Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(z * Float64(z * Float64(y / x)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 1.04e+52) tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 - x); else tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + (z * (z * (y / x))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 1.04e+52], N[(N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(0.91893853320467 - x), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(z * N[(z * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.04 \cdot 10^{+52}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x} + \left(0.91893853320467 - x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + z \cdot \left(z \cdot \frac{y}{x}\right)\\
\end{array}
\end{array}
if x < 1.04e52Initial program 99.6%
add-cube-cbrt99.5%
pow399.5%
sub-neg99.5%
metadata-eval99.5%
Applied egg-rr99.5%
Taylor expanded in x around inf 95.5%
neg-mul-195.5%
unsub-neg95.5%
Simplified95.5%
if 1.04e52 < x Initial program 85.6%
Taylor expanded in y around inf 80.4%
associate-/l*83.2%
Simplified83.2%
associate-/r/18.8%
unpow218.8%
associate-*r*17.8%
Applied egg-rr88.3%
Final simplification92.7%
(FPCore (x y z)
:precision binary64
(if (<= x 1.04e+52)
(+
(/
(+
0.083333333333333
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
x)
(- 0.91893853320467 x))
(+ (+ (- (* (- x 0.5) (log x)) x) 0.91893853320467) (* z (/ (* z y) x)))))
double code(double x, double y, double z) {
double tmp;
if (x <= 1.04e+52) {
tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 - x);
} else {
tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + (z * ((z * y) / 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 <= 1.04d+52) then
tmp = ((0.083333333333333d0 + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))) / x) + (0.91893853320467d0 - x)
else
tmp = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + (z * ((z * y) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 1.04e+52) {
tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 - x);
} else {
tmp = ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + (z * ((z * y) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 1.04e+52: tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 - x) else: tmp = ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + (z * ((z * y) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 1.04e+52) tmp = Float64(Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) / x) + Float64(0.91893853320467 - x)); else tmp = Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(z * Float64(Float64(z * y) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 1.04e+52) tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 - x); else tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + (z * ((z * y) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 1.04e+52], N[(N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(0.91893853320467 - x), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(z * N[(N[(z * y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.04 \cdot 10^{+52}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x} + \left(0.91893853320467 - x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + z \cdot \frac{z \cdot y}{x}\\
\end{array}
\end{array}
if x < 1.04e52Initial program 99.6%
add-cube-cbrt99.5%
pow399.5%
sub-neg99.5%
metadata-eval99.5%
Applied egg-rr99.5%
Taylor expanded in x around inf 95.5%
neg-mul-195.5%
unsub-neg95.5%
Simplified95.5%
if 1.04e52 < x Initial program 85.6%
Taylor expanded in y around inf 80.4%
associate-/l*83.2%
Simplified83.2%
associate-/r/18.8%
unpow218.8%
associate-*r*17.8%
Applied egg-rr88.3%
*-commutative88.3%
associate-*r/88.3%
Applied egg-rr88.3%
Final simplification92.7%
(FPCore (x y z)
:precision binary64
(if (<= x 2.7e+52)
(+
(/
(+
0.083333333333333
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
x)
(- 0.91893853320467 x))
(+ (/ 0.083333333333333 x) (* x (+ (log x) -1.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= 2.7e+52) {
tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 - x);
} else {
tmp = (0.083333333333333 / x) + (x * (log(x) + -1.0));
}
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 <= 2.7d+52) then
tmp = ((0.083333333333333d0 + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))) / x) + (0.91893853320467d0 - x)
else
tmp = (0.083333333333333d0 / x) + (x * (log(x) + (-1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 2.7e+52) {
tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 - x);
} else {
tmp = (0.083333333333333 / x) + (x * (Math.log(x) + -1.0));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 2.7e+52: tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 - x) else: tmp = (0.083333333333333 / x) + (x * (math.log(x) + -1.0)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 2.7e+52) tmp = Float64(Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) / x) + Float64(0.91893853320467 - x)); else tmp = Float64(Float64(0.083333333333333 / x) + Float64(x * Float64(log(x) + -1.0))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 2.7e+52) tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 - x); else tmp = (0.083333333333333 / x) + (x * (log(x) + -1.0)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 2.7e+52], N[(N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(0.91893853320467 - x), $MachinePrecision]), $MachinePrecision], N[(N[(0.083333333333333 / x), $MachinePrecision] + N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.7 \cdot 10^{+52}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x} + \left(0.91893853320467 - x\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333}{x} + x \cdot \left(\log x + -1\right)\\
\end{array}
\end{array}
if x < 2.7e52Initial program 99.6%
add-cube-cbrt99.5%
pow399.5%
sub-neg99.5%
metadata-eval99.5%
Applied egg-rr99.5%
Taylor expanded in x around inf 95.5%
neg-mul-195.5%
unsub-neg95.5%
Simplified95.5%
if 2.7e52 < x Initial program 85.6%
Taylor expanded in z around 0 71.7%
Taylor expanded in x around inf 71.9%
sub-neg71.9%
mul-1-neg71.9%
log-rec71.9%
remove-double-neg71.9%
metadata-eval71.9%
Simplified71.9%
Final simplification86.4%
(FPCore (x y z)
:precision binary64
(if (or (<= y -92000000.0) (not (<= y 9.5e+76)))
(- (/ y (* (/ 1.0 z) (/ x z))) x)
(-
(/
(+
0.083333333333333
(* z (- (* z 0.0007936500793651) 0.0027777777777778)))
x)
x)))
double code(double x, double y, double z) {
double tmp;
if ((y <= -92000000.0) || !(y <= 9.5e+76)) {
tmp = (y / ((1.0 / z) * (x / z))) - x;
} else {
tmp = ((0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / 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) :: tmp
if ((y <= (-92000000.0d0)) .or. (.not. (y <= 9.5d+76))) then
tmp = (y / ((1.0d0 / z) * (x / z))) - x
else
tmp = ((0.083333333333333d0 + (z * ((z * 0.0007936500793651d0) - 0.0027777777777778d0))) / x) - x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -92000000.0) || !(y <= 9.5e+76)) {
tmp = (y / ((1.0 / z) * (x / z))) - x;
} else {
tmp = ((0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x) - x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -92000000.0) or not (y <= 9.5e+76): tmp = (y / ((1.0 / z) * (x / z))) - x else: tmp = ((0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x) - x return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -92000000.0) || !(y <= 9.5e+76)) tmp = Float64(Float64(y / Float64(Float64(1.0 / z) * Float64(x / z))) - x); else tmp = Float64(Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * 0.0007936500793651) - 0.0027777777777778))) / x) - x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -92000000.0) || ~((y <= 9.5e+76))) tmp = (y / ((1.0 / z) * (x / z))) - x; else tmp = ((0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x) - x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -92000000.0], N[Not[LessEqual[y, 9.5e+76]], $MachinePrecision]], N[(N[(y / N[(N[(1.0 / z), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision], N[(N[(N[(0.083333333333333 + N[(z * N[(N[(z * 0.0007936500793651), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -92000000 \lor \neg \left(y \leq 9.5 \cdot 10^{+76}\right):\\
\;\;\;\;\frac{y}{\frac{1}{z} \cdot \frac{x}{z}} - x\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot 0.0007936500793651 - 0.0027777777777778\right)}{x} - x\\
\end{array}
\end{array}
if y < -9.2e7 or 9.5000000000000003e76 < y Initial program 96.9%
add-cube-cbrt96.6%
pow396.6%
sub-neg96.6%
metadata-eval96.6%
Applied egg-rr96.6%
Taylor expanded in x around inf 78.7%
neg-mul-178.7%
Simplified78.7%
Taylor expanded in y around inf 61.3%
associate-/l*82.3%
Simplified63.1%
*-un-lft-identity82.3%
unpow282.3%
times-frac82.2%
Applied egg-rr63.0%
if -9.2e7 < y < 9.5000000000000003e76Initial program 92.5%
add-cube-cbrt92.1%
pow392.1%
sub-neg92.1%
metadata-eval92.1%
Applied egg-rr92.1%
Taylor expanded in x around inf 60.5%
neg-mul-160.5%
Simplified60.5%
Taylor expanded in y around 0 59.9%
*-commutative59.9%
Simplified59.9%
Final simplification61.1%
(FPCore (x y z)
:precision binary64
(if (or (<= y -0.0008) (not (<= y 4e+37)))
(- (/ (+ 0.083333333333333 (* z (- (* z y) 0.0027777777777778))) x) x)
(-
(/
(+
0.083333333333333
(* z (- (* z 0.0007936500793651) 0.0027777777777778)))
x)
x)))
double code(double x, double y, double z) {
double tmp;
if ((y <= -0.0008) || !(y <= 4e+37)) {
tmp = ((0.083333333333333 + (z * ((z * y) - 0.0027777777777778))) / x) - x;
} else {
tmp = ((0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / 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) :: tmp
if ((y <= (-0.0008d0)) .or. (.not. (y <= 4d+37))) then
tmp = ((0.083333333333333d0 + (z * ((z * y) - 0.0027777777777778d0))) / x) - x
else
tmp = ((0.083333333333333d0 + (z * ((z * 0.0007936500793651d0) - 0.0027777777777778d0))) / x) - x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -0.0008) || !(y <= 4e+37)) {
tmp = ((0.083333333333333 + (z * ((z * y) - 0.0027777777777778))) / x) - x;
} else {
tmp = ((0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x) - x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -0.0008) or not (y <= 4e+37): tmp = ((0.083333333333333 + (z * ((z * y) - 0.0027777777777778))) / x) - x else: tmp = ((0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x) - x return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -0.0008) || !(y <= 4e+37)) tmp = Float64(Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * y) - 0.0027777777777778))) / x) - x); else tmp = Float64(Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * 0.0007936500793651) - 0.0027777777777778))) / x) - x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -0.0008) || ~((y <= 4e+37))) tmp = ((0.083333333333333 + (z * ((z * y) - 0.0027777777777778))) / x) - x; else tmp = ((0.083333333333333 + (z * ((z * 0.0007936500793651) - 0.0027777777777778))) / x) - x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -0.0008], N[Not[LessEqual[y, 4e+37]], $MachinePrecision]], N[(N[(N[(0.083333333333333 + N[(z * N[(N[(z * y), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - x), $MachinePrecision], N[(N[(N[(0.083333333333333 + N[(z * N[(N[(z * 0.0007936500793651), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.0008 \lor \neg \left(y \leq 4 \cdot 10^{+37}\right):\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot y - 0.0027777777777778\right)}{x} - x\\
\mathbf{else}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot 0.0007936500793651 - 0.0027777777777778\right)}{x} - x\\
\end{array}
\end{array}
if y < -8.00000000000000038e-4 or 3.99999999999999982e37 < y Initial program 95.5%
add-cube-cbrt95.2%
pow395.2%
sub-neg95.2%
metadata-eval95.2%
Applied egg-rr95.2%
Taylor expanded in x around inf 75.9%
neg-mul-175.9%
Simplified75.9%
Taylor expanded in y around inf 75.2%
*-commutative75.2%
Simplified75.2%
if -8.00000000000000038e-4 < y < 3.99999999999999982e37Initial program 93.2%
add-cube-cbrt92.8%
pow392.8%
sub-neg92.8%
metadata-eval92.8%
Applied egg-rr92.8%
Taylor expanded in x around inf 61.1%
neg-mul-161.1%
Simplified61.1%
Taylor expanded in y around 0 61.1%
*-commutative61.1%
Simplified61.1%
Final simplification67.2%
(FPCore (x y z) :precision binary64 (if (or (<= z -6.2e-8) (not (<= z 1.96e-44))) (- (/ y (* (/ 1.0 z) (/ x z))) x) (+ x (/ 0.083333333333333 x))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -6.2e-8) || !(z <= 1.96e-44)) {
tmp = (y / ((1.0 / z) * (x / z))) - x;
} else {
tmp = x + (0.083333333333333 / 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 <= (-6.2d-8)) .or. (.not. (z <= 1.96d-44))) then
tmp = (y / ((1.0d0 / z) * (x / z))) - x
else
tmp = x + (0.083333333333333d0 / x)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -6.2e-8) || !(z <= 1.96e-44)) {
tmp = (y / ((1.0 / z) * (x / z))) - x;
} else {
tmp = x + (0.083333333333333 / x);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -6.2e-8) or not (z <= 1.96e-44): tmp = (y / ((1.0 / z) * (x / z))) - x else: tmp = x + (0.083333333333333 / x) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -6.2e-8) || !(z <= 1.96e-44)) tmp = Float64(Float64(y / Float64(Float64(1.0 / z) * Float64(x / z))) - x); else tmp = Float64(x + Float64(0.083333333333333 / x)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -6.2e-8) || ~((z <= 1.96e-44))) tmp = (y / ((1.0 / z) * (x / z))) - x; else tmp = x + (0.083333333333333 / x); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -6.2e-8], N[Not[LessEqual[z, 1.96e-44]], $MachinePrecision]], N[(N[(y / N[(N[(1.0 / z), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision], N[(x + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{-8} \lor \neg \left(z \leq 1.96 \cdot 10^{-44}\right):\\
\;\;\;\;\frac{y}{\frac{1}{z} \cdot \frac{x}{z}} - x\\
\mathbf{else}:\\
\;\;\;\;x + \frac{0.083333333333333}{x}\\
\end{array}
\end{array}
if z < -6.2e-8 or 1.9599999999999999e-44 < z Initial program 90.4%
add-cube-cbrt90.1%
pow390.1%
sub-neg90.1%
metadata-eval90.1%
Applied egg-rr90.1%
Taylor expanded in x around inf 76.4%
neg-mul-176.4%
Simplified76.4%
Taylor expanded in y around inf 50.7%
associate-/l*67.7%
Simplified53.1%
*-un-lft-identity67.7%
unpow267.7%
times-frac72.9%
Applied egg-rr53.4%
if -6.2e-8 < z < 1.9599999999999999e-44Initial program 99.4%
add-cube-cbrt98.8%
pow398.8%
sub-neg98.8%
metadata-eval98.8%
Applied egg-rr98.8%
Taylor expanded in x around inf 55.4%
neg-mul-155.4%
Simplified55.4%
Taylor expanded in z around 0 50.9%
expm1-log1p-u46.3%
expm1-udef46.3%
add-sqr-sqrt0.0%
sqrt-unprod50.7%
sqr-neg50.7%
sqrt-unprod52.4%
add-sqr-sqrt52.4%
Applied egg-rr52.4%
expm1-def52.4%
expm1-log1p56.7%
Simplified56.7%
Final simplification54.8%
(FPCore (x y z) :precision binary64 (if (or (<= z -1.55e-7) (not (<= z 550.0))) (- (* z (* z (/ y x))) x) (+ x (/ 0.083333333333333 x))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -1.55e-7) || !(z <= 550.0)) {
tmp = (z * (z * (y / x))) - x;
} else {
tmp = x + (0.083333333333333 / 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.55d-7)) .or. (.not. (z <= 550.0d0))) then
tmp = (z * (z * (y / x))) - x
else
tmp = x + (0.083333333333333d0 / x)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -1.55e-7) || !(z <= 550.0)) {
tmp = (z * (z * (y / x))) - x;
} else {
tmp = x + (0.083333333333333 / x);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -1.55e-7) or not (z <= 550.0): tmp = (z * (z * (y / x))) - x else: tmp = x + (0.083333333333333 / x) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -1.55e-7) || !(z <= 550.0)) tmp = Float64(Float64(z * Float64(z * Float64(y / x))) - x); else tmp = Float64(x + Float64(0.083333333333333 / x)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -1.55e-7) || ~((z <= 550.0))) tmp = (z * (z * (y / x))) - x; else tmp = x + (0.083333333333333 / x); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -1.55e-7], N[Not[LessEqual[z, 550.0]], $MachinePrecision]], N[(N[(z * N[(z * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision], N[(x + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.55 \cdot 10^{-7} \lor \neg \left(z \leq 550\right):\\
\;\;\;\;z \cdot \left(z \cdot \frac{y}{x}\right) - x\\
\mathbf{else}:\\
\;\;\;\;x + \frac{0.083333333333333}{x}\\
\end{array}
\end{array}
if z < -1.55e-7 or 550 < z Initial program 89.3%
add-cube-cbrt89.1%
pow389.1%
sub-neg89.1%
metadata-eval89.1%
Applied egg-rr89.1%
Taylor expanded in x around inf 77.6%
neg-mul-177.6%
Simplified77.6%
Taylor expanded in y around inf 52.6%
associate-/l*67.6%
Simplified55.3%
associate-/r/52.9%
unpow252.9%
associate-*r*50.8%
Applied egg-rr50.8%
if -1.55e-7 < z < 550Initial program 99.4%
add-cube-cbrt98.8%
pow398.8%
sub-neg98.8%
metadata-eval98.8%
Applied egg-rr98.8%
Taylor expanded in x around inf 56.8%
neg-mul-156.8%
Simplified56.8%
Taylor expanded in z around 0 47.8%
expm1-log1p-u43.7%
expm1-udef43.7%
add-sqr-sqrt0.0%
sqrt-unprod48.0%
sqr-neg48.0%
sqrt-unprod49.7%
add-sqr-sqrt49.7%
Applied egg-rr49.7%
expm1-def49.7%
expm1-log1p53.5%
Simplified53.5%
Final simplification52.1%
(FPCore (x y z)
:precision binary64
(+
(/
(+
0.083333333333333
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
x)
(- 0.91893853320467 x)))
double code(double x, double y, double z) {
return ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 - 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 * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))) / x) + (0.91893853320467d0 - x)
end function
public static double code(double x, double y, double z) {
return ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 - x);
}
def code(x, y, z): return ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 - x)
function code(x, y, z) return Float64(Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) / x) + Float64(0.91893853320467 - x)) end
function tmp = code(x, y, z) tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 - x); end
code[x_, y_, z_] := N[(N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(0.91893853320467 - x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x} + \left(0.91893853320467 - x\right)
\end{array}
Initial program 94.2%
add-cube-cbrt93.8%
pow393.8%
sub-neg93.8%
metadata-eval93.8%
Applied egg-rr93.8%
Taylor expanded in x around inf 67.5%
neg-mul-167.5%
unsub-neg67.5%
Simplified67.5%
Final simplification67.5%
(FPCore (x y z)
:precision binary64
(-
(/
(+
0.083333333333333
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
x)
x))
double code(double x, double y, double z) {
return ((0.083333333333333 + (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.083333333333333d0 + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))) / x) - x
end function
public static double code(double x, double y, double z) {
return ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) - x;
}
def code(x, y, z): return ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) - x
function code(x, y, z) return Float64(Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) / x) - x) end
function tmp = code(x, y, z) tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) - x; end
code[x_, y_, z_] := N[(N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - x), $MachinePrecision]
\begin{array}{l}
\\
\frac{0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x} - x
\end{array}
Initial program 94.2%
add-cube-cbrt93.8%
pow393.8%
sub-neg93.8%
metadata-eval93.8%
Applied egg-rr93.8%
Taylor expanded in x around inf 67.5%
neg-mul-167.5%
Simplified67.5%
Final simplification67.5%
(FPCore (x y z) :precision binary64 (+ x (/ 0.083333333333333 x)))
double code(double x, double y, double z) {
return x + (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.083333333333333d0 / x)
end function
public static double code(double x, double y, double z) {
return x + (0.083333333333333 / x);
}
def code(x, y, z): return x + (0.083333333333333 / x)
function code(x, y, z) return Float64(x + Float64(0.083333333333333 / x)) end
function tmp = code(x, y, z) tmp = x + (0.083333333333333 / x); end
code[x_, y_, z_] := N[(x + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{0.083333333333333}{x}
\end{array}
Initial program 94.2%
add-cube-cbrt93.8%
pow393.8%
sub-neg93.8%
metadata-eval93.8%
Applied egg-rr93.8%
Taylor expanded in x around inf 67.5%
neg-mul-167.5%
Simplified67.5%
Taylor expanded in z around 0 24.5%
expm1-log1p-u22.2%
expm1-udef22.2%
add-sqr-sqrt0.0%
sqrt-unprod28.7%
sqr-neg28.7%
sqrt-unprod27.1%
add-sqr-sqrt27.1%
Applied egg-rr27.1%
expm1-def27.1%
expm1-log1p29.0%
Simplified29.0%
Final simplification29.0%
(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.2%
add-cube-cbrt93.8%
pow393.8%
sub-neg93.8%
metadata-eval93.8%
Applied egg-rr93.8%
Taylor expanded in x around inf 67.5%
neg-mul-167.5%
Simplified67.5%
Taylor expanded in z around 0 24.5%
Taylor expanded in x around 0 25.4%
Final simplification25.4%
(FPCore (x y z) :precision binary64 (- x))
double code(double x, double y, double z) {
return -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
end function
public static double code(double x, double y, double z) {
return -x;
}
def code(x, y, z): return -x
function code(x, y, z) return Float64(-x) end
function tmp = code(x, y, z) tmp = -x; end
code[x_, y_, z_] := (-x)
\begin{array}{l}
\\
-x
\end{array}
Initial program 94.2%
add-cube-cbrt93.8%
pow393.8%
sub-neg93.8%
metadata-eval93.8%
Applied egg-rr93.8%
Taylor expanded in x around inf 67.5%
neg-mul-167.5%
Simplified67.5%
Taylor expanded in z around 0 24.5%
Taylor expanded in x around inf 1.2%
mul-1-neg1.2%
Simplified1.2%
Final simplification1.2%
(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 2024031
(FPCore (x y z)
:name "Numeric.SpecFunctions:$slogFactorial from math-functions-0.1.5.2, B"
:precision binary64
:herbie-target
(+ (+ (+ (* (- 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)))