
(FPCore (x y z t) :precision binary64 (* x (- (/ y z) (/ t (- 1.0 z)))))
double code(double x, double y, double z, double t) {
return x * ((y / z) - (t / (1.0 - z)));
}
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 / z) - (t / (1.0d0 - z)))
end function
public static double code(double x, double y, double z, double t) {
return x * ((y / z) - (t / (1.0 - z)));
}
def code(x, y, z, t): return x * ((y / z) - (t / (1.0 - z)))
function code(x, y, z, t) return Float64(x * Float64(Float64(y / z) - Float64(t / Float64(1.0 - z)))) end
function tmp = code(x, y, z, t) tmp = x * ((y / z) - (t / (1.0 - z))); end
code[x_, y_, z_, t_] := N[(x * N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 12 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (* x (- (/ y z) (/ t (- 1.0 z)))))
double code(double x, double y, double z, double t) {
return x * ((y / z) - (t / (1.0 - z)));
}
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 / z) - (t / (1.0d0 - z)))
end function
public static double code(double x, double y, double z, double t) {
return x * ((y / z) - (t / (1.0 - z)));
}
def code(x, y, z, t): return x * ((y / z) - (t / (1.0 - z)))
function code(x, y, z, t) return Float64(x * Float64(Float64(y / z) - Float64(t / Float64(1.0 - z)))) end
function tmp = code(x, y, z, t) tmp = x * ((y / z) - (t / (1.0 - z))); end
code[x_, y_, z_, t_] := N[(x * N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)
\end{array}
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (/ y z) (/ t (- 1.0 z)))))
(if (<= t_1 -1e+276)
(* (/ x z) (/ (fma (- 1.0 z) y (* (- z) t)) (- 1.0 z)))
(* x t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (y / z) - (t / (1.0 - z));
double tmp;
if (t_1 <= -1e+276) {
tmp = (x / z) * (fma((1.0 - z), y, (-z * t)) / (1.0 - z));
} else {
tmp = x * t_1;
}
return tmp;
}
function code(x, y, z, t) t_1 = Float64(Float64(y / z) - Float64(t / Float64(1.0 - z))) tmp = 0.0 if (t_1 <= -1e+276) tmp = Float64(Float64(x / z) * Float64(fma(Float64(1.0 - z), y, Float64(Float64(-z) * t)) / Float64(1.0 - z))); else tmp = Float64(x * t_1); end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+276], N[(N[(x / z), $MachinePrecision] * N[(N[(N[(1.0 - z), $MachinePrecision] * y + N[((-z) * t), $MachinePrecision]), $MachinePrecision] / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * t$95$1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{z} - \frac{t}{1 - z}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+276}:\\
\;\;\;\;\frac{x}{z} \cdot \frac{\mathsf{fma}\left(1 - z, y, \left(-z\right) \cdot t\right)}{1 - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot t\_1\\
\end{array}
\end{array}
if (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z))) < -1.0000000000000001e276Initial program 76.7%
lift-*.f64N/A
*-commutativeN/A
lift--.f64N/A
lift-/.f64N/A
lift-/.f64N/A
frac-subN/A
associate-*l/N/A
*-commutativeN/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
cancel-sign-sub-invN/A
*-commutativeN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-/.f64100.0
Applied rewrites100.0%
if -1.0000000000000001e276 < (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z))) Initial program 97.3%
Final simplification97.5%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (- (/ y z) (/ t (- 1.0 z))))) (if (<= t_1 (- INFINITY)) (* (/ x z) y) (* x t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (y / z) - (t / (1.0 - z));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (x / z) * y;
} else {
tmp = x * t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t) {
double t_1 = (y / z) - (t / (1.0 - z));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (x / z) * y;
} else {
tmp = x * t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (y / z) - (t / (1.0 - z)) tmp = 0 if t_1 <= -math.inf: tmp = (x / z) * y else: tmp = x * t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y / z) - Float64(t / Float64(1.0 - z))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(x / z) * y); else tmp = Float64(x * t_1); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y / z) - (t / (1.0 - z)); tmp = 0.0; if (t_1 <= -Inf) tmp = (x / z) * y; else tmp = x * t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision], N[(x * t$95$1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{z} - \frac{t}{1 - z}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{x}{z} \cdot y\\
\mathbf{else}:\\
\;\;\;\;x \cdot t\_1\\
\end{array}
\end{array}
if (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z))) < -inf.0Initial program 70.6%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f6499.8
Applied rewrites99.8%
Applied rewrites100.0%
if -inf.0 < (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z))) Initial program 97.3%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (* x t) (- z 1.0))))
(if (<= t -4.3e+166)
t_1
(if (<= t -3.3e-145)
(/ (* (+ t y) x) z)
(if (<= t 5.6e+50) (* (/ y z) x) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = (x * t) / (z - 1.0);
double tmp;
if (t <= -4.3e+166) {
tmp = t_1;
} else if (t <= -3.3e-145) {
tmp = ((t + y) * x) / z;
} else if (t <= 5.6e+50) {
tmp = (y / z) * x;
} else {
tmp = t_1;
}
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 = (x * t) / (z - 1.0d0)
if (t <= (-4.3d+166)) then
tmp = t_1
else if (t <= (-3.3d-145)) then
tmp = ((t + y) * x) / z
else if (t <= 5.6d+50) then
tmp = (y / z) * x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (x * t) / (z - 1.0);
double tmp;
if (t <= -4.3e+166) {
tmp = t_1;
} else if (t <= -3.3e-145) {
tmp = ((t + y) * x) / z;
} else if (t <= 5.6e+50) {
tmp = (y / z) * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (x * t) / (z - 1.0) tmp = 0 if t <= -4.3e+166: tmp = t_1 elif t <= -3.3e-145: tmp = ((t + y) * x) / z elif t <= 5.6e+50: tmp = (y / z) * x else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x * t) / Float64(z - 1.0)) tmp = 0.0 if (t <= -4.3e+166) tmp = t_1; elseif (t <= -3.3e-145) tmp = Float64(Float64(Float64(t + y) * x) / z); elseif (t <= 5.6e+50) tmp = Float64(Float64(y / z) * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x * t) / (z - 1.0); tmp = 0.0; if (t <= -4.3e+166) tmp = t_1; elseif (t <= -3.3e-145) tmp = ((t + y) * x) / z; elseif (t <= 5.6e+50) tmp = (y / z) * x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * t), $MachinePrecision] / N[(z - 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.3e+166], t$95$1, If[LessEqual[t, -3.3e-145], N[(N[(N[(t + y), $MachinePrecision] * x), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[t, 5.6e+50], N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot t}{z - 1}\\
\mathbf{if}\;t \leq -4.3 \cdot 10^{+166}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -3.3 \cdot 10^{-145}:\\
\;\;\;\;\frac{\left(t + y\right) \cdot x}{z}\\
\mathbf{elif}\;t \leq 5.6 \cdot 10^{+50}:\\
\;\;\;\;\frac{y}{z} \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.3e166 or 5.5999999999999996e50 < t Initial program 96.4%
Taylor expanded in t around inf
mul-1-negN/A
distribute-neg-frac2N/A
lower-/.f64N/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
lower--.f6470.7
Applied rewrites70.7%
if -4.3e166 < t < -3.29999999999999981e-145Initial program 98.0%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6497.8
Applied rewrites97.8%
Taylor expanded in z around inf
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-+.f6482.4
Applied rewrites82.4%
if -3.29999999999999981e-145 < t < 5.5999999999999996e50Initial program 93.3%
Taylor expanded in t around 0
lower-/.f6485.6
Applied rewrites85.6%
Final simplification80.0%
(FPCore (x y z t)
:precision binary64
(if (<= t -4.5e+174)
(* (- x) t)
(if (<= t 9.2e-194)
(/ (* x y) z)
(if (<= t 7.4e+58) (* (/ x z) y) (* (/ t z) x)))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -4.5e+174) {
tmp = -x * t;
} else if (t <= 9.2e-194) {
tmp = (x * y) / z;
} else if (t <= 7.4e+58) {
tmp = (x / z) * y;
} else {
tmp = (t / z) * 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 (t <= (-4.5d+174)) then
tmp = -x * t
else if (t <= 9.2d-194) then
tmp = (x * y) / z
else if (t <= 7.4d+58) then
tmp = (x / z) * y
else
tmp = (t / z) * x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -4.5e+174) {
tmp = -x * t;
} else if (t <= 9.2e-194) {
tmp = (x * y) / z;
} else if (t <= 7.4e+58) {
tmp = (x / z) * y;
} else {
tmp = (t / z) * x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -4.5e+174: tmp = -x * t elif t <= 9.2e-194: tmp = (x * y) / z elif t <= 7.4e+58: tmp = (x / z) * y else: tmp = (t / z) * x return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -4.5e+174) tmp = Float64(Float64(-x) * t); elseif (t <= 9.2e-194) tmp = Float64(Float64(x * y) / z); elseif (t <= 7.4e+58) tmp = Float64(Float64(x / z) * y); else tmp = Float64(Float64(t / z) * x); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -4.5e+174) tmp = -x * t; elseif (t <= 9.2e-194) tmp = (x * y) / z; elseif (t <= 7.4e+58) tmp = (x / z) * y; else tmp = (t / z) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -4.5e+174], N[((-x) * t), $MachinePrecision], If[LessEqual[t, 9.2e-194], N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[t, 7.4e+58], N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision], N[(N[(t / z), $MachinePrecision] * x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.5 \cdot 10^{+174}:\\
\;\;\;\;\left(-x\right) \cdot t\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{-194}:\\
\;\;\;\;\frac{x \cdot y}{z}\\
\mathbf{elif}\;t \leq 7.4 \cdot 10^{+58}:\\
\;\;\;\;\frac{x}{z} \cdot y\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{z} \cdot x\\
\end{array}
\end{array}
if t < -4.50000000000000042e174Initial program 97.2%
Taylor expanded in t around inf
mul-1-negN/A
distribute-neg-frac2N/A
lower-/.f64N/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
lower--.f6473.0
Applied rewrites73.0%
Taylor expanded in z around 0
Applied rewrites59.1%
if -4.50000000000000042e174 < t < 9.2000000000000001e-194Initial program 94.7%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f6477.8
Applied rewrites77.8%
if 9.2000000000000001e-194 < t < 7.4000000000000004e58Initial program 93.6%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f6470.8
Applied rewrites70.8%
Applied rewrites80.1%
if 7.4000000000000004e58 < t Initial program 97.7%
Taylor expanded in z around inf
lower-/.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-+.f6464.5
Applied rewrites64.5%
Taylor expanded in t around inf
Applied rewrites56.3%
Final simplification71.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (- x) t)))
(if (<= t -4.5e+174)
t_1
(if (<= t 9.2e-194)
(/ (* x y) z)
(if (<= t 1.2e+143) (* (/ x z) y) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = -x * t;
double tmp;
if (t <= -4.5e+174) {
tmp = t_1;
} else if (t <= 9.2e-194) {
tmp = (x * y) / z;
} else if (t <= 1.2e+143) {
tmp = (x / z) * y;
} else {
tmp = t_1;
}
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 = -x * t
if (t <= (-4.5d+174)) then
tmp = t_1
else if (t <= 9.2d-194) then
tmp = (x * y) / z
else if (t <= 1.2d+143) then
tmp = (x / z) * y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = -x * t;
double tmp;
if (t <= -4.5e+174) {
tmp = t_1;
} else if (t <= 9.2e-194) {
tmp = (x * y) / z;
} else if (t <= 1.2e+143) {
tmp = (x / z) * y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = -x * t tmp = 0 if t <= -4.5e+174: tmp = t_1 elif t <= 9.2e-194: tmp = (x * y) / z elif t <= 1.2e+143: tmp = (x / z) * y else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(-x) * t) tmp = 0.0 if (t <= -4.5e+174) tmp = t_1; elseif (t <= 9.2e-194) tmp = Float64(Float64(x * y) / z); elseif (t <= 1.2e+143) tmp = Float64(Float64(x / z) * y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = -x * t; tmp = 0.0; if (t <= -4.5e+174) tmp = t_1; elseif (t <= 9.2e-194) tmp = (x * y) / z; elseif (t <= 1.2e+143) tmp = (x / z) * y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[((-x) * t), $MachinePrecision]}, If[LessEqual[t, -4.5e+174], t$95$1, If[LessEqual[t, 9.2e-194], N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[t, 1.2e+143], N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-x\right) \cdot t\\
\mathbf{if}\;t \leq -4.5 \cdot 10^{+174}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{-194}:\\
\;\;\;\;\frac{x \cdot y}{z}\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{+143}:\\
\;\;\;\;\frac{x}{z} \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.50000000000000042e174 or 1.1999999999999999e143 < t Initial program 96.9%
Taylor expanded in t around inf
mul-1-negN/A
distribute-neg-frac2N/A
lower-/.f64N/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
lower--.f6476.2
Applied rewrites76.2%
Taylor expanded in z around 0
Applied rewrites52.1%
if -4.50000000000000042e174 < t < 9.2000000000000001e-194Initial program 94.7%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f6477.8
Applied rewrites77.8%
if 9.2000000000000001e-194 < t < 1.1999999999999999e143Initial program 94.9%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f6465.5
Applied rewrites65.5%
Applied rewrites72.7%
Final simplification69.7%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (/ (+ t y) z) x))) (if (<= z -1.0) t_1 (if (<= z 2.4e-9) (* (- (/ y z) t) x) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = ((t + y) / z) * x;
double tmp;
if (z <= -1.0) {
tmp = t_1;
} else if (z <= 2.4e-9) {
tmp = ((y / z) - t) * x;
} else {
tmp = t_1;
}
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 = ((t + y) / z) * x
if (z <= (-1.0d0)) then
tmp = t_1
else if (z <= 2.4d-9) then
tmp = ((y / z) - t) * x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = ((t + y) / z) * x;
double tmp;
if (z <= -1.0) {
tmp = t_1;
} else if (z <= 2.4e-9) {
tmp = ((y / z) - t) * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = ((t + y) / z) * x tmp = 0 if z <= -1.0: tmp = t_1 elif z <= 2.4e-9: tmp = ((y / z) - t) * x else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(Float64(t + y) / z) * x) tmp = 0.0 if (z <= -1.0) tmp = t_1; elseif (z <= 2.4e-9) tmp = Float64(Float64(Float64(y / z) - t) * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = ((t + y) / z) * x; tmp = 0.0; if (z <= -1.0) tmp = t_1; elseif (z <= 2.4e-9) tmp = ((y / z) - t) * x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(t + y), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[z, -1.0], t$95$1, If[LessEqual[z, 2.4e-9], N[(N[(N[(y / z), $MachinePrecision] - t), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + y}{z} \cdot x\\
\mathbf{if}\;z \leq -1:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-9}:\\
\;\;\;\;\left(\frac{y}{z} - t\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1 or 2.4e-9 < z Initial program 98.2%
Taylor expanded in z around inf
lower-/.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-+.f6497.5
Applied rewrites97.5%
if -1 < z < 2.4e-9Initial program 92.3%
Taylor expanded in z around 0
lower-/.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-*.f6492.2
Applied rewrites92.2%
Taylor expanded in t around 0
Applied rewrites92.3%
Final simplification95.0%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (/ (* (+ t y) x) z))) (if (<= z -1.1) t_1 (if (<= z 2.4e-9) (* (- (/ y z) t) x) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = ((t + y) * x) / z;
double tmp;
if (z <= -1.1) {
tmp = t_1;
} else if (z <= 2.4e-9) {
tmp = ((y / z) - t) * x;
} else {
tmp = t_1;
}
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 = ((t + y) * x) / z
if (z <= (-1.1d0)) then
tmp = t_1
else if (z <= 2.4d-9) then
tmp = ((y / z) - t) * x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = ((t + y) * x) / z;
double tmp;
if (z <= -1.1) {
tmp = t_1;
} else if (z <= 2.4e-9) {
tmp = ((y / z) - t) * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = ((t + y) * x) / z tmp = 0 if z <= -1.1: tmp = t_1 elif z <= 2.4e-9: tmp = ((y / z) - t) * x else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(Float64(t + y) * x) / z) tmp = 0.0 if (z <= -1.1) tmp = t_1; elseif (z <= 2.4e-9) tmp = Float64(Float64(Float64(y / z) - t) * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = ((t + y) * x) / z; tmp = 0.0; if (z <= -1.1) tmp = t_1; elseif (z <= 2.4e-9) tmp = ((y / z) - t) * x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(t + y), $MachinePrecision] * x), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -1.1], t$95$1, If[LessEqual[z, 2.4e-9], N[(N[(N[(y / z), $MachinePrecision] - t), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\left(t + y\right) \cdot x}{z}\\
\mathbf{if}\;z \leq -1.1:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-9}:\\
\;\;\;\;\left(\frac{y}{z} - t\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.1000000000000001 or 2.4e-9 < z Initial program 98.2%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6497.4
Applied rewrites97.4%
Taylor expanded in z around inf
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-+.f6481.9
Applied rewrites81.9%
if -1.1000000000000001 < z < 2.4e-9Initial program 92.3%
Taylor expanded in z around 0
lower-/.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-*.f6492.2
Applied rewrites92.2%
Taylor expanded in t around 0
Applied rewrites92.3%
Final simplification86.9%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (/ (* x t) (- z 1.0)))) (if (<= t -2.25e+166) t_1 (if (<= t 5.6e+50) (* (/ y z) x) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (x * t) / (z - 1.0);
double tmp;
if (t <= -2.25e+166) {
tmp = t_1;
} else if (t <= 5.6e+50) {
tmp = (y / z) * x;
} else {
tmp = t_1;
}
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 = (x * t) / (z - 1.0d0)
if (t <= (-2.25d+166)) then
tmp = t_1
else if (t <= 5.6d+50) then
tmp = (y / z) * x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (x * t) / (z - 1.0);
double tmp;
if (t <= -2.25e+166) {
tmp = t_1;
} else if (t <= 5.6e+50) {
tmp = (y / z) * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (x * t) / (z - 1.0) tmp = 0 if t <= -2.25e+166: tmp = t_1 elif t <= 5.6e+50: tmp = (y / z) * x else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x * t) / Float64(z - 1.0)) tmp = 0.0 if (t <= -2.25e+166) tmp = t_1; elseif (t <= 5.6e+50) tmp = Float64(Float64(y / z) * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x * t) / (z - 1.0); tmp = 0.0; if (t <= -2.25e+166) tmp = t_1; elseif (t <= 5.6e+50) tmp = (y / z) * x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * t), $MachinePrecision] / N[(z - 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.25e+166], t$95$1, If[LessEqual[t, 5.6e+50], N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot t}{z - 1}\\
\mathbf{if}\;t \leq -2.25 \cdot 10^{+166}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.6 \cdot 10^{+50}:\\
\;\;\;\;\frac{y}{z} \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.25000000000000015e166 or 5.5999999999999996e50 < t Initial program 96.4%
Taylor expanded in t around inf
mul-1-negN/A
distribute-neg-frac2N/A
lower-/.f64N/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
lower--.f6470.7
Applied rewrites70.7%
if -2.25000000000000015e166 < t < 5.5999999999999996e50Initial program 94.8%
Taylor expanded in t around 0
lower-/.f6479.3
Applied rewrites79.3%
Final simplification76.5%
(FPCore (x y z t) :precision binary64 (if (<= t -1.8e+167) (* (- x) t) (if (<= t 7.4e+58) (* (/ y z) x) (* (/ t z) x))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1.8e+167) {
tmp = -x * t;
} else if (t <= 7.4e+58) {
tmp = (y / z) * x;
} else {
tmp = (t / z) * 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 (t <= (-1.8d+167)) then
tmp = -x * t
else if (t <= 7.4d+58) then
tmp = (y / z) * x
else
tmp = (t / z) * x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1.8e+167) {
tmp = -x * t;
} else if (t <= 7.4e+58) {
tmp = (y / z) * x;
} else {
tmp = (t / z) * x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -1.8e+167: tmp = -x * t elif t <= 7.4e+58: tmp = (y / z) * x else: tmp = (t / z) * x return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -1.8e+167) tmp = Float64(Float64(-x) * t); elseif (t <= 7.4e+58) tmp = Float64(Float64(y / z) * x); else tmp = Float64(Float64(t / z) * x); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -1.8e+167) tmp = -x * t; elseif (t <= 7.4e+58) tmp = (y / z) * x; else tmp = (t / z) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -1.8e+167], N[((-x) * t), $MachinePrecision], If[LessEqual[t, 7.4e+58], N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision], N[(N[(t / z), $MachinePrecision] * x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.8 \cdot 10^{+167}:\\
\;\;\;\;\left(-x\right) \cdot t\\
\mathbf{elif}\;t \leq 7.4 \cdot 10^{+58}:\\
\;\;\;\;\frac{y}{z} \cdot x\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{z} \cdot x\\
\end{array}
\end{array}
if t < -1.80000000000000012e167Initial program 94.8%
Taylor expanded in t around inf
mul-1-negN/A
distribute-neg-frac2N/A
lower-/.f64N/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
lower--.f6470.0
Applied rewrites70.0%
Taylor expanded in z around 0
Applied rewrites56.9%
if -1.80000000000000012e167 < t < 7.4000000000000004e58Initial program 94.8%
Taylor expanded in t around 0
lower-/.f6478.9
Applied rewrites78.9%
if 7.4000000000000004e58 < t Initial program 97.7%
Taylor expanded in z around inf
lower-/.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-+.f6464.5
Applied rewrites64.5%
Taylor expanded in t around inf
Applied rewrites56.3%
Final simplification71.6%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (- x) t))) (if (<= t -1.6e+178) t_1 (if (<= t 1.2e+143) (* (/ x z) y) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = -x * t;
double tmp;
if (t <= -1.6e+178) {
tmp = t_1;
} else if (t <= 1.2e+143) {
tmp = (x / z) * y;
} else {
tmp = t_1;
}
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 = -x * t
if (t <= (-1.6d+178)) then
tmp = t_1
else if (t <= 1.2d+143) then
tmp = (x / z) * y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = -x * t;
double tmp;
if (t <= -1.6e+178) {
tmp = t_1;
} else if (t <= 1.2e+143) {
tmp = (x / z) * y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = -x * t tmp = 0 if t <= -1.6e+178: tmp = t_1 elif t <= 1.2e+143: tmp = (x / z) * y else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(-x) * t) tmp = 0.0 if (t <= -1.6e+178) tmp = t_1; elseif (t <= 1.2e+143) tmp = Float64(Float64(x / z) * y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = -x * t; tmp = 0.0; if (t <= -1.6e+178) tmp = t_1; elseif (t <= 1.2e+143) tmp = (x / z) * y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[((-x) * t), $MachinePrecision]}, If[LessEqual[t, -1.6e+178], t$95$1, If[LessEqual[t, 1.2e+143], N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-x\right) \cdot t\\
\mathbf{if}\;t \leq -1.6 \cdot 10^{+178}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{+143}:\\
\;\;\;\;\frac{x}{z} \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.6e178 or 1.1999999999999999e143 < t Initial program 96.9%
Taylor expanded in t around inf
mul-1-negN/A
distribute-neg-frac2N/A
lower-/.f64N/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
lower--.f6476.2
Applied rewrites76.2%
Taylor expanded in z around 0
Applied rewrites52.1%
if -1.6e178 < t < 1.1999999999999999e143Initial program 94.8%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f6472.7
Applied rewrites72.7%
Applied rewrites72.5%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (/ x z) t))) (if (<= z -0.013) t_1 (if (<= z 1.0) (* (- (fma t z t)) x) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (x / z) * t;
double tmp;
if (z <= -0.013) {
tmp = t_1;
} else if (z <= 1.0) {
tmp = -fma(t, z, t) * x;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t) t_1 = Float64(Float64(x / z) * t) tmp = 0.0 if (z <= -0.013) tmp = t_1; elseif (z <= 1.0) tmp = Float64(Float64(-fma(t, z, t)) * x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / z), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[z, -0.013], t$95$1, If[LessEqual[z, 1.0], N[((-N[(t * z + t), $MachinePrecision]) * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{z} \cdot t\\
\mathbf{if}\;z \leq -0.013:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1:\\
\;\;\;\;\left(-\mathsf{fma}\left(t, z, t\right)\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -0.0129999999999999994 or 1 < z Initial program 98.2%
Taylor expanded in t around inf
mul-1-negN/A
distribute-neg-frac2N/A
lower-/.f64N/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
lower--.f6450.2
Applied rewrites50.2%
Taylor expanded in z around inf
Applied rewrites52.6%
if -0.0129999999999999994 < z < 1Initial program 92.4%
Taylor expanded in t around inf
mul-1-negN/A
distribute-neg-frac2N/A
lower-/.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
lower--.f6429.6
Applied rewrites29.6%
Taylor expanded in z around 0
Applied rewrites29.6%
Final simplification41.3%
(FPCore (x y z t) :precision binary64 (* (- x) t))
double code(double x, double y, double z, double t) {
return -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 = -x * t
end function
public static double code(double x, double y, double z, double t) {
return -x * t;
}
def code(x, y, z, t): return -x * t
function code(x, y, z, t) return Float64(Float64(-x) * t) end
function tmp = code(x, y, z, t) tmp = -x * t; end
code[x_, y_, z_, t_] := N[((-x) * t), $MachinePrecision]
\begin{array}{l}
\\
\left(-x\right) \cdot t
\end{array}
Initial program 95.3%
Taylor expanded in t around inf
mul-1-negN/A
distribute-neg-frac2N/A
lower-/.f64N/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
lower--.f6440.1
Applied rewrites40.1%
Taylor expanded in z around 0
Applied rewrites21.3%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (- (/ y z) (* t (/ 1.0 (- 1.0 z))))))
(t_2 (* x (- (/ y z) (/ t (- 1.0 z))))))
(if (< t_2 -7.623226303312042e-196)
t_1
(if (< t_2 1.4133944927702302e-211)
(+ (/ (* y x) z) (- (/ (* t x) (- 1.0 z))))
t_1))))
double code(double x, double y, double z, double t) {
double t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z))));
double t_2 = x * ((y / z) - (t / (1.0 - z)));
double tmp;
if (t_2 < -7.623226303312042e-196) {
tmp = t_1;
} else if (t_2 < 1.4133944927702302e-211) {
tmp = ((y * x) / z) + -((t * x) / (1.0 - z));
} else {
tmp = t_1;
}
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) :: t_2
real(8) :: tmp
t_1 = x * ((y / z) - (t * (1.0d0 / (1.0d0 - z))))
t_2 = x * ((y / z) - (t / (1.0d0 - z)))
if (t_2 < (-7.623226303312042d-196)) then
tmp = t_1
else if (t_2 < 1.4133944927702302d-211) then
tmp = ((y * x) / z) + -((t * x) / (1.0d0 - z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z))));
double t_2 = x * ((y / z) - (t / (1.0 - z)));
double tmp;
if (t_2 < -7.623226303312042e-196) {
tmp = t_1;
} else if (t_2 < 1.4133944927702302e-211) {
tmp = ((y * x) / z) + -((t * x) / (1.0 - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z)))) t_2 = x * ((y / z) - (t / (1.0 - z))) tmp = 0 if t_2 < -7.623226303312042e-196: tmp = t_1 elif t_2 < 1.4133944927702302e-211: tmp = ((y * x) / z) + -((t * x) / (1.0 - z)) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(Float64(y / z) - Float64(t * Float64(1.0 / Float64(1.0 - z))))) t_2 = Float64(x * Float64(Float64(y / z) - Float64(t / Float64(1.0 - z)))) tmp = 0.0 if (t_2 < -7.623226303312042e-196) tmp = t_1; elseif (t_2 < 1.4133944927702302e-211) tmp = Float64(Float64(Float64(y * x) / z) + Float64(-Float64(Float64(t * x) / Float64(1.0 - z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z)))); t_2 = x * ((y / z) - (t / (1.0 - z))); tmp = 0.0; if (t_2 < -7.623226303312042e-196) tmp = t_1; elseif (t_2 < 1.4133944927702302e-211) tmp = ((y * x) / z) + -((t * x) / (1.0 - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(N[(y / z), $MachinePrecision] - N[(t * N[(1.0 / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$2, -7.623226303312042e-196], t$95$1, If[Less[t$95$2, 1.4133944927702302e-211], N[(N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision] + (-N[(N[(t * x), $MachinePrecision] / N[(1.0 - z), $MachinePrecision]), $MachinePrecision])), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(\frac{y}{z} - t \cdot \frac{1}{1 - z}\right)\\
t_2 := x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)\\
\mathbf{if}\;t\_2 < -7.623226303312042 \cdot 10^{-196}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 < 1.4133944927702302 \cdot 10^{-211}:\\
\;\;\;\;\frac{y \cdot x}{z} + \left(-\frac{t \cdot x}{1 - z}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024255
(FPCore (x y z t)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, C"
:precision binary64
:alt
(! :herbie-platform default (if (< (* x (- (/ y z) (/ t (- 1 z)))) -3811613151656021/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (* x (- (/ y z) (* t (/ 1 (- 1 z))))) (if (< (* x (- (/ y z) (/ t (- 1 z)))) 7066972463851151/50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (/ (* y x) z) (- (/ (* t x) (- 1 z)))) (* x (- (/ y z) (* t (/ 1 (- 1 z))))))))
(* x (- (/ y z) (/ t (- 1.0 z)))))