
(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 (or (<= t_1 (- INFINITY)) (not (<= t_1 1e+263)))
(* (/ 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)) || !(t_1 <= 1e+263)) {
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) || !(t_1 <= 1e+263)) {
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) or not (t_1 <= 1e+263): 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)) || !(t_1 <= 1e+263)) 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) || ~((t_1 <= 1e+263))) 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[Or[LessEqual[t$95$1, (-Infinity)], N[Not[LessEqual[t$95$1, 1e+263]], $MachinePrecision]], 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 \lor \neg \left(t\_1 \leq 10^{+263}\right):\\
\;\;\;\;\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.0 or 1.00000000000000002e263 < (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z))) Initial program 73.8%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6471.5
Applied rewrites71.5%
Applied rewrites100.0%
if -inf.0 < (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z))) < 1.00000000000000002e263Initial program 98.8%
Final simplification99.0%
(FPCore (x y z t) :precision binary64 (if (or (<= z -9.5e+27) (not (<= z 0.44))) (/ x (/ z (+ t y))) (/ (* x (- y (* t z))) z)))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -9.5e+27) || !(z <= 0.44)) {
tmp = x / (z / (t + y));
} else {
tmp = (x * (y - (t * z))) / 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 <= (-9.5d+27)) .or. (.not. (z <= 0.44d0))) then
tmp = x / (z / (t + y))
else
tmp = (x * (y - (t * z))) / z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -9.5e+27) || !(z <= 0.44)) {
tmp = x / (z / (t + y));
} else {
tmp = (x * (y - (t * z))) / z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -9.5e+27) or not (z <= 0.44): tmp = x / (z / (t + y)) else: tmp = (x * (y - (t * z))) / z return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -9.5e+27) || !(z <= 0.44)) tmp = Float64(x / Float64(z / Float64(t + y))); else tmp = Float64(Float64(x * Float64(y - Float64(t * z))) / z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -9.5e+27) || ~((z <= 0.44))) tmp = x / (z / (t + y)); else tmp = (x * (y - (t * z))) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -9.5e+27], N[Not[LessEqual[z, 0.44]], $MachinePrecision]], N[(x / N[(z / N[(t + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(y - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.5 \cdot 10^{+27} \lor \neg \left(z \leq 0.44\right):\\
\;\;\;\;\frac{x}{\frac{z}{t + y}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \left(y - t \cdot z\right)}{z}\\
\end{array}
\end{array}
if z < -9.4999999999999997e27 or 0.440000000000000002 < z Initial program 98.1%
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-/.f6498.1
Applied rewrites98.1%
Taylor expanded in z around inf
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-commutativeN/A
lower-/.f64N/A
lower-+.f6497.4
Applied rewrites97.4%
if -9.4999999999999997e27 < z < 0.440000000000000002Initial program 91.1%
Taylor expanded in z around 0
lower-/.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-out--N/A
unsub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-*.f6492.9
Applied rewrites92.9%
Final simplification95.2%
(FPCore (x y z t) :precision binary64 (if (or (<= z -9.5e+27) (not (<= z 440.0))) (* x (/ (+ t y) z)) (/ (* x (- y (* t z))) z)))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -9.5e+27) || !(z <= 440.0)) {
tmp = x * ((t + y) / z);
} else {
tmp = (x * (y - (t * z))) / 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 <= (-9.5d+27)) .or. (.not. (z <= 440.0d0))) then
tmp = x * ((t + y) / z)
else
tmp = (x * (y - (t * z))) / z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -9.5e+27) || !(z <= 440.0)) {
tmp = x * ((t + y) / z);
} else {
tmp = (x * (y - (t * z))) / z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -9.5e+27) or not (z <= 440.0): tmp = x * ((t + y) / z) else: tmp = (x * (y - (t * z))) / z return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -9.5e+27) || !(z <= 440.0)) tmp = Float64(x * Float64(Float64(t + y) / z)); else tmp = Float64(Float64(x * Float64(y - Float64(t * z))) / z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -9.5e+27) || ~((z <= 440.0))) tmp = x * ((t + y) / z); else tmp = (x * (y - (t * z))) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -9.5e+27], N[Not[LessEqual[z, 440.0]], $MachinePrecision]], N[(x * N[(N[(t + y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(y - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.5 \cdot 10^{+27} \lor \neg \left(z \leq 440\right):\\
\;\;\;\;x \cdot \frac{t + y}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \left(y - t \cdot z\right)}{z}\\
\end{array}
\end{array}
if z < -9.4999999999999997e27 or 440 < z Initial program 98.1%
Taylor expanded in z around inf
lower-/.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-+.f6497.1
Applied rewrites97.1%
if -9.4999999999999997e27 < z < 440Initial program 91.2%
Taylor expanded in z around 0
lower-/.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-out--N/A
unsub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-*.f6493.0
Applied rewrites93.0%
Final simplification95.0%
(FPCore (x y z t)
:precision binary64
(if (<= z -7.6e+77)
(* (/ y z) x)
(if (<= z 1.28e+44)
(* x (- (/ y z) t))
(if (<= z 8.5e+186) (* x (/ t z)) (/ (* x y) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -7.6e+77) {
tmp = (y / z) * x;
} else if (z <= 1.28e+44) {
tmp = x * ((y / z) - t);
} else if (z <= 8.5e+186) {
tmp = x * (t / z);
} 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 (z <= (-7.6d+77)) then
tmp = (y / z) * x
else if (z <= 1.28d+44) then
tmp = x * ((y / z) - t)
else if (z <= 8.5d+186) then
tmp = x * (t / z)
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 (z <= -7.6e+77) {
tmp = (y / z) * x;
} else if (z <= 1.28e+44) {
tmp = x * ((y / z) - t);
} else if (z <= 8.5e+186) {
tmp = x * (t / z);
} else {
tmp = (x * y) / z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -7.6e+77: tmp = (y / z) * x elif z <= 1.28e+44: tmp = x * ((y / z) - t) elif z <= 8.5e+186: tmp = x * (t / z) else: tmp = (x * y) / z return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -7.6e+77) tmp = Float64(Float64(y / z) * x); elseif (z <= 1.28e+44) tmp = Float64(x * Float64(Float64(y / z) - t)); elseif (z <= 8.5e+186) tmp = Float64(x * Float64(t / z)); else tmp = Float64(Float64(x * y) / z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -7.6e+77) tmp = (y / z) * x; elseif (z <= 1.28e+44) tmp = x * ((y / z) - t); elseif (z <= 8.5e+186) tmp = x * (t / z); else tmp = (x * y) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -7.6e+77], N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 1.28e+44], N[(x * N[(N[(y / z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.5e+186], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision], N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.6 \cdot 10^{+77}:\\
\;\;\;\;\frac{y}{z} \cdot x\\
\mathbf{elif}\;z \leq 1.28 \cdot 10^{+44}:\\
\;\;\;\;x \cdot \left(\frac{y}{z} - t\right)\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{+186}:\\
\;\;\;\;x \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot y}{z}\\
\end{array}
\end{array}
if z < -7.6000000000000002e77Initial program 99.5%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6469.3
Applied rewrites69.3%
if -7.6000000000000002e77 < z < 1.28000000000000006e44Initial program 92.3%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lower-/.f6492.2
Applied rewrites92.2%
Taylor expanded in z around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f6488.1
Applied rewrites88.1%
Taylor expanded in y around 0
Applied rewrites88.1%
if 1.28000000000000006e44 < z < 8.4999999999999999e186Initial program 99.5%
lift--.f64N/A
sub-negN/A
lift-/.f64N/A
lift-/.f64N/A
distribute-neg-frac2N/A
frac-addN/A
lower-/.f64N/A
lower-fma.f64N/A
lift--.f64N/A
sub-negN/A
distribute-neg-inN/A
metadata-evalN/A
remove-double-negN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
sub-negN/A
distribute-neg-inN/A
metadata-evalN/A
remove-double-negN/A
lower-+.f6473.6
Applied rewrites73.6%
Taylor expanded in z around inf
lower-/.f64N/A
lower-+.f6499.5
Applied rewrites99.5%
Taylor expanded in y around 0
Applied rewrites67.8%
if 8.4999999999999999e186 < z Initial program 92.5%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6477.6
Applied rewrites77.6%
Applied rewrites81.2%
Final simplification81.3%
(FPCore (x y z t) :precision binary64 (if (or (<= z -9.5e+27) (not (<= z 0.44))) (* x (/ (+ t y) z)) (* x (- (/ y z) t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -9.5e+27) || !(z <= 0.44)) {
tmp = x * ((t + y) / z);
} 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 ((z <= (-9.5d+27)) .or. (.not. (z <= 0.44d0))) then
tmp = x * ((t + y) / z)
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 ((z <= -9.5e+27) || !(z <= 0.44)) {
tmp = x * ((t + y) / z);
} else {
tmp = x * ((y / z) - t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -9.5e+27) or not (z <= 0.44): tmp = x * ((t + y) / z) else: tmp = x * ((y / z) - t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -9.5e+27) || !(z <= 0.44)) tmp = Float64(x * Float64(Float64(t + y) / z)); else tmp = Float64(x * Float64(Float64(y / z) - t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -9.5e+27) || ~((z <= 0.44))) tmp = x * ((t + y) / z); else tmp = x * ((y / z) - t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -9.5e+27], N[Not[LessEqual[z, 0.44]], $MachinePrecision]], N[(x * N[(N[(t + y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y / z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.5 \cdot 10^{+27} \lor \neg \left(z \leq 0.44\right):\\
\;\;\;\;x \cdot \frac{t + y}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{y}{z} - t\right)\\
\end{array}
\end{array}
if z < -9.4999999999999997e27 or 0.440000000000000002 < z Initial program 98.1%
Taylor expanded in z around inf
lower-/.f64N/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-+.f6497.1
Applied rewrites97.1%
if -9.4999999999999997e27 < z < 0.440000000000000002Initial program 91.1%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lower-/.f6491.0
Applied rewrites91.0%
Taylor expanded in z around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f6490.6
Applied rewrites90.6%
Taylor expanded in y around 0
Applied rewrites90.6%
Final simplification93.9%
(FPCore (x y z t) :precision binary64 (if (or (<= y -3.8e-22) (not (<= y 1.75e-78))) (/ (* x y) z) (* (/ x (- z 1.0)) t)))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -3.8e-22) || !(y <= 1.75e-78)) {
tmp = (x * y) / z;
} else {
tmp = (x / (z - 1.0)) * 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 ((y <= (-3.8d-22)) .or. (.not. (y <= 1.75d-78))) then
tmp = (x * y) / z
else
tmp = (x / (z - 1.0d0)) * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -3.8e-22) || !(y <= 1.75e-78)) {
tmp = (x * y) / z;
} else {
tmp = (x / (z - 1.0)) * t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -3.8e-22) or not (y <= 1.75e-78): tmp = (x * y) / z else: tmp = (x / (z - 1.0)) * t return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -3.8e-22) || !(y <= 1.75e-78)) tmp = Float64(Float64(x * y) / z); else tmp = Float64(Float64(x / Float64(z - 1.0)) * t); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -3.8e-22) || ~((y <= 1.75e-78))) tmp = (x * y) / z; else tmp = (x / (z - 1.0)) * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -3.8e-22], N[Not[LessEqual[y, 1.75e-78]], $MachinePrecision]], N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision], N[(N[(x / N[(z - 1.0), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.8 \cdot 10^{-22} \lor \neg \left(y \leq 1.75 \cdot 10^{-78}\right):\\
\;\;\;\;\frac{x \cdot y}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z - 1} \cdot t\\
\end{array}
\end{array}
if y < -3.80000000000000023e-22 or 1.75e-78 < y Initial program 92.1%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6477.5
Applied rewrites77.5%
Applied rewrites81.4%
if -3.80000000000000023e-22 < y < 1.75e-78Initial program 98.0%
lift--.f64N/A
sub-negN/A
lift-/.f64N/A
lift-/.f64N/A
distribute-neg-frac2N/A
frac-addN/A
lower-/.f64N/A
lower-fma.f64N/A
lift--.f64N/A
sub-negN/A
distribute-neg-inN/A
metadata-evalN/A
remove-double-negN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
sub-negN/A
distribute-neg-inN/A
metadata-evalN/A
remove-double-negN/A
lower-+.f6487.1
Applied rewrites87.1%
Taylor expanded in y around 0
*-commutativeN/A
associate-*l/N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f6472.2
Applied rewrites72.2%
Final simplification77.5%
(FPCore (x y z t) :precision binary64 (if (or (<= y -2e-146) (not (<= y 1.75e-78))) (/ (* x y) z) (/ (* t x) (- z 1.0))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -2e-146) || !(y <= 1.75e-78)) {
tmp = (x * y) / z;
} else {
tmp = (t * x) / (z - 1.0);
}
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 <= (-2d-146)) .or. (.not. (y <= 1.75d-78))) then
tmp = (x * y) / z
else
tmp = (t * x) / (z - 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -2e-146) || !(y <= 1.75e-78)) {
tmp = (x * y) / z;
} else {
tmp = (t * x) / (z - 1.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -2e-146) or not (y <= 1.75e-78): tmp = (x * y) / z else: tmp = (t * x) / (z - 1.0) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -2e-146) || !(y <= 1.75e-78)) tmp = Float64(Float64(x * y) / z); else tmp = Float64(Float64(t * x) / Float64(z - 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -2e-146) || ~((y <= 1.75e-78))) tmp = (x * y) / z; else tmp = (t * x) / (z - 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -2e-146], N[Not[LessEqual[y, 1.75e-78]], $MachinePrecision]], N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision], N[(N[(t * x), $MachinePrecision] / N[(z - 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{-146} \lor \neg \left(y \leq 1.75 \cdot 10^{-78}\right):\\
\;\;\;\;\frac{x \cdot y}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{t \cdot x}{z - 1}\\
\end{array}
\end{array}
if y < -2.00000000000000005e-146 or 1.75e-78 < y Initial program 93.0%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6473.7
Applied rewrites73.7%
Applied rewrites77.4%
if -2.00000000000000005e-146 < y < 1.75e-78Initial program 98.5%
Taylor expanded in y around 0
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--.f6474.4
Applied rewrites74.4%
Final simplification76.5%
(FPCore (x y z t) :precision binary64 (if (or (<= t -1.5e+98) (not (<= t 5.8e+224))) (* x (/ t z)) (* (/ y z) x)))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -1.5e+98) || !(t <= 5.8e+224)) {
tmp = x * (t / z);
} else {
tmp = (y / 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.5d+98)) .or. (.not. (t <= 5.8d+224))) then
tmp = x * (t / z)
else
tmp = (y / 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.5e+98) || !(t <= 5.8e+224)) {
tmp = x * (t / z);
} else {
tmp = (y / z) * x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (t <= -1.5e+98) or not (t <= 5.8e+224): tmp = x * (t / z) else: tmp = (y / z) * x return tmp
function code(x, y, z, t) tmp = 0.0 if ((t <= -1.5e+98) || !(t <= 5.8e+224)) tmp = Float64(x * Float64(t / z)); else tmp = Float64(Float64(y / z) * x); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((t <= -1.5e+98) || ~((t <= 5.8e+224))) tmp = x * (t / z); else tmp = (y / z) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -1.5e+98], N[Not[LessEqual[t, 5.8e+224]], $MachinePrecision]], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision], N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.5 \cdot 10^{+98} \lor \neg \left(t \leq 5.8 \cdot 10^{+224}\right):\\
\;\;\;\;x \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{z} \cdot x\\
\end{array}
\end{array}
if t < -1.5000000000000001e98 or 5.79999999999999978e224 < t Initial program 93.9%
lift--.f64N/A
sub-negN/A
lift-/.f64N/A
lift-/.f64N/A
distribute-neg-frac2N/A
frac-addN/A
lower-/.f64N/A
lower-fma.f64N/A
lift--.f64N/A
sub-negN/A
distribute-neg-inN/A
metadata-evalN/A
remove-double-negN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
sub-negN/A
distribute-neg-inN/A
metadata-evalN/A
remove-double-negN/A
lower-+.f6460.0
Applied rewrites60.0%
Taylor expanded in z around inf
lower-/.f64N/A
lower-+.f6461.0
Applied rewrites61.0%
Taylor expanded in y around 0
Applied rewrites54.6%
if -1.5000000000000001e98 < t < 5.79999999999999978e224Initial program 94.8%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6478.1
Applied rewrites78.1%
Final simplification72.2%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.9e-28) (not (<= z 0.205))) (* t (/ x z)) (* (- t) (fma x z x))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.9e-28) || !(z <= 0.205)) {
tmp = t * (x / z);
} else {
tmp = -t * fma(x, z, x);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if ((z <= -1.9e-28) || !(z <= 0.205)) tmp = Float64(t * Float64(x / z)); else tmp = Float64(Float64(-t) * fma(x, z, x)); end return tmp end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.9e-28], N[Not[LessEqual[z, 0.205]], $MachinePrecision]], N[(t * N[(x / z), $MachinePrecision]), $MachinePrecision], N[((-t) * N[(x * z + x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{-28} \lor \neg \left(z \leq 0.205\right):\\
\;\;\;\;t \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;\left(-t\right) \cdot \mathsf{fma}\left(x, z, x\right)\\
\end{array}
\end{array}
if z < -1.90000000000000005e-28 or 0.204999999999999988 < z Initial program 98.2%
Taylor expanded in y around 0
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--.f6447.6
Applied rewrites47.6%
Taylor expanded in z around inf
Applied rewrites48.8%
if -1.90000000000000005e-28 < z < 0.204999999999999988Initial program 90.3%
Taylor expanded in y around 0
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--.f6432.9
Applied rewrites32.9%
Taylor expanded in z around 0
Applied rewrites32.9%
Final simplification41.5%
(FPCore (x y z t) :precision binary64 (if (<= y -1.25e-141) (/ (* x y) z) (if (<= y 2e-174) (* t (/ x z)) (* (/ x z) y))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.25e-141) {
tmp = (x * y) / z;
} else if (y <= 2e-174) {
tmp = t * (x / z);
} else {
tmp = (x / z) * 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 (y <= (-1.25d-141)) then
tmp = (x * y) / z
else if (y <= 2d-174) then
tmp = t * (x / z)
else
tmp = (x / z) * y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.25e-141) {
tmp = (x * y) / z;
} else if (y <= 2e-174) {
tmp = t * (x / z);
} else {
tmp = (x / z) * y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.25e-141: tmp = (x * y) / z elif y <= 2e-174: tmp = t * (x / z) else: tmp = (x / z) * y return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.25e-141) tmp = Float64(Float64(x * y) / z); elseif (y <= 2e-174) tmp = Float64(t * Float64(x / z)); else tmp = Float64(Float64(x / z) * y); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -1.25e-141) tmp = (x * y) / z; elseif (y <= 2e-174) tmp = t * (x / z); else tmp = (x / z) * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.25e-141], N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[y, 2e-174], N[(t * N[(x / z), $MachinePrecision]), $MachinePrecision], N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.25 \cdot 10^{-141}:\\
\;\;\;\;\frac{x \cdot y}{z}\\
\mathbf{elif}\;y \leq 2 \cdot 10^{-174}:\\
\;\;\;\;t \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z} \cdot y\\
\end{array}
\end{array}
if y < -1.25e-141Initial program 92.2%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6470.2
Applied rewrites70.2%
Applied rewrites76.8%
if -1.25e-141 < y < 2e-174Initial program 98.2%
Taylor expanded in y around 0
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--.f6475.3
Applied rewrites75.3%
Taylor expanded in z around inf
Applied rewrites55.3%
if 2e-174 < y Initial program 94.9%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6474.8
Applied rewrites74.8%
Applied rewrites75.8%
(FPCore (x y z t) :precision binary64 (if (<= z -1.9e-28) (* t (/ x z)) (if (<= z 0.205) (* (- t) (fma x z x)) (/ (* t x) z))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.9e-28) {
tmp = t * (x / z);
} else if (z <= 0.205) {
tmp = -t * fma(x, z, x);
} else {
tmp = (t * x) / z;
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (z <= -1.9e-28) tmp = Float64(t * Float64(x / z)); elseif (z <= 0.205) tmp = Float64(Float64(-t) * fma(x, z, x)); else tmp = Float64(Float64(t * x) / z); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.9e-28], N[(t * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.205], N[((-t) * N[(x * z + x), $MachinePrecision]), $MachinePrecision], N[(N[(t * x), $MachinePrecision] / z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{-28}:\\
\;\;\;\;t \cdot \frac{x}{z}\\
\mathbf{elif}\;z \leq 0.205:\\
\;\;\;\;\left(-t\right) \cdot \mathsf{fma}\left(x, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t \cdot x}{z}\\
\end{array}
\end{array}
if z < -1.90000000000000005e-28Initial program 99.6%
Taylor expanded in y around 0
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--.f6443.1
Applied rewrites43.1%
Taylor expanded in z around inf
Applied rewrites47.9%
if -1.90000000000000005e-28 < z < 0.204999999999999988Initial program 90.3%
Taylor expanded in y around 0
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--.f6432.9
Applied rewrites32.9%
Taylor expanded in z around 0
Applied rewrites32.9%
if 0.204999999999999988 < z Initial program 97.2%
Taylor expanded in y around 0
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--.f6451.0
Applied rewrites51.0%
Taylor expanded in z around inf
Applied rewrites49.4%
Applied rewrites49.4%
(FPCore (x y z t) :precision binary64 (if (<= t 2.7e+243) (* (/ x z) y) (* x (- t))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= 2.7e+243) {
tmp = (x / z) * y;
} else {
tmp = x * -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 (t <= 2.7d+243) then
tmp = (x / z) * y
else
tmp = x * -t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= 2.7e+243) {
tmp = (x / z) * y;
} else {
tmp = x * -t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= 2.7e+243: tmp = (x / z) * y else: tmp = x * -t return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= 2.7e+243) tmp = Float64(Float64(x / z) * y); else tmp = Float64(x * Float64(-t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= 2.7e+243) tmp = (x / z) * y; else tmp = x * -t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, 2.7e+243], N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision], N[(x * (-t)), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.7 \cdot 10^{+243}:\\
\;\;\;\;\frac{x}{z} \cdot y\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(-t\right)\\
\end{array}
\end{array}
if t < 2.7000000000000001e243Initial program 94.4%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6467.9
Applied rewrites67.9%
Applied rewrites69.9%
if 2.7000000000000001e243 < t Initial program 99.7%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lower-/.f6499.7
Applied rewrites99.7%
Taylor expanded in z around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f6473.1
Applied rewrites73.1%
Taylor expanded in y around 0
Applied rewrites71.0%
Final simplification70.0%
(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(x * Float64(-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}
\\
x \cdot \left(-t\right)
\end{array}
Initial program 94.6%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lower-/.f6494.5
Applied rewrites94.5%
Taylor expanded in z around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f6465.9
Applied rewrites65.9%
Taylor expanded in y around 0
Applied rewrites23.0%
Final simplification23.0%
(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 2024324
(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)))))