
(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 13 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 (- INFINITY))
(/ y (/ z x))
(if (<= t_1 1e+294) (* x t_1) (* (/ x z) y)))))
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 = y / (z / x);
} else if (t_1 <= 1e+294) {
tmp = x * t_1;
} else {
tmp = (x / z) * y;
}
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 = y / (z / x);
} else if (t_1 <= 1e+294) {
tmp = x * t_1;
} else {
tmp = (x / z) * y;
}
return tmp;
}
def code(x, y, z, t): t_1 = (y / z) - (t / (1.0 - z)) tmp = 0 if t_1 <= -math.inf: tmp = y / (z / x) elif t_1 <= 1e+294: tmp = x * t_1 else: tmp = (x / z) * y 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(y / Float64(z / x)); elseif (t_1 <= 1e+294) tmp = Float64(x * t_1); else tmp = Float64(Float64(x / z) * y); 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 = y / (z / x); elseif (t_1 <= 1e+294) tmp = x * t_1; else tmp = (x / z) * y; 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[(y / N[(z / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+294], N[(x * t$95$1), $MachinePrecision], N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{z} - \frac{t}{1 - z}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{y}{\frac{z}{x}}\\
\mathbf{elif}\;t\_1 \leq 10^{+294}:\\
\;\;\;\;x \cdot t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z} \cdot y\\
\end{array}
\end{array}
if (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z))) < -inf.0Initial program 34.3%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f6499.8
Applied rewrites99.8%
Applied rewrites99.6%
Applied rewrites100.0%
if -inf.0 < (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z))) < 1.00000000000000007e294Initial program 99.6%
if 1.00000000000000007e294 < (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z))) Initial program 70.2%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f6499.9
Applied rewrites99.9%
Applied rewrites99.9%
(FPCore (x y z t) :precision binary64 (if (<= z -0.75) (* (- (/ y z) (/ t (- z))) x) (if (<= z 1.65e-6) (* (- (/ y z) (fma t z t)) x) (* (/ (+ t y) z) x))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -0.75) {
tmp = ((y / z) - (t / -z)) * x;
} else if (z <= 1.65e-6) {
tmp = ((y / z) - fma(t, z, t)) * x;
} else {
tmp = ((t + y) / z) * x;
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (z <= -0.75) tmp = Float64(Float64(Float64(y / z) - Float64(t / Float64(-z))) * x); elseif (z <= 1.65e-6) tmp = Float64(Float64(Float64(y / z) - fma(t, z, t)) * x); else tmp = Float64(Float64(Float64(t + y) / z) * x); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[z, -0.75], N[(N[(N[(y / z), $MachinePrecision] - N[(t / (-z)), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 1.65e-6], N[(N[(N[(y / z), $MachinePrecision] - N[(t * z + t), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[(N[(t + y), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.75:\\
\;\;\;\;\left(\frac{y}{z} - \frac{t}{-z}\right) \cdot x\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-6}:\\
\;\;\;\;\left(\frac{y}{z} - \mathsf{fma}\left(t, z, t\right)\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y}{z} \cdot x\\
\end{array}
\end{array}
if z < -0.75Initial program 99.7%
Taylor expanded in z around inf
mul-1-negN/A
lower-neg.f6497.9
Applied rewrites97.9%
if -0.75 < z < 1.65000000000000008e-6Initial program 89.2%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6488.0
Applied rewrites88.0%
if 1.65000000000000008e-6 < z Initial program 99.2%
Taylor expanded in z around inf
lower-/.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-+.f6498.0
Applied rewrites98.0%
Final simplification93.1%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (/ (+ t y) z) x)))
(if (<= z -0.75)
t_1
(if (<= z 1.65e-6) (* (- (/ y z) (fma t 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 <= -0.75) {
tmp = t_1;
} else if (z <= 1.65e-6) {
tmp = ((y / z) - fma(t, 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 <= -0.75) tmp = t_1; elseif (z <= 1.65e-6) tmp = Float64(Float64(Float64(y / z) - fma(t, z, t)) * x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(t + y), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[z, -0.75], t$95$1, If[LessEqual[z, 1.65e-6], N[(N[(N[(y / z), $MachinePrecision] - N[(t * z + t), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + y}{z} \cdot x\\
\mathbf{if}\;z \leq -0.75:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-6}:\\
\;\;\;\;\left(\frac{y}{z} - \mathsf{fma}\left(t, z, t\right)\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -0.75 or 1.65000000000000008e-6 < z Initial program 99.5%
Taylor expanded in z around inf
lower-/.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-+.f6497.9
Applied rewrites97.9%
if -0.75 < z < 1.65000000000000008e-6Initial program 89.2%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6488.0
Applied rewrites88.0%
Final simplification93.1%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (/ (+ t y) z) x))) (if (<= z -1.0) t_1 (if (<= z 1.65e-6) (* (/ (- y (* t z)) z) 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 <= 1.65e-6) {
tmp = ((y - (t * z)) / 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 = ((t + y) / z) * x
if (z <= (-1.0d0)) then
tmp = t_1
else if (z <= 1.65d-6) then
tmp = ((y - (t * z)) / 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 = ((t + y) / z) * x;
double tmp;
if (z <= -1.0) {
tmp = t_1;
} else if (z <= 1.65e-6) {
tmp = ((y - (t * z)) / z) * 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 <= 1.65e-6: tmp = ((y - (t * z)) / z) * 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 <= 1.65e-6) tmp = Float64(Float64(Float64(y - Float64(t * z)) / z) * 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 <= 1.65e-6) tmp = ((y - (t * z)) / z) * 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, 1.65e-6], N[(N[(N[(y - N[(t * z), $MachinePrecision]), $MachinePrecision] / z), $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 1.65 \cdot 10^{-6}:\\
\;\;\;\;\frac{y - t \cdot z}{z} \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1 or 1.65000000000000008e-6 < z Initial program 99.5%
Taylor expanded in z around inf
lower-/.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-+.f6497.9
Applied rewrites97.9%
if -1 < z < 1.65000000000000008e-6Initial program 89.2%
Taylor expanded in z around 0
lower-/.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-*.f6487.0
Applied rewrites87.0%
Final simplification92.6%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (/ (+ t y) z) x))) (if (<= y -5.2e-86) t_1 (if (<= y 6e-158) (* (/ t (- z 1.0)) x) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = ((t + y) / z) * x;
double tmp;
if (y <= -5.2e-86) {
tmp = t_1;
} else if (y <= 6e-158) {
tmp = (t / (z - 1.0)) * 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 (y <= (-5.2d-86)) then
tmp = t_1
else if (y <= 6d-158) then
tmp = (t / (z - 1.0d0)) * 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 (y <= -5.2e-86) {
tmp = t_1;
} else if (y <= 6e-158) {
tmp = (t / (z - 1.0)) * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = ((t + y) / z) * x tmp = 0 if y <= -5.2e-86: tmp = t_1 elif y <= 6e-158: tmp = (t / (z - 1.0)) * 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 (y <= -5.2e-86) tmp = t_1; elseif (y <= 6e-158) tmp = Float64(Float64(t / Float64(z - 1.0)) * 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 (y <= -5.2e-86) tmp = t_1; elseif (y <= 6e-158) tmp = (t / (z - 1.0)) * 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[y, -5.2e-86], t$95$1, If[LessEqual[y, 6e-158], N[(N[(t / N[(z - 1.0), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + y}{z} \cdot x\\
\mathbf{if}\;y \leq -5.2 \cdot 10^{-86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-158}:\\
\;\;\;\;\frac{t}{z - 1} \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.2000000000000002e-86 or 6e-158 < y Initial program 92.3%
Taylor expanded in z around inf
lower-/.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-+.f6481.9
Applied rewrites81.9%
if -5.2000000000000002e-86 < y < 6e-158Initial program 99.8%
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--.f6493.3
Applied rewrites93.3%
Final simplification85.2%
(FPCore (x y z t) :precision binary64 (if (<= y -2.45e-81) (* (/ y z) x) (if (<= y 1.7e-155) (* (/ t (- z 1.0)) x) (/ (* (+ t y) x) z))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.45e-81) {
tmp = (y / z) * x;
} else if (y <= 1.7e-155) {
tmp = (t / (z - 1.0)) * x;
} else {
tmp = ((t + y) * x) / 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 (y <= (-2.45d-81)) then
tmp = (y / z) * x
else if (y <= 1.7d-155) then
tmp = (t / (z - 1.0d0)) * x
else
tmp = ((t + y) * x) / z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.45e-81) {
tmp = (y / z) * x;
} else if (y <= 1.7e-155) {
tmp = (t / (z - 1.0)) * x;
} else {
tmp = ((t + y) * x) / z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.45e-81: tmp = (y / z) * x elif y <= 1.7e-155: tmp = (t / (z - 1.0)) * x else: tmp = ((t + y) * x) / z return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.45e-81) tmp = Float64(Float64(y / z) * x); elseif (y <= 1.7e-155) tmp = Float64(Float64(t / Float64(z - 1.0)) * x); else tmp = Float64(Float64(Float64(t + y) * x) / z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.45e-81) tmp = (y / z) * x; elseif (y <= 1.7e-155) tmp = (t / (z - 1.0)) * x; else tmp = ((t + y) * x) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.45e-81], N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, 1.7e-155], N[(N[(t / N[(z - 1.0), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[(N[(t + y), $MachinePrecision] * x), $MachinePrecision] / z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.45 \cdot 10^{-81}:\\
\;\;\;\;\frac{y}{z} \cdot x\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{-155}:\\
\;\;\;\;\frac{t}{z - 1} \cdot x\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(t + y\right) \cdot x}{z}\\
\end{array}
\end{array}
if y < -2.4500000000000001e-81Initial program 92.8%
Taylor expanded in t around 0
lower-/.f6482.2
Applied rewrites82.2%
if -2.4500000000000001e-81 < y < 1.7e-155Initial program 99.8%
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--.f6493.4
Applied rewrites93.4%
if 1.7e-155 < y Initial program 91.7%
Taylor expanded in z around inf
Applied rewrites62.5%
Taylor expanded in z around inf
Applied rewrites79.4%
Final simplification84.4%
(FPCore (x y z t) :precision binary64 (if (<= y -2.45e-81) (* (/ y z) x) (if (<= y 6e-158) (/ (* x t) (- z 1.0)) (/ (* (+ t y) x) z))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.45e-81) {
tmp = (y / z) * x;
} else if (y <= 6e-158) {
tmp = (x * t) / (z - 1.0);
} else {
tmp = ((t + y) * x) / 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 (y <= (-2.45d-81)) then
tmp = (y / z) * x
else if (y <= 6d-158) then
tmp = (x * t) / (z - 1.0d0)
else
tmp = ((t + y) * x) / z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.45e-81) {
tmp = (y / z) * x;
} else if (y <= 6e-158) {
tmp = (x * t) / (z - 1.0);
} else {
tmp = ((t + y) * x) / z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.45e-81: tmp = (y / z) * x elif y <= 6e-158: tmp = (x * t) / (z - 1.0) else: tmp = ((t + y) * x) / z return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.45e-81) tmp = Float64(Float64(y / z) * x); elseif (y <= 6e-158) tmp = Float64(Float64(x * t) / Float64(z - 1.0)); else tmp = Float64(Float64(Float64(t + y) * x) / z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.45e-81) tmp = (y / z) * x; elseif (y <= 6e-158) tmp = (x * t) / (z - 1.0); else tmp = ((t + y) * x) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.45e-81], N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, 6e-158], N[(N[(x * t), $MachinePrecision] / N[(z - 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(N[(t + y), $MachinePrecision] * x), $MachinePrecision] / z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.45 \cdot 10^{-81}:\\
\;\;\;\;\frac{y}{z} \cdot x\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-158}:\\
\;\;\;\;\frac{x \cdot t}{z - 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(t + y\right) \cdot x}{z}\\
\end{array}
\end{array}
if y < -2.4500000000000001e-81Initial program 92.8%
Taylor expanded in t around 0
lower-/.f6482.2
Applied rewrites82.2%
if -2.4500000000000001e-81 < y < 6e-158Initial program 99.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--.f6487.0
Applied rewrites87.0%
if 6e-158 < y Initial program 91.8%
Taylor expanded in z around inf
Applied rewrites62.8%
Taylor expanded in z around inf
Applied rewrites79.6%
Final simplification82.6%
(FPCore (x y z t) :precision binary64 (if (<= y -2.45e-81) (* (/ y z) x) (if (<= y 3.6e-91) (/ (* x t) (- z 1.0)) (/ (* x y) z))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.45e-81) {
tmp = (y / z) * x;
} else if (y <= 3.6e-91) {
tmp = (x * t) / (z - 1.0);
} else {
tmp = (x * y) / 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 (y <= (-2.45d-81)) then
tmp = (y / z) * x
else if (y <= 3.6d-91) then
tmp = (x * t) / (z - 1.0d0)
else
tmp = (x * y) / z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.45e-81) {
tmp = (y / z) * x;
} else if (y <= 3.6e-91) {
tmp = (x * t) / (z - 1.0);
} else {
tmp = (x * y) / z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.45e-81: tmp = (y / z) * x elif y <= 3.6e-91: tmp = (x * t) / (z - 1.0) else: tmp = (x * y) / z return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.45e-81) tmp = Float64(Float64(y / z) * x); elseif (y <= 3.6e-91) tmp = Float64(Float64(x * t) / Float64(z - 1.0)); else tmp = Float64(Float64(x * y) / z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.45e-81) tmp = (y / z) * x; elseif (y <= 3.6e-91) tmp = (x * t) / (z - 1.0); else tmp = (x * y) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.45e-81], N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, 3.6e-91], N[(N[(x * t), $MachinePrecision] / N[(z - 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.45 \cdot 10^{-81}:\\
\;\;\;\;\frac{y}{z} \cdot x\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{-91}:\\
\;\;\;\;\frac{x \cdot t}{z - 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot y}{z}\\
\end{array}
\end{array}
if y < -2.4500000000000001e-81Initial program 92.8%
Taylor expanded in t around 0
lower-/.f6482.2
Applied rewrites82.2%
if -2.4500000000000001e-81 < y < 3.6e-91Initial program 99.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--.f6483.7
Applied rewrites83.7%
if 3.6e-91 < y Initial program 90.4%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f6473.5
Applied rewrites73.5%
Final simplification79.8%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (/ t z) x))) (if (<= t -2.1e+119) t_1 (if (<= t 4.5e+118) (* (/ y z) x) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (t / z) * x;
double tmp;
if (t <= -2.1e+119) {
tmp = t_1;
} else if (t <= 4.5e+118) {
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 = (t / z) * x
if (t <= (-2.1d+119)) then
tmp = t_1
else if (t <= 4.5d+118) 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 = (t / z) * x;
double tmp;
if (t <= -2.1e+119) {
tmp = t_1;
} else if (t <= 4.5e+118) {
tmp = (y / z) * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (t / z) * x tmp = 0 if t <= -2.1e+119: tmp = t_1 elif t <= 4.5e+118: tmp = (y / z) * x else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(t / z) * x) tmp = 0.0 if (t <= -2.1e+119) tmp = t_1; elseif (t <= 4.5e+118) tmp = Float64(Float64(y / z) * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (t / z) * x; tmp = 0.0; if (t <= -2.1e+119) tmp = t_1; elseif (t <= 4.5e+118) tmp = (y / z) * x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(t / z), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[t, -2.1e+119], t$95$1, If[LessEqual[t, 4.5e+118], N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{z} \cdot x\\
\mathbf{if}\;t \leq -2.1 \cdot 10^{+119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{+118}:\\
\;\;\;\;\frac{y}{z} \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.09999999999999983e119 or 4.50000000000000002e118 < t Initial program 95.6%
Taylor expanded in z around inf
lower-/.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-+.f6459.1
Applied rewrites59.1%
Taylor expanded in t around inf
Applied rewrites55.1%
if -2.09999999999999983e119 < t < 4.50000000000000002e118Initial program 94.0%
Taylor expanded in t around 0
lower-/.f6475.7
Applied rewrites75.7%
Final simplification70.1%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (/ t z) x))) (if (<= t -1.7e+120) t_1 (if (<= t 1.9e+118) (/ (* x y) z) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (t / z) * x;
double tmp;
if (t <= -1.7e+120) {
tmp = t_1;
} else if (t <= 1.9e+118) {
tmp = (x * y) / 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) :: tmp
t_1 = (t / z) * x
if (t <= (-1.7d+120)) then
tmp = t_1
else if (t <= 1.9d+118) then
tmp = (x * y) / 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 = (t / z) * x;
double tmp;
if (t <= -1.7e+120) {
tmp = t_1;
} else if (t <= 1.9e+118) {
tmp = (x * y) / z;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (t / z) * x tmp = 0 if t <= -1.7e+120: tmp = t_1 elif t <= 1.9e+118: tmp = (x * y) / z else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(t / z) * x) tmp = 0.0 if (t <= -1.7e+120) tmp = t_1; elseif (t <= 1.9e+118) tmp = Float64(Float64(x * y) / z); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (t / z) * x; tmp = 0.0; if (t <= -1.7e+120) tmp = t_1; elseif (t <= 1.9e+118) tmp = (x * y) / z; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(t / z), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[t, -1.7e+120], t$95$1, If[LessEqual[t, 1.9e+118], N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{z} \cdot x\\
\mathbf{if}\;t \leq -1.7 \cdot 10^{+120}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{+118}:\\
\;\;\;\;\frac{x \cdot y}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.69999999999999999e120 or 1.90000000000000008e118 < t Initial program 95.6%
Taylor expanded in z around inf
lower-/.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-+.f6459.1
Applied rewrites59.1%
Taylor expanded in t around inf
Applied rewrites55.1%
if -1.69999999999999999e120 < t < 1.90000000000000008e118Initial program 94.0%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f6475.3
Applied rewrites75.3%
Final simplification69.9%
(FPCore (x y z t) :precision binary64 (if (<= y -5.5e-154) (* (/ x z) y) (if (<= y 2.25e-158) (* (- t) x) (/ (* x y) z))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -5.5e-154) {
tmp = (x / z) * y;
} else if (y <= 2.25e-158) {
tmp = -t * x;
} else {
tmp = (x * y) / 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 (y <= (-5.5d-154)) then
tmp = (x / z) * y
else if (y <= 2.25d-158) then
tmp = -t * x
else
tmp = (x * y) / z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -5.5e-154) {
tmp = (x / z) * y;
} else if (y <= 2.25e-158) {
tmp = -t * x;
} else {
tmp = (x * y) / z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -5.5e-154: tmp = (x / z) * y elif y <= 2.25e-158: tmp = -t * x else: tmp = (x * y) / z return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -5.5e-154) tmp = Float64(Float64(x / z) * y); elseif (y <= 2.25e-158) tmp = Float64(Float64(-t) * x); else tmp = Float64(Float64(x * y) / z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -5.5e-154) tmp = (x / z) * y; elseif (y <= 2.25e-158) tmp = -t * x; else tmp = (x * y) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -5.5e-154], N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y, 2.25e-158], N[((-t) * x), $MachinePrecision], N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.5 \cdot 10^{-154}:\\
\;\;\;\;\frac{x}{z} \cdot y\\
\mathbf{elif}\;y \leq 2.25 \cdot 10^{-158}:\\
\;\;\;\;\left(-t\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot y}{z}\\
\end{array}
\end{array}
if y < -5.50000000000000002e-154Initial program 93.8%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f6473.9
Applied rewrites73.9%
Applied rewrites74.1%
if -5.50000000000000002e-154 < y < 2.25e-158Initial program 99.8%
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--.f6496.4
Applied rewrites96.4%
Taylor expanded in z around 0
Applied rewrites48.4%
if 2.25e-158 < y Initial program 91.8%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f6469.7
Applied rewrites69.7%
Final simplification66.4%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (/ x z) y))) (if (<= y -5.5e-154) t_1 (if (<= y 1.68e-158) (* (- t) x) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (x / z) * y;
double tmp;
if (y <= -5.5e-154) {
tmp = t_1;
} else if (y <= 1.68e-158) {
tmp = -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 = (x / z) * y
if (y <= (-5.5d-154)) then
tmp = t_1
else if (y <= 1.68d-158) then
tmp = -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 = (x / z) * y;
double tmp;
if (y <= -5.5e-154) {
tmp = t_1;
} else if (y <= 1.68e-158) {
tmp = -t * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (x / z) * y tmp = 0 if y <= -5.5e-154: tmp = t_1 elif y <= 1.68e-158: tmp = -t * x else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x / z) * y) tmp = 0.0 if (y <= -5.5e-154) tmp = t_1; elseif (y <= 1.68e-158) tmp = Float64(Float64(-t) * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x / z) * y; tmp = 0.0; if (y <= -5.5e-154) tmp = t_1; elseif (y <= 1.68e-158) tmp = -t * x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -5.5e-154], t$95$1, If[LessEqual[y, 1.68e-158], N[((-t) * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{z} \cdot y\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{-154}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.68 \cdot 10^{-158}:\\
\;\;\;\;\left(-t\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.50000000000000002e-154 or 1.6799999999999999e-158 < y Initial program 92.8%
Taylor expanded in t around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f6471.8
Applied rewrites71.8%
Applied rewrites71.4%
if -5.50000000000000002e-154 < y < 1.6799999999999999e-158Initial program 99.8%
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--.f6496.4
Applied rewrites96.4%
Taylor expanded in z around 0
Applied rewrites48.4%
Final simplification66.0%
(FPCore (x y z t) :precision binary64 (* (- t) x))
double code(double x, double y, double z, double t) {
return -t * 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 = -t * x
end function
public static double code(double x, double y, double z, double t) {
return -t * x;
}
def code(x, y, z, t): return -t * x
function code(x, y, z, t) return Float64(Float64(-t) * x) end
function tmp = code(x, y, z, t) tmp = -t * x; end
code[x_, y_, z_, t_] := N[((-t) * x), $MachinePrecision]
\begin{array}{l}
\\
\left(-t\right) \cdot x
\end{array}
Initial program 94.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--.f6447.1
Applied rewrites47.1%
Taylor expanded in z around 0
Applied rewrites22.1%
Final simplification22.1%
(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 2024248
(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)))))