
(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 14 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 (* 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}
Initial program 95.8%
(FPCore (x y z t) :precision binary64 (if (or (<= z -0.75) (not (<= z 0.001))) (* x (/ (+ t y) z)) (fma (fma z x x) (- t) (* (/ y z) x))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -0.75) || !(z <= 0.001)) {
tmp = x * ((t + y) / z);
} else {
tmp = fma(fma(z, x, x), -t, ((y / z) * x));
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if ((z <= -0.75) || !(z <= 0.001)) tmp = Float64(x * Float64(Float64(t + y) / z)); else tmp = fma(fma(z, x, x), Float64(-t), Float64(Float64(y / z) * x)); end return tmp end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -0.75], N[Not[LessEqual[z, 0.001]], $MachinePrecision]], N[(x * N[(N[(t + y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(z * x + x), $MachinePrecision] * (-t) + N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.75 \lor \neg \left(z \leq 0.001\right):\\
\;\;\;\;x \cdot \frac{t + y}{z}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, x, x\right), -t, \frac{y}{z} \cdot x\right)\\
\end{array}
\end{array}
if z < -0.75 or 1e-3 < z Initial program 96.5%
Taylor expanded in z around inf
lower-/.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-+.f6496.0
Applied rewrites96.0%
if -0.75 < z < 1e-3Initial program 95.0%
Taylor expanded in z around 0
+-commutativeN/A
div-addN/A
*-commutativeN/A
associate-/l*N/A
distribute-lft-outN/A
*-commutativeN/A
*-inversesN/A
associate-*l*N/A
metadata-evalN/A
*-commutativeN/A
distribute-lft-outN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites95.0%
Final simplification95.5%
(FPCore (x y z t) :precision binary64 (if (or (<= z -0.98) (not (<= z 0.001))) (* x (/ (+ t y) z)) (fma (- t) x (* (/ y z) x))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -0.98) || !(z <= 0.001)) {
tmp = x * ((t + y) / z);
} else {
tmp = fma(-t, x, ((y / z) * x));
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if ((z <= -0.98) || !(z <= 0.001)) tmp = Float64(x * Float64(Float64(t + y) / z)); else tmp = fma(Float64(-t), x, Float64(Float64(y / z) * x)); end return tmp end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -0.98], N[Not[LessEqual[z, 0.001]], $MachinePrecision]], N[(x * N[(N[(t + y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[((-t) * x + N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.98 \lor \neg \left(z \leq 0.001\right):\\
\;\;\;\;x \cdot \frac{t + y}{z}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-t, x, \frac{y}{z} \cdot x\right)\\
\end{array}
\end{array}
if z < -0.97999999999999998 or 1e-3 < z Initial program 96.5%
Taylor expanded in z around inf
lower-/.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-+.f6496.0
Applied rewrites96.0%
if -0.97999999999999998 < z < 1e-3Initial program 95.0%
Taylor expanded in z around 0
lower-/.f64N/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-outN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
fp-cancel-sub-signN/A
lower--.f64N/A
lower-*.f6494.0
Applied rewrites94.0%
Taylor expanded in y around 0
Applied rewrites94.8%
Final simplification95.4%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.0) (not (<= z 0.001))) (* x (/ (+ t y) z)) (* x (- (/ y z) t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.0) || !(z <= 0.001)) {
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 <= (-1.0d0)) .or. (.not. (z <= 0.001d0))) 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 <= -1.0) || !(z <= 0.001)) {
tmp = x * ((t + y) / z);
} else {
tmp = x * ((y / z) - t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -1.0) or not (z <= 0.001): tmp = x * ((t + y) / z) else: tmp = x * ((y / z) - t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -1.0) || !(z <= 0.001)) 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 <= -1.0) || ~((z <= 0.001))) 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, -1.0], N[Not[LessEqual[z, 0.001]], $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 -1 \lor \neg \left(z \leq 0.001\right):\\
\;\;\;\;x \cdot \frac{t + y}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{y}{z} - t\right)\\
\end{array}
\end{array}
if z < -1 or 1e-3 < z Initial program 96.5%
Taylor expanded in z around inf
lower-/.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-+.f6496.0
Applied rewrites96.0%
if -1 < z < 1e-3Initial program 95.0%
Taylor expanded in z around 0
associate-*r*N/A
mul-1-negN/A
fp-cancel-sub-signN/A
div-subN/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
lower--.f64N/A
lower-/.f6494.7
Applied rewrites94.7%
Final simplification95.4%
(FPCore (x y z t) :precision binary64 (if (or (<= z -4.7e-79) (not (<= z 0.001))) (* (/ x z) (+ y t)) (* y (/ x z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4.7e-79) || !(z <= 0.001)) {
tmp = (x / z) * (y + t);
} else {
tmp = 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 ((z <= (-4.7d-79)) .or. (.not. (z <= 0.001d0))) then
tmp = (x / z) * (y + t)
else
tmp = y * (x / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4.7e-79) || !(z <= 0.001)) {
tmp = (x / z) * (y + t);
} else {
tmp = y * (x / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -4.7e-79) or not (z <= 0.001): tmp = (x / z) * (y + t) else: tmp = y * (x / z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -4.7e-79) || !(z <= 0.001)) tmp = Float64(Float64(x / z) * Float64(y + t)); else tmp = Float64(y * Float64(x / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -4.7e-79) || ~((z <= 0.001))) tmp = (x / z) * (y + t); else tmp = y * (x / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -4.7e-79], N[Not[LessEqual[z, 0.001]], $MachinePrecision]], N[(N[(x / z), $MachinePrecision] * N[(y + t), $MachinePrecision]), $MachinePrecision], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.7 \cdot 10^{-79} \lor \neg \left(z \leq 0.001\right):\\
\;\;\;\;\frac{x}{z} \cdot \left(y + t\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -4.7000000000000002e-79 or 1e-3 < z Initial program 96.9%
Taylor expanded in t around inf
distribute-rgt-inN/A
fp-cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-out--N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
mul-1-negN/A
distribute-rgt-inN/A
+-commutativeN/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites72.2%
Taylor expanded in y around inf
Applied rewrites91.4%
Taylor expanded in z around inf
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
lower-+.f6486.4
Applied rewrites86.4%
Applied rewrites84.8%
if -4.7000000000000002e-79 < z < 1e-3Initial program 94.2%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6470.0
Applied rewrites70.0%
Applied rewrites71.8%
Final simplification79.6%
(FPCore (x y z t) :precision binary64 (if (<= z -1.0) (/ (* (+ t y) x) z) (if (<= z 0.001) (* x (- (/ y z) t)) (* (/ x z) (+ y t)))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.0) {
tmp = ((t + y) * x) / z;
} else if (z <= 0.001) {
tmp = x * ((y / z) - t);
} else {
tmp = (x / z) * (y + t);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (z <= (-1.0d0)) then
tmp = ((t + y) * x) / z
else if (z <= 0.001d0) then
tmp = x * ((y / z) - t)
else
tmp = (x / z) * (y + t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.0) {
tmp = ((t + y) * x) / z;
} else if (z <= 0.001) {
tmp = x * ((y / z) - t);
} else {
tmp = (x / z) * (y + t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.0: tmp = ((t + y) * x) / z elif z <= 0.001: tmp = x * ((y / z) - t) else: tmp = (x / z) * (y + t) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.0) tmp = Float64(Float64(Float64(t + y) * x) / z); elseif (z <= 0.001) tmp = Float64(x * Float64(Float64(y / z) - t)); else tmp = Float64(Float64(x / z) * Float64(y + t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -1.0) tmp = ((t + y) * x) / z; elseif (z <= 0.001) tmp = x * ((y / z) - t); else tmp = (x / z) * (y + t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.0], N[(N[(N[(t + y), $MachinePrecision] * x), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 0.001], N[(x * N[(N[(y / z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision], N[(N[(x / z), $MachinePrecision] * N[(y + t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1:\\
\;\;\;\;\frac{\left(t + y\right) \cdot x}{z}\\
\mathbf{elif}\;z \leq 0.001:\\
\;\;\;\;x \cdot \left(\frac{y}{z} - t\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z} \cdot \left(y + t\right)\\
\end{array}
\end{array}
if z < -1Initial program 96.8%
Taylor expanded in z around inf
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-+.f6489.1
Applied rewrites89.1%
if -1 < z < 1e-3Initial program 95.0%
Taylor expanded in z around 0
associate-*r*N/A
mul-1-negN/A
fp-cancel-sub-signN/A
div-subN/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
lower--.f64N/A
lower-/.f6494.7
Applied rewrites94.7%
if 1e-3 < z Initial program 96.1%
Taylor expanded in t around inf
distribute-rgt-inN/A
fp-cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-out--N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
mul-1-negN/A
distribute-rgt-inN/A
+-commutativeN/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites72.7%
Taylor expanded in y around inf
Applied rewrites95.0%
Taylor expanded in z around inf
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
lower-+.f6488.7
Applied rewrites88.7%
Applied rewrites90.0%
(FPCore (x y z t) :precision binary64 (if (<= z -4.6e-79) (/ (* (+ t y) x) z) (if (<= z 0.001) (* y (/ x z)) (* (/ x z) (+ y t)))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -4.6e-79) {
tmp = ((t + y) * x) / z;
} else if (z <= 0.001) {
tmp = y * (x / z);
} else {
tmp = (x / z) * (y + t);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (z <= (-4.6d-79)) then
tmp = ((t + y) * x) / z
else if (z <= 0.001d0) then
tmp = y * (x / z)
else
tmp = (x / z) * (y + t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -4.6e-79) {
tmp = ((t + y) * x) / z;
} else if (z <= 0.001) {
tmp = y * (x / z);
} else {
tmp = (x / z) * (y + t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -4.6e-79: tmp = ((t + y) * x) / z elif z <= 0.001: tmp = y * (x / z) else: tmp = (x / z) * (y + t) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -4.6e-79) tmp = Float64(Float64(Float64(t + y) * x) / z); elseif (z <= 0.001) tmp = Float64(y * Float64(x / z)); else tmp = Float64(Float64(x / z) * Float64(y + t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -4.6e-79) tmp = ((t + y) * x) / z; elseif (z <= 0.001) tmp = y * (x / z); else tmp = (x / z) * (y + t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -4.6e-79], N[(N[(N[(t + y), $MachinePrecision] * x), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 0.001], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], N[(N[(x / z), $MachinePrecision] * N[(y + t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.6 \cdot 10^{-79}:\\
\;\;\;\;\frac{\left(t + y\right) \cdot x}{z}\\
\mathbf{elif}\;z \leq 0.001:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z} \cdot \left(y + t\right)\\
\end{array}
\end{array}
if z < -4.60000000000000023e-79Initial program 97.3%
Taylor expanded in z around inf
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
lower-+.f6484.9
Applied rewrites84.9%
if -4.60000000000000023e-79 < z < 1e-3Initial program 94.2%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6470.0
Applied rewrites70.0%
Applied rewrites71.8%
if 1e-3 < z Initial program 96.1%
Taylor expanded in t around inf
distribute-rgt-inN/A
fp-cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-out--N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
mul-1-negN/A
distribute-rgt-inN/A
+-commutativeN/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites72.7%
Taylor expanded in y around inf
Applied rewrites95.0%
Taylor expanded in z around inf
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
lower-+.f6488.7
Applied rewrites88.7%
Applied rewrites90.0%
(FPCore (x y z t) :precision binary64 (if (<= y -3e-152) (* y (/ x z)) (if (<= y 2.35e-107) (* (/ x (- z 1.0)) t) (* (/ y z) x))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -3e-152) {
tmp = y * (x / z);
} else if (y <= 2.35e-107) {
tmp = (x / (z - 1.0)) * t;
} 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 (y <= (-3d-152)) then
tmp = y * (x / z)
else if (y <= 2.35d-107) then
tmp = (x / (z - 1.0d0)) * t
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 (y <= -3e-152) {
tmp = y * (x / z);
} else if (y <= 2.35e-107) {
tmp = (x / (z - 1.0)) * t;
} else {
tmp = (y / z) * x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -3e-152: tmp = y * (x / z) elif y <= 2.35e-107: tmp = (x / (z - 1.0)) * t else: tmp = (y / z) * x return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -3e-152) tmp = Float64(y * Float64(x / z)); elseif (y <= 2.35e-107) tmp = Float64(Float64(x / Float64(z - 1.0)) * t); else tmp = Float64(Float64(y / z) * x); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -3e-152) tmp = y * (x / z); elseif (y <= 2.35e-107) tmp = (x / (z - 1.0)) * t; else tmp = (y / z) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -3e-152], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.35e-107], N[(N[(x / N[(z - 1.0), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3 \cdot 10^{-152}:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\mathbf{elif}\;y \leq 2.35 \cdot 10^{-107}:\\
\;\;\;\;\frac{x}{z - 1} \cdot t\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{z} \cdot x\\
\end{array}
\end{array}
if y < -3e-152Initial program 93.3%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6471.8
Applied rewrites71.8%
Applied rewrites75.4%
if -3e-152 < y < 2.34999999999999999e-107Initial program 97.6%
Taylor expanded in t around inf
distribute-rgt-inN/A
fp-cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-out--N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
mul-1-negN/A
distribute-rgt-inN/A
+-commutativeN/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites81.7%
Taylor expanded in y around 0
Applied rewrites77.8%
if 2.34999999999999999e-107 < y Initial program 97.5%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6474.6
Applied rewrites74.6%
(FPCore (x y z t) :precision binary64 (if (or (<= z -0.75) (not (<= z 1.2e+20))) (* (/ x z) t) (* x (- (fma t z t)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -0.75) || !(z <= 1.2e+20)) {
tmp = (x / z) * t;
} else {
tmp = x * -fma(t, z, t);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if ((z <= -0.75) || !(z <= 1.2e+20)) tmp = Float64(Float64(x / z) * t); else tmp = Float64(x * Float64(-fma(t, z, t))); end return tmp end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -0.75], N[Not[LessEqual[z, 1.2e+20]], $MachinePrecision]], N[(N[(x / z), $MachinePrecision] * t), $MachinePrecision], N[(x * (-N[(t * z + t), $MachinePrecision])), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.75 \lor \neg \left(z \leq 1.2 \cdot 10^{+20}\right):\\
\;\;\;\;\frac{x}{z} \cdot t\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(-\mathsf{fma}\left(t, z, t\right)\right)\\
\end{array}
\end{array}
if z < -0.75 or 1.2e20 < z Initial program 96.4%
Taylor expanded in t around inf
distribute-rgt-inN/A
fp-cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-out--N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
mul-1-negN/A
distribute-rgt-inN/A
+-commutativeN/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites70.5%
Taylor expanded in y around inf
Applied rewrites93.1%
Taylor expanded in z around inf
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
lower-+.f6488.7
Applied rewrites88.7%
Taylor expanded in y around 0
Applied rewrites45.8%
if -0.75 < z < 1.2e20Initial program 95.1%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
lower-/.f64N/A
*-lft-identityN/A
metadata-evalN/A
fp-cancel-sign-sub-invN/A
mul-1-negN/A
distribute-neg-inN/A
metadata-evalN/A
remove-double-negN/A
lower-+.f6429.3
Applied rewrites29.3%
Taylor expanded in z around 0
Applied rewrites29.3%
Final simplification38.0%
(FPCore (x y z t) :precision binary64 (if (<= t -9e+216) (* x (- t)) (if (<= t 3.5e+200) (* (/ y z) x) (* x (/ t z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -9e+216) {
tmp = x * -t;
} else if (t <= 3.5e+200) {
tmp = (y / z) * x;
} else {
tmp = x * (t / z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (t <= (-9d+216)) then
tmp = x * -t
else if (t <= 3.5d+200) then
tmp = (y / z) * x
else
tmp = x * (t / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -9e+216) {
tmp = x * -t;
} else if (t <= 3.5e+200) {
tmp = (y / z) * x;
} else {
tmp = x * (t / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -9e+216: tmp = x * -t elif t <= 3.5e+200: tmp = (y / z) * x else: tmp = x * (t / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -9e+216) tmp = Float64(x * Float64(-t)); elseif (t <= 3.5e+200) tmp = Float64(Float64(y / z) * x); else tmp = Float64(x * Float64(t / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -9e+216) tmp = x * -t; elseif (t <= 3.5e+200) tmp = (y / z) * x; else tmp = x * (t / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -9e+216], N[(x * (-t)), $MachinePrecision], If[LessEqual[t, 3.5e+200], N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9 \cdot 10^{+216}:\\
\;\;\;\;x \cdot \left(-t\right)\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{+200}:\\
\;\;\;\;\frac{y}{z} \cdot x\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{t}{z}\\
\end{array}
\end{array}
if t < -9.0000000000000005e216Initial program 92.6%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
lower-/.f64N/A
*-lft-identityN/A
metadata-evalN/A
fp-cancel-sign-sub-invN/A
mul-1-negN/A
distribute-neg-inN/A
metadata-evalN/A
remove-double-negN/A
lower-+.f6476.9
Applied rewrites76.9%
Taylor expanded in z around 0
Applied rewrites58.4%
if -9.0000000000000005e216 < t < 3.50000000000000006e200Initial program 96.7%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6475.3
Applied rewrites75.3%
if 3.50000000000000006e200 < t Initial program 91.7%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
lower-/.f64N/A
*-lft-identityN/A
metadata-evalN/A
fp-cancel-sign-sub-invN/A
mul-1-negN/A
distribute-neg-inN/A
metadata-evalN/A
remove-double-negN/A
lower-+.f6478.7
Applied rewrites78.7%
Taylor expanded in z around inf
Applied rewrites57.9%
(FPCore (x y z t) :precision binary64 (if (<= t -9e+216) (* x (- t)) (if (<= t 3.5e+200) (* (/ y z) x) (/ (* t x) z))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -9e+216) {
tmp = x * -t;
} else if (t <= 3.5e+200) {
tmp = (y / z) * x;
} else {
tmp = (t * 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 (t <= (-9d+216)) then
tmp = x * -t
else if (t <= 3.5d+200) then
tmp = (y / z) * x
else
tmp = (t * x) / z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -9e+216) {
tmp = x * -t;
} else if (t <= 3.5e+200) {
tmp = (y / z) * x;
} else {
tmp = (t * x) / z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -9e+216: tmp = x * -t elif t <= 3.5e+200: tmp = (y / z) * x else: tmp = (t * x) / z return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -9e+216) tmp = Float64(x * Float64(-t)); elseif (t <= 3.5e+200) tmp = Float64(Float64(y / z) * x); else tmp = Float64(Float64(t * x) / z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -9e+216) tmp = x * -t; elseif (t <= 3.5e+200) tmp = (y / z) * x; else tmp = (t * x) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -9e+216], N[(x * (-t)), $MachinePrecision], If[LessEqual[t, 3.5e+200], N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision], N[(N[(t * x), $MachinePrecision] / z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9 \cdot 10^{+216}:\\
\;\;\;\;x \cdot \left(-t\right)\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{+200}:\\
\;\;\;\;\frac{y}{z} \cdot x\\
\mathbf{else}:\\
\;\;\;\;\frac{t \cdot x}{z}\\
\end{array}
\end{array}
if t < -9.0000000000000005e216Initial program 92.6%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
lower-/.f64N/A
*-lft-identityN/A
metadata-evalN/A
fp-cancel-sign-sub-invN/A
mul-1-negN/A
distribute-neg-inN/A
metadata-evalN/A
remove-double-negN/A
lower-+.f6476.9
Applied rewrites76.9%
Taylor expanded in z around 0
Applied rewrites58.4%
if -9.0000000000000005e216 < t < 3.50000000000000006e200Initial program 96.7%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6475.3
Applied rewrites75.3%
if 3.50000000000000006e200 < t Initial program 91.7%
Taylor expanded in t around inf
distribute-rgt-inN/A
fp-cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-out--N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
mul-1-negN/A
distribute-rgt-inN/A
+-commutativeN/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites66.6%
Taylor expanded in y around inf
Applied rewrites74.8%
Taylor expanded in z around inf
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
lower-+.f6454.3
Applied rewrites54.3%
Taylor expanded in y around 0
Applied rewrites46.0%
(FPCore (x y z t) :precision binary64 (if (<= t -9e+216) (* x (- t)) (if (<= t 3.6e+200) (* (/ y z) x) (* (/ x z) t))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -9e+216) {
tmp = x * -t;
} else if (t <= 3.6e+200) {
tmp = (y / z) * x;
} else {
tmp = (x / 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 (t <= (-9d+216)) then
tmp = x * -t
else if (t <= 3.6d+200) then
tmp = (y / z) * x
else
tmp = (x / z) * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -9e+216) {
tmp = x * -t;
} else if (t <= 3.6e+200) {
tmp = (y / z) * x;
} else {
tmp = (x / z) * t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -9e+216: tmp = x * -t elif t <= 3.6e+200: tmp = (y / z) * x else: tmp = (x / z) * t return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -9e+216) tmp = Float64(x * Float64(-t)); elseif (t <= 3.6e+200) tmp = Float64(Float64(y / z) * x); else tmp = Float64(Float64(x / z) * t); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -9e+216) tmp = x * -t; elseif (t <= 3.6e+200) tmp = (y / z) * x; else tmp = (x / z) * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -9e+216], N[(x * (-t)), $MachinePrecision], If[LessEqual[t, 3.6e+200], N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision], N[(N[(x / z), $MachinePrecision] * t), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9 \cdot 10^{+216}:\\
\;\;\;\;x \cdot \left(-t\right)\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{+200}:\\
\;\;\;\;\frac{y}{z} \cdot x\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z} \cdot t\\
\end{array}
\end{array}
if t < -9.0000000000000005e216Initial program 92.6%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
lower-/.f64N/A
*-lft-identityN/A
metadata-evalN/A
fp-cancel-sign-sub-invN/A
mul-1-negN/A
distribute-neg-inN/A
metadata-evalN/A
remove-double-negN/A
lower-+.f6476.9
Applied rewrites76.9%
Taylor expanded in z around 0
Applied rewrites58.4%
if -9.0000000000000005e216 < t < 3.5999999999999998e200Initial program 96.7%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6475.3
Applied rewrites75.3%
if 3.5999999999999998e200 < t Initial program 91.7%
Taylor expanded in t around inf
distribute-rgt-inN/A
fp-cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-out--N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
mul-1-negN/A
distribute-rgt-inN/A
+-commutativeN/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites66.6%
Taylor expanded in y around inf
Applied rewrites74.8%
Taylor expanded in z around inf
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
lower-+.f6454.3
Applied rewrites54.3%
Taylor expanded in y around 0
Applied rewrites41.7%
(FPCore (x y z t) :precision binary64 (if (<= t -9e+216) (* x (- t)) (* y (/ x z))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -9e+216) {
tmp = x * -t;
} else {
tmp = 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 (t <= (-9d+216)) then
tmp = x * -t
else
tmp = y * (x / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -9e+216) {
tmp = x * -t;
} else {
tmp = y * (x / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -9e+216: tmp = x * -t else: tmp = y * (x / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -9e+216) tmp = Float64(x * Float64(-t)); else tmp = Float64(y * Float64(x / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -9e+216) tmp = x * -t; else tmp = y * (x / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -9e+216], N[(x * (-t)), $MachinePrecision], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9 \cdot 10^{+216}:\\
\;\;\;\;x \cdot \left(-t\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\end{array}
\end{array}
if t < -9.0000000000000005e216Initial program 92.6%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
lower-/.f64N/A
*-lft-identityN/A
metadata-evalN/A
fp-cancel-sign-sub-invN/A
mul-1-negN/A
distribute-neg-inN/A
metadata-evalN/A
remove-double-negN/A
lower-+.f6476.9
Applied rewrites76.9%
Taylor expanded in z around 0
Applied rewrites58.4%
if -9.0000000000000005e216 < t Initial program 96.2%
Taylor expanded in y around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6469.8
Applied rewrites69.8%
Applied rewrites69.5%
(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 95.8%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
lower-/.f64N/A
*-lft-identityN/A
metadata-evalN/A
fp-cancel-sign-sub-invN/A
mul-1-negN/A
distribute-neg-inN/A
metadata-evalN/A
remove-double-negN/A
lower-+.f6442.8
Applied rewrites42.8%
Taylor expanded in z around 0
Applied rewrites22.7%
(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 2024329
(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)))))