
(FPCore (x y z t) :precision binary64 (/ x (* (- y z) (- t z))))
double code(double x, double y, double z, double t) {
return x / ((y - z) * (t - 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 - z))
end function
public static double code(double x, double y, double z, double t) {
return x / ((y - z) * (t - z));
}
def code(x, y, z, t): return x / ((y - z) * (t - z))
function code(x, y, z, t) return Float64(x / Float64(Float64(y - z) * Float64(t - z))) end
function tmp = code(x, y, z, t) tmp = x / ((y - z) * (t - z)); end
code[x_, y_, z_, t_] := N[(x / N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\left(y - z\right) \cdot \left(t - z\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (/ x (* (- y z) (- t z))))
double code(double x, double y, double z, double t) {
return x / ((y - z) * (t - 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 - z))
end function
public static double code(double x, double y, double z, double t) {
return x / ((y - z) * (t - z));
}
def code(x, y, z, t): return x / ((y - z) * (t - z))
function code(x, y, z, t) return Float64(x / Float64(Float64(y - z) * Float64(t - z))) end
function tmp = code(x, y, z, t) tmp = x / ((y - z) * (t - z)); end
code[x_, y_, z_, t_] := N[(x / N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\left(y - z\right) \cdot \left(t - z\right)}
\end{array}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (/ (/ x (- y z)) (- t z)))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
return (x / (y - z)) / (t - z);
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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 - z)
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
return (x / (y - z)) / (t - z);
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): return (x / (y - z)) / (t - z)
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) return Float64(Float64(x / Float64(y - z)) / Float64(t - z)) end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp = code(x, y, z, t)
tmp = (x / (y - z)) / (t - z);
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\frac{\frac{x}{y - z}}{t - z}
\end{array}
Initial program 85.9%
Taylor expanded in x around 0 85.9%
associate-/l/97.2%
Simplified97.2%
Final simplification97.2%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(if (<= y -35000000000000.0)
(/ (/ x y) (- t z))
(if (<= y -1.02e-44)
(/ x (* z (- z y)))
(if (<= y -4.1e-81)
(/ (/ x (- t z)) y)
(if (<= y 1.2e-86) (/ x (* z (- z t))) (/ (/ x t) (- y z)))))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -35000000000000.0) {
tmp = (x / y) / (t - z);
} else if (y <= -1.02e-44) {
tmp = x / (z * (z - y));
} else if (y <= -4.1e-81) {
tmp = (x / (t - z)) / y;
} else if (y <= 1.2e-86) {
tmp = x / (z * (z - t));
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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 <= (-35000000000000.0d0)) then
tmp = (x / y) / (t - z)
else if (y <= (-1.02d-44)) then
tmp = x / (z * (z - y))
else if (y <= (-4.1d-81)) then
tmp = (x / (t - z)) / y
else if (y <= 1.2d-86) then
tmp = x / (z * (z - t))
else
tmp = (x / t) / (y - z)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -35000000000000.0) {
tmp = (x / y) / (t - z);
} else if (y <= -1.02e-44) {
tmp = x / (z * (z - y));
} else if (y <= -4.1e-81) {
tmp = (x / (t - z)) / y;
} else if (y <= 1.2e-86) {
tmp = x / (z * (z - t));
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if y <= -35000000000000.0: tmp = (x / y) / (t - z) elif y <= -1.02e-44: tmp = x / (z * (z - y)) elif y <= -4.1e-81: tmp = (x / (t - z)) / y elif y <= 1.2e-86: tmp = x / (z * (z - t)) else: tmp = (x / t) / (y - z) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (y <= -35000000000000.0) tmp = Float64(Float64(x / y) / Float64(t - z)); elseif (y <= -1.02e-44) tmp = Float64(x / Float64(z * Float64(z - y))); elseif (y <= -4.1e-81) tmp = Float64(Float64(x / Float64(t - z)) / y); elseif (y <= 1.2e-86) tmp = Float64(x / Float64(z * Float64(z - t))); else tmp = Float64(Float64(x / t) / Float64(y - z)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (y <= -35000000000000.0)
tmp = (x / y) / (t - z);
elseif (y <= -1.02e-44)
tmp = x / (z * (z - y));
elseif (y <= -4.1e-81)
tmp = (x / (t - z)) / y;
elseif (y <= 1.2e-86)
tmp = x / (z * (z - t));
else
tmp = (x / t) / (y - z);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[y, -35000000000000.0], N[(N[(x / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.02e-44], N[(x / N[(z * N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.1e-81], N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 1.2e-86], N[(x / N[(z * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -35000000000000:\\
\;\;\;\;\frac{\frac{x}{y}}{t - z}\\
\mathbf{elif}\;y \leq -1.02 \cdot 10^{-44}:\\
\;\;\;\;\frac{x}{z \cdot \left(z - y\right)}\\
\mathbf{elif}\;y \leq -4.1 \cdot 10^{-81}:\\
\;\;\;\;\frac{\frac{x}{t - z}}{y}\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{-86}:\\
\;\;\;\;\frac{x}{z \cdot \left(z - t\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if y < -3.5e13Initial program 84.5%
Taylor expanded in x around 0 84.5%
associate-/l/99.6%
Simplified99.6%
Taylor expanded in y around inf 95.8%
if -3.5e13 < y < -1.0199999999999999e-44Initial program 91.7%
Taylor expanded in x around 0 91.7%
associate-/l/99.7%
Simplified99.7%
Taylor expanded in t around 0 40.2%
associate-*r/40.2%
neg-mul-140.2%
Simplified40.2%
if -1.0199999999999999e-44 < y < -4.09999999999999984e-81Initial program 88.5%
clear-num88.1%
associate-/r/88.3%
Applied egg-rr88.3%
associate-*l/88.5%
*-commutative88.5%
frac-times99.6%
clear-num99.8%
un-div-inv100.0%
Applied egg-rr100.0%
Taylor expanded in y around inf 40.7%
*-rgt-identity40.7%
times-frac40.3%
associate-*l/51.3%
associate-*r/51.3%
*-rgt-identity51.3%
Simplified51.3%
if -4.09999999999999984e-81 < y < 1.20000000000000007e-86Initial program 87.6%
Taylor expanded in y around 0 74.0%
associate-*r/74.0%
neg-mul-174.0%
Simplified74.0%
if 1.20000000000000007e-86 < y Initial program 83.7%
associate-/l/95.2%
Simplified95.2%
Taylor expanded in t around inf 62.1%
Final simplification73.4%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (/ x y) t)))
(if (<= t -1.45e-87)
t_1
(if (<= t 1.2e-151)
(/ x (* y (- z)))
(if (<= t 1.65e+91)
t_1
(if (<= t 1.45e+211) (/ x (* z (- t))) (/ (/ x t) y)))))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double t_1 = (x / y) / t;
double tmp;
if (t <= -1.45e-87) {
tmp = t_1;
} else if (t <= 1.2e-151) {
tmp = x / (y * -z);
} else if (t <= 1.65e+91) {
tmp = t_1;
} else if (t <= 1.45e+211) {
tmp = x / (z * -t);
} else {
tmp = (x / t) / y;
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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
if (t <= (-1.45d-87)) then
tmp = t_1
else if (t <= 1.2d-151) then
tmp = x / (y * -z)
else if (t <= 1.65d+91) then
tmp = t_1
else if (t <= 1.45d+211) then
tmp = x / (z * -t)
else
tmp = (x / t) / y
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double t_1 = (x / y) / t;
double tmp;
if (t <= -1.45e-87) {
tmp = t_1;
} else if (t <= 1.2e-151) {
tmp = x / (y * -z);
} else if (t <= 1.65e+91) {
tmp = t_1;
} else if (t <= 1.45e+211) {
tmp = x / (z * -t);
} else {
tmp = (x / t) / y;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): t_1 = (x / y) / t tmp = 0 if t <= -1.45e-87: tmp = t_1 elif t <= 1.2e-151: tmp = x / (y * -z) elif t <= 1.65e+91: tmp = t_1 elif t <= 1.45e+211: tmp = x / (z * -t) else: tmp = (x / t) / y return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) t_1 = Float64(Float64(x / y) / t) tmp = 0.0 if (t <= -1.45e-87) tmp = t_1; elseif (t <= 1.2e-151) tmp = Float64(x / Float64(y * Float64(-z))); elseif (t <= 1.65e+91) tmp = t_1; elseif (t <= 1.45e+211) tmp = Float64(x / Float64(z * Float64(-t))); else tmp = Float64(Float64(x / t) / y); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = (x / y) / t;
tmp = 0.0;
if (t <= -1.45e-87)
tmp = t_1;
elseif (t <= 1.2e-151)
tmp = x / (y * -z);
elseif (t <= 1.65e+91)
tmp = t_1;
elseif (t <= 1.45e+211)
tmp = x / (z * -t);
else
tmp = (x / t) / y;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / y), $MachinePrecision] / t), $MachinePrecision]}, If[LessEqual[t, -1.45e-87], t$95$1, If[LessEqual[t, 1.2e-151], N[(x / N[(y * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.65e+91], t$95$1, If[LessEqual[t, 1.45e+211], N[(x / N[(z * (-t)), $MachinePrecision]), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision]]]]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{y}}{t}\\
\mathbf{if}\;t \leq -1.45 \cdot 10^{-87}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-151}:\\
\;\;\;\;\frac{x}{y \cdot \left(-z\right)}\\
\mathbf{elif}\;t \leq 1.65 \cdot 10^{+91}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{+211}:\\
\;\;\;\;\frac{x}{z \cdot \left(-t\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y}\\
\end{array}
\end{array}
if t < -1.45e-87 or 1.2e-151 < t < 1.65000000000000009e91Initial program 91.5%
clear-num91.4%
associate-/r/91.4%
Applied egg-rr91.4%
associate-*l/91.5%
*-commutative91.5%
frac-times97.1%
clear-num96.8%
un-div-inv97.5%
Applied egg-rr97.5%
Taylor expanded in z around 0 48.2%
*-rgt-identity48.2%
associate-*r/48.1%
associate-/l/48.8%
associate-*r/50.9%
associate-*r/50.9%
*-rgt-identity50.9%
Simplified50.9%
if -1.45e-87 < t < 1.2e-151Initial program 84.8%
Taylor expanded in x around 0 84.8%
associate-/l/96.1%
Simplified96.1%
Taylor expanded in y around inf 62.2%
Taylor expanded in t around 0 52.8%
mul-1-neg52.8%
distribute-neg-frac252.8%
*-commutative52.8%
distribute-rgt-neg-out52.8%
Simplified52.8%
if 1.65000000000000009e91 < t < 1.45e211Initial program 66.4%
associate-/l/99.8%
Simplified99.8%
Taylor expanded in t around inf 82.2%
Taylor expanded in y around 0 48.0%
associate-*r/48.0%
neg-mul-148.0%
Simplified48.0%
if 1.45e211 < t Initial program 74.7%
clear-num74.6%
associate-/r/74.7%
Applied egg-rr74.7%
associate-*l/74.7%
*-commutative74.7%
frac-times99.6%
clear-num99.5%
un-div-inv99.5%
Applied egg-rr99.5%
Taylor expanded in z around 0 49.0%
associate-/r*73.6%
Simplified73.6%
Final simplification53.1%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (/ x y) t)))
(if (<= t -2.3e-90)
t_1
(if (<= t 4.6e-151)
(/ x (* z (- y)))
(if (<= t 3e+177)
t_1
(if (<= t 3.9e+246) (/ (/ x (- z)) t) (/ (/ x t) y)))))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double t_1 = (x / y) / t;
double tmp;
if (t <= -2.3e-90) {
tmp = t_1;
} else if (t <= 4.6e-151) {
tmp = x / (z * -y);
} else if (t <= 3e+177) {
tmp = t_1;
} else if (t <= 3.9e+246) {
tmp = (x / -z) / t;
} else {
tmp = (x / t) / y;
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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
if (t <= (-2.3d-90)) then
tmp = t_1
else if (t <= 4.6d-151) then
tmp = x / (z * -y)
else if (t <= 3d+177) then
tmp = t_1
else if (t <= 3.9d+246) then
tmp = (x / -z) / t
else
tmp = (x / t) / y
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double t_1 = (x / y) / t;
double tmp;
if (t <= -2.3e-90) {
tmp = t_1;
} else if (t <= 4.6e-151) {
tmp = x / (z * -y);
} else if (t <= 3e+177) {
tmp = t_1;
} else if (t <= 3.9e+246) {
tmp = (x / -z) / t;
} else {
tmp = (x / t) / y;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): t_1 = (x / y) / t tmp = 0 if t <= -2.3e-90: tmp = t_1 elif t <= 4.6e-151: tmp = x / (z * -y) elif t <= 3e+177: tmp = t_1 elif t <= 3.9e+246: tmp = (x / -z) / t else: tmp = (x / t) / y return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) t_1 = Float64(Float64(x / y) / t) tmp = 0.0 if (t <= -2.3e-90) tmp = t_1; elseif (t <= 4.6e-151) tmp = Float64(x / Float64(z * Float64(-y))); elseif (t <= 3e+177) tmp = t_1; elseif (t <= 3.9e+246) tmp = Float64(Float64(x / Float64(-z)) / t); else tmp = Float64(Float64(x / t) / y); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = (x / y) / t;
tmp = 0.0;
if (t <= -2.3e-90)
tmp = t_1;
elseif (t <= 4.6e-151)
tmp = x / (z * -y);
elseif (t <= 3e+177)
tmp = t_1;
elseif (t <= 3.9e+246)
tmp = (x / -z) / t;
else
tmp = (x / t) / y;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / y), $MachinePrecision] / t), $MachinePrecision]}, If[LessEqual[t, -2.3e-90], t$95$1, If[LessEqual[t, 4.6e-151], N[(x / N[(z * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e+177], t$95$1, If[LessEqual[t, 3.9e+246], N[(N[(x / (-z)), $MachinePrecision] / t), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision]]]]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{y}}{t}\\
\mathbf{if}\;t \leq -2.3 \cdot 10^{-90}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{-151}:\\
\;\;\;\;\frac{x}{z \cdot \left(-y\right)}\\
\mathbf{elif}\;t \leq 3 \cdot 10^{+177}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{+246}:\\
\;\;\;\;\frac{\frac{x}{-z}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y}\\
\end{array}
\end{array}
if t < -2.2999999999999998e-90 or 4.59999999999999992e-151 < t < 3e177Initial program 89.2%
clear-num89.0%
associate-/r/89.1%
Applied egg-rr89.1%
associate-*l/89.2%
*-commutative89.2%
frac-times97.3%
clear-num97.0%
un-div-inv97.7%
Applied egg-rr97.7%
Taylor expanded in z around 0 48.3%
*-rgt-identity48.3%
associate-*r/48.2%
associate-/l/48.8%
associate-*r/51.5%
associate-*r/51.5%
*-rgt-identity51.5%
Simplified51.5%
if -2.2999999999999998e-90 < t < 4.59999999999999992e-151Initial program 85.8%
Taylor expanded in x around 0 85.8%
associate-/l/96.0%
Simplified96.0%
Taylor expanded in y around inf 62.5%
Taylor expanded in t around 0 53.4%
mul-1-neg53.4%
distribute-neg-frac253.4%
*-commutative53.4%
distribute-rgt-neg-out53.4%
Simplified53.4%
if 3e177 < t < 3.9e246Initial program 70.4%
associate-/l/99.8%
Simplified99.8%
Taylor expanded in t around inf 94.6%
Taylor expanded in y around 0 60.1%
associate-*r/60.1%
neg-mul-160.1%
Simplified60.1%
Taylor expanded in x around 0 60.1%
mul-1-neg60.1%
associate-/l/69.8%
distribute-neg-frac269.8%
Simplified69.8%
if 3.9e246 < t Initial program 71.8%
clear-num71.8%
associate-/r/71.8%
Applied egg-rr71.8%
associate-*l/71.8%
*-commutative71.8%
frac-times99.5%
clear-num99.4%
un-div-inv99.5%
Applied egg-rr99.5%
Taylor expanded in z around 0 43.3%
associate-/r*70.5%
Simplified70.5%
Final simplification54.3%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ x (- z))) (t_2 (/ (/ x y) t)))
(if (<= t -9e-88)
t_2
(if (<= t 4.2e-153)
(/ t_1 y)
(if (<= t 3.9e+177)
t_2
(if (<= t 4.5e+246) (/ t_1 t) (/ (/ x t) y)))))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double t_1 = x / -z;
double t_2 = (x / y) / t;
double tmp;
if (t <= -9e-88) {
tmp = t_2;
} else if (t <= 4.2e-153) {
tmp = t_1 / y;
} else if (t <= 3.9e+177) {
tmp = t_2;
} else if (t <= 4.5e+246) {
tmp = t_1 / t;
} else {
tmp = (x / t) / y;
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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 / -z
t_2 = (x / y) / t
if (t <= (-9d-88)) then
tmp = t_2
else if (t <= 4.2d-153) then
tmp = t_1 / y
else if (t <= 3.9d+177) then
tmp = t_2
else if (t <= 4.5d+246) then
tmp = t_1 / t
else
tmp = (x / t) / y
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double t_1 = x / -z;
double t_2 = (x / y) / t;
double tmp;
if (t <= -9e-88) {
tmp = t_2;
} else if (t <= 4.2e-153) {
tmp = t_1 / y;
} else if (t <= 3.9e+177) {
tmp = t_2;
} else if (t <= 4.5e+246) {
tmp = t_1 / t;
} else {
tmp = (x / t) / y;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): t_1 = x / -z t_2 = (x / y) / t tmp = 0 if t <= -9e-88: tmp = t_2 elif t <= 4.2e-153: tmp = t_1 / y elif t <= 3.9e+177: tmp = t_2 elif t <= 4.5e+246: tmp = t_1 / t else: tmp = (x / t) / y return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) t_1 = Float64(x / Float64(-z)) t_2 = Float64(Float64(x / y) / t) tmp = 0.0 if (t <= -9e-88) tmp = t_2; elseif (t <= 4.2e-153) tmp = Float64(t_1 / y); elseif (t <= 3.9e+177) tmp = t_2; elseif (t <= 4.5e+246) tmp = Float64(t_1 / t); else tmp = Float64(Float64(x / t) / y); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = x / -z;
t_2 = (x / y) / t;
tmp = 0.0;
if (t <= -9e-88)
tmp = t_2;
elseif (t <= 4.2e-153)
tmp = t_1 / y;
elseif (t <= 3.9e+177)
tmp = t_2;
elseif (t <= 4.5e+246)
tmp = t_1 / t;
else
tmp = (x / t) / y;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x / (-z)), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / y), $MachinePrecision] / t), $MachinePrecision]}, If[LessEqual[t, -9e-88], t$95$2, If[LessEqual[t, 4.2e-153], N[(t$95$1 / y), $MachinePrecision], If[LessEqual[t, 3.9e+177], t$95$2, If[LessEqual[t, 4.5e+246], N[(t$95$1 / t), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision]]]]]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
t_1 := \frac{x}{-z}\\
t_2 := \frac{\frac{x}{y}}{t}\\
\mathbf{if}\;t \leq -9 \cdot 10^{-88}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-153}:\\
\;\;\;\;\frac{t\_1}{y}\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{+177}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{+246}:\\
\;\;\;\;\frac{t\_1}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y}\\
\end{array}
\end{array}
if t < -8.99999999999999982e-88 or 4.20000000000000008e-153 < t < 3.8999999999999999e177Initial program 89.7%
clear-num89.6%
associate-/r/89.6%
Applied egg-rr89.6%
associate-*l/89.7%
*-commutative89.7%
frac-times97.3%
clear-num97.0%
un-div-inv97.7%
Applied egg-rr97.7%
Taylor expanded in z around 0 48.5%
*-rgt-identity48.5%
associate-*r/48.5%
associate-/l/49.1%
associate-*r/51.6%
associate-*r/51.5%
*-rgt-identity51.5%
Simplified51.5%
if -8.99999999999999982e-88 < t < 4.20000000000000008e-153Initial program 84.8%
clear-num84.3%
associate-/r/84.8%
Applied egg-rr84.8%
associate-*l/84.8%
*-commutative84.8%
frac-times95.9%
clear-num95.9%
un-div-inv95.9%
Applied egg-rr95.9%
Taylor expanded in y around inf 59.3%
*-rgt-identity59.3%
times-frac62.1%
associate-*l/64.5%
associate-*r/64.6%
*-rgt-identity64.6%
Simplified64.6%
Taylor expanded in t around 0 52.8%
associate-*r/52.8%
*-commutative52.8%
associate-/r*56.5%
neg-mul-156.5%
Simplified56.5%
if 3.8999999999999999e177 < t < 4.5e246Initial program 70.4%
associate-/l/99.8%
Simplified99.8%
Taylor expanded in t around inf 94.6%
Taylor expanded in y around 0 60.1%
associate-*r/60.1%
neg-mul-160.1%
Simplified60.1%
Taylor expanded in x around 0 60.1%
mul-1-neg60.1%
associate-/l/69.8%
distribute-neg-frac269.8%
Simplified69.8%
if 4.5e246 < t Initial program 71.8%
clear-num71.8%
associate-/r/71.8%
Applied egg-rr71.8%
associate-*l/71.8%
*-commutative71.8%
frac-times99.5%
clear-num99.4%
un-div-inv99.5%
Applied egg-rr99.5%
Taylor expanded in z around 0 43.3%
associate-/r*70.5%
Simplified70.5%
Final simplification55.3%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ x (- z))))
(if (<= t -9.5e-87)
(* (/ 1.0 y) (/ x t))
(if (<= t 6.5e-151)
(/ t_1 y)
(if (<= t 3.9e+177)
(/ (/ x y) t)
(if (<= t 3.9e+246) (/ t_1 t) (/ (/ x t) y)))))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double t_1 = x / -z;
double tmp;
if (t <= -9.5e-87) {
tmp = (1.0 / y) * (x / t);
} else if (t <= 6.5e-151) {
tmp = t_1 / y;
} else if (t <= 3.9e+177) {
tmp = (x / y) / t;
} else if (t <= 3.9e+246) {
tmp = t_1 / t;
} else {
tmp = (x / t) / y;
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = x / -z
if (t <= (-9.5d-87)) then
tmp = (1.0d0 / y) * (x / t)
else if (t <= 6.5d-151) then
tmp = t_1 / y
else if (t <= 3.9d+177) then
tmp = (x / y) / t
else if (t <= 3.9d+246) then
tmp = t_1 / t
else
tmp = (x / t) / y
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double t_1 = x / -z;
double tmp;
if (t <= -9.5e-87) {
tmp = (1.0 / y) * (x / t);
} else if (t <= 6.5e-151) {
tmp = t_1 / y;
} else if (t <= 3.9e+177) {
tmp = (x / y) / t;
} else if (t <= 3.9e+246) {
tmp = t_1 / t;
} else {
tmp = (x / t) / y;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): t_1 = x / -z tmp = 0 if t <= -9.5e-87: tmp = (1.0 / y) * (x / t) elif t <= 6.5e-151: tmp = t_1 / y elif t <= 3.9e+177: tmp = (x / y) / t elif t <= 3.9e+246: tmp = t_1 / t else: tmp = (x / t) / y return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) t_1 = Float64(x / Float64(-z)) tmp = 0.0 if (t <= -9.5e-87) tmp = Float64(Float64(1.0 / y) * Float64(x / t)); elseif (t <= 6.5e-151) tmp = Float64(t_1 / y); elseif (t <= 3.9e+177) tmp = Float64(Float64(x / y) / t); elseif (t <= 3.9e+246) tmp = Float64(t_1 / t); else tmp = Float64(Float64(x / t) / y); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = x / -z;
tmp = 0.0;
if (t <= -9.5e-87)
tmp = (1.0 / y) * (x / t);
elseif (t <= 6.5e-151)
tmp = t_1 / y;
elseif (t <= 3.9e+177)
tmp = (x / y) / t;
elseif (t <= 3.9e+246)
tmp = t_1 / t;
else
tmp = (x / t) / y;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x / (-z)), $MachinePrecision]}, If[LessEqual[t, -9.5e-87], N[(N[(1.0 / y), $MachinePrecision] * N[(x / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e-151], N[(t$95$1 / y), $MachinePrecision], If[LessEqual[t, 3.9e+177], N[(N[(x / y), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t, 3.9e+246], N[(t$95$1 / t), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision]]]]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
t_1 := \frac{x}{-z}\\
\mathbf{if}\;t \leq -9.5 \cdot 10^{-87}:\\
\;\;\;\;\frac{1}{y} \cdot \frac{x}{t}\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-151}:\\
\;\;\;\;\frac{t\_1}{y}\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{+177}:\\
\;\;\;\;\frac{\frac{x}{y}}{t}\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{+246}:\\
\;\;\;\;\frac{t\_1}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y}\\
\end{array}
\end{array}
if t < -9.5e-87Initial program 87.8%
Taylor expanded in z around 0 48.0%
associate-/r*54.7%
div-inv54.7%
Applied egg-rr54.7%
if -9.5e-87 < t < 6.4999999999999994e-151Initial program 84.8%
clear-num84.3%
associate-/r/84.8%
Applied egg-rr84.8%
associate-*l/84.8%
*-commutative84.8%
frac-times95.9%
clear-num95.9%
un-div-inv95.9%
Applied egg-rr95.9%
Taylor expanded in y around inf 59.3%
*-rgt-identity59.3%
times-frac62.1%
associate-*l/64.5%
associate-*r/64.6%
*-rgt-identity64.6%
Simplified64.6%
Taylor expanded in t around 0 52.8%
associate-*r/52.8%
*-commutative52.8%
associate-/r*56.5%
neg-mul-156.5%
Simplified56.5%
if 6.4999999999999994e-151 < t < 3.8999999999999999e177Initial program 93.1%
clear-num92.9%
associate-/r/93.0%
Applied egg-rr93.0%
associate-*l/93.1%
*-commutative93.1%
frac-times98.3%
clear-num97.8%
un-div-inv98.0%
Applied egg-rr98.0%
Taylor expanded in z around 0 49.5%
*-rgt-identity49.5%
associate-*r/49.5%
associate-/l/49.5%
associate-*r/52.8%
associate-*r/52.8%
*-rgt-identity52.8%
Simplified52.8%
if 3.8999999999999999e177 < t < 3.9e246Initial program 70.4%
associate-/l/99.8%
Simplified99.8%
Taylor expanded in t around inf 94.6%
Taylor expanded in y around 0 60.1%
associate-*r/60.1%
neg-mul-160.1%
Simplified60.1%
Taylor expanded in x around 0 60.1%
mul-1-neg60.1%
associate-/l/69.8%
distribute-neg-frac269.8%
Simplified69.8%
if 3.9e246 < t Initial program 71.8%
clear-num71.8%
associate-/r/71.8%
Applied egg-rr71.8%
associate-*l/71.8%
*-commutative71.8%
frac-times99.5%
clear-num99.4%
un-div-inv99.5%
Applied egg-rr99.5%
Taylor expanded in z around 0 43.3%
associate-/r*70.5%
Simplified70.5%
Final simplification56.7%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(if (<= z -2.4e-46)
(/ (/ x z) (- z y))
(if (<= z -5e-97)
(/ x (* z (- z t)))
(if (<= z 6.2e+46) (* (/ x (- t z)) (/ 1.0 y)) (/ (/ x z) (- z t))))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.4e-46) {
tmp = (x / z) / (z - y);
} else if (z <= -5e-97) {
tmp = x / (z * (z - t));
} else if (z <= 6.2e+46) {
tmp = (x / (t - z)) * (1.0 / y);
} else {
tmp = (x / z) / (z - t);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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.4d-46)) then
tmp = (x / z) / (z - y)
else if (z <= (-5d-97)) then
tmp = x / (z * (z - t))
else if (z <= 6.2d+46) then
tmp = (x / (t - z)) * (1.0d0 / y)
else
tmp = (x / z) / (z - t)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.4e-46) {
tmp = (x / z) / (z - y);
} else if (z <= -5e-97) {
tmp = x / (z * (z - t));
} else if (z <= 6.2e+46) {
tmp = (x / (t - z)) * (1.0 / y);
} else {
tmp = (x / z) / (z - t);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if z <= -2.4e-46: tmp = (x / z) / (z - y) elif z <= -5e-97: tmp = x / (z * (z - t)) elif z <= 6.2e+46: tmp = (x / (t - z)) * (1.0 / y) else: tmp = (x / z) / (z - t) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (z <= -2.4e-46) tmp = Float64(Float64(x / z) / Float64(z - y)); elseif (z <= -5e-97) tmp = Float64(x / Float64(z * Float64(z - t))); elseif (z <= 6.2e+46) tmp = Float64(Float64(x / Float64(t - z)) * Float64(1.0 / y)); else tmp = Float64(Float64(x / z) / Float64(z - t)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (z <= -2.4e-46)
tmp = (x / z) / (z - y);
elseif (z <= -5e-97)
tmp = x / (z * (z - t));
elseif (z <= 6.2e+46)
tmp = (x / (t - z)) * (1.0 / y);
else
tmp = (x / z) / (z - t);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[z, -2.4e-46], N[(N[(x / z), $MachinePrecision] / N[(z - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5e-97], N[(x / N[(z * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e+46], N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] * N[(1.0 / y), $MachinePrecision]), $MachinePrecision], N[(N[(x / z), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{-46}:\\
\;\;\;\;\frac{\frac{x}{z}}{z - y}\\
\mathbf{elif}\;z \leq -5 \cdot 10^{-97}:\\
\;\;\;\;\frac{x}{z \cdot \left(z - t\right)}\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+46}:\\
\;\;\;\;\frac{x}{t - z} \cdot \frac{1}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{z}}{z - t}\\
\end{array}
\end{array}
if z < -2.40000000000000013e-46Initial program 84.5%
associate-/l/99.8%
Simplified99.8%
Taylor expanded in t around 0 77.9%
associate-*r/77.9%
neg-mul-177.9%
Simplified77.9%
if -2.40000000000000013e-46 < z < -4.9999999999999995e-97Initial program 100.0%
Taylor expanded in y around 0 80.8%
associate-*r/80.8%
neg-mul-180.8%
Simplified80.8%
if -4.9999999999999995e-97 < z < 6.1999999999999995e46Initial program 91.2%
clear-num91.1%
associate-/r/91.1%
Applied egg-rr91.1%
associate-*l/91.2%
*-commutative91.2%
frac-times95.6%
clear-num95.5%
un-div-inv96.2%
Applied egg-rr96.2%
Taylor expanded in y around inf 76.5%
*-rgt-identity76.5%
times-frac81.1%
associate-*l/79.3%
associate-*r/79.4%
*-rgt-identity79.4%
Simplified79.4%
div-inv79.4%
Applied egg-rr79.4%
if 6.1999999999999995e46 < z Initial program 73.2%
Taylor expanded in x around 0 73.2%
associate-/l/100.0%
Simplified100.0%
Taylor expanded in y around 0 89.4%
associate-*r/89.4%
neg-mul-189.4%
Simplified89.4%
Final simplification81.1%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(if (<= z -3.4e-47)
(/ (/ x z) (- z y))
(if (<= z -5e-97)
(/ x (* z (- z t)))
(if (<= z 1.52e+47) (/ (/ x (- t z)) y) (/ (/ x z) (- z t))))))assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -3.4e-47) {
tmp = (x / z) / (z - y);
} else if (z <= -5e-97) {
tmp = x / (z * (z - t));
} else if (z <= 1.52e+47) {
tmp = (x / (t - z)) / y;
} else {
tmp = (x / z) / (z - t);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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 <= (-3.4d-47)) then
tmp = (x / z) / (z - y)
else if (z <= (-5d-97)) then
tmp = x / (z * (z - t))
else if (z <= 1.52d+47) then
tmp = (x / (t - z)) / y
else
tmp = (x / z) / (z - t)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -3.4e-47) {
tmp = (x / z) / (z - y);
} else if (z <= -5e-97) {
tmp = x / (z * (z - t));
} else if (z <= 1.52e+47) {
tmp = (x / (t - z)) / y;
} else {
tmp = (x / z) / (z - t);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if z <= -3.4e-47: tmp = (x / z) / (z - y) elif z <= -5e-97: tmp = x / (z * (z - t)) elif z <= 1.52e+47: tmp = (x / (t - z)) / y else: tmp = (x / z) / (z - t) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (z <= -3.4e-47) tmp = Float64(Float64(x / z) / Float64(z - y)); elseif (z <= -5e-97) tmp = Float64(x / Float64(z * Float64(z - t))); elseif (z <= 1.52e+47) tmp = Float64(Float64(x / Float64(t - z)) / y); else tmp = Float64(Float64(x / z) / Float64(z - t)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (z <= -3.4e-47)
tmp = (x / z) / (z - y);
elseif (z <= -5e-97)
tmp = x / (z * (z - t));
elseif (z <= 1.52e+47)
tmp = (x / (t - z)) / y;
else
tmp = (x / z) / (z - t);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[z, -3.4e-47], N[(N[(x / z), $MachinePrecision] / N[(z - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5e-97], N[(x / N[(z * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.52e+47], N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / z), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.4 \cdot 10^{-47}:\\
\;\;\;\;\frac{\frac{x}{z}}{z - y}\\
\mathbf{elif}\;z \leq -5 \cdot 10^{-97}:\\
\;\;\;\;\frac{x}{z \cdot \left(z - t\right)}\\
\mathbf{elif}\;z \leq 1.52 \cdot 10^{+47}:\\
\;\;\;\;\frac{\frac{x}{t - z}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{z}}{z - t}\\
\end{array}
\end{array}
if z < -3.4000000000000002e-47Initial program 84.5%
associate-/l/99.8%
Simplified99.8%
Taylor expanded in t around 0 77.9%
associate-*r/77.9%
neg-mul-177.9%
Simplified77.9%
if -3.4000000000000002e-47 < z < -4.9999999999999995e-97Initial program 100.0%
Taylor expanded in y around 0 80.8%
associate-*r/80.8%
neg-mul-180.8%
Simplified80.8%
if -4.9999999999999995e-97 < z < 1.52e47Initial program 91.2%
clear-num91.1%
associate-/r/91.1%
Applied egg-rr91.1%
associate-*l/91.2%
*-commutative91.2%
frac-times95.6%
clear-num95.5%
un-div-inv96.2%
Applied egg-rr96.2%
Taylor expanded in y around inf 76.5%
*-rgt-identity76.5%
times-frac81.1%
associate-*l/79.3%
associate-*r/79.4%
*-rgt-identity79.4%
Simplified79.4%
if 1.52e47 < z Initial program 73.2%
Taylor expanded in x around 0 73.2%
associate-/l/100.0%
Simplified100.0%
Taylor expanded in y around 0 89.4%
associate-*r/89.4%
neg-mul-189.4%
Simplified89.4%
Final simplification81.1%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= t -3.2e-86) (* (/ 1.0 y) (/ x t)) (if (<= t 1e-152) (/ (/ x z) (- y)) (/ x (* (- y z) t)))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -3.2e-86) {
tmp = (1.0 / y) * (x / t);
} else if (t <= 1e-152) {
tmp = (x / z) / -y;
} else {
tmp = x / ((y - z) * t);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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 <= (-3.2d-86)) then
tmp = (1.0d0 / y) * (x / t)
else if (t <= 1d-152) then
tmp = (x / z) / -y
else
tmp = x / ((y - z) * t)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -3.2e-86) {
tmp = (1.0 / y) * (x / t);
} else if (t <= 1e-152) {
tmp = (x / z) / -y;
} else {
tmp = x / ((y - z) * t);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if t <= -3.2e-86: tmp = (1.0 / y) * (x / t) elif t <= 1e-152: tmp = (x / z) / -y else: tmp = x / ((y - z) * t) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (t <= -3.2e-86) tmp = Float64(Float64(1.0 / y) * Float64(x / t)); elseif (t <= 1e-152) tmp = Float64(Float64(x / z) / Float64(-y)); else tmp = Float64(x / Float64(Float64(y - z) * t)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (t <= -3.2e-86)
tmp = (1.0 / y) * (x / t);
elseif (t <= 1e-152)
tmp = (x / z) / -y;
else
tmp = x / ((y - z) * t);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[t, -3.2e-86], N[(N[(1.0 / y), $MachinePrecision] * N[(x / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e-152], N[(N[(x / z), $MachinePrecision] / (-y)), $MachinePrecision], N[(x / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{-86}:\\
\;\;\;\;\frac{1}{y} \cdot \frac{x}{t}\\
\mathbf{elif}\;t \leq 10^{-152}:\\
\;\;\;\;\frac{\frac{x}{z}}{-y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\
\end{array}
\end{array}
if t < -3.20000000000000006e-86Initial program 87.8%
Taylor expanded in z around 0 48.0%
associate-/r*54.7%
div-inv54.7%
Applied egg-rr54.7%
if -3.20000000000000006e-86 < t < 1.00000000000000007e-152Initial program 84.8%
clear-num84.3%
associate-/r/84.8%
Applied egg-rr84.8%
associate-*l/84.8%
*-commutative84.8%
frac-times95.9%
clear-num95.9%
un-div-inv95.9%
Applied egg-rr95.9%
Taylor expanded in y around inf 59.3%
*-rgt-identity59.3%
times-frac62.1%
associate-*l/64.5%
associate-*r/64.6%
*-rgt-identity64.6%
Simplified64.6%
Taylor expanded in t around 0 52.8%
associate-*r/52.8%
*-commutative52.8%
associate-/r*56.5%
neg-mul-156.5%
Simplified56.5%
if 1.00000000000000007e-152 < t Initial program 84.8%
Taylor expanded in t around inf 67.1%
Final simplification59.4%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= y -8.6e-81) (/ (/ x y) (- t z)) (if (<= y 3.2e-87) (/ x (* z (- z t))) (/ (/ x t) (- y z)))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8.6e-81) {
tmp = (x / y) / (t - z);
} else if (y <= 3.2e-87) {
tmp = x / (z * (z - t));
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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 <= (-8.6d-81)) then
tmp = (x / y) / (t - z)
else if (y <= 3.2d-87) then
tmp = x / (z * (z - t))
else
tmp = (x / t) / (y - z)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8.6e-81) {
tmp = (x / y) / (t - z);
} else if (y <= 3.2e-87) {
tmp = x / (z * (z - t));
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if y <= -8.6e-81: tmp = (x / y) / (t - z) elif y <= 3.2e-87: tmp = x / (z * (z - t)) else: tmp = (x / t) / (y - z) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (y <= -8.6e-81) tmp = Float64(Float64(x / y) / Float64(t - z)); elseif (y <= 3.2e-87) tmp = Float64(x / Float64(z * Float64(z - t))); else tmp = Float64(Float64(x / t) / Float64(y - z)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (y <= -8.6e-81)
tmp = (x / y) / (t - z);
elseif (y <= 3.2e-87)
tmp = x / (z * (z - t));
else
tmp = (x / t) / (y - z);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[y, -8.6e-81], N[(N[(x / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.2e-87], N[(x / N[(z * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.6 \cdot 10^{-81}:\\
\;\;\;\;\frac{\frac{x}{y}}{t - z}\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{-87}:\\
\;\;\;\;\frac{x}{z \cdot \left(z - t\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if y < -8.6000000000000006e-81Initial program 86.0%
Taylor expanded in x around 0 86.0%
associate-/l/99.6%
Simplified99.6%
Taylor expanded in y around inf 83.0%
if -8.6000000000000006e-81 < y < 3.19999999999999979e-87Initial program 87.6%
Taylor expanded in y around 0 74.0%
associate-*r/74.0%
neg-mul-174.0%
Simplified74.0%
if 3.19999999999999979e-87 < y Initial program 83.7%
associate-/l/95.2%
Simplified95.2%
Taylor expanded in t around inf 62.1%
Final simplification73.3%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= y -0.00047) (/ (/ x y) (- t z)) (if (<= y 2.2e-63) (/ (/ x z) (- z t)) (/ (/ x t) (- y z)))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -0.00047) {
tmp = (x / y) / (t - z);
} else if (y <= 2.2e-63) {
tmp = (x / z) / (z - t);
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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 <= (-0.00047d0)) then
tmp = (x / y) / (t - z)
else if (y <= 2.2d-63) then
tmp = (x / z) / (z - t)
else
tmp = (x / t) / (y - z)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -0.00047) {
tmp = (x / y) / (t - z);
} else if (y <= 2.2e-63) {
tmp = (x / z) / (z - t);
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if y <= -0.00047: tmp = (x / y) / (t - z) elif y <= 2.2e-63: tmp = (x / z) / (z - t) else: tmp = (x / t) / (y - z) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (y <= -0.00047) tmp = Float64(Float64(x / y) / Float64(t - z)); elseif (y <= 2.2e-63) tmp = Float64(Float64(x / z) / Float64(z - t)); else tmp = Float64(Float64(x / t) / Float64(y - z)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (y <= -0.00047)
tmp = (x / y) / (t - z);
elseif (y <= 2.2e-63)
tmp = (x / z) / (z - t);
else
tmp = (x / t) / (y - z);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[y, -0.00047], N[(N[(x / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e-63], N[(N[(x / z), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.00047:\\
\;\;\;\;\frac{\frac{x}{y}}{t - z}\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-63}:\\
\;\;\;\;\frac{\frac{x}{z}}{z - t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if y < -4.69999999999999986e-4Initial program 85.5%
Taylor expanded in x around 0 85.5%
associate-/l/99.6%
Simplified99.6%
Taylor expanded in y around inf 93.4%
if -4.69999999999999986e-4 < y < 2.2e-63Initial program 86.9%
Taylor expanded in x around 0 86.9%
associate-/l/97.4%
Simplified97.4%
Taylor expanded in y around 0 81.2%
associate-*r/81.2%
neg-mul-181.2%
Simplified81.2%
if 2.2e-63 < y Initial program 84.5%
associate-/l/94.6%
Simplified94.6%
Taylor expanded in t around inf 63.3%
Final simplification79.6%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= t -1.05e-88) (/ (/ x y) t) (if (<= t 1.25e-107) (/ x (* y (- z))) (/ (/ x t) y))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1.05e-88) {
tmp = (x / y) / t;
} else if (t <= 1.25e-107) {
tmp = x / (y * -z);
} else {
tmp = (x / t) / y;
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (t <= (-1.05d-88)) then
tmp = (x / y) / t
else if (t <= 1.25d-107) then
tmp = x / (y * -z)
else
tmp = (x / t) / y
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1.05e-88) {
tmp = (x / y) / t;
} else if (t <= 1.25e-107) {
tmp = x / (y * -z);
} else {
tmp = (x / t) / y;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if t <= -1.05e-88: tmp = (x / y) / t elif t <= 1.25e-107: tmp = x / (y * -z) else: tmp = (x / t) / y return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (t <= -1.05e-88) tmp = Float64(Float64(x / y) / t); elseif (t <= 1.25e-107) tmp = Float64(x / Float64(y * Float64(-z))); else tmp = Float64(Float64(x / t) / y); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (t <= -1.05e-88)
tmp = (x / y) / t;
elseif (t <= 1.25e-107)
tmp = x / (y * -z);
else
tmp = (x / t) / y;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[t, -1.05e-88], N[(N[(x / y), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t, 1.25e-107], N[(x / N[(y * (-z)), $MachinePrecision]), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.05 \cdot 10^{-88}:\\
\;\;\;\;\frac{\frac{x}{y}}{t}\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-107}:\\
\;\;\;\;\frac{x}{y \cdot \left(-z\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y}\\
\end{array}
\end{array}
if t < -1.05e-88Initial program 87.8%
clear-num87.7%
associate-/r/87.7%
Applied egg-rr87.7%
associate-*l/87.8%
*-commutative87.8%
frac-times96.6%
clear-num96.5%
un-div-inv97.5%
Applied egg-rr97.5%
Taylor expanded in z around 0 48.0%
*-rgt-identity48.0%
associate-*r/47.9%
associate-/l/48.8%
associate-*r/50.8%
associate-*r/50.9%
*-rgt-identity50.9%
Simplified50.9%
if -1.05e-88 < t < 1.24999999999999993e-107Initial program 85.5%
Taylor expanded in x around 0 85.5%
associate-/l/96.2%
Simplified96.2%
Taylor expanded in y around inf 61.6%
Taylor expanded in t around 0 51.1%
mul-1-neg51.1%
distribute-neg-frac251.1%
*-commutative51.1%
distribute-rgt-neg-out51.1%
Simplified51.1%
if 1.24999999999999993e-107 < t Initial program 84.1%
clear-num84.0%
associate-/r/84.1%
Applied egg-rr84.1%
associate-*l/84.1%
*-commutative84.1%
frac-times98.7%
clear-num98.4%
un-div-inv98.5%
Applied egg-rr98.5%
Taylor expanded in z around 0 46.0%
associate-/r*54.7%
Simplified54.7%
Final simplification52.2%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (or (<= z -1.4e+55) (not (<= z 6.5e+81))) (/ x (* z t)) (/ x (* y t))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.4e+55) || !(z <= 6.5e+81)) {
tmp = x / (z * t);
} else {
tmp = x / (y * t);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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.4d+55)) .or. (.not. (z <= 6.5d+81))) then
tmp = x / (z * t)
else
tmp = x / (y * t)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.4e+55) || !(z <= 6.5e+81)) {
tmp = x / (z * t);
} else {
tmp = x / (y * t);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if (z <= -1.4e+55) or not (z <= 6.5e+81): tmp = x / (z * t) else: tmp = x / (y * t) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if ((z <= -1.4e+55) || !(z <= 6.5e+81)) tmp = Float64(x / Float64(z * t)); else tmp = Float64(x / Float64(y * t)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if ((z <= -1.4e+55) || ~((z <= 6.5e+81)))
tmp = x / (z * t);
else
tmp = x / (y * t);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.4e+55], N[Not[LessEqual[z, 6.5e+81]], $MachinePrecision]], N[(x / N[(z * t), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+55} \lor \neg \left(z \leq 6.5 \cdot 10^{+81}\right):\\
\;\;\;\;\frac{x}{z \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot t}\\
\end{array}
\end{array}
if z < -1.4e55 or 6.4999999999999996e81 < z Initial program 76.8%
associate-/l/99.9%
Simplified99.9%
Taylor expanded in t around inf 46.5%
Taylor expanded in y around 0 39.6%
associate-*r/39.6%
neg-mul-139.6%
Simplified39.6%
add-sqr-sqrt28.5%
sqrt-unprod44.5%
sqr-neg44.5%
sqrt-unprod10.0%
add-sqr-sqrt35.3%
*-un-lft-identity35.3%
*-commutative35.3%
associate-/r*43.3%
Applied egg-rr43.3%
*-lft-identity43.3%
associate-/l/35.3%
*-commutative35.3%
Simplified35.3%
if -1.4e55 < z < 6.4999999999999996e81Initial program 91.1%
Taylor expanded in z around 0 46.8%
Final simplification42.6%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= y -1.7e+151) (/ (/ x y) (- t z)) (/ x (* (- y z) (- t z)))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.7e+151) {
tmp = (x / y) / (t - z);
} else {
tmp = x / ((y - z) * (t - z));
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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.7d+151)) then
tmp = (x / y) / (t - z)
else
tmp = x / ((y - z) * (t - z))
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.7e+151) {
tmp = (x / y) / (t - z);
} else {
tmp = x / ((y - z) * (t - z));
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if y <= -1.7e+151: tmp = (x / y) / (t - z) else: tmp = x / ((y - z) * (t - z)) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (y <= -1.7e+151) tmp = Float64(Float64(x / y) / Float64(t - z)); else tmp = Float64(x / Float64(Float64(y - z) * Float64(t - z))); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (y <= -1.7e+151)
tmp = (x / y) / (t - z);
else
tmp = x / ((y - z) * (t - z));
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[y, -1.7e+151], N[(N[(x / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], N[(x / N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.7 \cdot 10^{+151}:\\
\;\;\;\;\frac{\frac{x}{y}}{t - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\left(y - z\right) \cdot \left(t - z\right)}\\
\end{array}
\end{array}
if y < -1.7e151Initial program 83.2%
Taylor expanded in x around 0 83.2%
associate-/l/99.7%
Simplified99.7%
Taylor expanded in y around inf 99.7%
if -1.7e151 < y Initial program 86.3%
Final simplification88.0%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= t 1e-89) (/ x (* y (- t z))) (/ x (* (- y z) t))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (t <= 1e-89) {
tmp = x / (y * (t - z));
} else {
tmp = x / ((y - z) * t);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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 <= 1d-89) then
tmp = x / (y * (t - z))
else
tmp = x / ((y - z) * t)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= 1e-89) {
tmp = x / (y * (t - z));
} else {
tmp = x / ((y - z) * t);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if t <= 1e-89: tmp = x / (y * (t - z)) else: tmp = x / ((y - z) * t) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (t <= 1e-89) tmp = Float64(x / Float64(y * Float64(t - z))); else tmp = Float64(x / Float64(Float64(y - z) * t)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (t <= 1e-89)
tmp = x / (y * (t - z));
else
tmp = x / ((y - z) * t);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[t, 1e-89], N[(x / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq 10^{-89}:\\
\;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\
\end{array}
\end{array}
if t < 1.00000000000000004e-89Initial program 87.1%
Taylor expanded in y around inf 57.0%
*-commutative57.0%
Simplified57.0%
if 1.00000000000000004e-89 < t Initial program 83.1%
Taylor expanded in t around inf 69.5%
Final simplification60.7%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= t 3.6e-90) (/ x (* y (- t z))) (/ (/ x t) (- y z))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (t <= 3.6e-90) {
tmp = x / (y * (t - z));
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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 <= 3.6d-90) then
tmp = x / (y * (t - z))
else
tmp = (x / t) / (y - z)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= 3.6e-90) {
tmp = x / (y * (t - z));
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if t <= 3.6e-90: tmp = x / (y * (t - z)) else: tmp = (x / t) / (y - z) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (t <= 3.6e-90) tmp = Float64(x / Float64(y * Float64(t - z))); else tmp = Float64(Float64(x / t) / Float64(y - z)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (t <= 3.6e-90)
tmp = x / (y * (t - z));
else
tmp = (x / t) / (y - z);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[t, 3.6e-90], N[(x / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq 3.6 \cdot 10^{-90}:\\
\;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if t < 3.59999999999999981e-90Initial program 87.1%
Taylor expanded in y around inf 57.0%
*-commutative57.0%
Simplified57.0%
if 3.59999999999999981e-90 < t Initial program 83.1%
associate-/l/98.6%
Simplified98.6%
Taylor expanded in t around inf 80.0%
Final simplification63.9%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= t 1e-89) (/ (/ x y) (- t z)) (/ (/ x t) (- y z))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (t <= 1e-89) {
tmp = (x / y) / (t - z);
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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 <= 1d-89) then
tmp = (x / y) / (t - z)
else
tmp = (x / t) / (y - z)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= 1e-89) {
tmp = (x / y) / (t - z);
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if t <= 1e-89: tmp = (x / y) / (t - z) else: tmp = (x / t) / (y - z) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (t <= 1e-89) tmp = Float64(Float64(x / y) / Float64(t - z)); else tmp = Float64(Float64(x / t) / Float64(y - z)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (t <= 1e-89)
tmp = (x / y) / (t - z);
else
tmp = (x / t) / (y - z);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[t, 1e-89], N[(N[(x / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq 10^{-89}:\\
\;\;\;\;\frac{\frac{x}{y}}{t - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if t < 1.00000000000000004e-89Initial program 87.1%
Taylor expanded in x around 0 87.1%
associate-/l/96.6%
Simplified96.6%
Taylor expanded in y around inf 59.7%
if 1.00000000000000004e-89 < t Initial program 83.1%
associate-/l/98.6%
Simplified98.6%
Taylor expanded in t around inf 80.0%
Final simplification65.8%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= t 3.1e-89) (/ (/ x (- t z)) y) (/ (/ x t) (- y z))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (t <= 3.1e-89) {
tmp = (x / (t - z)) / y;
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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 <= 3.1d-89) then
tmp = (x / (t - z)) / y
else
tmp = (x / t) / (y - z)
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= 3.1e-89) {
tmp = (x / (t - z)) / y;
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if t <= 3.1e-89: tmp = (x / (t - z)) / y else: tmp = (x / t) / (y - z) return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (t <= 3.1e-89) tmp = Float64(Float64(x / Float64(t - z)) / y); else tmp = Float64(Float64(x / t) / Float64(y - z)); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (t <= 3.1e-89)
tmp = (x / (t - z)) / y;
else
tmp = (x / t) / (y - z);
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[t, 3.1e-89], N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq 3.1 \cdot 10^{-89}:\\
\;\;\;\;\frac{\frac{x}{t - z}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if t < 3.09999999999999996e-89Initial program 87.2%
clear-num86.9%
associate-/r/87.1%
Applied egg-rr87.1%
associate-*l/87.2%
*-commutative87.2%
frac-times96.5%
clear-num96.4%
un-div-inv97.0%
Applied egg-rr97.0%
Taylor expanded in y around inf 56.7%
*-rgt-identity56.7%
times-frac59.4%
associate-*l/62.4%
associate-*r/62.5%
*-rgt-identity62.5%
Simplified62.5%
if 3.09999999999999996e-89 < t Initial program 82.9%
associate-/l/98.6%
Simplified98.6%
Taylor expanded in t around inf 80.9%
Final simplification67.9%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= z -2.5e+57) (/ x (* z t)) (/ (/ x t) y)))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.5e+57) {
tmp = x / (z * t);
} else {
tmp = (x / t) / y;
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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.5d+57)) then
tmp = x / (z * t)
else
tmp = (x / t) / y
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.5e+57) {
tmp = x / (z * t);
} else {
tmp = (x / t) / y;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if z <= -2.5e+57: tmp = x / (z * t) else: tmp = (x / t) / y return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (z <= -2.5e+57) tmp = Float64(x / Float64(z * t)); else tmp = Float64(Float64(x / t) / y); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (z <= -2.5e+57)
tmp = x / (z * t);
else
tmp = (x / t) / y;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[z, -2.5e+57], N[(x / N[(z * t), $MachinePrecision]), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.5 \cdot 10^{+57}:\\
\;\;\;\;\frac{x}{z \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y}\\
\end{array}
\end{array}
if z < -2.49999999999999986e57Initial program 84.8%
associate-/l/99.8%
Simplified99.8%
Taylor expanded in t around inf 47.5%
Taylor expanded in y around 0 41.8%
associate-*r/41.8%
neg-mul-141.8%
Simplified41.8%
add-sqr-sqrt34.2%
sqrt-unprod44.7%
sqr-neg44.7%
sqrt-unprod5.4%
add-sqr-sqrt35.7%
*-un-lft-identity35.7%
*-commutative35.7%
associate-/r*43.3%
Applied egg-rr43.3%
*-lft-identity43.3%
associate-/l/35.7%
*-commutative35.7%
Simplified35.7%
if -2.49999999999999986e57 < z Initial program 86.2%
clear-num86.1%
associate-/r/86.1%
Applied egg-rr86.1%
associate-*l/86.2%
*-commutative86.2%
frac-times96.5%
clear-num96.3%
un-div-inv96.8%
Applied egg-rr96.8%
Taylor expanded in z around 0 40.2%
associate-/r*45.6%
Simplified45.6%
Final simplification43.7%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= t 2.5e-74) (/ (/ x y) t) (/ (/ x t) y)))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
double tmp;
if (t <= 2.5e-74) {
tmp = (x / y) / t;
} else {
tmp = (x / t) / y;
}
return tmp;
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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.5d-74) then
tmp = (x / y) / t
else
tmp = (x / t) / y
end if
code = tmp
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= 2.5e-74) {
tmp = (x / y) / t;
} else {
tmp = (x / t) / y;
}
return tmp;
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): tmp = 0 if t <= 2.5e-74: tmp = (x / y) / t else: tmp = (x / t) / y return tmp
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) tmp = 0.0 if (t <= 2.5e-74) tmp = Float64(Float64(x / y) / t); else tmp = Float64(Float64(x / t) / y); end return tmp end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (t <= 2.5e-74)
tmp = (x / y) / t;
else
tmp = (x / t) / y;
end
tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[t, 2.5e-74], N[(N[(x / y), $MachinePrecision] / t), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.5 \cdot 10^{-74}:\\
\;\;\;\;\frac{\frac{x}{y}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y}\\
\end{array}
\end{array}
if t < 2.49999999999999999e-74Initial program 87.5%
clear-num87.3%
associate-/r/87.5%
Applied egg-rr87.5%
associate-*l/87.5%
*-commutative87.5%
frac-times96.6%
clear-num96.5%
un-div-inv97.0%
Applied egg-rr97.0%
Taylor expanded in z around 0 33.2%
*-rgt-identity33.2%
associate-*r/33.1%
associate-/l/33.6%
associate-*r/39.9%
associate-*r/39.9%
*-rgt-identity39.9%
Simplified39.9%
if 2.49999999999999999e-74 < t Initial program 81.7%
clear-num81.6%
associate-/r/81.6%
Applied egg-rr81.6%
associate-*l/81.7%
*-commutative81.7%
frac-times98.6%
clear-num98.2%
un-div-inv98.4%
Applied egg-rr98.4%
Taylor expanded in z around 0 43.1%
associate-/r*54.5%
Simplified54.5%
Final simplification44.0%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (/ (/ x (- t z)) (- y z)))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
return (x / (t - z)) / (y - z);
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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 - z)) / (y - z)
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
return (x / (t - z)) / (y - z);
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): return (x / (t - z)) / (y - z)
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) return Float64(Float64(x / Float64(t - z)) / Float64(y - z)) end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp = code(x, y, z, t)
tmp = (x / (t - z)) / (y - z);
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\frac{\frac{x}{t - z}}{y - z}
\end{array}
Initial program 85.9%
associate-/l/97.4%
Simplified97.4%
Final simplification97.4%
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (/ x (* y t)))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
return x / (y * t);
}
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
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 * t)
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
return x / (y * t);
}
[x, y, z, t] = sort([x, y, z, t]) def code(x, y, z, t): return x / (y * t)
x, y, z, t = sort([x, y, z, t]) function code(x, y, z, t) return Float64(x / Float64(y * t)) end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp = code(x, y, z, t)
tmp = x / (y * t);
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := N[(x / N[(y * t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\frac{x}{y \cdot t}
\end{array}
Initial program 85.9%
Taylor expanded in z around 0 35.9%
Final simplification35.9%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (- y z) (- t z)))) (if (< (/ x t_1) 0.0) (/ (/ x (- y z)) (- t z)) (* x (/ 1.0 t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = (y - z) * (t - z);
double tmp;
if ((x / t_1) < 0.0) {
tmp = (x / (y - z)) / (t - z);
} else {
tmp = x * (1.0 / 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 - z) * (t - z)
if ((x / t_1) < 0.0d0) then
tmp = (x / (y - z)) / (t - z)
else
tmp = x * (1.0d0 / t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (y - z) * (t - z);
double tmp;
if ((x / t_1) < 0.0) {
tmp = (x / (y - z)) / (t - z);
} else {
tmp = x * (1.0 / t_1);
}
return tmp;
}
def code(x, y, z, t): t_1 = (y - z) * (t - z) tmp = 0 if (x / t_1) < 0.0: tmp = (x / (y - z)) / (t - z) else: tmp = x * (1.0 / t_1) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y - z) * Float64(t - z)) tmp = 0.0 if (Float64(x / t_1) < 0.0) tmp = Float64(Float64(x / Float64(y - z)) / Float64(t - z)); else tmp = Float64(x * Float64(1.0 / t_1)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y - z) * (t - z); tmp = 0.0; if ((x / t_1) < 0.0) tmp = (x / (y - z)) / (t - z); else tmp = x * (1.0 / t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[Less[N[(x / t$95$1), $MachinePrecision], 0.0], N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - z\right) \cdot \left(t - z\right)\\
\mathbf{if}\;\frac{x}{t\_1} < 0:\\
\;\;\;\;\frac{\frac{x}{y - z}}{t - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1}{t\_1}\\
\end{array}
\end{array}
herbie shell --seed 2024082
(FPCore (x y z t)
:name "Data.Random.Distribution.Triangular:triangularCDF from random-fu-0.2.6.2, B"
:precision binary64
:alt
(if (< (/ x (* (- y z) (- t z))) 0.0) (/ (/ x (- y z)) (- t z)) (* x (/ 1.0 (* (- y z) (- t z)))))
(/ x (* (- y z) (- t z))))