
(FPCore (x y z t) :precision binary64 (- x (/ (log (+ (- 1.0 y) (* y (exp z)))) t)))
double code(double x, double y, double z, double t) {
return x - (log(((1.0 - y) + (y * exp(z)))) / t);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x - (log(((1.0d0 - y) + (y * exp(z)))) / t)
end function
public static double code(double x, double y, double z, double t) {
return x - (Math.log(((1.0 - y) + (y * Math.exp(z)))) / t);
}
def code(x, y, z, t): return x - (math.log(((1.0 - y) + (y * math.exp(z)))) / t)
function code(x, y, z, t) return Float64(x - Float64(log(Float64(Float64(1.0 - y) + Float64(y * exp(z)))) / t)) end
function tmp = code(x, y, z, t) tmp = x - (log(((1.0 - y) + (y * exp(z)))) / t); end
code[x_, y_, z_, t_] := N[(x - N[(N[Log[N[(N[(1.0 - y), $MachinePrecision] + N[(y * N[Exp[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \frac{\log \left(\left(1 - y\right) + y \cdot e^{z}\right)}{t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (- x (/ (log (+ (- 1.0 y) (* y (exp z)))) t)))
double code(double x, double y, double z, double t) {
return x - (log(((1.0 - y) + (y * exp(z)))) / t);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x - (log(((1.0d0 - y) + (y * exp(z)))) / t)
end function
public static double code(double x, double y, double z, double t) {
return x - (Math.log(((1.0 - y) + (y * Math.exp(z)))) / t);
}
def code(x, y, z, t): return x - (math.log(((1.0 - y) + (y * math.exp(z)))) / t)
function code(x, y, z, t) return Float64(x - Float64(log(Float64(Float64(1.0 - y) + Float64(y * exp(z)))) / t)) end
function tmp = code(x, y, z, t) tmp = x - (log(((1.0 - y) + (y * exp(z)))) / t); end
code[x_, y_, z_, t_] := N[(x - N[(N[Log[N[(N[(1.0 - y), $MachinePrecision] + N[(y * N[Exp[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \frac{\log \left(\left(1 - y\right) + y \cdot e^{z}\right)}{t}
\end{array}
(FPCore (x y z t)
:precision binary64
(if (<= y -1.1e+76)
(- x (/ (log (fma (expm1 z) y 1.0)) t))
(if (<= y 1.8e+120)
(- x (* (/ (expm1 z) t) y))
(- x (/ (log (fma (fma (* z y) 0.5 y) z 1.0)) t)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.1e+76) {
tmp = x - (log(fma(expm1(z), y, 1.0)) / t);
} else if (y <= 1.8e+120) {
tmp = x - ((expm1(z) / t) * y);
} else {
tmp = x - (log(fma(fma((z * y), 0.5, y), z, 1.0)) / t);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (y <= -1.1e+76) tmp = Float64(x - Float64(log(fma(expm1(z), y, 1.0)) / t)); elseif (y <= 1.8e+120) tmp = Float64(x - Float64(Float64(expm1(z) / t) * y)); else tmp = Float64(x - Float64(log(fma(fma(Float64(z * y), 0.5, y), z, 1.0)) / t)); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.1e+76], N[(x - N[(N[Log[N[(N[(Exp[z] - 1), $MachinePrecision] * y + 1.0), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.8e+120], N[(x - N[(N[(N[(Exp[z] - 1), $MachinePrecision] / t), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[Log[N[(N[(N[(z * y), $MachinePrecision] * 0.5 + y), $MachinePrecision] * z + 1.0), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.1 \cdot 10^{+76}:\\
\;\;\;\;x - \frac{\log \left(\mathsf{fma}\left(\mathsf{expm1}\left(z\right), y, 1\right)\right)}{t}\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{+120}:\\
\;\;\;\;x - \frac{\mathsf{expm1}\left(z\right)}{t} \cdot y\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\log \left(\mathsf{fma}\left(\mathsf{fma}\left(z \cdot y, 0.5, y\right), z, 1\right)\right)}{t}\\
\end{array}
\end{array}
if y < -1.1e76Initial program 49.4%
Taylor expanded in y around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-expm1.f6489.4
Applied rewrites89.4%
if -1.1e76 < y < 1.80000000000000008e120Initial program 73.3%
Taylor expanded in y around 0
associate-/l*N/A
div-subN/A
*-commutativeN/A
lower-*.f64N/A
div-subN/A
lower-/.f64N/A
lower-expm1.f6497.6
Applied rewrites97.6%
if 1.80000000000000008e120 < y Initial program 4.6%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6491.1
Applied rewrites91.1%
(FPCore (x y z t) :precision binary64 (if (<= (/ (log (+ (- 1.0 y) (* y (exp z)))) t) 100000.0) (- x (* (/ (expm1 z) t) y)) (- x (/ (log (fma z y 1.0)) t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((log(((1.0 - y) + (y * exp(z)))) / t) <= 100000.0) {
tmp = x - ((expm1(z) / t) * y);
} else {
tmp = x - (log(fma(z, y, 1.0)) / t);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (Float64(log(Float64(Float64(1.0 - y) + Float64(y * exp(z)))) / t) <= 100000.0) tmp = Float64(x - Float64(Float64(expm1(z) / t) * y)); else tmp = Float64(x - Float64(log(fma(z, y, 1.0)) / t)); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[N[(N[Log[N[(N[(1.0 - y), $MachinePrecision] + N[(y * N[Exp[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision], 100000.0], N[(x - N[(N[(N[(Exp[z] - 1), $MachinePrecision] / t), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[Log[N[(z * y + 1.0), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\log \left(\left(1 - y\right) + y \cdot e^{z}\right)}{t} \leq 100000:\\
\;\;\;\;x - \frac{\mathsf{expm1}\left(z\right)}{t} \cdot y\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\log \left(\mathsf{fma}\left(z, y, 1\right)\right)}{t}\\
\end{array}
\end{array}
if (/.f64 (log.f64 (+.f64 (-.f64 #s(literal 1 binary64) y) (*.f64 y (exp.f64 z)))) t) < 1e5Initial program 71.9%
Taylor expanded in y around 0
associate-/l*N/A
div-subN/A
*-commutativeN/A
lower-*.f64N/A
div-subN/A
lower-/.f64N/A
lower-expm1.f6489.2
Applied rewrites89.2%
if 1e5 < (/.f64 (log.f64 (+.f64 (-.f64 #s(literal 1 binary64) y) (*.f64 y (exp.f64 z)))) t) Initial program 15.4%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f6480.8
Applied rewrites80.8%
(FPCore (x y z t) :precision binary64 (if (<= (+ (- 1.0 y) (* y (exp z))) 1e+94) (- x (* (/ (expm1 z) t) y)) (fma (- (pow t -1.0) (pow t -1.0)) y x)))
double code(double x, double y, double z, double t) {
double tmp;
if (((1.0 - y) + (y * exp(z))) <= 1e+94) {
tmp = x - ((expm1(z) / t) * y);
} else {
tmp = fma((pow(t, -1.0) - pow(t, -1.0)), y, x);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (Float64(Float64(1.0 - y) + Float64(y * exp(z))) <= 1e+94) tmp = Float64(x - Float64(Float64(expm1(z) / t) * y)); else tmp = fma(Float64((t ^ -1.0) - (t ^ -1.0)), y, x); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[N[(N[(1.0 - y), $MachinePrecision] + N[(y * N[Exp[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1e+94], N[(x - N[(N[(N[(Exp[z] - 1), $MachinePrecision] / t), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], N[(N[(N[Power[t, -1.0], $MachinePrecision] - N[Power[t, -1.0], $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(1 - y\right) + y \cdot e^{z} \leq 10^{+94}:\\
\;\;\;\;x - \frac{\mathsf{expm1}\left(z\right)}{t} \cdot y\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left({t}^{-1} - {t}^{-1}, y, x\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 #s(literal 1 binary64) y) (*.f64 y (exp.f64 z))) < 1e94Initial program 60.7%
Taylor expanded in y around 0
associate-/l*N/A
div-subN/A
*-commutativeN/A
lower-*.f64N/A
div-subN/A
lower-/.f64N/A
lower-expm1.f6490.9
Applied rewrites90.9%
if 1e94 < (+.f64 (-.f64 #s(literal 1 binary64) y) (*.f64 y (exp.f64 z))) Initial program 86.0%
Taylor expanded in y around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-exp.f6419.9
Applied rewrites19.9%
Taylor expanded in z around 0
Applied rewrites53.8%
Final simplification87.4%
(FPCore (x y z t) :precision binary64 (if (<= z -1e+14) (fma (- (pow t -1.0) (pow t -1.0)) y x) (- x (* (* (/ (fma 0.5 z 1.0) t) z) y))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1e+14) {
tmp = fma((pow(t, -1.0) - pow(t, -1.0)), y, x);
} else {
tmp = x - (((fma(0.5, z, 1.0) / t) * z) * y);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (z <= -1e+14) tmp = fma(Float64((t ^ -1.0) - (t ^ -1.0)), y, x); else tmp = Float64(x - Float64(Float64(Float64(fma(0.5, z, 1.0) / t) * z) * y)); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[z, -1e+14], N[(N[(N[Power[t, -1.0], $MachinePrecision] - N[Power[t, -1.0], $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], N[(x - N[(N[(N[(N[(0.5 * z + 1.0), $MachinePrecision] / t), $MachinePrecision] * z), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+14}:\\
\;\;\;\;\mathsf{fma}\left({t}^{-1} - {t}^{-1}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;x - \left(\frac{\mathsf{fma}\left(0.5, z, 1\right)}{t} \cdot z\right) \cdot y\\
\end{array}
\end{array}
if z < -1e14Initial program 81.4%
Taylor expanded in y around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-exp.f6478.2
Applied rewrites78.2%
Taylor expanded in z around 0
Applied rewrites64.5%
if -1e14 < z Initial program 53.9%
Taylor expanded in y around 0
associate-/l*N/A
div-subN/A
*-commutativeN/A
lower-*.f64N/A
div-subN/A
lower-/.f64N/A
lower-expm1.f6487.3
Applied rewrites87.3%
Taylor expanded in z around 0
Applied rewrites88.6%
Final simplification80.6%
(FPCore (x y z t) :precision binary64 (if (<= z -3.4e+63) (/ (* t x) t) (- x (* (/ z t) y))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -3.4e+63) {
tmp = (t * x) / t;
} else {
tmp = x - ((z / t) * y);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (z <= (-3.4d+63)) then
tmp = (t * x) / t
else
tmp = x - ((z / t) * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -3.4e+63) {
tmp = (t * x) / t;
} else {
tmp = x - ((z / t) * y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -3.4e+63: tmp = (t * x) / t else: tmp = x - ((z / t) * y) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -3.4e+63) tmp = Float64(Float64(t * x) / t); else tmp = Float64(x - Float64(Float64(z / t) * y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -3.4e+63) tmp = (t * x) / t; else tmp = x - ((z / t) * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -3.4e+63], N[(N[(t * x), $MachinePrecision] / t), $MachinePrecision], N[(x - N[(N[(z / t), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.4 \cdot 10^{+63}:\\
\;\;\;\;\frac{t \cdot x}{t}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{z}{t} \cdot y\\
\end{array}
\end{array}
if z < -3.3999999999999999e63Initial program 85.9%
Taylor expanded in t around 0
lower-/.f64N/A
Applied rewrites84.7%
Taylor expanded in z around 0
Applied rewrites25.1%
Taylor expanded in x around inf
Applied rewrites56.0%
if -3.3999999999999999e63 < z Initial program 54.8%
Taylor expanded in y around 0
associate-/l*N/A
div-subN/A
*-commutativeN/A
lower-*.f64N/A
div-subN/A
lower-/.f64N/A
lower-expm1.f6486.2
Applied rewrites86.2%
Taylor expanded in z around 0
Applied rewrites83.9%
(FPCore (x y z t) :precision binary64 (if (<= z -7.2e+63) (/ (* t x) t) (- x (* (/ y t) z))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -7.2e+63) {
tmp = (t * x) / t;
} else {
tmp = x - ((y / t) * z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (z <= (-7.2d+63)) then
tmp = (t * x) / t
else
tmp = x - ((y / t) * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -7.2e+63) {
tmp = (t * x) / t;
} else {
tmp = x - ((y / t) * z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -7.2e+63: tmp = (t * x) / t else: tmp = x - ((y / t) * z) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -7.2e+63) tmp = Float64(Float64(t * x) / t); else tmp = Float64(x - Float64(Float64(y / t) * z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -7.2e+63) tmp = (t * x) / t; else tmp = x - ((y / t) * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -7.2e+63], N[(N[(t * x), $MachinePrecision] / t), $MachinePrecision], N[(x - N[(N[(y / t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.2 \cdot 10^{+63}:\\
\;\;\;\;\frac{t \cdot x}{t}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{t} \cdot z\\
\end{array}
\end{array}
if z < -7.19999999999999998e63Initial program 85.9%
Taylor expanded in t around 0
lower-/.f64N/A
Applied rewrites84.7%
Taylor expanded in z around 0
Applied rewrites25.1%
Taylor expanded in x around inf
Applied rewrites56.0%
if -7.19999999999999998e63 < z Initial program 54.8%
Taylor expanded in y around 0
associate-/l*N/A
div-subN/A
*-commutativeN/A
lower-*.f64N/A
div-subN/A
lower-/.f64N/A
lower-expm1.f6486.2
Applied rewrites86.2%
Taylor expanded in z around 0
Applied rewrites78.2%
Taylor expanded in z around 0
Applied rewrites78.4%
(FPCore (x y z t) :precision binary64 (/ (* t x) t))
double code(double x, double y, double z, double t) {
return (t * x) / t;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (t * x) / t
end function
public static double code(double x, double y, double z, double t) {
return (t * x) / t;
}
def code(x, y, z, t): return (t * x) / t
function code(x, y, z, t) return Float64(Float64(t * x) / t) end
function tmp = code(x, y, z, t) tmp = (t * x) / t; end
code[x_, y_, z_, t_] := N[(N[(t * x), $MachinePrecision] / t), $MachinePrecision]
\begin{array}{l}
\\
\frac{t \cdot x}{t}
\end{array}
Initial program 63.0%
Taylor expanded in t around 0
lower-/.f64N/A
Applied rewrites70.2%
Taylor expanded in z around 0
Applied rewrites56.8%
Taylor expanded in x around inf
Applied rewrites58.7%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (- 0.5) (* y t))))
(if (< z -2.8874623088207947e+119)
(- (- x (/ t_1 (* z z))) (* t_1 (/ (/ 2.0 z) (* z z))))
(- x (/ (log (+ 1.0 (* z y))) t)))))
double code(double x, double y, double z, double t) {
double t_1 = -0.5 / (y * t);
double tmp;
if (z < -2.8874623088207947e+119) {
tmp = (x - (t_1 / (z * z))) - (t_1 * ((2.0 / z) / (z * z)));
} else {
tmp = x - (log((1.0 + (z * y))) / t);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = -0.5d0 / (y * t)
if (z < (-2.8874623088207947d+119)) then
tmp = (x - (t_1 / (z * z))) - (t_1 * ((2.0d0 / z) / (z * z)))
else
tmp = x - (log((1.0d0 + (z * y))) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = -0.5 / (y * t);
double tmp;
if (z < -2.8874623088207947e+119) {
tmp = (x - (t_1 / (z * z))) - (t_1 * ((2.0 / z) / (z * z)));
} else {
tmp = x - (Math.log((1.0 + (z * y))) / t);
}
return tmp;
}
def code(x, y, z, t): t_1 = -0.5 / (y * t) tmp = 0 if z < -2.8874623088207947e+119: tmp = (x - (t_1 / (z * z))) - (t_1 * ((2.0 / z) / (z * z))) else: tmp = x - (math.log((1.0 + (z * y))) / t) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(-0.5) / Float64(y * t)) tmp = 0.0 if (z < -2.8874623088207947e+119) tmp = Float64(Float64(x - Float64(t_1 / Float64(z * z))) - Float64(t_1 * Float64(Float64(2.0 / z) / Float64(z * z)))); else tmp = Float64(x - Float64(log(Float64(1.0 + Float64(z * y))) / t)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = -0.5 / (y * t); tmp = 0.0; if (z < -2.8874623088207947e+119) tmp = (x - (t_1 / (z * z))) - (t_1 * ((2.0 / z) / (z * z))); else tmp = x - (log((1.0 + (z * y))) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[((-0.5) / N[(y * t), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -2.8874623088207947e+119], N[(N[(x - N[(t$95$1 / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 * N[(N[(2.0 / z), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[Log[N[(1.0 + N[(z * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{-0.5}{y \cdot t}\\
\mathbf{if}\;z < -2.8874623088207947 \cdot 10^{+119}:\\
\;\;\;\;\left(x - \frac{t\_1}{z \cdot z}\right) - t\_1 \cdot \frac{\frac{2}{z}}{z \cdot z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{\log \left(1 + z \cdot y\right)}{t}\\
\end{array}
\end{array}
herbie shell --seed 2024320
(FPCore (x y z t)
:name "System.Random.MWC.Distributions:truncatedExp from mwc-random-0.13.3.2"
:precision binary64
:alt
(! :herbie-platform default (if (< z -288746230882079470000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (- x (/ (/ (- 1/2) (* y t)) (* z z))) (* (/ (- 1/2) (* y t)) (/ (/ 2 z) (* z z)))) (- x (/ (log (+ 1 (* z y))) t))))
(- x (/ (log (+ (- 1.0 y) (* y (exp z)))) t)))