
(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 (+ z -1.0)))))
(if (<= t_1 (- INFINITY))
(* y (/ x z))
(if (<= t_1 2e+273) (* t_1 x) (/ (* x (- y (* z t))) z)))))
double code(double x, double y, double z, double t) {
double t_1 = (y / z) + (t / (z + -1.0));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = y * (x / z);
} else if (t_1 <= 2e+273) {
tmp = t_1 * x;
} else {
tmp = (x * (y - (z * t))) / z;
}
return tmp;
}
public static double code(double x, double y, double z, double t) {
double t_1 = (y / z) + (t / (z + -1.0));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = y * (x / z);
} else if (t_1 <= 2e+273) {
tmp = t_1 * x;
} else {
tmp = (x * (y - (z * t))) / z;
}
return tmp;
}
def code(x, y, z, t): t_1 = (y / z) + (t / (z + -1.0)) tmp = 0 if t_1 <= -math.inf: tmp = y * (x / z) elif t_1 <= 2e+273: tmp = t_1 * x else: tmp = (x * (y - (z * t))) / z return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y / z) + Float64(t / Float64(z + -1.0))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(y * Float64(x / z)); elseif (t_1 <= 2e+273) tmp = Float64(t_1 * x); else tmp = Float64(Float64(x * Float64(y - Float64(z * t))) / z); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y / z) + (t / (z + -1.0)); tmp = 0.0; if (t_1 <= -Inf) tmp = y * (x / z); elseif (t_1 <= 2e+273) tmp = t_1 * x; else tmp = (x * (y - (z * t))) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y / z), $MachinePrecision] + N[(t / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+273], N[(t$95$1 * x), $MachinePrecision], N[(N[(x * N[(y - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{z} + \frac{t}{z + -1}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+273}:\\
\;\;\;\;t\_1 \cdot x\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \left(y - z \cdot t\right)}{z}\\
\end{array}
\end{array}
if (-.f64 (/.f64 y z) (/.f64 t (-.f64 1 z))) < -inf.0Initial program 58.8%
clear-num58.8%
associate-/r/58.8%
Applied egg-rr58.8%
Taylor expanded in y around inf 99.7%
associate-*l/99.9%
*-commutative99.9%
Simplified99.9%
if -inf.0 < (-.f64 (/.f64 y z) (/.f64 t (-.f64 1 z))) < 1.99999999999999989e273Initial program 98.4%
if 1.99999999999999989e273 < (-.f64 (/.f64 y z) (/.f64 t (-.f64 1 z))) Initial program 72.2%
clear-num72.2%
associate-/r/72.2%
Applied egg-rr72.2%
Taylor expanded in z around 0 96.3%
+-commutative96.3%
mul-1-neg96.3%
associate-*r*88.8%
distribute-rgt-neg-in88.8%
*-commutative88.8%
associate-*l*99.9%
distribute-rgt-neg-in99.9%
mul-1-neg99.9%
distribute-lft-out99.9%
mul-1-neg99.9%
unsub-neg99.9%
*-commutative99.9%
Simplified99.9%
Final simplification98.7%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (* y x) z)))
(if (<= y -1e-48)
t_1
(if (<= y -2e-277) (* x (/ t z)) (if (<= y 2.7e-255) (* x (- t)) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = (y * x) / z;
double tmp;
if (y <= -1e-48) {
tmp = t_1;
} else if (y <= -2e-277) {
tmp = x * (t / z);
} else if (y <= 2.7e-255) {
tmp = x * -t;
} 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 = (y * x) / z
if (y <= (-1d-48)) then
tmp = t_1
else if (y <= (-2d-277)) then
tmp = x * (t / z)
else if (y <= 2.7d-255) then
tmp = x * -t
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 = (y * x) / z;
double tmp;
if (y <= -1e-48) {
tmp = t_1;
} else if (y <= -2e-277) {
tmp = x * (t / z);
} else if (y <= 2.7e-255) {
tmp = x * -t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (y * x) / z tmp = 0 if y <= -1e-48: tmp = t_1 elif y <= -2e-277: tmp = x * (t / z) elif y <= 2.7e-255: tmp = x * -t else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y * x) / z) tmp = 0.0 if (y <= -1e-48) tmp = t_1; elseif (y <= -2e-277) tmp = Float64(x * Float64(t / z)); elseif (y <= 2.7e-255) tmp = Float64(x * Float64(-t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y * x) / z; tmp = 0.0; if (y <= -1e-48) tmp = t_1; elseif (y <= -2e-277) tmp = x * (t / z); elseif (y <= 2.7e-255) tmp = x * -t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[y, -1e-48], t$95$1, If[LessEqual[y, -2e-277], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.7e-255], N[(x * (-t)), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot x}{z}\\
\mathbf{if}\;y \leq -1 \cdot 10^{-48}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2 \cdot 10^{-277}:\\
\;\;\;\;x \cdot \frac{t}{z}\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{-255}:\\
\;\;\;\;x \cdot \left(-t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -9.9999999999999997e-49 or 2.70000000000000016e-255 < y Initial program 91.1%
Taylor expanded in y around inf 73.1%
if -9.9999999999999997e-49 < y < -1.99999999999999994e-277Initial program 98.5%
Taylor expanded in y around 0 80.8%
mul-1-neg80.8%
distribute-neg-frac280.8%
neg-sub080.8%
associate--r-80.8%
metadata-eval80.8%
Simplified80.8%
Taylor expanded in z around inf 57.2%
*-commutative57.2%
*-lft-identity57.2%
times-frac60.0%
/-rgt-identity60.0%
Simplified60.0%
if -1.99999999999999994e-277 < y < 2.70000000000000016e-255Initial program 99.9%
Taylor expanded in y around 0 99.7%
mul-1-neg99.7%
distribute-neg-frac299.7%
neg-sub099.7%
associate--r-99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in z around 0 69.2%
*-commutative69.2%
neg-mul-169.2%
distribute-rgt-neg-in69.2%
Simplified69.2%
Final simplification70.4%
(FPCore (x y z t) :precision binary64 (if (or (<= z -4400000000.0) (not (<= z 1.0))) (* x (/ (+ y t) z)) (* (/ x z) (- y (* z t)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4400000000.0) || !(z <= 1.0)) {
tmp = x * ((y + t) / z);
} else {
tmp = (x / z) * (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 <= (-4400000000.0d0)) .or. (.not. (z <= 1.0d0))) then
tmp = x * ((y + t) / z)
else
tmp = (x / z) * (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 <= -4400000000.0) || !(z <= 1.0)) {
tmp = x * ((y + t) / z);
} else {
tmp = (x / z) * (y - (z * t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -4400000000.0) or not (z <= 1.0): tmp = x * ((y + t) / z) else: tmp = (x / z) * (y - (z * t)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -4400000000.0) || !(z <= 1.0)) tmp = Float64(x * Float64(Float64(y + t) / z)); else tmp = Float64(Float64(x / z) * Float64(y - Float64(z * t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -4400000000.0) || ~((z <= 1.0))) tmp = x * ((y + t) / z); else tmp = (x / z) * (y - (z * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -4400000000.0], N[Not[LessEqual[z, 1.0]], $MachinePrecision]], N[(x * N[(N[(y + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(x / z), $MachinePrecision] * N[(y - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4400000000 \lor \neg \left(z \leq 1\right):\\
\;\;\;\;x \cdot \frac{y + t}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z} \cdot \left(y - z \cdot t\right)\\
\end{array}
\end{array}
if z < -4.4e9 or 1 < z Initial program 97.5%
Taylor expanded in z around inf 86.2%
*-commutative86.2%
remove-double-neg86.2%
cancel-sign-sub-inv86.2%
metadata-eval86.2%
*-lft-identity86.2%
distribute-neg-out86.2%
neg-mul-186.2%
sub-neg86.2%
distribute-lft-neg-in86.2%
*-commutative86.2%
distribute-neg-frac86.2%
associate-/l*97.4%
distribute-rgt-neg-in97.4%
distribute-neg-frac97.4%
Simplified97.4%
if -4.4e9 < z < 1Initial program 89.0%
clear-num89.0%
associate-/r/88.9%
Applied egg-rr88.9%
Taylor expanded in z around 0 92.7%
+-commutative92.7%
mul-1-neg92.7%
associate-*r*90.8%
distribute-rgt-neg-in90.8%
*-commutative90.8%
associate-*l*95.4%
distribute-rgt-neg-in95.4%
mul-1-neg95.4%
distribute-lft-out95.4%
mul-1-neg95.4%
unsub-neg95.4%
*-commutative95.4%
Simplified95.4%
Taylor expanded in x around 0 95.4%
*-commutative95.4%
*-commutative95.4%
associate-*r/93.4%
*-commutative93.4%
*-commutative93.4%
Simplified93.4%
Final simplification95.4%
(FPCore (x y z t) :precision binary64 (if (or (<= z -4400000000.0) (not (<= z 1.0))) (* x (/ (+ y t) z)) (/ (* x (- y (* z t))) z)))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4400000000.0) || !(z <= 1.0)) {
tmp = x * ((y + t) / z);
} else {
tmp = (x * (y - (z * 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 ((z <= (-4400000000.0d0)) .or. (.not. (z <= 1.0d0))) then
tmp = x * ((y + t) / z)
else
tmp = (x * (y - (z * t))) / z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4400000000.0) || !(z <= 1.0)) {
tmp = x * ((y + t) / z);
} else {
tmp = (x * (y - (z * t))) / z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -4400000000.0) or not (z <= 1.0): tmp = x * ((y + t) / z) else: tmp = (x * (y - (z * t))) / z return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -4400000000.0) || !(z <= 1.0)) tmp = Float64(x * Float64(Float64(y + t) / z)); else tmp = Float64(Float64(x * Float64(y - Float64(z * t))) / z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -4400000000.0) || ~((z <= 1.0))) tmp = x * ((y + t) / z); else tmp = (x * (y - (z * t))) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -4400000000.0], N[Not[LessEqual[z, 1.0]], $MachinePrecision]], N[(x * N[(N[(y + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(y - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4400000000 \lor \neg \left(z \leq 1\right):\\
\;\;\;\;x \cdot \frac{y + t}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \left(y - z \cdot t\right)}{z}\\
\end{array}
\end{array}
if z < -4.4e9 or 1 < z Initial program 97.5%
Taylor expanded in z around inf 86.2%
*-commutative86.2%
remove-double-neg86.2%
cancel-sign-sub-inv86.2%
metadata-eval86.2%
*-lft-identity86.2%
distribute-neg-out86.2%
neg-mul-186.2%
sub-neg86.2%
distribute-lft-neg-in86.2%
*-commutative86.2%
distribute-neg-frac86.2%
associate-/l*97.4%
distribute-rgt-neg-in97.4%
distribute-neg-frac97.4%
Simplified97.4%
if -4.4e9 < z < 1Initial program 89.0%
clear-num89.0%
associate-/r/88.9%
Applied egg-rr88.9%
Taylor expanded in z around 0 92.7%
+-commutative92.7%
mul-1-neg92.7%
associate-*r*90.8%
distribute-rgt-neg-in90.8%
*-commutative90.8%
associate-*l*95.4%
distribute-rgt-neg-in95.4%
mul-1-neg95.4%
distribute-lft-out95.4%
mul-1-neg95.4%
unsub-neg95.4%
*-commutative95.4%
Simplified95.4%
Final simplification96.4%
(FPCore (x y z t) :precision binary64 (if (or (<= z -2e+70) (not (<= z 280000000.0))) (* x (/ t z)) (* x (- (/ y z) t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -2e+70) || !(z <= 280000000.0)) {
tmp = x * (t / 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 <= (-2d+70)) .or. (.not. (z <= 280000000.0d0))) then
tmp = x * (t / 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 <= -2e+70) || !(z <= 280000000.0)) {
tmp = x * (t / z);
} else {
tmp = x * ((y / z) - t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -2e+70) or not (z <= 280000000.0): tmp = x * (t / z) else: tmp = x * ((y / z) - t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -2e+70) || !(z <= 280000000.0)) tmp = Float64(x * Float64(t / 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 <= -2e+70) || ~((z <= 280000000.0))) tmp = x * (t / z); else tmp = x * ((y / z) - t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -2e+70], N[Not[LessEqual[z, 280000000.0]], $MachinePrecision]], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y / z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{+70} \lor \neg \left(z \leq 280000000\right):\\
\;\;\;\;x \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{y}{z} - t\right)\\
\end{array}
\end{array}
if z < -2.00000000000000015e70 or 2.8e8 < z Initial program 97.3%
Taylor expanded in y around 0 67.0%
mul-1-neg67.0%
distribute-neg-frac267.0%
neg-sub067.0%
associate--r-67.0%
metadata-eval67.0%
Simplified67.0%
Taylor expanded in z around inf 58.5%
*-commutative58.5%
*-lft-identity58.5%
times-frac67.0%
/-rgt-identity67.0%
Simplified67.0%
if -2.00000000000000015e70 < z < 2.8e8Initial program 90.0%
Taylor expanded in z around 0 86.2%
mul-1-neg86.2%
unsub-neg86.2%
div-sub86.2%
associate-/l*86.3%
*-inverses86.3%
*-rgt-identity86.3%
Simplified86.3%
Final simplification77.8%
(FPCore (x y z t) :precision binary64 (if (or (<= z -4400000000.0) (not (<= z 1.0))) (* x (/ (+ y t) z)) (* x (- (/ y z) t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4400000000.0) || !(z <= 1.0)) {
tmp = x * ((y + t) / 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 <= (-4400000000.0d0)) .or. (.not. (z <= 1.0d0))) then
tmp = x * ((y + t) / 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 <= -4400000000.0) || !(z <= 1.0)) {
tmp = x * ((y + t) / z);
} else {
tmp = x * ((y / z) - t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -4400000000.0) or not (z <= 1.0): tmp = x * ((y + t) / z) else: tmp = x * ((y / z) - t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -4400000000.0) || !(z <= 1.0)) tmp = Float64(x * Float64(Float64(y + t) / 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 <= -4400000000.0) || ~((z <= 1.0))) tmp = x * ((y + t) / z); else tmp = x * ((y / z) - t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -4400000000.0], N[Not[LessEqual[z, 1.0]], $MachinePrecision]], N[(x * N[(N[(y + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y / z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4400000000 \lor \neg \left(z \leq 1\right):\\
\;\;\;\;x \cdot \frac{y + t}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{y}{z} - t\right)\\
\end{array}
\end{array}
if z < -4.4e9 or 1 < z Initial program 97.5%
Taylor expanded in z around inf 86.2%
*-commutative86.2%
remove-double-neg86.2%
cancel-sign-sub-inv86.2%
metadata-eval86.2%
*-lft-identity86.2%
distribute-neg-out86.2%
neg-mul-186.2%
sub-neg86.2%
distribute-lft-neg-in86.2%
*-commutative86.2%
distribute-neg-frac86.2%
associate-/l*97.4%
distribute-rgt-neg-in97.4%
distribute-neg-frac97.4%
Simplified97.4%
if -4.4e9 < z < 1Initial program 89.0%
Taylor expanded in z around 0 88.3%
mul-1-neg88.3%
unsub-neg88.3%
div-sub88.3%
associate-/l*88.4%
*-inverses88.4%
*-rgt-identity88.4%
Simplified88.4%
Final simplification92.8%
(FPCore (x y z t) :precision binary64 (if (<= z -2.1e+72) (* x (/ t z)) (if (<= z 5.6e-17) (* x (- (/ y z) t)) (* x (/ t (+ z -1.0))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.1e+72) {
tmp = x * (t / z);
} else if (z <= 5.6e-17) {
tmp = x * ((y / z) - t);
} else {
tmp = x * (t / (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 (z <= (-2.1d+72)) then
tmp = x * (t / z)
else if (z <= 5.6d-17) then
tmp = x * ((y / z) - t)
else
tmp = x * (t / (z + (-1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.1e+72) {
tmp = x * (t / z);
} else if (z <= 5.6e-17) {
tmp = x * ((y / z) - t);
} else {
tmp = x * (t / (z + -1.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -2.1e+72: tmp = x * (t / z) elif z <= 5.6e-17: tmp = x * ((y / z) - t) else: tmp = x * (t / (z + -1.0)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -2.1e+72) tmp = Float64(x * Float64(t / z)); elseif (z <= 5.6e-17) tmp = Float64(x * Float64(Float64(y / z) - t)); else tmp = Float64(x * Float64(t / Float64(z + -1.0))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -2.1e+72) tmp = x * (t / z); elseif (z <= 5.6e-17) tmp = x * ((y / z) - t); else tmp = x * (t / (z + -1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -2.1e+72], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.6e-17], N[(x * N[(N[(y / z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision], N[(x * N[(t / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.1 \cdot 10^{+72}:\\
\;\;\;\;x \cdot \frac{t}{z}\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{-17}:\\
\;\;\;\;x \cdot \left(\frac{y}{z} - t\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{t}{z + -1}\\
\end{array}
\end{array}
if z < -2.1000000000000001e72Initial program 95.2%
Taylor expanded in y around 0 66.0%
mul-1-neg66.0%
distribute-neg-frac266.0%
neg-sub066.0%
associate--r-66.0%
metadata-eval66.0%
Simplified66.0%
Taylor expanded in z around inf 50.5%
*-commutative50.5%
*-lft-identity50.5%
times-frac66.0%
/-rgt-identity66.0%
Simplified66.0%
if -2.1000000000000001e72 < z < 5.5999999999999998e-17Initial program 89.8%
Taylor expanded in z around 0 86.2%
mul-1-neg86.2%
unsub-neg86.2%
div-sub86.2%
associate-/l*86.3%
*-inverses86.3%
*-rgt-identity86.3%
Simplified86.3%
if 5.5999999999999998e-17 < z Initial program 99.4%
Taylor expanded in y around 0 68.7%
mul-1-neg68.7%
distribute-neg-frac268.7%
neg-sub068.7%
associate--r-68.7%
metadata-eval68.7%
Simplified68.7%
Final simplification77.9%
(FPCore (x y z t) :precision binary64 (if (or (<= z -4400000000.0) (not (<= z 0.7))) (* t (/ x z)) (* x (- t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4400000000.0) || !(z <= 0.7)) {
tmp = t * (x / z);
} 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 ((z <= (-4400000000.0d0)) .or. (.not. (z <= 0.7d0))) then
tmp = t * (x / z)
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 ((z <= -4400000000.0) || !(z <= 0.7)) {
tmp = t * (x / z);
} else {
tmp = x * -t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -4400000000.0) or not (z <= 0.7): tmp = t * (x / z) else: tmp = x * -t return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -4400000000.0) || !(z <= 0.7)) tmp = Float64(t * Float64(x / z)); else tmp = Float64(x * Float64(-t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -4400000000.0) || ~((z <= 0.7))) tmp = t * (x / z); else tmp = x * -t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -4400000000.0], N[Not[LessEqual[z, 0.7]], $MachinePrecision]], N[(t * N[(x / z), $MachinePrecision]), $MachinePrecision], N[(x * (-t)), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4400000000 \lor \neg \left(z \leq 0.7\right):\\
\;\;\;\;t \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(-t\right)\\
\end{array}
\end{array}
if z < -4.4e9 or 0.69999999999999996 < z Initial program 97.5%
Taylor expanded in y around 0 64.5%
mul-1-neg64.5%
distribute-neg-frac264.5%
neg-sub064.5%
associate--r-64.5%
metadata-eval64.5%
Simplified64.5%
Taylor expanded in z around inf 56.8%
associate-/l*58.3%
Simplified58.3%
if -4.4e9 < z < 0.69999999999999996Initial program 89.0%
Taylor expanded in y around 0 33.0%
mul-1-neg33.0%
distribute-neg-frac233.0%
neg-sub033.0%
associate--r-33.0%
metadata-eval33.0%
Simplified33.0%
Taylor expanded in z around 0 32.6%
*-commutative32.6%
neg-mul-132.6%
distribute-rgt-neg-in32.6%
Simplified32.6%
Final simplification45.3%
(FPCore (x y z t) :precision binary64 (if (or (<= z -4400000000.0) (not (<= z 1.0))) (* x (/ t z)) (* x (- t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4400000000.0) || !(z <= 1.0)) {
tmp = x * (t / z);
} 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 ((z <= (-4400000000.0d0)) .or. (.not. (z <= 1.0d0))) then
tmp = x * (t / z)
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 ((z <= -4400000000.0) || !(z <= 1.0)) {
tmp = x * (t / z);
} else {
tmp = x * -t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -4400000000.0) or not (z <= 1.0): tmp = x * (t / z) else: tmp = x * -t return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -4400000000.0) || !(z <= 1.0)) tmp = Float64(x * Float64(t / z)); else tmp = Float64(x * Float64(-t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -4400000000.0) || ~((z <= 1.0))) tmp = x * (t / z); else tmp = x * -t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -4400000000.0], N[Not[LessEqual[z, 1.0]], $MachinePrecision]], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision], N[(x * (-t)), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4400000000 \lor \neg \left(z \leq 1\right):\\
\;\;\;\;x \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(-t\right)\\
\end{array}
\end{array}
if z < -4.4e9 or 1 < z Initial program 97.5%
Taylor expanded in y around 0 64.5%
mul-1-neg64.5%
distribute-neg-frac264.5%
neg-sub064.5%
associate--r-64.5%
metadata-eval64.5%
Simplified64.5%
Taylor expanded in z around inf 56.8%
*-commutative56.8%
*-lft-identity56.8%
times-frac64.4%
/-rgt-identity64.4%
Simplified64.4%
if -4.4e9 < z < 1Initial program 89.0%
Taylor expanded in y around 0 33.0%
mul-1-neg33.0%
distribute-neg-frac233.0%
neg-sub033.0%
associate--r-33.0%
metadata-eval33.0%
Simplified33.0%
Taylor expanded in z around 0 32.6%
*-commutative32.6%
neg-mul-132.6%
distribute-rgt-neg-in32.6%
Simplified32.6%
Final simplification48.2%
(FPCore (x y z t) :precision binary64 (if (or (<= t -5.6e+115) (not (<= t 21.0))) (* x (/ t z)) (* (/ y z) x)))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -5.6e+115) || !(t <= 21.0)) {
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 <= (-5.6d+115)) .or. (.not. (t <= 21.0d0))) 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 <= -5.6e+115) || !(t <= 21.0)) {
tmp = x * (t / z);
} else {
tmp = (y / z) * x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (t <= -5.6e+115) or not (t <= 21.0): tmp = x * (t / z) else: tmp = (y / z) * x return tmp
function code(x, y, z, t) tmp = 0.0 if ((t <= -5.6e+115) || !(t <= 21.0)) 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 <= -5.6e+115) || ~((t <= 21.0))) tmp = x * (t / z); else tmp = (y / z) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -5.6e+115], N[Not[LessEqual[t, 21.0]], $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 -5.6 \cdot 10^{+115} \lor \neg \left(t \leq 21\right):\\
\;\;\;\;x \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{z} \cdot x\\
\end{array}
\end{array}
if t < -5.6000000000000001e115 or 21 < t Initial program 95.3%
Taylor expanded in y around 0 72.8%
mul-1-neg72.8%
distribute-neg-frac272.8%
neg-sub072.8%
associate--r-72.8%
metadata-eval72.8%
Simplified72.8%
Taylor expanded in z around inf 44.6%
*-commutative44.6%
*-lft-identity44.6%
times-frac54.3%
/-rgt-identity54.3%
Simplified54.3%
if -5.6000000000000001e115 < t < 21Initial program 91.7%
Taylor expanded in y around inf 79.4%
associate-*r/77.0%
Simplified77.0%
Final simplification67.7%
(FPCore (x y z t) :precision binary64 (if (or (<= z -9.6e+74) (not (<= z 880000000000.0))) (* x (/ t z)) (* y (/ x z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -9.6e+74) || !(z <= 880000000000.0)) {
tmp = x * (t / z);
} 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 <= (-9.6d+74)) .or. (.not. (z <= 880000000000.0d0))) then
tmp = x * (t / z)
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 <= -9.6e+74) || !(z <= 880000000000.0)) {
tmp = x * (t / z);
} else {
tmp = y * (x / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -9.6e+74) or not (z <= 880000000000.0): tmp = x * (t / z) else: tmp = y * (x / z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -9.6e+74) || !(z <= 880000000000.0)) tmp = Float64(x * Float64(t / z)); else tmp = Float64(y * Float64(x / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -9.6e+74) || ~((z <= 880000000000.0))) tmp = x * (t / z); else tmp = y * (x / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -9.6e+74], N[Not[LessEqual[z, 880000000000.0]], $MachinePrecision]], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.6 \cdot 10^{+74} \lor \neg \left(z \leq 880000000000\right):\\
\;\;\;\;x \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -9.60000000000000034e74 or 8.8e11 < z Initial program 97.2%
Taylor expanded in y around 0 67.0%
mul-1-neg67.0%
distribute-neg-frac267.0%
neg-sub067.0%
associate--r-67.0%
metadata-eval67.0%
Simplified67.0%
Taylor expanded in z around inf 58.3%
*-commutative58.3%
*-lft-identity58.3%
times-frac67.0%
/-rgt-identity67.0%
Simplified67.0%
if -9.60000000000000034e74 < z < 8.8e11Initial program 90.2%
clear-num90.2%
associate-/r/90.2%
Applied egg-rr90.2%
Taylor expanded in y around inf 71.2%
associate-*l/70.0%
*-commutative70.0%
Simplified70.0%
Final simplification68.7%
(FPCore (x y z t) :precision binary64 (if (or (<= z -4.8e+74) (not (<= z 1.55e+14))) (* x (/ t z)) (/ y (/ z x))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -4.8e+74) || !(z <= 1.55e+14)) {
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 ((z <= (-4.8d+74)) .or. (.not. (z <= 1.55d+14))) 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 ((z <= -4.8e+74) || !(z <= 1.55e+14)) {
tmp = x * (t / z);
} else {
tmp = y / (z / x);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -4.8e+74) or not (z <= 1.55e+14): tmp = x * (t / z) else: tmp = y / (z / x) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -4.8e+74) || !(z <= 1.55e+14)) tmp = Float64(x * Float64(t / z)); else tmp = Float64(y / Float64(z / x)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -4.8e+74) || ~((z <= 1.55e+14))) tmp = x * (t / z); else tmp = y / (z / x); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -4.8e+74], N[Not[LessEqual[z, 1.55e+14]], $MachinePrecision]], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision], N[(y / N[(z / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.8 \cdot 10^{+74} \lor \neg \left(z \leq 1.55 \cdot 10^{+14}\right):\\
\;\;\;\;x \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{\frac{z}{x}}\\
\end{array}
\end{array}
if z < -4.80000000000000017e74 or 1.55e14 < z Initial program 97.2%
Taylor expanded in y around 0 67.0%
mul-1-neg67.0%
distribute-neg-frac267.0%
neg-sub067.0%
associate--r-67.0%
metadata-eval67.0%
Simplified67.0%
Taylor expanded in z around inf 58.3%
*-commutative58.3%
*-lft-identity58.3%
times-frac67.0%
/-rgt-identity67.0%
Simplified67.0%
if -4.80000000000000017e74 < z < 1.55e14Initial program 90.2%
clear-num90.2%
associate-/r/90.2%
Applied egg-rr90.2%
Taylor expanded in y around inf 71.2%
associate-*l/70.0%
*-commutative70.0%
Simplified70.0%
clear-num69.9%
un-div-inv70.2%
Applied egg-rr70.2%
Final simplification68.8%
(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 93.2%
Taylor expanded in y around 0 48.5%
mul-1-neg48.5%
distribute-neg-frac248.5%
neg-sub048.5%
associate--r-48.5%
metadata-eval48.5%
Simplified48.5%
Taylor expanded in z around 0 22.2%
*-commutative22.2%
neg-mul-122.2%
distribute-rgt-neg-in22.2%
Simplified22.2%
Final simplification22.2%
(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 2024096
(FPCore (x y z t)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, C"
:precision binary64
:alt
(if (< (* x (- (/ y z) (/ t (- 1.0 z)))) -7.623226303312042e-196) (* x (- (/ y z) (* t (/ 1.0 (- 1.0 z))))) (if (< (* x (- (/ y z) (/ t (- 1.0 z)))) 1.4133944927702302e-211) (+ (/ (* y x) z) (- (/ (* t x) (- 1.0 z)))) (* x (- (/ y z) (* t (/ 1.0 (- 1.0 z)))))))
(* x (- (/ y z) (/ t (- 1.0 z)))))