
(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 21 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: y 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(y < t);
double code(double x, double y, double z, double t) {
return (x / (y - z)) / (t - z);
}
NOTE: y 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 y < t;
public static double code(double x, double y, double z, double t) {
return (x / (y - z)) / (t - z);
}
[y, t] = sort([y, t]) def code(x, y, z, t): return (x / (y - z)) / (t - z)
y, t = sort([y, t]) function code(x, y, z, t) return Float64(Float64(x / Float64(y - z)) / Float64(t - z)) end
y, t = num2cell(sort([y, t])){:}
function tmp = code(x, y, z, t)
tmp = (x / (y - z)) / (t - z);
end
NOTE: y 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}
[y, t] = \mathsf{sort}([y, t])\\
\\
\frac{\frac{x}{y - z}}{t - z}
\end{array}
Initial program 90.2%
associate-/r*97.1%
Simplified97.1%
Final simplification97.1%
NOTE: y and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (/ x t) y)) (t_2 (/ (/ x z) z)))
(if (<= z -9.5e+70)
t_2
(if (<= z -3e-127)
(/ x (* z (- t)))
(if (<= z 3.55e-100)
t_1
(if (<= z 1000000000000.0)
(/ (- x) (* y z))
(if (<= z 1.1e+58) t_1 t_2)))))))assert(y < t);
double code(double x, double y, double z, double t) {
double t_1 = (x / t) / y;
double t_2 = (x / z) / z;
double tmp;
if (z <= -9.5e+70) {
tmp = t_2;
} else if (z <= -3e-127) {
tmp = x / (z * -t);
} else if (z <= 3.55e-100) {
tmp = t_1;
} else if (z <= 1000000000000.0) {
tmp = -x / (y * z);
} else if (z <= 1.1e+58) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
NOTE: y 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 / t) / y
t_2 = (x / z) / z
if (z <= (-9.5d+70)) then
tmp = t_2
else if (z <= (-3d-127)) then
tmp = x / (z * -t)
else if (z <= 3.55d-100) then
tmp = t_1
else if (z <= 1000000000000.0d0) then
tmp = -x / (y * z)
else if (z <= 1.1d+58) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double t_1 = (x / t) / y;
double t_2 = (x / z) / z;
double tmp;
if (z <= -9.5e+70) {
tmp = t_2;
} else if (z <= -3e-127) {
tmp = x / (z * -t);
} else if (z <= 3.55e-100) {
tmp = t_1;
} else if (z <= 1000000000000.0) {
tmp = -x / (y * z);
} else if (z <= 1.1e+58) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): t_1 = (x / t) / y t_2 = (x / z) / z tmp = 0 if z <= -9.5e+70: tmp = t_2 elif z <= -3e-127: tmp = x / (z * -t) elif z <= 3.55e-100: tmp = t_1 elif z <= 1000000000000.0: tmp = -x / (y * z) elif z <= 1.1e+58: tmp = t_1 else: tmp = t_2 return tmp
y, t = sort([y, t]) function code(x, y, z, t) t_1 = Float64(Float64(x / t) / y) t_2 = Float64(Float64(x / z) / z) tmp = 0.0 if (z <= -9.5e+70) tmp = t_2; elseif (z <= -3e-127) tmp = Float64(x / Float64(z * Float64(-t))); elseif (z <= 3.55e-100) tmp = t_1; elseif (z <= 1000000000000.0) tmp = Float64(Float64(-x) / Float64(y * z)); elseif (z <= 1.1e+58) tmp = t_1; else tmp = t_2; end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = (x / t) / y;
t_2 = (x / z) / z;
tmp = 0.0;
if (z <= -9.5e+70)
tmp = t_2;
elseif (z <= -3e-127)
tmp = x / (z * -t);
elseif (z <= 3.55e-100)
tmp = t_1;
elseif (z <= 1000000000000.0)
tmp = -x / (y * z);
elseif (z <= 1.1e+58)
tmp = t_1;
else
tmp = t_2;
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / z), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -9.5e+70], t$95$2, If[LessEqual[z, -3e-127], N[(x / N[(z * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.55e-100], t$95$1, If[LessEqual[z, 1000000000000.0], N[((-x) / N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.1e+58], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{t}}{y}\\
t_2 := \frac{\frac{x}{z}}{z}\\
\mathbf{if}\;z \leq -9.5 \cdot 10^{+70}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -3 \cdot 10^{-127}:\\
\;\;\;\;\frac{x}{z \cdot \left(-t\right)}\\
\mathbf{elif}\;z \leq 3.55 \cdot 10^{-100}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1000000000000:\\
\;\;\;\;\frac{-x}{y \cdot z}\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{+58}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -9.5000000000000002e70 or 1.1e58 < z Initial program 85.7%
Taylor expanded in z around inf 79.1%
unpow279.1%
associate-/r*83.4%
Simplified83.4%
if -9.5000000000000002e70 < z < -3.00000000000000009e-127Initial program 94.2%
Taylor expanded in t around inf 57.1%
Taylor expanded in y around 0 40.4%
mul-1-neg40.4%
*-commutative40.4%
distribute-rgt-neg-in40.4%
Simplified40.4%
if -3.00000000000000009e-127 < z < 3.55e-100 or 1e12 < z < 1.1e58Initial program 91.1%
Taylor expanded in z around 0 67.3%
div-inv67.2%
associate-/r*68.2%
Applied egg-rr68.2%
*-commutative68.2%
associate-*l/74.6%
associate-*r/73.7%
associate-*l/73.8%
*-lft-identity73.8%
Simplified73.8%
if 3.55e-100 < z < 1e12Initial program 99.3%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in y around inf 42.0%
Taylor expanded in t around 0 31.9%
mul-1-neg31.9%
Simplified31.9%
Final simplification67.5%
NOTE: y and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (/ x t) y)) (t_2 (/ (/ x z) z)))
(if (<= z -1.02e+71)
t_2
(if (<= z -1.32e-130)
(/ (/ (- x) t) z)
(if (<= z 3.6e-101)
t_1
(if (<= z 13500000000000.0)
(/ (- x) (* y z))
(if (<= z 4e+56) t_1 t_2)))))))assert(y < t);
double code(double x, double y, double z, double t) {
double t_1 = (x / t) / y;
double t_2 = (x / z) / z;
double tmp;
if (z <= -1.02e+71) {
tmp = t_2;
} else if (z <= -1.32e-130) {
tmp = (-x / t) / z;
} else if (z <= 3.6e-101) {
tmp = t_1;
} else if (z <= 13500000000000.0) {
tmp = -x / (y * z);
} else if (z <= 4e+56) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
NOTE: y 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 / t) / y
t_2 = (x / z) / z
if (z <= (-1.02d+71)) then
tmp = t_2
else if (z <= (-1.32d-130)) then
tmp = (-x / t) / z
else if (z <= 3.6d-101) then
tmp = t_1
else if (z <= 13500000000000.0d0) then
tmp = -x / (y * z)
else if (z <= 4d+56) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double t_1 = (x / t) / y;
double t_2 = (x / z) / z;
double tmp;
if (z <= -1.02e+71) {
tmp = t_2;
} else if (z <= -1.32e-130) {
tmp = (-x / t) / z;
} else if (z <= 3.6e-101) {
tmp = t_1;
} else if (z <= 13500000000000.0) {
tmp = -x / (y * z);
} else if (z <= 4e+56) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): t_1 = (x / t) / y t_2 = (x / z) / z tmp = 0 if z <= -1.02e+71: tmp = t_2 elif z <= -1.32e-130: tmp = (-x / t) / z elif z <= 3.6e-101: tmp = t_1 elif z <= 13500000000000.0: tmp = -x / (y * z) elif z <= 4e+56: tmp = t_1 else: tmp = t_2 return tmp
y, t = sort([y, t]) function code(x, y, z, t) t_1 = Float64(Float64(x / t) / y) t_2 = Float64(Float64(x / z) / z) tmp = 0.0 if (z <= -1.02e+71) tmp = t_2; elseif (z <= -1.32e-130) tmp = Float64(Float64(Float64(-x) / t) / z); elseif (z <= 3.6e-101) tmp = t_1; elseif (z <= 13500000000000.0) tmp = Float64(Float64(-x) / Float64(y * z)); elseif (z <= 4e+56) tmp = t_1; else tmp = t_2; end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = (x / t) / y;
t_2 = (x / z) / z;
tmp = 0.0;
if (z <= -1.02e+71)
tmp = t_2;
elseif (z <= -1.32e-130)
tmp = (-x / t) / z;
elseif (z <= 3.6e-101)
tmp = t_1;
elseif (z <= 13500000000000.0)
tmp = -x / (y * z);
elseif (z <= 4e+56)
tmp = t_1;
else
tmp = t_2;
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / z), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -1.02e+71], t$95$2, If[LessEqual[z, -1.32e-130], N[(N[((-x) / t), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 3.6e-101], t$95$1, If[LessEqual[z, 13500000000000.0], N[((-x) / N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4e+56], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{t}}{y}\\
t_2 := \frac{\frac{x}{z}}{z}\\
\mathbf{if}\;z \leq -1.02 \cdot 10^{+71}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -1.32 \cdot 10^{-130}:\\
\;\;\;\;\frac{\frac{-x}{t}}{z}\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{-101}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 13500000000000:\\
\;\;\;\;\frac{-x}{y \cdot z}\\
\mathbf{elif}\;z \leq 4 \cdot 10^{+56}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -1.02000000000000003e71 or 4.00000000000000037e56 < z Initial program 85.7%
Taylor expanded in z around inf 79.1%
unpow279.1%
associate-/r*83.4%
Simplified83.4%
if -1.02000000000000003e71 < z < -1.3200000000000001e-130Initial program 94.2%
Taylor expanded in t around inf 57.1%
Taylor expanded in y around 0 40.4%
mul-1-neg40.4%
associate-/r*40.7%
distribute-neg-frac40.7%
distribute-neg-frac40.7%
Simplified40.7%
if -1.3200000000000001e-130 < z < 3.6e-101 or 1.35e13 < z < 4.00000000000000037e56Initial program 91.1%
Taylor expanded in z around 0 67.3%
div-inv67.2%
associate-/r*68.2%
Applied egg-rr68.2%
*-commutative68.2%
associate-*l/74.6%
associate-*r/73.7%
associate-*l/73.8%
*-lft-identity73.8%
Simplified73.8%
if 3.6e-101 < z < 1.35e13Initial program 99.3%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in y around inf 42.0%
Taylor expanded in t around 0 31.9%
mul-1-neg31.9%
Simplified31.9%
Final simplification67.5%
NOTE: y and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (/ x t) y)) (t_2 (/ (/ x z) z)))
(if (<= z -3.4e+71)
t_2
(if (<= z -4.8e-128)
(/ (/ (- x) t) z)
(if (<= z 6.8e-100)
t_1
(if (<= z 2800000000.0)
(/ (/ (- x) y) z)
(if (<= z 8e+56) t_1 t_2)))))))assert(y < t);
double code(double x, double y, double z, double t) {
double t_1 = (x / t) / y;
double t_2 = (x / z) / z;
double tmp;
if (z <= -3.4e+71) {
tmp = t_2;
} else if (z <= -4.8e-128) {
tmp = (-x / t) / z;
} else if (z <= 6.8e-100) {
tmp = t_1;
} else if (z <= 2800000000.0) {
tmp = (-x / y) / z;
} else if (z <= 8e+56) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
NOTE: y 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 / t) / y
t_2 = (x / z) / z
if (z <= (-3.4d+71)) then
tmp = t_2
else if (z <= (-4.8d-128)) then
tmp = (-x / t) / z
else if (z <= 6.8d-100) then
tmp = t_1
else if (z <= 2800000000.0d0) then
tmp = (-x / y) / z
else if (z <= 8d+56) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double t_1 = (x / t) / y;
double t_2 = (x / z) / z;
double tmp;
if (z <= -3.4e+71) {
tmp = t_2;
} else if (z <= -4.8e-128) {
tmp = (-x / t) / z;
} else if (z <= 6.8e-100) {
tmp = t_1;
} else if (z <= 2800000000.0) {
tmp = (-x / y) / z;
} else if (z <= 8e+56) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): t_1 = (x / t) / y t_2 = (x / z) / z tmp = 0 if z <= -3.4e+71: tmp = t_2 elif z <= -4.8e-128: tmp = (-x / t) / z elif z <= 6.8e-100: tmp = t_1 elif z <= 2800000000.0: tmp = (-x / y) / z elif z <= 8e+56: tmp = t_1 else: tmp = t_2 return tmp
y, t = sort([y, t]) function code(x, y, z, t) t_1 = Float64(Float64(x / t) / y) t_2 = Float64(Float64(x / z) / z) tmp = 0.0 if (z <= -3.4e+71) tmp = t_2; elseif (z <= -4.8e-128) tmp = Float64(Float64(Float64(-x) / t) / z); elseif (z <= 6.8e-100) tmp = t_1; elseif (z <= 2800000000.0) tmp = Float64(Float64(Float64(-x) / y) / z); elseif (z <= 8e+56) tmp = t_1; else tmp = t_2; end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = (x / t) / y;
t_2 = (x / z) / z;
tmp = 0.0;
if (z <= -3.4e+71)
tmp = t_2;
elseif (z <= -4.8e-128)
tmp = (-x / t) / z;
elseif (z <= 6.8e-100)
tmp = t_1;
elseif (z <= 2800000000.0)
tmp = (-x / y) / z;
elseif (z <= 8e+56)
tmp = t_1;
else
tmp = t_2;
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / z), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -3.4e+71], t$95$2, If[LessEqual[z, -4.8e-128], N[(N[((-x) / t), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 6.8e-100], t$95$1, If[LessEqual[z, 2800000000.0], N[(N[((-x) / y), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 8e+56], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{t}}{y}\\
t_2 := \frac{\frac{x}{z}}{z}\\
\mathbf{if}\;z \leq -3.4 \cdot 10^{+71}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -4.8 \cdot 10^{-128}:\\
\;\;\;\;\frac{\frac{-x}{t}}{z}\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{-100}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2800000000:\\
\;\;\;\;\frac{\frac{-x}{y}}{z}\\
\mathbf{elif}\;z \leq 8 \cdot 10^{+56}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -3.3999999999999998e71 or 8.00000000000000074e56 < z Initial program 85.7%
Taylor expanded in z around inf 79.1%
unpow279.1%
associate-/r*83.4%
Simplified83.4%
if -3.3999999999999998e71 < z < -4.7999999999999996e-128Initial program 94.2%
Taylor expanded in t around inf 57.1%
Taylor expanded in y around 0 40.4%
mul-1-neg40.4%
associate-/r*40.7%
distribute-neg-frac40.7%
distribute-neg-frac40.7%
Simplified40.7%
if -4.7999999999999996e-128 < z < 6.79999999999999953e-100 or 2.8e9 < z < 8.00000000000000074e56Initial program 91.1%
Taylor expanded in z around 0 67.3%
div-inv67.2%
associate-/r*68.2%
Applied egg-rr68.2%
*-commutative68.2%
associate-*l/74.6%
associate-*r/73.7%
associate-*l/73.8%
*-lft-identity73.8%
Simplified73.8%
if 6.79999999999999953e-100 < z < 2.8e9Initial program 99.3%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in y around inf 42.0%
Taylor expanded in t around 0 31.9%
mul-1-neg31.9%
associate-/r*32.1%
distribute-neg-frac32.1%
distribute-neg-frac32.1%
Simplified32.1%
Final simplification67.6%
NOTE: y and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (/ x z) (/ 1.0 z))) (t_2 (/ x (* y (- t z)))))
(if (<= t 3.8e-278)
t_2
(if (<= t 2.3e-203)
t_1
(if (<= t 8.2e-186)
t_2
(if (<= t 1.65e-75) t_1 (/ (/ x t) (- y z))))))))assert(y < t);
double code(double x, double y, double z, double t) {
double t_1 = (x / z) * (1.0 / z);
double t_2 = x / (y * (t - z));
double tmp;
if (t <= 3.8e-278) {
tmp = t_2;
} else if (t <= 2.3e-203) {
tmp = t_1;
} else if (t <= 8.2e-186) {
tmp = t_2;
} else if (t <= 1.65e-75) {
tmp = t_1;
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
NOTE: y 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) * (1.0d0 / z)
t_2 = x / (y * (t - z))
if (t <= 3.8d-278) then
tmp = t_2
else if (t <= 2.3d-203) then
tmp = t_1
else if (t <= 8.2d-186) then
tmp = t_2
else if (t <= 1.65d-75) then
tmp = t_1
else
tmp = (x / t) / (y - z)
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double t_1 = (x / z) * (1.0 / z);
double t_2 = x / (y * (t - z));
double tmp;
if (t <= 3.8e-278) {
tmp = t_2;
} else if (t <= 2.3e-203) {
tmp = t_1;
} else if (t <= 8.2e-186) {
tmp = t_2;
} else if (t <= 1.65e-75) {
tmp = t_1;
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): t_1 = (x / z) * (1.0 / z) t_2 = x / (y * (t - z)) tmp = 0 if t <= 3.8e-278: tmp = t_2 elif t <= 2.3e-203: tmp = t_1 elif t <= 8.2e-186: tmp = t_2 elif t <= 1.65e-75: tmp = t_1 else: tmp = (x / t) / (y - z) return tmp
y, t = sort([y, t]) function code(x, y, z, t) t_1 = Float64(Float64(x / z) * Float64(1.0 / z)) t_2 = Float64(x / Float64(y * Float64(t - z))) tmp = 0.0 if (t <= 3.8e-278) tmp = t_2; elseif (t <= 2.3e-203) tmp = t_1; elseif (t <= 8.2e-186) tmp = t_2; elseif (t <= 1.65e-75) tmp = t_1; else tmp = Float64(Float64(x / t) / Float64(y - z)); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = (x / z) * (1.0 / z);
t_2 = x / (y * (t - z));
tmp = 0.0;
if (t <= 3.8e-278)
tmp = t_2;
elseif (t <= 2.3e-203)
tmp = t_1;
elseif (t <= 8.2e-186)
tmp = t_2;
elseif (t <= 1.65e-75)
tmp = t_1;
else
tmp = (x / t) / (y - z);
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / z), $MachinePrecision] * N[(1.0 / z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 3.8e-278], t$95$2, If[LessEqual[t, 2.3e-203], t$95$1, If[LessEqual[t, 8.2e-186], t$95$2, If[LessEqual[t, 1.65e-75], t$95$1, N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
t_1 := \frac{x}{z} \cdot \frac{1}{z}\\
t_2 := \frac{x}{y \cdot \left(t - z\right)}\\
\mathbf{if}\;t \leq 3.8 \cdot 10^{-278}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{-203}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{-186}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.65 \cdot 10^{-75}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if t < 3.7999999999999999e-278 or 2.29999999999999991e-203 < t < 8.2e-186Initial program 90.5%
Taylor expanded in y around inf 55.1%
*-commutative55.1%
Simplified55.1%
if 3.7999999999999999e-278 < t < 2.29999999999999991e-203 or 8.2e-186 < t < 1.65e-75Initial program 96.7%
Taylor expanded in z around inf 61.1%
unpow261.1%
Simplified61.1%
associate-/r*64.2%
div-inv64.3%
Applied egg-rr64.3%
if 1.65e-75 < t Initial program 87.6%
associate-/l/98.1%
Simplified98.1%
Taylor expanded in t around inf 83.2%
Final simplification65.6%
NOTE: y and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (/ x z) (/ 1.0 z))) (t_2 (/ (/ x y) (- t z))))
(if (<= t 5.2e-278)
t_2
(if (<= t 3.5e-206)
t_1
(if (<= t 8.8e-184)
t_2
(if (<= t 1.25e-75) t_1 (/ (/ x t) (- y z))))))))assert(y < t);
double code(double x, double y, double z, double t) {
double t_1 = (x / z) * (1.0 / z);
double t_2 = (x / y) / (t - z);
double tmp;
if (t <= 5.2e-278) {
tmp = t_2;
} else if (t <= 3.5e-206) {
tmp = t_1;
} else if (t <= 8.8e-184) {
tmp = t_2;
} else if (t <= 1.25e-75) {
tmp = t_1;
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
NOTE: y 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) * (1.0d0 / z)
t_2 = (x / y) / (t - z)
if (t <= 5.2d-278) then
tmp = t_2
else if (t <= 3.5d-206) then
tmp = t_1
else if (t <= 8.8d-184) then
tmp = t_2
else if (t <= 1.25d-75) then
tmp = t_1
else
tmp = (x / t) / (y - z)
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double t_1 = (x / z) * (1.0 / z);
double t_2 = (x / y) / (t - z);
double tmp;
if (t <= 5.2e-278) {
tmp = t_2;
} else if (t <= 3.5e-206) {
tmp = t_1;
} else if (t <= 8.8e-184) {
tmp = t_2;
} else if (t <= 1.25e-75) {
tmp = t_1;
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): t_1 = (x / z) * (1.0 / z) t_2 = (x / y) / (t - z) tmp = 0 if t <= 5.2e-278: tmp = t_2 elif t <= 3.5e-206: tmp = t_1 elif t <= 8.8e-184: tmp = t_2 elif t <= 1.25e-75: tmp = t_1 else: tmp = (x / t) / (y - z) return tmp
y, t = sort([y, t]) function code(x, y, z, t) t_1 = Float64(Float64(x / z) * Float64(1.0 / z)) t_2 = Float64(Float64(x / y) / Float64(t - z)) tmp = 0.0 if (t <= 5.2e-278) tmp = t_2; elseif (t <= 3.5e-206) tmp = t_1; elseif (t <= 8.8e-184) tmp = t_2; elseif (t <= 1.25e-75) tmp = t_1; else tmp = Float64(Float64(x / t) / Float64(y - z)); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = (x / z) * (1.0 / z);
t_2 = (x / y) / (t - z);
tmp = 0.0;
if (t <= 5.2e-278)
tmp = t_2;
elseif (t <= 3.5e-206)
tmp = t_1;
elseif (t <= 8.8e-184)
tmp = t_2;
elseif (t <= 1.25e-75)
tmp = t_1;
else
tmp = (x / t) / (y - z);
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / z), $MachinePrecision] * N[(1.0 / z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 5.2e-278], t$95$2, If[LessEqual[t, 3.5e-206], t$95$1, If[LessEqual[t, 8.8e-184], t$95$2, If[LessEqual[t, 1.25e-75], t$95$1, N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
t_1 := \frac{x}{z} \cdot \frac{1}{z}\\
t_2 := \frac{\frac{x}{y}}{t - z}\\
\mathbf{if}\;t \leq 5.2 \cdot 10^{-278}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-206}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{-184}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-75}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if t < 5.1999999999999997e-278 or 3.49999999999999989e-206 < t < 8.79999999999999967e-184Initial program 90.5%
associate-/r*98.2%
Simplified98.2%
Taylor expanded in y around inf 58.6%
if 5.1999999999999997e-278 < t < 3.49999999999999989e-206 or 8.79999999999999967e-184 < t < 1.24999999999999995e-75Initial program 96.7%
Taylor expanded in z around inf 61.1%
unpow261.1%
Simplified61.1%
associate-/r*64.2%
div-inv64.3%
Applied egg-rr64.3%
if 1.24999999999999995e-75 < t Initial program 87.6%
associate-/l/98.1%
Simplified98.1%
Taylor expanded in t around inf 83.2%
Final simplification67.6%
NOTE: y and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (/ x z) (/ 1.0 z))))
(if (<= t 3.7e-278)
(/ (/ x (- t z)) y)
(if (<= t 8.5e-202)
t_1
(if (<= t 1.95e-180)
(/ (/ x y) (- t z))
(if (<= t 1.75e-75) t_1 (/ (/ x t) (- y z))))))))assert(y < t);
double code(double x, double y, double z, double t) {
double t_1 = (x / z) * (1.0 / z);
double tmp;
if (t <= 3.7e-278) {
tmp = (x / (t - z)) / y;
} else if (t <= 8.5e-202) {
tmp = t_1;
} else if (t <= 1.95e-180) {
tmp = (x / y) / (t - z);
} else if (t <= 1.75e-75) {
tmp = t_1;
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
NOTE: y 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) * (1.0d0 / z)
if (t <= 3.7d-278) then
tmp = (x / (t - z)) / y
else if (t <= 8.5d-202) then
tmp = t_1
else if (t <= 1.95d-180) then
tmp = (x / y) / (t - z)
else if (t <= 1.75d-75) then
tmp = t_1
else
tmp = (x / t) / (y - z)
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double t_1 = (x / z) * (1.0 / z);
double tmp;
if (t <= 3.7e-278) {
tmp = (x / (t - z)) / y;
} else if (t <= 8.5e-202) {
tmp = t_1;
} else if (t <= 1.95e-180) {
tmp = (x / y) / (t - z);
} else if (t <= 1.75e-75) {
tmp = t_1;
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): t_1 = (x / z) * (1.0 / z) tmp = 0 if t <= 3.7e-278: tmp = (x / (t - z)) / y elif t <= 8.5e-202: tmp = t_1 elif t <= 1.95e-180: tmp = (x / y) / (t - z) elif t <= 1.75e-75: tmp = t_1 else: tmp = (x / t) / (y - z) return tmp
y, t = sort([y, t]) function code(x, y, z, t) t_1 = Float64(Float64(x / z) * Float64(1.0 / z)) tmp = 0.0 if (t <= 3.7e-278) tmp = Float64(Float64(x / Float64(t - z)) / y); elseif (t <= 8.5e-202) tmp = t_1; elseif (t <= 1.95e-180) tmp = Float64(Float64(x / y) / Float64(t - z)); elseif (t <= 1.75e-75) tmp = t_1; else tmp = Float64(Float64(x / t) / Float64(y - z)); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = (x / z) * (1.0 / z);
tmp = 0.0;
if (t <= 3.7e-278)
tmp = (x / (t - z)) / y;
elseif (t <= 8.5e-202)
tmp = t_1;
elseif (t <= 1.95e-180)
tmp = (x / y) / (t - z);
elseif (t <= 1.75e-75)
tmp = t_1;
else
tmp = (x / t) / (y - z);
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / z), $MachinePrecision] * N[(1.0 / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 3.7e-278], N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, 8.5e-202], t$95$1, If[LessEqual[t, 1.95e-180], N[(N[(x / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.75e-75], t$95$1, N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
t_1 := \frac{x}{z} \cdot \frac{1}{z}\\
\mathbf{if}\;t \leq 3.7 \cdot 10^{-278}:\\
\;\;\;\;\frac{\frac{x}{t - z}}{y}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-202}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.95 \cdot 10^{-180}:\\
\;\;\;\;\frac{\frac{x}{y}}{t - z}\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{-75}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if t < 3.70000000000000022e-278Initial program 90.1%
Taylor expanded in y around inf 54.1%
*-commutative54.1%
associate-/r*62.3%
Simplified62.3%
if 3.70000000000000022e-278 < t < 8.49999999999999963e-202 or 1.9500000000000001e-180 < t < 1.74999999999999993e-75Initial program 96.7%
Taylor expanded in z around inf 61.1%
unpow261.1%
Simplified61.1%
associate-/r*64.2%
div-inv64.3%
Applied egg-rr64.3%
if 8.49999999999999963e-202 < t < 1.9500000000000001e-180Initial program 99.4%
associate-/r*100.0%
Simplified100.0%
Taylor expanded in y around inf 81.2%
if 1.74999999999999993e-75 < t Initial program 87.6%
associate-/l/98.1%
Simplified98.1%
Taylor expanded in t around inf 83.2%
Final simplification69.9%
NOTE: y and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(if (<= t -8.2e-98)
(/ (/ x y) (- t z))
(if (<= t 1.45e-216)
(/ (/ (- x) (- y z)) z)
(if (<= t 4.2e+149) (/ x (* (- y z) (- t z))) (/ (/ x t) (- y z))))))assert(y < t);
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -8.2e-98) {
tmp = (x / y) / (t - z);
} else if (t <= 1.45e-216) {
tmp = (-x / (y - z)) / z;
} else if (t <= 4.2e+149) {
tmp = x / ((y - z) * (t - z));
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
NOTE: y 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 <= (-8.2d-98)) then
tmp = (x / y) / (t - z)
else if (t <= 1.45d-216) then
tmp = (-x / (y - z)) / z
else if (t <= 4.2d+149) then
tmp = x / ((y - z) * (t - z))
else
tmp = (x / t) / (y - z)
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -8.2e-98) {
tmp = (x / y) / (t - z);
} else if (t <= 1.45e-216) {
tmp = (-x / (y - z)) / z;
} else if (t <= 4.2e+149) {
tmp = x / ((y - z) * (t - z));
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): tmp = 0 if t <= -8.2e-98: tmp = (x / y) / (t - z) elif t <= 1.45e-216: tmp = (-x / (y - z)) / z elif t <= 4.2e+149: tmp = x / ((y - z) * (t - z)) else: tmp = (x / t) / (y - z) return tmp
y, t = sort([y, t]) function code(x, y, z, t) tmp = 0.0 if (t <= -8.2e-98) tmp = Float64(Float64(x / y) / Float64(t - z)); elseif (t <= 1.45e-216) tmp = Float64(Float64(Float64(-x) / Float64(y - z)) / z); elseif (t <= 4.2e+149) tmp = Float64(x / Float64(Float64(y - z) * Float64(t - z))); else tmp = Float64(Float64(x / t) / Float64(y - z)); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (t <= -8.2e-98)
tmp = (x / y) / (t - z);
elseif (t <= 1.45e-216)
tmp = (-x / (y - z)) / z;
elseif (t <= 4.2e+149)
tmp = x / ((y - z) * (t - z));
else
tmp = (x / t) / (y - z);
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[t, -8.2e-98], N[(N[(x / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.45e-216], N[(N[((-x) / N[(y - z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[t, 4.2e+149], N[(x / N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8.2 \cdot 10^{-98}:\\
\;\;\;\;\frac{\frac{x}{y}}{t - z}\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-216}:\\
\;\;\;\;\frac{\frac{-x}{y - z}}{z}\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{+149}:\\
\;\;\;\;\frac{x}{\left(y - z\right) \cdot \left(t - z\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if t < -8.1999999999999996e-98Initial program 90.5%
associate-/r*98.7%
Simplified98.7%
Taylor expanded in y around inf 54.2%
if -8.1999999999999996e-98 < t < 1.45e-216Initial program 90.3%
associate-/r*96.0%
div-inv96.0%
Applied egg-rr96.0%
Taylor expanded in t around 0 81.1%
mul-1-neg81.1%
associate-/r*87.8%
distribute-neg-frac87.8%
distribute-neg-frac87.8%
Simplified87.8%
if 1.45e-216 < t < 4.2000000000000003e149Initial program 96.8%
if 4.2000000000000003e149 < t Initial program 78.1%
associate-/l/98.4%
Simplified98.4%
Taylor expanded in t around inf 97.5%
Final simplification79.9%
NOTE: y and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (/ x z) z)))
(if (<= z -1.25e+71)
t_1
(if (<= z -1.55e-125)
(/ (/ (- x) t) z)
(if (<= z 3.55e-100)
(/ 1.0 (* t (/ y x)))
(if (<= z 1.9e+44) (/ (/ (- x) y) z) t_1))))))assert(y < t);
double code(double x, double y, double z, double t) {
double t_1 = (x / z) / z;
double tmp;
if (z <= -1.25e+71) {
tmp = t_1;
} else if (z <= -1.55e-125) {
tmp = (-x / t) / z;
} else if (z <= 3.55e-100) {
tmp = 1.0 / (t * (y / x));
} else if (z <= 1.9e+44) {
tmp = (-x / y) / z;
} else {
tmp = t_1;
}
return tmp;
}
NOTE: y 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) / z
if (z <= (-1.25d+71)) then
tmp = t_1
else if (z <= (-1.55d-125)) then
tmp = (-x / t) / z
else if (z <= 3.55d-100) then
tmp = 1.0d0 / (t * (y / x))
else if (z <= 1.9d+44) then
tmp = (-x / y) / z
else
tmp = t_1
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double t_1 = (x / z) / z;
double tmp;
if (z <= -1.25e+71) {
tmp = t_1;
} else if (z <= -1.55e-125) {
tmp = (-x / t) / z;
} else if (z <= 3.55e-100) {
tmp = 1.0 / (t * (y / x));
} else if (z <= 1.9e+44) {
tmp = (-x / y) / z;
} else {
tmp = t_1;
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): t_1 = (x / z) / z tmp = 0 if z <= -1.25e+71: tmp = t_1 elif z <= -1.55e-125: tmp = (-x / t) / z elif z <= 3.55e-100: tmp = 1.0 / (t * (y / x)) elif z <= 1.9e+44: tmp = (-x / y) / z else: tmp = t_1 return tmp
y, t = sort([y, t]) function code(x, y, z, t) t_1 = Float64(Float64(x / z) / z) tmp = 0.0 if (z <= -1.25e+71) tmp = t_1; elseif (z <= -1.55e-125) tmp = Float64(Float64(Float64(-x) / t) / z); elseif (z <= 3.55e-100) tmp = Float64(1.0 / Float64(t * Float64(y / x))); elseif (z <= 1.9e+44) tmp = Float64(Float64(Float64(-x) / y) / z); else tmp = t_1; end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = (x / z) / z;
tmp = 0.0;
if (z <= -1.25e+71)
tmp = t_1;
elseif (z <= -1.55e-125)
tmp = (-x / t) / z;
elseif (z <= 3.55e-100)
tmp = 1.0 / (t * (y / x));
elseif (z <= 1.9e+44)
tmp = (-x / y) / z;
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / z), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -1.25e+71], t$95$1, If[LessEqual[z, -1.55e-125], N[(N[((-x) / t), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 3.55e-100], N[(1.0 / N[(t * N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e+44], N[(N[((-x) / y), $MachinePrecision] / z), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{z}}{z}\\
\mathbf{if}\;z \leq -1.25 \cdot 10^{+71}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.55 \cdot 10^{-125}:\\
\;\;\;\;\frac{\frac{-x}{t}}{z}\\
\mathbf{elif}\;z \leq 3.55 \cdot 10^{-100}:\\
\;\;\;\;\frac{1}{t \cdot \frac{y}{x}}\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{+44}:\\
\;\;\;\;\frac{\frac{-x}{y}}{z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -1.24999999999999993e71 or 1.9000000000000001e44 < z Initial program 85.0%
Taylor expanded in z around inf 77.6%
unpow277.6%
associate-/r*81.9%
Simplified81.9%
if -1.24999999999999993e71 < z < -1.55000000000000006e-125Initial program 94.2%
Taylor expanded in t around inf 57.1%
Taylor expanded in y around 0 40.4%
mul-1-neg40.4%
associate-/r*40.7%
distribute-neg-frac40.7%
distribute-neg-frac40.7%
Simplified40.7%
if -1.55000000000000006e-125 < z < 3.55e-100Initial program 93.7%
Taylor expanded in z around 0 74.5%
clear-num74.4%
inv-pow74.4%
associate-/l*75.5%
Applied egg-rr75.5%
unpow-175.5%
associate-/r/76.7%
Simplified76.7%
if 3.55e-100 < z < 1.9000000000000001e44Initial program 92.9%
associate-/r*99.7%
Simplified99.7%
Taylor expanded in y around inf 42.6%
Taylor expanded in t around 0 28.4%
mul-1-neg28.4%
associate-/r*28.5%
distribute-neg-frac28.5%
distribute-neg-frac28.5%
Simplified28.5%
Final simplification66.1%
NOTE: y and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(if (<= y -6e+35)
(/ (/ x y) (- t z))
(if (<= y -8.5e-52)
(/ (- x) (* z (- y z)))
(if (<= y 2.5e-117) (/ (/ (- x) z) (- t z)) (/ (/ x t) (- y z))))))assert(y < t);
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -6e+35) {
tmp = (x / y) / (t - z);
} else if (y <= -8.5e-52) {
tmp = -x / (z * (y - z));
} else if (y <= 2.5e-117) {
tmp = (-x / z) / (t - z);
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
NOTE: y 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 <= (-6d+35)) then
tmp = (x / y) / (t - z)
else if (y <= (-8.5d-52)) then
tmp = -x / (z * (y - z))
else if (y <= 2.5d-117) then
tmp = (-x / z) / (t - z)
else
tmp = (x / t) / (y - z)
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -6e+35) {
tmp = (x / y) / (t - z);
} else if (y <= -8.5e-52) {
tmp = -x / (z * (y - z));
} else if (y <= 2.5e-117) {
tmp = (-x / z) / (t - z);
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): tmp = 0 if y <= -6e+35: tmp = (x / y) / (t - z) elif y <= -8.5e-52: tmp = -x / (z * (y - z)) elif y <= 2.5e-117: tmp = (-x / z) / (t - z) else: tmp = (x / t) / (y - z) return tmp
y, t = sort([y, t]) function code(x, y, z, t) tmp = 0.0 if (y <= -6e+35) tmp = Float64(Float64(x / y) / Float64(t - z)); elseif (y <= -8.5e-52) tmp = Float64(Float64(-x) / Float64(z * Float64(y - z))); elseif (y <= 2.5e-117) tmp = Float64(Float64(Float64(-x) / z) / Float64(t - z)); else tmp = Float64(Float64(x / t) / Float64(y - z)); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (y <= -6e+35)
tmp = (x / y) / (t - z);
elseif (y <= -8.5e-52)
tmp = -x / (z * (y - z));
elseif (y <= 2.5e-117)
tmp = (-x / z) / (t - z);
else
tmp = (x / t) / (y - z);
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[y, -6e+35], N[(N[(x / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -8.5e-52], N[((-x) / N[(z * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.5e-117], N[(N[((-x) / z), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6 \cdot 10^{+35}:\\
\;\;\;\;\frac{\frac{x}{y}}{t - z}\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{-52}:\\
\;\;\;\;\frac{-x}{z \cdot \left(y - z\right)}\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{-117}:\\
\;\;\;\;\frac{\frac{-x}{z}}{t - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if y < -5.99999999999999981e35Initial program 84.1%
associate-/r*98.9%
Simplified98.9%
Taylor expanded in y around inf 95.5%
if -5.99999999999999981e35 < y < -8.50000000000000006e-52Initial program 89.1%
Taylor expanded in t around 0 67.4%
associate-*r/67.4%
neg-mul-167.4%
*-commutative67.4%
Simplified67.4%
if -8.50000000000000006e-52 < y < 2.5e-117Initial program 92.0%
Taylor expanded in y around 0 81.5%
mul-1-neg81.5%
distribute-frac-neg81.5%
associate-/r*84.1%
Simplified84.1%
if 2.5e-117 < y Initial program 91.8%
associate-/l/99.9%
Simplified99.9%
Taylor expanded in t around inf 64.0%
Final simplification77.8%
NOTE: y and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(if (<= y -4.5e+35)
(/ (/ x y) (- t z))
(if (<= y -6e-52)
(/ (/ (- x) (- y z)) z)
(if (<= y 2e-116) (/ (/ (- x) z) (- t z)) (/ (/ x t) (- y z))))))assert(y < t);
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -4.5e+35) {
tmp = (x / y) / (t - z);
} else if (y <= -6e-52) {
tmp = (-x / (y - z)) / z;
} else if (y <= 2e-116) {
tmp = (-x / z) / (t - z);
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
NOTE: y 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 <= (-4.5d+35)) then
tmp = (x / y) / (t - z)
else if (y <= (-6d-52)) then
tmp = (-x / (y - z)) / z
else if (y <= 2d-116) then
tmp = (-x / z) / (t - z)
else
tmp = (x / t) / (y - z)
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -4.5e+35) {
tmp = (x / y) / (t - z);
} else if (y <= -6e-52) {
tmp = (-x / (y - z)) / z;
} else if (y <= 2e-116) {
tmp = (-x / z) / (t - z);
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): tmp = 0 if y <= -4.5e+35: tmp = (x / y) / (t - z) elif y <= -6e-52: tmp = (-x / (y - z)) / z elif y <= 2e-116: tmp = (-x / z) / (t - z) else: tmp = (x / t) / (y - z) return tmp
y, t = sort([y, t]) function code(x, y, z, t) tmp = 0.0 if (y <= -4.5e+35) tmp = Float64(Float64(x / y) / Float64(t - z)); elseif (y <= -6e-52) tmp = Float64(Float64(Float64(-x) / Float64(y - z)) / z); elseif (y <= 2e-116) tmp = Float64(Float64(Float64(-x) / z) / Float64(t - z)); else tmp = Float64(Float64(x / t) / Float64(y - z)); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (y <= -4.5e+35)
tmp = (x / y) / (t - z);
elseif (y <= -6e-52)
tmp = (-x / (y - z)) / z;
elseif (y <= 2e-116)
tmp = (-x / z) / (t - z);
else
tmp = (x / t) / (y - z);
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[y, -4.5e+35], N[(N[(x / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6e-52], N[(N[((-x) / N[(y - z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[y, 2e-116], N[(N[((-x) / z), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.5 \cdot 10^{+35}:\\
\;\;\;\;\frac{\frac{x}{y}}{t - z}\\
\mathbf{elif}\;y \leq -6 \cdot 10^{-52}:\\
\;\;\;\;\frac{\frac{-x}{y - z}}{z}\\
\mathbf{elif}\;y \leq 2 \cdot 10^{-116}:\\
\;\;\;\;\frac{\frac{-x}{z}}{t - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if y < -4.4999999999999997e35Initial program 84.1%
associate-/r*98.9%
Simplified98.9%
Taylor expanded in y around inf 95.5%
if -4.4999999999999997e35 < y < -6e-52Initial program 89.1%
associate-/r*99.9%
div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in t around 0 67.4%
mul-1-neg67.4%
associate-/r*72.9%
distribute-neg-frac72.9%
distribute-neg-frac72.9%
Simplified72.9%
if -6e-52 < y < 2e-116Initial program 92.1%
Taylor expanded in y around 0 81.7%
mul-1-neg81.7%
distribute-frac-neg81.7%
associate-/r*84.3%
Simplified84.3%
if 2e-116 < y Initial program 91.7%
associate-/l/99.9%
Simplified99.9%
Taylor expanded in t around inf 63.6%
Final simplification78.2%
NOTE: y and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (/ x z) z)) (t_2 (/ (/ x t) y)))
(if (<= z -2.3e+35)
t_1
(if (<= z 7.2e-100)
t_2
(if (<= z 1020000000.0)
(/ (- x) (* y z))
(if (<= z 4.5e+56) t_2 t_1))))))assert(y < t);
double code(double x, double y, double z, double t) {
double t_1 = (x / z) / z;
double t_2 = (x / t) / y;
double tmp;
if (z <= -2.3e+35) {
tmp = t_1;
} else if (z <= 7.2e-100) {
tmp = t_2;
} else if (z <= 1020000000.0) {
tmp = -x / (y * z);
} else if (z <= 4.5e+56) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
NOTE: y 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) / z
t_2 = (x / t) / y
if (z <= (-2.3d+35)) then
tmp = t_1
else if (z <= 7.2d-100) then
tmp = t_2
else if (z <= 1020000000.0d0) then
tmp = -x / (y * z)
else if (z <= 4.5d+56) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double t_1 = (x / z) / z;
double t_2 = (x / t) / y;
double tmp;
if (z <= -2.3e+35) {
tmp = t_1;
} else if (z <= 7.2e-100) {
tmp = t_2;
} else if (z <= 1020000000.0) {
tmp = -x / (y * z);
} else if (z <= 4.5e+56) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): t_1 = (x / z) / z t_2 = (x / t) / y tmp = 0 if z <= -2.3e+35: tmp = t_1 elif z <= 7.2e-100: tmp = t_2 elif z <= 1020000000.0: tmp = -x / (y * z) elif z <= 4.5e+56: tmp = t_2 else: tmp = t_1 return tmp
y, t = sort([y, t]) function code(x, y, z, t) t_1 = Float64(Float64(x / z) / z) t_2 = Float64(Float64(x / t) / y) tmp = 0.0 if (z <= -2.3e+35) tmp = t_1; elseif (z <= 7.2e-100) tmp = t_2; elseif (z <= 1020000000.0) tmp = Float64(Float64(-x) / Float64(y * z)); elseif (z <= 4.5e+56) tmp = t_2; else tmp = t_1; end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
t_1 = (x / z) / z;
t_2 = (x / t) / y;
tmp = 0.0;
if (z <= -2.3e+35)
tmp = t_1;
elseif (z <= 7.2e-100)
tmp = t_2;
elseif (z <= 1020000000.0)
tmp = -x / (y * z);
elseif (z <= 4.5e+56)
tmp = t_2;
else
tmp = t_1;
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / z), $MachinePrecision] / z), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[z, -2.3e+35], t$95$1, If[LessEqual[z, 7.2e-100], t$95$2, If[LessEqual[z, 1020000000.0], N[((-x) / N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e+56], t$95$2, t$95$1]]]]]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{z}}{z}\\
t_2 := \frac{\frac{x}{t}}{y}\\
\mathbf{if}\;z \leq -2.3 \cdot 10^{+35}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{-100}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 1020000000:\\
\;\;\;\;\frac{-x}{y \cdot z}\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{+56}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -2.2999999999999998e35 or 4.5000000000000003e56 < z Initial program 86.5%
Taylor expanded in z around inf 76.0%
unpow276.0%
associate-/r*80.1%
Simplified80.1%
if -2.2999999999999998e35 < z < 7.1999999999999997e-100 or 1.02e9 < z < 4.5000000000000003e56Initial program 91.9%
Taylor expanded in z around 0 55.6%
div-inv55.5%
associate-/r*56.2%
Applied egg-rr56.2%
*-commutative56.2%
associate-*l/62.5%
associate-*r/62.7%
associate-*l/62.8%
*-lft-identity62.8%
Simplified62.8%
if 7.1999999999999997e-100 < z < 1.02e9Initial program 99.3%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in y around inf 42.0%
Taylor expanded in t around 0 31.9%
mul-1-neg31.9%
Simplified31.9%
Final simplification67.5%
NOTE: y and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= t -3.3e-130) (/ (/ x y) (- t z)) (if (<= t 1.72e-75) (/ (- x) (* z (- y z))) (/ (/ x t) (- y z)))))
assert(y < t);
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -3.3e-130) {
tmp = (x / y) / (t - z);
} else if (t <= 1.72e-75) {
tmp = -x / (z * (y - z));
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
NOTE: y 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.3d-130)) then
tmp = (x / y) / (t - z)
else if (t <= 1.72d-75) then
tmp = -x / (z * (y - z))
else
tmp = (x / t) / (y - z)
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -3.3e-130) {
tmp = (x / y) / (t - z);
} else if (t <= 1.72e-75) {
tmp = -x / (z * (y - z));
} else {
tmp = (x / t) / (y - z);
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): tmp = 0 if t <= -3.3e-130: tmp = (x / y) / (t - z) elif t <= 1.72e-75: tmp = -x / (z * (y - z)) else: tmp = (x / t) / (y - z) return tmp
y, t = sort([y, t]) function code(x, y, z, t) tmp = 0.0 if (t <= -3.3e-130) tmp = Float64(Float64(x / y) / Float64(t - z)); elseif (t <= 1.72e-75) tmp = Float64(Float64(-x) / Float64(z * Float64(y - z))); else tmp = Float64(Float64(x / t) / Float64(y - z)); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (t <= -3.3e-130)
tmp = (x / y) / (t - z);
elseif (t <= 1.72e-75)
tmp = -x / (z * (y - z));
else
tmp = (x / t) / (y - z);
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[t, -3.3e-130], N[(N[(x / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.72e-75], N[((-x) / N[(z * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.3 \cdot 10^{-130}:\\
\;\;\;\;\frac{\frac{x}{y}}{t - z}\\
\mathbf{elif}\;t \leq 1.72 \cdot 10^{-75}:\\
\;\;\;\;\frac{-x}{z \cdot \left(y - z\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if t < -3.2999999999999998e-130Initial program 90.0%
associate-/r*98.8%
Simplified98.8%
Taylor expanded in y around inf 54.6%
if -3.2999999999999998e-130 < t < 1.72e-75Initial program 93.5%
Taylor expanded in t around 0 83.7%
associate-*r/83.7%
neg-mul-183.7%
*-commutative83.7%
Simplified83.7%
if 1.72e-75 < t Initial program 87.6%
associate-/l/98.1%
Simplified98.1%
Taylor expanded in t around inf 83.2%
Final simplification72.7%
NOTE: y and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (or (<= z -9.5e+70) (not (<= z 2.3e+71))) (/ (/ x z) z) (/ x (* (- y z) t))))
assert(y < t);
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -9.5e+70) || !(z <= 2.3e+71)) {
tmp = (x / z) / z;
} else {
tmp = x / ((y - z) * t);
}
return tmp;
}
NOTE: y 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 <= (-9.5d+70)) .or. (.not. (z <= 2.3d+71))) then
tmp = (x / z) / z
else
tmp = x / ((y - z) * t)
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -9.5e+70) || !(z <= 2.3e+71)) {
tmp = (x / z) / z;
} else {
tmp = x / ((y - z) * t);
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): tmp = 0 if (z <= -9.5e+70) or not (z <= 2.3e+71): tmp = (x / z) / z else: tmp = x / ((y - z) * t) return tmp
y, t = sort([y, t]) function code(x, y, z, t) tmp = 0.0 if ((z <= -9.5e+70) || !(z <= 2.3e+71)) tmp = Float64(Float64(x / z) / z); else tmp = Float64(x / Float64(Float64(y - z) * t)); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if ((z <= -9.5e+70) || ~((z <= 2.3e+71)))
tmp = (x / z) / z;
else
tmp = x / ((y - z) * t);
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[Or[LessEqual[z, -9.5e+70], N[Not[LessEqual[z, 2.3e+71]], $MachinePrecision]], N[(N[(x / z), $MachinePrecision] / z), $MachinePrecision], N[(x / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.5 \cdot 10^{+70} \lor \neg \left(z \leq 2.3 \cdot 10^{+71}\right):\\
\;\;\;\;\frac{\frac{x}{z}}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\
\end{array}
\end{array}
if z < -9.5000000000000002e70 or 2.3000000000000002e71 < z Initial program 85.2%
Taylor expanded in z around inf 80.4%
unpow280.4%
associate-/r*84.9%
Simplified84.9%
if -9.5000000000000002e70 < z < 2.3000000000000002e71Initial program 93.3%
Taylor expanded in t around inf 68.0%
Final simplification74.4%
NOTE: y and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (<= y -1.82e-37) (/ x (* y (- t z))) (if (<= y -1.52e-87) (/ (/ x z) z) (/ x (* (- y z) t)))))
assert(y < t);
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.82e-37) {
tmp = x / (y * (t - z));
} else if (y <= -1.52e-87) {
tmp = (x / z) / z;
} else {
tmp = x / ((y - z) * t);
}
return tmp;
}
NOTE: y 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.82d-37)) then
tmp = x / (y * (t - z))
else if (y <= (-1.52d-87)) then
tmp = (x / z) / z
else
tmp = x / ((y - z) * t)
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.82e-37) {
tmp = x / (y * (t - z));
} else if (y <= -1.52e-87) {
tmp = (x / z) / z;
} else {
tmp = x / ((y - z) * t);
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): tmp = 0 if y <= -1.82e-37: tmp = x / (y * (t - z)) elif y <= -1.52e-87: tmp = (x / z) / z else: tmp = x / ((y - z) * t) return tmp
y, t = sort([y, t]) function code(x, y, z, t) tmp = 0.0 if (y <= -1.82e-37) tmp = Float64(x / Float64(y * Float64(t - z))); elseif (y <= -1.52e-87) tmp = Float64(Float64(x / z) / z); else tmp = Float64(x / Float64(Float64(y - z) * t)); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if (y <= -1.82e-37)
tmp = x / (y * (t - z));
elseif (y <= -1.52e-87)
tmp = (x / z) / z;
else
tmp = x / ((y - z) * t);
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[LessEqual[y, -1.82e-37], N[(x / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.52e-87], N[(N[(x / z), $MachinePrecision] / z), $MachinePrecision], N[(x / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.82 \cdot 10^{-37}:\\
\;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\
\mathbf{elif}\;y \leq -1.52 \cdot 10^{-87}:\\
\;\;\;\;\frac{\frac{x}{z}}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\
\end{array}
\end{array}
if y < -1.82000000000000002e-37Initial program 84.5%
Taylor expanded in y around inf 80.1%
*-commutative80.1%
Simplified80.1%
if -1.82000000000000002e-37 < y < -1.52000000000000004e-87Initial program 99.8%
Taylor expanded in z around inf 87.3%
unpow287.3%
associate-/r*87.3%
Simplified87.3%
if -1.52000000000000004e-87 < y Initial program 91.7%
Taylor expanded in t around inf 61.4%
Final simplification66.7%
NOTE: y and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (or (<= z -1.3e+113) (not (<= z 2.3e+47))) (/ x (* z t)) (/ x (* y t))))
assert(y < t);
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.3e+113) || !(z <= 2.3e+47)) {
tmp = x / (z * t);
} else {
tmp = x / (y * t);
}
return tmp;
}
NOTE: y 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.3d+113)) .or. (.not. (z <= 2.3d+47))) then
tmp = x / (z * t)
else
tmp = x / (y * t)
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.3e+113) || !(z <= 2.3e+47)) {
tmp = x / (z * t);
} else {
tmp = x / (y * t);
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): tmp = 0 if (z <= -1.3e+113) or not (z <= 2.3e+47): tmp = x / (z * t) else: tmp = x / (y * t) return tmp
y, t = sort([y, t]) function code(x, y, z, t) tmp = 0.0 if ((z <= -1.3e+113) || !(z <= 2.3e+47)) tmp = Float64(x / Float64(z * t)); else tmp = Float64(x / Float64(y * t)); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if ((z <= -1.3e+113) || ~((z <= 2.3e+47)))
tmp = x / (z * t);
else
tmp = x / (y * t);
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.3e+113], N[Not[LessEqual[z, 2.3e+47]], $MachinePrecision]], N[(x / N[(z * t), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{+113} \lor \neg \left(z \leq 2.3 \cdot 10^{+47}\right):\\
\;\;\;\;\frac{x}{z \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot t}\\
\end{array}
\end{array}
if z < -1.3e113 or 2.2999999999999999e47 < z Initial program 85.5%
Taylor expanded in t around inf 44.2%
Taylor expanded in y around 0 42.1%
mul-1-neg42.1%
*-commutative42.1%
distribute-rgt-neg-in42.1%
Simplified42.1%
expm1-log1p-u41.8%
expm1-udef69.6%
remove-double-neg69.6%
distribute-rgt-neg-out69.6%
frac-2neg69.6%
associate-/l/69.6%
add-sqr-sqrt34.1%
sqrt-unprod67.3%
sqr-neg67.3%
sqrt-unprod35.6%
add-sqr-sqrt69.9%
Applied egg-rr69.9%
expm1-def39.2%
expm1-log1p39.3%
associate-/l/42.2%
Simplified42.2%
if -1.3e113 < z < 2.2999999999999999e47Initial program 92.9%
Taylor expanded in z around 0 47.0%
Final simplification45.3%
NOTE: y and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (or (<= z -1e+34) (not (<= z 1.42e-27))) (/ x (* z z)) (/ x (* y t))))
assert(y < t);
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1e+34) || !(z <= 1.42e-27)) {
tmp = x / (z * z);
} else {
tmp = x / (y * t);
}
return tmp;
}
NOTE: y 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 <= (-1d+34)) .or. (.not. (z <= 1.42d-27))) then
tmp = x / (z * z)
else
tmp = x / (y * t)
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1e+34) || !(z <= 1.42e-27)) {
tmp = x / (z * z);
} else {
tmp = x / (y * t);
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): tmp = 0 if (z <= -1e+34) or not (z <= 1.42e-27): tmp = x / (z * z) else: tmp = x / (y * t) return tmp
y, t = sort([y, t]) function code(x, y, z, t) tmp = 0.0 if ((z <= -1e+34) || !(z <= 1.42e-27)) tmp = Float64(x / Float64(z * z)); else tmp = Float64(x / Float64(y * t)); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if ((z <= -1e+34) || ~((z <= 1.42e-27)))
tmp = x / (z * z);
else
tmp = x / (y * t);
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1e+34], N[Not[LessEqual[z, 1.42e-27]], $MachinePrecision]], N[(x / N[(z * z), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+34} \lor \neg \left(z \leq 1.42 \cdot 10^{-27}\right):\\
\;\;\;\;\frac{x}{z \cdot z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot t}\\
\end{array}
\end{array}
if z < -9.99999999999999946e33 or 1.41999999999999996e-27 < z Initial program 86.4%
Taylor expanded in z around inf 67.0%
unpow267.0%
Simplified67.0%
if -9.99999999999999946e33 < z < 1.41999999999999996e-27Initial program 94.1%
Taylor expanded in z around 0 55.8%
Final simplification61.4%
NOTE: y and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (or (<= z -6.4e+39) (not (<= z 2.4e+56))) (/ x (* z z)) (/ (/ x t) y)))
assert(y < t);
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -6.4e+39) || !(z <= 2.4e+56)) {
tmp = x / (z * z);
} else {
tmp = (x / t) / y;
}
return tmp;
}
NOTE: y 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 <= (-6.4d+39)) .or. (.not. (z <= 2.4d+56))) then
tmp = x / (z * z)
else
tmp = (x / t) / y
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -6.4e+39) || !(z <= 2.4e+56)) {
tmp = x / (z * z);
} else {
tmp = (x / t) / y;
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): tmp = 0 if (z <= -6.4e+39) or not (z <= 2.4e+56): tmp = x / (z * z) else: tmp = (x / t) / y return tmp
y, t = sort([y, t]) function code(x, y, z, t) tmp = 0.0 if ((z <= -6.4e+39) || !(z <= 2.4e+56)) tmp = Float64(x / Float64(z * z)); else tmp = Float64(Float64(x / t) / y); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if ((z <= -6.4e+39) || ~((z <= 2.4e+56)))
tmp = x / (z * z);
else
tmp = (x / t) / y;
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[Or[LessEqual[z, -6.4e+39], N[Not[LessEqual[z, 2.4e+56]], $MachinePrecision]], N[(x / N[(z * z), $MachinePrecision]), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.4 \cdot 10^{+39} \lor \neg \left(z \leq 2.4 \cdot 10^{+56}\right):\\
\;\;\;\;\frac{x}{z \cdot z}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y}\\
\end{array}
\end{array}
if z < -6.39999999999999986e39 or 2.40000000000000013e56 < z Initial program 86.5%
Taylor expanded in z around inf 76.0%
unpow276.0%
Simplified76.0%
if -6.39999999999999986e39 < z < 2.40000000000000013e56Initial program 92.9%
Taylor expanded in z around 0 50.1%
div-inv50.1%
associate-/r*50.6%
Applied egg-rr50.6%
*-commutative50.6%
associate-*l/56.0%
associate-*r/56.2%
associate-*l/56.3%
*-lft-identity56.3%
Simplified56.3%
Final simplification64.6%
NOTE: y and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (if (or (<= z -1.26e+33) (not (<= z 3.8e+56))) (/ (/ x z) z) (/ (/ x t) y)))
assert(y < t);
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.26e+33) || !(z <= 3.8e+56)) {
tmp = (x / z) / z;
} else {
tmp = (x / t) / y;
}
return tmp;
}
NOTE: y 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.26d+33)) .or. (.not. (z <= 3.8d+56))) then
tmp = (x / z) / z
else
tmp = (x / t) / y
end if
code = tmp
end function
assert y < t;
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.26e+33) || !(z <= 3.8e+56)) {
tmp = (x / z) / z;
} else {
tmp = (x / t) / y;
}
return tmp;
}
[y, t] = sort([y, t]) def code(x, y, z, t): tmp = 0 if (z <= -1.26e+33) or not (z <= 3.8e+56): tmp = (x / z) / z else: tmp = (x / t) / y return tmp
y, t = sort([y, t]) function code(x, y, z, t) tmp = 0.0 if ((z <= -1.26e+33) || !(z <= 3.8e+56)) tmp = Float64(Float64(x / z) / z); else tmp = Float64(Float64(x / t) / y); end return tmp end
y, t = num2cell(sort([y, t])){:}
function tmp_2 = code(x, y, z, t)
tmp = 0.0;
if ((z <= -1.26e+33) || ~((z <= 3.8e+56)))
tmp = (x / z) / z;
else
tmp = (x / t) / y;
end
tmp_2 = tmp;
end
NOTE: y and t should be sorted in increasing order before calling this function. code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.26e+33], N[Not[LessEqual[z, 3.8e+56]], $MachinePrecision]], N[(N[(x / z), $MachinePrecision] / z), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
[y, t] = \mathsf{sort}([y, t])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.26 \cdot 10^{+33} \lor \neg \left(z \leq 3.8 \cdot 10^{+56}\right):\\
\;\;\;\;\frac{\frac{x}{z}}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t}}{y}\\
\end{array}
\end{array}
if z < -1.26e33 or 3.79999999999999996e56 < z Initial program 86.5%
Taylor expanded in z around inf 76.0%
unpow276.0%
associate-/r*80.1%
Simplified80.1%
if -1.26e33 < z < 3.79999999999999996e56Initial program 92.9%
Taylor expanded in z around 0 50.1%
div-inv50.1%
associate-/r*50.6%
Applied egg-rr50.6%
*-commutative50.6%
associate-*l/56.0%
associate-*r/56.2%
associate-*l/56.3%
*-lft-identity56.3%
Simplified56.3%
Final simplification66.3%
NOTE: y 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(y < t);
double code(double x, double y, double z, double t) {
return (x / (t - z)) / (y - z);
}
NOTE: y 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 y < t;
public static double code(double x, double y, double z, double t) {
return (x / (t - z)) / (y - z);
}
[y, t] = sort([y, t]) def code(x, y, z, t): return (x / (t - z)) / (y - z)
y, t = sort([y, t]) function code(x, y, z, t) return Float64(Float64(x / Float64(t - z)) / Float64(y - z)) end
y, t = num2cell(sort([y, t])){:}
function tmp = code(x, y, z, t)
tmp = (x / (t - z)) / (y - z);
end
NOTE: y 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}
[y, t] = \mathsf{sort}([y, t])\\
\\
\frac{\frac{x}{t - z}}{y - z}
\end{array}
Initial program 90.2%
associate-/l/98.1%
Simplified98.1%
Final simplification98.1%
NOTE: y and t should be sorted in increasing order before calling this function. (FPCore (x y z t) :precision binary64 (/ x (* y t)))
assert(y < t);
double code(double x, double y, double z, double t) {
return x / (y * t);
}
NOTE: y 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 y < t;
public static double code(double x, double y, double z, double t) {
return x / (y * t);
}
[y, t] = sort([y, t]) def code(x, y, z, t): return x / (y * t)
y, t = sort([y, t]) function code(x, y, z, t) return Float64(x / Float64(y * t)) end
y, t = num2cell(sort([y, t])){:}
function tmp = code(x, y, z, t)
tmp = x / (y * t);
end
NOTE: y 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}
[y, t] = \mathsf{sort}([y, t])\\
\\
\frac{x}{y \cdot t}
\end{array}
Initial program 90.2%
Taylor expanded in z around 0 37.8%
Final simplification37.8%
(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 2023230
(FPCore (x y z t)
:name "Data.Random.Distribution.Triangular:triangularCDF from random-fu-0.2.6.2, B"
:precision binary64
:herbie-target
(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))))