
(FPCore (x y z t) :precision binary64 (* x (- (/ y z) (/ t (- 1.0 z)))))
double code(double x, double y, double z, double t) {
return x * ((y / z) - (t / (1.0 - z)));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x * ((y / z) - (t / (1.0d0 - z)))
end function
public static double code(double x, double y, double z, double t) {
return x * ((y / z) - (t / (1.0 - z)));
}
def code(x, y, z, t): return x * ((y / z) - (t / (1.0 - z)))
function code(x, y, z, t) return Float64(x * Float64(Float64(y / z) - Float64(t / Float64(1.0 - z)))) end
function tmp = code(x, y, z, t) tmp = x * ((y / z) - (t / (1.0 - z))); end
code[x_, y_, z_, t_] := N[(x * N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 12 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (* x (- (/ y z) (/ t (- 1.0 z)))))
double code(double x, double y, double z, double t) {
return x * ((y / z) - (t / (1.0 - z)));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x * ((y / z) - (t / (1.0d0 - z)))
end function
public static double code(double x, double y, double z, double t) {
return x * ((y / z) - (t / (1.0 - z)));
}
def code(x, y, z, t): return x * ((y / z) - (t / (1.0 - z)))
function code(x, y, z, t) return Float64(x * Float64(Float64(y / z) - Float64(t / Float64(1.0 - z)))) end
function tmp = code(x, y, z, t) tmp = x * ((y / z) - (t / (1.0 - z))); end
code[x_, y_, z_, t_] := N[(x * N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)
\end{array}
(FPCore (x y z t) :precision binary64 (if (<= y 2.9e-49) (* x (+ (/ y z) (/ t (+ z -1.0)))) (* (* y x) (+ (/ 1.0 z) (/ (/ t y) (+ z -1.0))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 2.9e-49) {
tmp = x * ((y / z) + (t / (z + -1.0)));
} else {
tmp = (y * x) * ((1.0 / z) + ((t / y) / (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 <= 2.9d-49) then
tmp = x * ((y / z) + (t / (z + (-1.0d0))))
else
tmp = (y * x) * ((1.0d0 / z) + ((t / y) / (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 <= 2.9e-49) {
tmp = x * ((y / z) + (t / (z + -1.0)));
} else {
tmp = (y * x) * ((1.0 / z) + ((t / y) / (z + -1.0)));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 2.9e-49: tmp = x * ((y / z) + (t / (z + -1.0))) else: tmp = (y * x) * ((1.0 / z) + ((t / y) / (z + -1.0))) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 2.9e-49) tmp = Float64(x * Float64(Float64(y / z) + Float64(t / Float64(z + -1.0)))); else tmp = Float64(Float64(y * x) * Float64(Float64(1.0 / z) + Float64(Float64(t / y) / Float64(z + -1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= 2.9e-49) tmp = x * ((y / z) + (t / (z + -1.0))); else tmp = (y * x) * ((1.0 / z) + ((t / y) / (z + -1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 2.9e-49], N[(x * N[(N[(y / z), $MachinePrecision] + N[(t / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * N[(N[(1.0 / z), $MachinePrecision] + N[(N[(t / y), $MachinePrecision] / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.9 \cdot 10^{-49}:\\
\;\;\;\;x \cdot \left(\frac{y}{z} + \frac{t}{z + -1}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot x\right) \cdot \left(\frac{1}{z} + \frac{\frac{t}{y}}{z + -1}\right)\\
\end{array}
\end{array}
if y < 2.9e-49Initial program 94.3%
if 2.9e-49 < y Initial program 89.3%
Taylor expanded in y around inf 81.0%
associate-*r/81.0%
associate-*r*81.0%
*-commutative81.0%
times-frac86.5%
associate-/l*86.5%
neg-mul-186.5%
distribute-neg-frac286.5%
neg-sub086.5%
associate--r-86.5%
metadata-eval86.5%
Simplified86.5%
Taylor expanded in x around 0 85.2%
associate-*r*95.5%
sub-neg95.5%
metadata-eval95.5%
associate-/r*99.5%
Simplified99.5%
Final simplification95.7%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (- t))) (t_2 (* x (/ y z))) (t_3 (* t (/ x z))))
(if (<= z -2.1e+212)
t_2
(if (<= z -1.0)
t_3
(if (<= z -3.2e-100)
t_1
(if (<= z 1.12e-113)
(* y (/ x z))
(if (<= z 6e-85) t_1 (if (<= z 3.5e+210) t_2 t_3))))))))
double code(double x, double y, double z, double t) {
double t_1 = x * -t;
double t_2 = x * (y / z);
double t_3 = t * (x / z);
double tmp;
if (z <= -2.1e+212) {
tmp = t_2;
} else if (z <= -1.0) {
tmp = t_3;
} else if (z <= -3.2e-100) {
tmp = t_1;
} else if (z <= 1.12e-113) {
tmp = y * (x / z);
} else if (z <= 6e-85) {
tmp = t_1;
} else if (z <= 3.5e+210) {
tmp = t_2;
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = x * -t
t_2 = x * (y / z)
t_3 = t * (x / z)
if (z <= (-2.1d+212)) then
tmp = t_2
else if (z <= (-1.0d0)) then
tmp = t_3
else if (z <= (-3.2d-100)) then
tmp = t_1
else if (z <= 1.12d-113) then
tmp = y * (x / z)
else if (z <= 6d-85) then
tmp = t_1
else if (z <= 3.5d+210) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x * -t;
double t_2 = x * (y / z);
double t_3 = t * (x / z);
double tmp;
if (z <= -2.1e+212) {
tmp = t_2;
} else if (z <= -1.0) {
tmp = t_3;
} else if (z <= -3.2e-100) {
tmp = t_1;
} else if (z <= 1.12e-113) {
tmp = y * (x / z);
} else if (z <= 6e-85) {
tmp = t_1;
} else if (z <= 3.5e+210) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * -t t_2 = x * (y / z) t_3 = t * (x / z) tmp = 0 if z <= -2.1e+212: tmp = t_2 elif z <= -1.0: tmp = t_3 elif z <= -3.2e-100: tmp = t_1 elif z <= 1.12e-113: tmp = y * (x / z) elif z <= 6e-85: tmp = t_1 elif z <= 3.5e+210: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(-t)) t_2 = Float64(x * Float64(y / z)) t_3 = Float64(t * Float64(x / z)) tmp = 0.0 if (z <= -2.1e+212) tmp = t_2; elseif (z <= -1.0) tmp = t_3; elseif (z <= -3.2e-100) tmp = t_1; elseif (z <= 1.12e-113) tmp = Float64(y * Float64(x / z)); elseif (z <= 6e-85) tmp = t_1; elseif (z <= 3.5e+210) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * -t; t_2 = x * (y / z); t_3 = t * (x / z); tmp = 0.0; if (z <= -2.1e+212) tmp = t_2; elseif (z <= -1.0) tmp = t_3; elseif (z <= -3.2e-100) tmp = t_1; elseif (z <= 1.12e-113) tmp = y * (x / z); elseif (z <= 6e-85) tmp = t_1; elseif (z <= 3.5e+210) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * (-t)), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(x / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.1e+212], t$95$2, If[LessEqual[z, -1.0], t$95$3, If[LessEqual[z, -3.2e-100], t$95$1, If[LessEqual[z, 1.12e-113], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6e-85], t$95$1, If[LessEqual[z, 3.5e+210], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(-t\right)\\
t_2 := x \cdot \frac{y}{z}\\
t_3 := t \cdot \frac{x}{z}\\
\mathbf{if}\;z \leq -2.1 \cdot 10^{+212}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -3.2 \cdot 10^{-100}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.12 \cdot 10^{-113}:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\mathbf{elif}\;z \leq 6 \cdot 10^{-85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{+210}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -2.1e212 or 6.00000000000000044e-85 < z < 3.5e210Initial program 96.9%
Taylor expanded in y around inf 65.2%
associate-*r/66.5%
Simplified66.5%
if -2.1e212 < z < -1 or 3.5e210 < z Initial program 95.0%
Taylor expanded in z around inf 89.3%
associate-/l*93.9%
cancel-sign-sub-inv93.9%
metadata-eval93.9%
*-lft-identity93.9%
+-commutative93.9%
Simplified93.9%
Taylor expanded in t around inf 70.3%
associate-/l*67.7%
Simplified67.7%
if -1 < z < -3.20000000000000017e-100 or 1.1200000000000001e-113 < z < 6.00000000000000044e-85Initial program 96.8%
Taylor expanded in y around inf 80.5%
associate-*r/80.5%
associate-*r*80.5%
*-commutative80.5%
times-frac73.9%
associate-/l*73.9%
neg-mul-173.9%
distribute-neg-frac273.9%
neg-sub073.9%
associate--r-73.9%
metadata-eval73.9%
Simplified73.9%
Taylor expanded in y around 0 80.7%
Taylor expanded in z around 0 77.0%
mul-1-neg77.0%
*-commutative77.0%
distribute-rgt-neg-out77.0%
Simplified77.0%
if -3.20000000000000017e-100 < z < 1.1200000000000001e-113Initial program 87.6%
Taylor expanded in y around inf 81.5%
associate-*r/81.5%
associate-*r*81.5%
*-commutative81.5%
times-frac82.5%
associate-/l*82.5%
neg-mul-182.5%
distribute-neg-frac282.5%
neg-sub082.5%
associate--r-82.5%
metadata-eval82.5%
Simplified82.5%
Taylor expanded in t around 0 72.6%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (/ (+ y t) z))))
(if (<= z -1160000.0)
t_1
(if (<= z -2.6e-100)
(* t (/ x (+ z -1.0)))
(if (<= z 4e-113) (* y (/ x z)) (if (<= z 1.5e-83) (* x (- t)) t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = x * ((y + t) / z);
double tmp;
if (z <= -1160000.0) {
tmp = t_1;
} else if (z <= -2.6e-100) {
tmp = t * (x / (z + -1.0));
} else if (z <= 4e-113) {
tmp = y * (x / z);
} else if (z <= 1.5e-83) {
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 = x * ((y + t) / z)
if (z <= (-1160000.0d0)) then
tmp = t_1
else if (z <= (-2.6d-100)) then
tmp = t * (x / (z + (-1.0d0)))
else if (z <= 4d-113) then
tmp = y * (x / z)
else if (z <= 1.5d-83) 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 = x * ((y + t) / z);
double tmp;
if (z <= -1160000.0) {
tmp = t_1;
} else if (z <= -2.6e-100) {
tmp = t * (x / (z + -1.0));
} else if (z <= 4e-113) {
tmp = y * (x / z);
} else if (z <= 1.5e-83) {
tmp = x * -t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * ((y + t) / z) tmp = 0 if z <= -1160000.0: tmp = t_1 elif z <= -2.6e-100: tmp = t * (x / (z + -1.0)) elif z <= 4e-113: tmp = y * (x / z) elif z <= 1.5e-83: tmp = x * -t else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(Float64(y + t) / z)) tmp = 0.0 if (z <= -1160000.0) tmp = t_1; elseif (z <= -2.6e-100) tmp = Float64(t * Float64(x / Float64(z + -1.0))); elseif (z <= 4e-113) tmp = Float64(y * Float64(x / z)); elseif (z <= 1.5e-83) tmp = Float64(x * Float64(-t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * ((y + t) / z); tmp = 0.0; if (z <= -1160000.0) tmp = t_1; elseif (z <= -2.6e-100) tmp = t * (x / (z + -1.0)); elseif (z <= 4e-113) tmp = y * (x / z); elseif (z <= 1.5e-83) tmp = x * -t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(N[(y + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1160000.0], t$95$1, If[LessEqual[z, -2.6e-100], N[(t * N[(x / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4e-113], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.5e-83], N[(x * (-t)), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{y + t}{z}\\
\mathbf{if}\;z \leq -1160000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-100}:\\
\;\;\;\;t \cdot \frac{x}{z + -1}\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-113}:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{-83}:\\
\;\;\;\;x \cdot \left(-t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.16e6 or 1.50000000000000005e-83 < z Initial program 96.0%
Taylor expanded in z around inf 92.1%
associate-/l*94.3%
cancel-sign-sub-inv94.3%
metadata-eval94.3%
*-lft-identity94.3%
+-commutative94.3%
Simplified94.3%
if -1.16e6 < z < -2.5999999999999998e-100Initial program 96.0%
Taylor expanded in y around 0 75.8%
mul-1-neg75.8%
distribute-neg-frac275.8%
associate-*r/75.8%
neg-sub075.8%
associate--r-75.8%
metadata-eval75.8%
Simplified75.8%
if -2.5999999999999998e-100 < z < 3.99999999999999991e-113Initial program 87.6%
Taylor expanded in y around inf 81.5%
associate-*r/81.5%
associate-*r*81.5%
*-commutative81.5%
times-frac82.5%
associate-/l*82.5%
neg-mul-182.5%
distribute-neg-frac282.5%
neg-sub082.5%
associate--r-82.5%
metadata-eval82.5%
Simplified82.5%
Taylor expanded in t around 0 72.6%
if 3.99999999999999991e-113 < z < 1.50000000000000005e-83Initial program 100.0%
Taylor expanded in y around inf 59.4%
associate-*r/59.4%
associate-*r*59.4%
*-commutative59.4%
times-frac31.4%
associate-/l*31.4%
neg-mul-131.4%
distribute-neg-frac231.4%
neg-sub031.4%
associate--r-31.4%
metadata-eval31.4%
Simplified31.4%
Taylor expanded in y around 0 100.0%
Taylor expanded in z around 0 100.0%
mul-1-neg100.0%
*-commutative100.0%
distribute-rgt-neg-out100.0%
Simplified100.0%
Final simplification84.3%
(FPCore (x y z t) :precision binary64 (if (or (<= y -3.3e+18) (not (<= y 2.3e-75))) (/ (* y x) z) (/ (* x t) (+ z -1.0))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -3.3e+18) || !(y <= 2.3e-75)) {
tmp = (y * x) / z;
} 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 ((y <= (-3.3d+18)) .or. (.not. (y <= 2.3d-75))) then
tmp = (y * x) / z
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 ((y <= -3.3e+18) || !(y <= 2.3e-75)) {
tmp = (y * x) / z;
} else {
tmp = (x * t) / (z + -1.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -3.3e+18) or not (y <= 2.3e-75): tmp = (y * x) / z else: tmp = (x * t) / (z + -1.0) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -3.3e+18) || !(y <= 2.3e-75)) tmp = Float64(Float64(y * x) / z); else tmp = Float64(Float64(x * t) / Float64(z + -1.0)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -3.3e+18) || ~((y <= 2.3e-75))) tmp = (y * x) / z; else tmp = (x * t) / (z + -1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -3.3e+18], N[Not[LessEqual[y, 2.3e-75]], $MachinePrecision]], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], N[(N[(x * t), $MachinePrecision] / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.3 \cdot 10^{+18} \lor \neg \left(y \leq 2.3 \cdot 10^{-75}\right):\\
\;\;\;\;\frac{y \cdot x}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot t}{z + -1}\\
\end{array}
\end{array}
if y < -3.3e18 or 2.3e-75 < y Initial program 89.4%
Taylor expanded in y around inf 81.9%
if -3.3e18 < y < 2.3e-75Initial program 96.7%
Taylor expanded in y around inf 78.6%
associate-*r/78.6%
associate-*r*78.6%
*-commutative78.6%
times-frac68.0%
associate-/l*68.0%
neg-mul-168.0%
distribute-neg-frac268.0%
neg-sub068.0%
associate--r-68.0%
metadata-eval68.0%
Simplified68.0%
Taylor expanded in y around 0 82.7%
Final simplification82.2%
(FPCore (x y z t) :precision binary64 (if (or (<= y -9.5e+18) (not (<= y 3.6e-75))) (/ (* y x) z) (* t (/ x (+ z -1.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -9.5e+18) || !(y <= 3.6e-75)) {
tmp = (y * x) / 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 <= (-9.5d+18)) .or. (.not. (y <= 3.6d-75))) then
tmp = (y * x) / 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 <= -9.5e+18) || !(y <= 3.6e-75)) {
tmp = (y * x) / z;
} else {
tmp = t * (x / (z + -1.0));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -9.5e+18) or not (y <= 3.6e-75): tmp = (y * x) / z else: tmp = t * (x / (z + -1.0)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -9.5e+18) || !(y <= 3.6e-75)) tmp = Float64(Float64(y * x) / z); else tmp = Float64(t * Float64(x / Float64(z + -1.0))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -9.5e+18) || ~((y <= 3.6e-75))) tmp = (y * x) / z; else tmp = t * (x / (z + -1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -9.5e+18], N[Not[LessEqual[y, 3.6e-75]], $MachinePrecision]], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], N[(t * N[(x / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.5 \cdot 10^{+18} \lor \neg \left(y \leq 3.6 \cdot 10^{-75}\right):\\
\;\;\;\;\frac{y \cdot x}{z}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{x}{z + -1}\\
\end{array}
\end{array}
if y < -9.5e18 or 3.6e-75 < y Initial program 89.4%
Taylor expanded in y around inf 81.9%
if -9.5e18 < y < 3.6e-75Initial program 96.7%
Taylor expanded in y around 0 82.7%
mul-1-neg82.7%
distribute-neg-frac282.7%
associate-*r/77.3%
neg-sub077.3%
associate--r-77.3%
metadata-eval77.3%
Simplified77.3%
Final simplification79.7%
(FPCore (x y z t) :precision binary64 (if (<= y -3.3e+18) (/ (* y x) z) (if (<= y 9e-74) (/ (* x t) (+ z -1.0)) (/ (* x (+ y t)) z))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -3.3e+18) {
tmp = (y * x) / z;
} else if (y <= 9e-74) {
tmp = (x * t) / (z + -1.0);
} else {
tmp = (x * (y + 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 (y <= (-3.3d+18)) then
tmp = (y * x) / z
else if (y <= 9d-74) then
tmp = (x * t) / (z + (-1.0d0))
else
tmp = (x * (y + t)) / z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -3.3e+18) {
tmp = (y * x) / z;
} else if (y <= 9e-74) {
tmp = (x * t) / (z + -1.0);
} else {
tmp = (x * (y + t)) / z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -3.3e+18: tmp = (y * x) / z elif y <= 9e-74: tmp = (x * t) / (z + -1.0) else: tmp = (x * (y + t)) / z return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -3.3e+18) tmp = Float64(Float64(y * x) / z); elseif (y <= 9e-74) tmp = Float64(Float64(x * t) / Float64(z + -1.0)); else tmp = Float64(Float64(x * Float64(y + t)) / z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -3.3e+18) tmp = (y * x) / z; elseif (y <= 9e-74) tmp = (x * t) / (z + -1.0); else tmp = (x * (y + t)) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -3.3e+18], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[y, 9e-74], N[(N[(x * t), $MachinePrecision] / N[(z + -1.0), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(y + t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.3 \cdot 10^{+18}:\\
\;\;\;\;\frac{y \cdot x}{z}\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-74}:\\
\;\;\;\;\frac{x \cdot t}{z + -1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \left(y + t\right)}{z}\\
\end{array}
\end{array}
if y < -3.3e18Initial program 88.5%
Taylor expanded in y around inf 81.3%
if -3.3e18 < y < 8.9999999999999998e-74Initial program 96.7%
Taylor expanded in y around inf 78.6%
associate-*r/78.6%
associate-*r*78.6%
*-commutative78.6%
times-frac68.0%
associate-/l*68.0%
neg-mul-168.0%
distribute-neg-frac268.0%
neg-sub068.0%
associate--r-68.0%
metadata-eval68.0%
Simplified68.0%
Taylor expanded in y around 0 82.7%
if 8.9999999999999998e-74 < y Initial program 90.1%
Taylor expanded in z around inf 89.8%
Final simplification84.5%
(FPCore (x y z t) :precision binary64 (if (<= y 1.4e+71) (* x (+ (/ y z) (/ t (+ z -1.0)))) (/ (* x (+ y t)) z)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 1.4e+71) {
tmp = x * ((y / z) + (t / (z + -1.0)));
} else {
tmp = (x * (y + 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 (y <= 1.4d+71) then
tmp = x * ((y / z) + (t / (z + (-1.0d0))))
else
tmp = (x * (y + t)) / z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= 1.4e+71) {
tmp = x * ((y / z) + (t / (z + -1.0)));
} else {
tmp = (x * (y + t)) / z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 1.4e+71: tmp = x * ((y / z) + (t / (z + -1.0))) else: tmp = (x * (y + t)) / z return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 1.4e+71) tmp = Float64(x * Float64(Float64(y / z) + Float64(t / Float64(z + -1.0)))); else tmp = Float64(Float64(x * Float64(y + t)) / z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= 1.4e+71) tmp = x * ((y / z) + (t / (z + -1.0))); else tmp = (x * (y + t)) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 1.4e+71], N[(x * N[(N[(y / z), $MachinePrecision] + N[(t / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(y + t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.4 \cdot 10^{+71}:\\
\;\;\;\;x \cdot \left(\frac{y}{z} + \frac{t}{z + -1}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \left(y + t\right)}{z}\\
\end{array}
\end{array}
if y < 1.40000000000000001e71Initial program 94.5%
if 1.40000000000000001e71 < y Initial program 85.2%
Taylor expanded in z around inf 99.7%
Final simplification95.4%
(FPCore (x y z t) :precision binary64 (if (or (<= t -9e+76) (not (<= t 1.6e+16))) (* x (/ t z)) (/ (* y x) z)))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -9e+76) || !(t <= 1.6e+16)) {
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 ((t <= (-9d+76)) .or. (.not. (t <= 1.6d+16))) 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 ((t <= -9e+76) || !(t <= 1.6e+16)) {
tmp = x * (t / z);
} else {
tmp = (y * x) / z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (t <= -9e+76) or not (t <= 1.6e+16): tmp = x * (t / z) else: tmp = (y * x) / z return tmp
function code(x, y, z, t) tmp = 0.0 if ((t <= -9e+76) || !(t <= 1.6e+16)) tmp = Float64(x * Float64(t / z)); else tmp = Float64(Float64(y * x) / z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((t <= -9e+76) || ~((t <= 1.6e+16))) tmp = x * (t / z); else tmp = (y * x) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -9e+76], N[Not[LessEqual[t, 1.6e+16]], $MachinePrecision]], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9 \cdot 10^{+76} \lor \neg \left(t \leq 1.6 \cdot 10^{+16}\right):\\
\;\;\;\;x \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot x}{z}\\
\end{array}
\end{array}
if t < -8.9999999999999995e76 or 1.6e16 < t Initial program 97.5%
Taylor expanded in z around inf 64.6%
associate-/l*67.0%
cancel-sign-sub-inv67.0%
metadata-eval67.0%
*-lft-identity67.0%
+-commutative67.0%
Simplified67.0%
Taylor expanded in t around inf 55.7%
associate-/l*49.4%
Simplified49.4%
clear-num49.1%
un-div-inv49.1%
Applied egg-rr49.1%
associate-/r/58.8%
Applied egg-rr58.8%
if -8.9999999999999995e76 < t < 1.6e16Initial program 89.0%
Taylor expanded in y around inf 78.7%
Final simplification69.6%
(FPCore (x y z t) :precision binary64 (if (or (<= t -7e+75) (not (<= t 2700000000000.0))) (* x (/ t z)) (* y (/ x z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -7e+75) || !(t <= 2700000000000.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 ((t <= (-7d+75)) .or. (.not. (t <= 2700000000000.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 ((t <= -7e+75) || !(t <= 2700000000000.0)) {
tmp = x * (t / z);
} else {
tmp = y * (x / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (t <= -7e+75) or not (t <= 2700000000000.0): tmp = x * (t / z) else: tmp = y * (x / z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((t <= -7e+75) || !(t <= 2700000000000.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 ((t <= -7e+75) || ~((t <= 2700000000000.0))) tmp = x * (t / z); else tmp = y * (x / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -7e+75], N[Not[LessEqual[t, 2700000000000.0]], $MachinePrecision]], N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7 \cdot 10^{+75} \lor \neg \left(t \leq 2700000000000\right):\\
\;\;\;\;x \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{x}{z}\\
\end{array}
\end{array}
if t < -6.9999999999999997e75 or 2.7e12 < t Initial program 97.5%
Taylor expanded in z around inf 64.1%
associate-/l*66.5%
cancel-sign-sub-inv66.5%
metadata-eval66.5%
*-lft-identity66.5%
+-commutative66.5%
Simplified66.5%
Taylor expanded in t around inf 55.3%
associate-/l*49.0%
Simplified49.0%
clear-num48.7%
un-div-inv48.8%
Applied egg-rr48.8%
associate-/r/58.3%
Applied egg-rr58.3%
if -6.9999999999999997e75 < t < 2.7e12Initial program 88.9%
Taylor expanded in y around inf 90.8%
associate-*r/90.8%
associate-*r*90.8%
*-commutative90.8%
times-frac81.6%
associate-/l*81.6%
neg-mul-181.6%
distribute-neg-frac281.6%
neg-sub081.6%
associate--r-81.6%
metadata-eval81.6%
Simplified81.6%
Taylor expanded in t around 0 76.4%
Final simplification68.1%
(FPCore (x y z t) :precision binary64 (if (or (<= t -2.7e+78) (not (<= t 1.6e+16))) (* t (/ x z)) (* x (/ y z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -2.7e+78) || !(t <= 1.6e+16)) {
tmp = t * (x / 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 ((t <= (-2.7d+78)) .or. (.not. (t <= 1.6d+16))) then
tmp = t * (x / 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 ((t <= -2.7e+78) || !(t <= 1.6e+16)) {
tmp = t * (x / z);
} else {
tmp = x * (y / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (t <= -2.7e+78) or not (t <= 1.6e+16): tmp = t * (x / z) else: tmp = x * (y / z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((t <= -2.7e+78) || !(t <= 1.6e+16)) tmp = Float64(t * Float64(x / z)); else tmp = Float64(x * Float64(y / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((t <= -2.7e+78) || ~((t <= 1.6e+16))) tmp = t * (x / z); else tmp = x * (y / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -2.7e+78], N[Not[LessEqual[t, 1.6e+16]], $MachinePrecision]], N[(t * N[(x / z), $MachinePrecision]), $MachinePrecision], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.7 \cdot 10^{+78} \lor \neg \left(t \leq 1.6 \cdot 10^{+16}\right):\\
\;\;\;\;t \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\end{array}
\end{array}
if t < -2.70000000000000004e78 or 1.6e16 < t Initial program 97.5%
Taylor expanded in z around inf 64.3%
associate-/l*66.7%
cancel-sign-sub-inv66.7%
metadata-eval66.7%
*-lft-identity66.7%
+-commutative66.7%
Simplified66.7%
Taylor expanded in t around inf 55.3%
associate-/l*49.1%
Simplified49.1%
if -2.70000000000000004e78 < t < 1.6e16Initial program 89.1%
Taylor expanded in y around inf 78.7%
associate-*r/75.4%
Simplified75.4%
Final simplification63.5%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.0) (not (<= z 1.0))) (* t (/ x z)) (* x (- t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.0) || !(z <= 1.0)) {
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 <= (-1.0d0)) .or. (.not. (z <= 1.0d0))) 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 <= -1.0) || !(z <= 1.0)) {
tmp = t * (x / z);
} else {
tmp = x * -t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -1.0) or not (z <= 1.0): tmp = t * (x / z) else: tmp = x * -t return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -1.0) || !(z <= 1.0)) 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 <= -1.0) || ~((z <= 1.0))) tmp = t * (x / z); else tmp = x * -t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.0], N[Not[LessEqual[z, 1.0]], $MachinePrecision]], N[(t * N[(x / z), $MachinePrecision]), $MachinePrecision], N[(x * (-t)), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \lor \neg \left(z \leq 1\right):\\
\;\;\;\;t \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(-t\right)\\
\end{array}
\end{array}
if z < -1 or 1 < z Initial program 95.7%
Taylor expanded in z around inf 92.7%
associate-/l*95.0%
cancel-sign-sub-inv95.0%
metadata-eval95.0%
*-lft-identity95.0%
+-commutative95.0%
Simplified95.0%
Taylor expanded in t around inf 61.8%
associate-/l*55.5%
Simplified55.5%
if -1 < z < 1Initial program 90.5%
Taylor expanded in y around inf 81.9%
associate-*r/81.9%
associate-*r*81.9%
*-commutative81.9%
times-frac81.2%
associate-/l*81.2%
neg-mul-181.2%
distribute-neg-frac281.2%
neg-sub081.2%
associate--r-81.2%
metadata-eval81.2%
Simplified81.2%
Taylor expanded in y around 0 41.9%
Taylor expanded in z around 0 41.1%
mul-1-neg41.1%
*-commutative41.1%
distribute-rgt-neg-out41.1%
Simplified41.1%
Final simplification47.7%
(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 92.9%
Taylor expanded in y around inf 81.1%
associate-*r/81.1%
associate-*r*81.1%
*-commutative81.1%
times-frac77.7%
associate-/l*77.7%
neg-mul-177.7%
distribute-neg-frac277.7%
neg-sub077.7%
associate--r-77.7%
metadata-eval77.7%
Simplified77.7%
Taylor expanded in y around 0 51.3%
Taylor expanded in z around 0 28.0%
mul-1-neg28.0%
*-commutative28.0%
distribute-rgt-neg-out28.0%
Simplified28.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 2024083
(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)))))