
(FPCore (x y z t) :precision binary64 (+ x (/ (* (- y x) z) t)))
double code(double x, double y, double z, double t) {
return x + (((y - x) * 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 + (((y - x) * z) / t)
end function
public static double code(double x, double y, double z, double t) {
return x + (((y - x) * z) / t);
}
def code(x, y, z, t): return x + (((y - x) * z) / t)
function code(x, y, z, t) return Float64(x + Float64(Float64(Float64(y - x) * z) / t)) end
function tmp = code(x, y, z, t) tmp = x + (((y - x) * z) / t); end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot z}{t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ x (/ (* (- y x) z) t)))
double code(double x, double y, double z, double t) {
return x + (((y - x) * 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 + (((y - x) * z) / t)
end function
public static double code(double x, double y, double z, double t) {
return x + (((y - x) * z) / t);
}
def code(x, y, z, t): return x + (((y - x) * z) / t)
function code(x, y, z, t) return Float64(x + Float64(Float64(Float64(y - x) * z) / t)) end
function tmp = code(x, y, z, t) tmp = x + (((y - x) * z) / t); end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot z}{t}
\end{array}
(FPCore (x y z t) :precision binary64 (+ x (* (- y x) (/ z t))))
double code(double x, double y, double z, double t) {
return x + ((y - x) * (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 + ((y - x) * (z / t))
end function
public static double code(double x, double y, double z, double t) {
return x + ((y - x) * (z / t));
}
def code(x, y, z, t): return x + ((y - x) * (z / t))
function code(x, y, z, t) return Float64(x + Float64(Float64(y - x) * Float64(z / t))) end
function tmp = code(x, y, z, t) tmp = x + ((y - x) * (z / t)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - x\right) \cdot \frac{z}{t}
\end{array}
Initial program 93.6%
associate-/l*97.2%
Simplified97.2%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (* y z) t)))
(if (<= t -2.35e+83)
x
(if (<= t -9e-172)
t_1
(if (<= t 1.9e-216) (* x (/ (- z) t)) (if (<= t 2.9e+152) t_1 x))))))
double code(double x, double y, double z, double t) {
double t_1 = (y * z) / t;
double tmp;
if (t <= -2.35e+83) {
tmp = x;
} else if (t <= -9e-172) {
tmp = t_1;
} else if (t <= 1.9e-216) {
tmp = x * (-z / t);
} else if (t <= 2.9e+152) {
tmp = t_1;
} else {
tmp = x;
}
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 = (y * z) / t
if (t <= (-2.35d+83)) then
tmp = x
else if (t <= (-9d-172)) then
tmp = t_1
else if (t <= 1.9d-216) then
tmp = x * (-z / t)
else if (t <= 2.9d+152) then
tmp = t_1
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (y * z) / t;
double tmp;
if (t <= -2.35e+83) {
tmp = x;
} else if (t <= -9e-172) {
tmp = t_1;
} else if (t <= 1.9e-216) {
tmp = x * (-z / t);
} else if (t <= 2.9e+152) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): t_1 = (y * z) / t tmp = 0 if t <= -2.35e+83: tmp = x elif t <= -9e-172: tmp = t_1 elif t <= 1.9e-216: tmp = x * (-z / t) elif t <= 2.9e+152: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y * z) / t) tmp = 0.0 if (t <= -2.35e+83) tmp = x; elseif (t <= -9e-172) tmp = t_1; elseif (t <= 1.9e-216) tmp = Float64(x * Float64(Float64(-z) / t)); elseif (t <= 2.9e+152) tmp = t_1; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y * z) / t; tmp = 0.0; if (t <= -2.35e+83) tmp = x; elseif (t <= -9e-172) tmp = t_1; elseif (t <= 1.9e-216) tmp = x * (-z / t); elseif (t <= 2.9e+152) tmp = t_1; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]}, If[LessEqual[t, -2.35e+83], x, If[LessEqual[t, -9e-172], t$95$1, If[LessEqual[t, 1.9e-216], N[(x * N[((-z) / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e+152], t$95$1, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot z}{t}\\
\mathbf{if}\;t \leq -2.35 \cdot 10^{+83}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq -9 \cdot 10^{-172}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{-216}:\\
\;\;\;\;x \cdot \frac{-z}{t}\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{+152}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -2.3499999999999999e83 or 2.8999999999999998e152 < t Initial program 83.7%
associate-/l*98.0%
Simplified98.0%
Taylor expanded in z around 0 73.3%
if -2.3499999999999999e83 < t < -9.00000000000000008e-172 or 1.9e-216 < t < 2.8999999999999998e152Initial program 98.5%
associate-/l*96.4%
Simplified96.4%
Taylor expanded in x around 0 92.3%
Taylor expanded in x around 0 57.4%
if -9.00000000000000008e-172 < t < 1.9e-216Initial program 94.9%
Taylor expanded in y around 0 70.4%
mul-1-neg70.4%
distribute-lft-neg-out70.4%
*-commutative70.4%
Simplified70.4%
div-inv70.4%
*-commutative70.4%
add-sqr-sqrt31.8%
sqrt-unprod39.6%
sqr-neg39.6%
sqrt-unprod11.1%
add-sqr-sqrt13.2%
*-commutative13.2%
remove-double-neg13.2%
distribute-rgt-neg-out13.2%
cancel-sign-sub-inv13.2%
associate-*l*13.0%
div-inv13.0%
add-sqr-sqrt2.2%
sqrt-unprod23.8%
sqr-neg23.8%
sqrt-unprod28.9%
add-sqr-sqrt55.7%
Applied egg-rr55.7%
clear-num55.7%
un-div-inv57.8%
Applied egg-rr57.8%
Taylor expanded in z around inf 60.3%
mul-1-neg60.3%
associate-*r/60.8%
*-commutative60.8%
distribute-rgt-neg-in60.8%
Simplified60.8%
Final simplification62.5%
(FPCore (x y z t) :precision binary64 (if (or (<= x -1.65e-15) (not (<= x 2.2e+91))) (* x (- 1.0 (/ z t))) (+ x (* y (/ z t)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.65e-15) || !(x <= 2.2e+91)) {
tmp = x * (1.0 - (z / t));
} else {
tmp = x + (y * (z / 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) :: tmp
if ((x <= (-1.65d-15)) .or. (.not. (x <= 2.2d+91))) then
tmp = x * (1.0d0 - (z / t))
else
tmp = x + (y * (z / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.65e-15) || !(x <= 2.2e+91)) {
tmp = x * (1.0 - (z / t));
} else {
tmp = x + (y * (z / t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -1.65e-15) or not (x <= 2.2e+91): tmp = x * (1.0 - (z / t)) else: tmp = x + (y * (z / t)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -1.65e-15) || !(x <= 2.2e+91)) tmp = Float64(x * Float64(1.0 - Float64(z / t))); else tmp = Float64(x + Float64(y * Float64(z / t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -1.65e-15) || ~((x <= 2.2e+91))) tmp = x * (1.0 - (z / t)); else tmp = x + (y * (z / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -1.65e-15], N[Not[LessEqual[x, 2.2e+91]], $MachinePrecision]], N[(x * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.65 \cdot 10^{-15} \lor \neg \left(x \leq 2.2 \cdot 10^{+91}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if x < -1.65e-15 or 2.19999999999999999e91 < x Initial program 90.3%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in x around inf 88.1%
mul-1-neg88.1%
unsub-neg88.1%
Simplified88.1%
if -1.65e-15 < x < 2.19999999999999999e91Initial program 95.7%
associate-/l*95.5%
Simplified95.5%
Taylor expanded in y around inf 86.8%
associate-*r/87.2%
Simplified87.2%
Final simplification87.5%
(FPCore (x y z t) :precision binary64 (if (or (<= x -4.8e-226) (not (<= x 1.3e-115))) (* x (- 1.0 (/ z t))) (/ (* y z) t)))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -4.8e-226) || !(x <= 1.3e-115)) {
tmp = x * (1.0 - (z / t));
} else {
tmp = (y * z) / 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) :: tmp
if ((x <= (-4.8d-226)) .or. (.not. (x <= 1.3d-115))) then
tmp = x * (1.0d0 - (z / t))
else
tmp = (y * z) / t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -4.8e-226) || !(x <= 1.3e-115)) {
tmp = x * (1.0 - (z / t));
} else {
tmp = (y * z) / t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -4.8e-226) or not (x <= 1.3e-115): tmp = x * (1.0 - (z / t)) else: tmp = (y * z) / t return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -4.8e-226) || !(x <= 1.3e-115)) tmp = Float64(x * Float64(1.0 - Float64(z / t))); else tmp = Float64(Float64(y * z) / t); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -4.8e-226) || ~((x <= 1.3e-115))) tmp = x * (1.0 - (z / t)); else tmp = (y * z) / t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -4.8e-226], N[Not[LessEqual[x, 1.3e-115]], $MachinePrecision]], N[(x * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.8 \cdot 10^{-226} \lor \neg \left(x \leq 1.3 \cdot 10^{-115}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot z}{t}\\
\end{array}
\end{array}
if x < -4.7999999999999999e-226 or 1.30000000000000002e-115 < x Initial program 93.2%
associate-/l*98.8%
Simplified98.8%
Taylor expanded in x around inf 75.9%
mul-1-neg75.9%
unsub-neg75.9%
Simplified75.9%
if -4.7999999999999999e-226 < x < 1.30000000000000002e-115Initial program 94.6%
associate-/l*93.3%
Simplified93.3%
Taylor expanded in x around 0 89.2%
Taylor expanded in x around 0 76.5%
Final simplification76.1%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.06e-61) (not (<= z 1.25e-204))) (* z (/ y t)) x))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.06e-61) || !(z <= 1.25e-204)) {
tmp = z * (y / t);
} else {
tmp = x;
}
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 <= (-1.06d-61)) .or. (.not. (z <= 1.25d-204))) then
tmp = z * (y / t)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.06e-61) || !(z <= 1.25e-204)) {
tmp = z * (y / t);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -1.06e-61) or not (z <= 1.25e-204): tmp = z * (y / t) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -1.06e-61) || !(z <= 1.25e-204)) tmp = Float64(z * Float64(y / t)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -1.06e-61) || ~((z <= 1.25e-204))) tmp = z * (y / t); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.06e-61], N[Not[LessEqual[z, 1.25e-204]], $MachinePrecision]], N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.06 \cdot 10^{-61} \lor \neg \left(z \leq 1.25 \cdot 10^{-204}\right):\\
\;\;\;\;z \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.0599999999999999e-61 or 1.25e-204 < z Initial program 91.2%
associate-/l*98.1%
Simplified98.1%
Taylor expanded in x around 0 85.8%
Taylor expanded in x around 0 55.8%
associate-*l/55.2%
*-commutative55.2%
Simplified55.2%
if -1.0599999999999999e-61 < z < 1.25e-204Initial program 98.3%
associate-/l*95.4%
Simplified95.4%
Taylor expanded in z around 0 63.1%
Final simplification57.9%
(FPCore (x y z t) :precision binary64 (if (<= z -2e-61) (* z (/ y t)) (if (<= z 1.25e-204) x (/ (* y z) t))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2e-61) {
tmp = z * (y / t);
} else if (z <= 1.25e-204) {
tmp = x;
} else {
tmp = (y * z) / 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) :: tmp
if (z <= (-2d-61)) then
tmp = z * (y / t)
else if (z <= 1.25d-204) then
tmp = x
else
tmp = (y * z) / t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2e-61) {
tmp = z * (y / t);
} else if (z <= 1.25e-204) {
tmp = x;
} else {
tmp = (y * z) / t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -2e-61: tmp = z * (y / t) elif z <= 1.25e-204: tmp = x else: tmp = (y * z) / t return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -2e-61) tmp = Float64(z * Float64(y / t)); elseif (z <= 1.25e-204) tmp = x; else tmp = Float64(Float64(y * z) / t); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -2e-61) tmp = z * (y / t); elseif (z <= 1.25e-204) tmp = x; else tmp = (y * z) / t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -2e-61], N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.25e-204], x, N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{-61}:\\
\;\;\;\;z \cdot \frac{y}{t}\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-204}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot z}{t}\\
\end{array}
\end{array}
if z < -2.0000000000000001e-61Initial program 93.5%
associate-/l*97.3%
Simplified97.3%
Taylor expanded in x around 0 85.3%
Taylor expanded in x around 0 56.6%
associate-*l/59.1%
*-commutative59.1%
Simplified59.1%
if -2.0000000000000001e-61 < z < 1.25e-204Initial program 98.3%
associate-/l*95.4%
Simplified95.4%
Taylor expanded in z around 0 63.1%
if 1.25e-204 < z Initial program 89.5%
associate-/l*98.8%
Simplified98.8%
Taylor expanded in x around 0 86.1%
Taylor expanded in x around 0 55.2%
(FPCore (x y z t) :precision binary64 x)
double code(double x, double y, double z, double t) {
return x;
}
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
end function
public static double code(double x, double y, double z, double t) {
return x;
}
def code(x, y, z, t): return x
function code(x, y, z, t) return x end
function tmp = code(x, y, z, t) tmp = x; end
code[x_, y_, z_, t_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 93.6%
associate-/l*97.2%
Simplified97.2%
Taylor expanded in z around 0 36.5%
(FPCore (x y z t)
:precision binary64
(if (< x -9.025511195533005e-135)
(- x (* (/ z t) (- x y)))
(if (< x 4.275032163700715e-250)
(+ x (* (/ (- y x) t) z))
(+ x (/ (- y x) (/ t z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (x < -9.025511195533005e-135) {
tmp = x - ((z / t) * (x - y));
} else if (x < 4.275032163700715e-250) {
tmp = x + (((y - x) / t) * z);
} else {
tmp = x + ((y - x) / (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 (x < (-9.025511195533005d-135)) then
tmp = x - ((z / t) * (x - y))
else if (x < 4.275032163700715d-250) then
tmp = x + (((y - x) / t) * z)
else
tmp = x + ((y - x) / (t / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x < -9.025511195533005e-135) {
tmp = x - ((z / t) * (x - y));
} else if (x < 4.275032163700715e-250) {
tmp = x + (((y - x) / t) * z);
} else {
tmp = x + ((y - x) / (t / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x < -9.025511195533005e-135: tmp = x - ((z / t) * (x - y)) elif x < 4.275032163700715e-250: tmp = x + (((y - x) / t) * z) else: tmp = x + ((y - x) / (t / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (x < -9.025511195533005e-135) tmp = Float64(x - Float64(Float64(z / t) * Float64(x - y))); elseif (x < 4.275032163700715e-250) tmp = Float64(x + Float64(Float64(Float64(y - x) / t) * z)); else tmp = Float64(x + Float64(Float64(y - x) / Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x < -9.025511195533005e-135) tmp = x - ((z / t) * (x - y)); elseif (x < 4.275032163700715e-250) tmp = x + (((y - x) / t) * z); else tmp = x + ((y - x) / (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Less[x, -9.025511195533005e-135], N[(x - N[(N[(z / t), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[x, 4.275032163700715e-250], N[(x + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x < -9.025511195533005 \cdot 10^{-135}:\\
\;\;\;\;x - \frac{z}{t} \cdot \left(x - y\right)\\
\mathbf{elif}\;x < 4.275032163700715 \cdot 10^{-250}:\\
\;\;\;\;x + \frac{y - x}{t} \cdot z\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{t}{z}}\\
\end{array}
\end{array}
herbie shell --seed 2024091
(FPCore (x y z t)
:name "Numeric.Histogram:binBounds from Chart-1.5.3"
:precision binary64
:alt
(if (< x -9.025511195533005e-135) (- x (* (/ z t) (- x y))) (if (< x 4.275032163700715e-250) (+ x (* (/ (- y x) t) z)) (+ x (/ (- y x) (/ t z)))))
(+ x (/ (* (- y x) z) t)))