
(FPCore (x y z t a) :precision binary64 (- (+ x y) (/ (* (- z t) y) (- a t))))
double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = (x + y) - (((z - t) * y) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - t));
}
def code(x, y, z, t, a): return (x + y) - (((z - t) * y) / (a - t))
function code(x, y, z, t, a) return Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = (x + y) - (((z - t) * y) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (- (+ x y) (/ (* (- z t) y) (- a t))))
double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = (x + y) - (((z - t) * y) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - t));
}
def code(x, y, z, t, a): return (x + y) - (((z - t) * y) / (a - t))
function code(x, y, z, t, a) return Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = (x + y) - (((z - t) * y) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (+ x y) (/ (* y (- t z)) (- a t)))))
(if (or (<= t_1 -1e-248) (not (<= t_1 5e-185)))
(+ (+ x y) (/ (- t z) (/ (- a t) y)))
(- x (/ y (/ t (- a z)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x + y) + ((y * (t - z)) / (a - t));
double tmp;
if ((t_1 <= -1e-248) || !(t_1 <= 5e-185)) {
tmp = (x + y) + ((t - z) / ((a - t) / y));
} else {
tmp = x - (y / (t / (a - z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = (x + y) + ((y * (t - z)) / (a - t))
if ((t_1 <= (-1d-248)) .or. (.not. (t_1 <= 5d-185))) then
tmp = (x + y) + ((t - z) / ((a - t) / y))
else
tmp = x - (y / (t / (a - z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (x + y) + ((y * (t - z)) / (a - t));
double tmp;
if ((t_1 <= -1e-248) || !(t_1 <= 5e-185)) {
tmp = (x + y) + ((t - z) / ((a - t) / y));
} else {
tmp = x - (y / (t / (a - z)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x + y) + ((y * (t - z)) / (a - t)) tmp = 0 if (t_1 <= -1e-248) or not (t_1 <= 5e-185): tmp = (x + y) + ((t - z) / ((a - t) / y)) else: tmp = x - (y / (t / (a - z))) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x + y) + Float64(Float64(y * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if ((t_1 <= -1e-248) || !(t_1 <= 5e-185)) tmp = Float64(Float64(x + y) + Float64(Float64(t - z) / Float64(Float64(a - t) / y))); else tmp = Float64(x - Float64(y / Float64(t / Float64(a - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x + y) + ((y * (t - z)) / (a - t)); tmp = 0.0; if ((t_1 <= -1e-248) || ~((t_1 <= 5e-185))) tmp = (x + y) + ((t - z) / ((a - t) / y)); else tmp = x - (y / (t / (a - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x + y), $MachinePrecision] + N[(N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -1e-248], N[Not[LessEqual[t$95$1, 5e-185]], $MachinePrecision]], N[(N[(x + y), $MachinePrecision] + N[(N[(t - z), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + y\right) + \frac{y \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -1 \cdot 10^{-248} \lor \neg \left(t_1 \leq 5 \cdot 10^{-185}\right):\\
\;\;\;\;\left(x + y\right) + \frac{t - z}{\frac{a - t}{y}}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{\frac{t}{a - z}}\\
\end{array}
\end{array}
if (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < -9.9999999999999998e-249 or 5.0000000000000003e-185 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) Initial program 84.0%
associate-*l/90.9%
Simplified90.9%
associate-/r/91.3%
Applied egg-rr91.3%
if -9.9999999999999998e-249 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < 5.0000000000000003e-185Initial program 11.1%
associate-*l/11.0%
Simplified11.0%
associate-/r/8.9%
Applied egg-rr8.9%
Taylor expanded in t around inf 95.7%
associate--l+95.7%
associate-*r/95.7%
associate-*r/95.7%
div-sub95.6%
distribute-lft-out--95.6%
associate-*r/95.6%
mul-1-neg95.6%
unsub-neg95.6%
*-commutative95.6%
cancel-sign-sub-inv95.6%
distribute-rgt-in95.6%
sub-neg95.6%
Simplified95.6%
Taylor expanded in x around 0 95.6%
Simplified95.8%
Final simplification91.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (+ x y) (/ (* y (- t z)) (- a t)))))
(if (or (<= t_1 -1e-248) (not (<= t_1 5e-185)))
(+ (+ x y) (* y (/ (- t z) (- a t))))
(- x (/ y (/ t (- a z)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x + y) + ((y * (t - z)) / (a - t));
double tmp;
if ((t_1 <= -1e-248) || !(t_1 <= 5e-185)) {
tmp = (x + y) + (y * ((t - z) / (a - t)));
} else {
tmp = x - (y / (t / (a - z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = (x + y) + ((y * (t - z)) / (a - t))
if ((t_1 <= (-1d-248)) .or. (.not. (t_1 <= 5d-185))) then
tmp = (x + y) + (y * ((t - z) / (a - t)))
else
tmp = x - (y / (t / (a - z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (x + y) + ((y * (t - z)) / (a - t));
double tmp;
if ((t_1 <= -1e-248) || !(t_1 <= 5e-185)) {
tmp = (x + y) + (y * ((t - z) / (a - t)));
} else {
tmp = x - (y / (t / (a - z)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x + y) + ((y * (t - z)) / (a - t)) tmp = 0 if (t_1 <= -1e-248) or not (t_1 <= 5e-185): tmp = (x + y) + (y * ((t - z) / (a - t))) else: tmp = x - (y / (t / (a - z))) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x + y) + Float64(Float64(y * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if ((t_1 <= -1e-248) || !(t_1 <= 5e-185)) tmp = Float64(Float64(x + y) + Float64(y * Float64(Float64(t - z) / Float64(a - t)))); else tmp = Float64(x - Float64(y / Float64(t / Float64(a - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x + y) + ((y * (t - z)) / (a - t)); tmp = 0.0; if ((t_1 <= -1e-248) || ~((t_1 <= 5e-185))) tmp = (x + y) + (y * ((t - z) / (a - t))); else tmp = x - (y / (t / (a - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x + y), $MachinePrecision] + N[(N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -1e-248], N[Not[LessEqual[t$95$1, 5e-185]], $MachinePrecision]], N[(N[(x + y), $MachinePrecision] + N[(y * N[(N[(t - z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + y\right) + \frac{y \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -1 \cdot 10^{-248} \lor \neg \left(t_1 \leq 5 \cdot 10^{-185}\right):\\
\;\;\;\;\left(x + y\right) + y \cdot \frac{t - z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{\frac{t}{a - z}}\\
\end{array}
\end{array}
if (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < -9.9999999999999998e-249 or 5.0000000000000003e-185 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) Initial program 84.0%
associate-*l/90.9%
Simplified90.9%
if -9.9999999999999998e-249 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < 5.0000000000000003e-185Initial program 11.1%
associate-*l/11.0%
Simplified11.0%
associate-/r/8.9%
Applied egg-rr8.9%
Taylor expanded in t around inf 95.7%
associate--l+95.7%
associate-*r/95.7%
associate-*r/95.7%
div-sub95.6%
distribute-lft-out--95.6%
associate-*r/95.6%
mul-1-neg95.6%
unsub-neg95.6%
*-commutative95.6%
cancel-sign-sub-inv95.6%
distribute-rgt-in95.6%
sub-neg95.6%
Simplified95.6%
Taylor expanded in x around 0 95.6%
Simplified95.8%
Final simplification91.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.1e+36) (not (<= a 3.2e+19))) (+ x y) (+ x (/ (* y (- z a)) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.1e+36) || !(a <= 3.2e+19)) {
tmp = x + y;
} else {
tmp = x + ((y * (z - a)) / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-1.1d+36)) .or. (.not. (a <= 3.2d+19))) then
tmp = x + y
else
tmp = x + ((y * (z - a)) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.1e+36) || !(a <= 3.2e+19)) {
tmp = x + y;
} else {
tmp = x + ((y * (z - a)) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.1e+36) or not (a <= 3.2e+19): tmp = x + y else: tmp = x + ((y * (z - a)) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.1e+36) || !(a <= 3.2e+19)) tmp = Float64(x + y); else tmp = Float64(x + Float64(Float64(y * Float64(z - a)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.1e+36) || ~((a <= 3.2e+19))) tmp = x + y; else tmp = x + ((y * (z - a)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.1e+36], N[Not[LessEqual[a, 3.2e+19]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(N[(y * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.1 \cdot 10^{+36} \lor \neg \left(a \leq 3.2 \cdot 10^{+19}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z - a\right)}{t}\\
\end{array}
\end{array}
if a < -1.1e36 or 3.2e19 < a Initial program 77.2%
associate-*l/90.0%
Simplified90.0%
Taylor expanded in a around inf 78.5%
+-commutative78.5%
Simplified78.5%
if -1.1e36 < a < 3.2e19Initial program 77.7%
associate-*l/78.7%
Simplified78.7%
associate-/r/79.5%
Applied egg-rr79.5%
Taylor expanded in t around inf 84.3%
associate--l+84.3%
associate-*r/84.3%
associate-*r/84.3%
div-sub84.3%
distribute-lft-out--84.3%
associate-*r/84.3%
mul-1-neg84.3%
unsub-neg84.3%
*-commutative84.3%
cancel-sign-sub-inv84.3%
distribute-rgt-in84.3%
sub-neg84.3%
Simplified84.3%
Final simplification81.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.85e-27) (not (<= a 1e+18))) (- (+ x y) (* y (/ z a))) (+ x (/ (* y (- z a)) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.85e-27) || !(a <= 1e+18)) {
tmp = (x + y) - (y * (z / a));
} else {
tmp = x + ((y * (z - a)) / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-1.85d-27)) .or. (.not. (a <= 1d+18))) then
tmp = (x + y) - (y * (z / a))
else
tmp = x + ((y * (z - a)) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.85e-27) || !(a <= 1e+18)) {
tmp = (x + y) - (y * (z / a));
} else {
tmp = x + ((y * (z - a)) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.85e-27) or not (a <= 1e+18): tmp = (x + y) - (y * (z / a)) else: tmp = x + ((y * (z - a)) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.85e-27) || !(a <= 1e+18)) tmp = Float64(Float64(x + y) - Float64(y * Float64(z / a))); else tmp = Float64(x + Float64(Float64(y * Float64(z - a)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.85e-27) || ~((a <= 1e+18))) tmp = (x + y) - (y * (z / a)); else tmp = x + ((y * (z - a)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.85e-27], N[Not[LessEqual[a, 1e+18]], $MachinePrecision]], N[(N[(x + y), $MachinePrecision] - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.85 \cdot 10^{-27} \lor \neg \left(a \leq 10^{+18}\right):\\
\;\;\;\;\left(x + y\right) - y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z - a\right)}{t}\\
\end{array}
\end{array}
if a < -1.85000000000000014e-27 or 1e18 < a Initial program 77.6%
associate-*l/88.9%
Simplified88.9%
Taylor expanded in t around 0 85.6%
if -1.85000000000000014e-27 < a < 1e18Initial program 77.3%
associate-*l/78.5%
Simplified78.5%
associate-/r/79.3%
Applied egg-rr79.3%
Taylor expanded in t around inf 84.9%
associate--l+84.9%
associate-*r/84.9%
associate-*r/84.9%
div-sub84.9%
distribute-lft-out--84.9%
associate-*r/84.9%
mul-1-neg84.9%
unsub-neg84.9%
*-commutative84.9%
cancel-sign-sub-inv84.9%
distribute-rgt-in84.9%
sub-neg84.9%
Simplified84.9%
Final simplification85.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2.15e-28) (not (<= a 3.4e+18))) (- (+ x y) (/ y (/ a z))) (+ x (/ (* y (- z a)) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.15e-28) || !(a <= 3.4e+18)) {
tmp = (x + y) - (y / (a / z));
} else {
tmp = x + ((y * (z - a)) / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-2.15d-28)) .or. (.not. (a <= 3.4d+18))) then
tmp = (x + y) - (y / (a / z))
else
tmp = x + ((y * (z - a)) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.15e-28) || !(a <= 3.4e+18)) {
tmp = (x + y) - (y / (a / z));
} else {
tmp = x + ((y * (z - a)) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2.15e-28) or not (a <= 3.4e+18): tmp = (x + y) - (y / (a / z)) else: tmp = x + ((y * (z - a)) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2.15e-28) || !(a <= 3.4e+18)) tmp = Float64(Float64(x + y) - Float64(y / Float64(a / z))); else tmp = Float64(x + Float64(Float64(y * Float64(z - a)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -2.15e-28) || ~((a <= 3.4e+18))) tmp = (x + y) - (y / (a / z)); else tmp = x + ((y * (z - a)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.15e-28], N[Not[LessEqual[a, 3.4e+18]], $MachinePrecision]], N[(N[(x + y), $MachinePrecision] - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.15 \cdot 10^{-28} \lor \neg \left(a \leq 3.4 \cdot 10^{+18}\right):\\
\;\;\;\;\left(x + y\right) - \frac{y}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z - a\right)}{t}\\
\end{array}
\end{array}
if a < -2.15e-28 or 3.4e18 < a Initial program 77.6%
associate-*l/88.9%
Simplified88.9%
Taylor expanded in t around 0 81.0%
associate-/l*85.6%
Simplified85.6%
if -2.15e-28 < a < 3.4e18Initial program 77.3%
associate-*l/78.5%
Simplified78.5%
associate-/r/79.3%
Applied egg-rr79.3%
Taylor expanded in t around inf 84.9%
associate--l+84.9%
associate-*r/84.9%
associate-*r/84.9%
div-sub84.9%
distribute-lft-out--84.9%
associate-*r/84.9%
mul-1-neg84.9%
unsub-neg84.9%
*-commutative84.9%
cancel-sign-sub-inv84.9%
distribute-rgt-in84.9%
sub-neg84.9%
Simplified84.9%
Final simplification85.3%
(FPCore (x y z t a) :precision binary64 (if (<= a -2e+119) (- (+ x y) (* y (/ z a))) (if (<= a 1.3e+18) (- x (/ y (/ t (- a z)))) (- (+ x y) (/ y (/ a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2e+119) {
tmp = (x + y) - (y * (z / a));
} else if (a <= 1.3e+18) {
tmp = x - (y / (t / (a - z)));
} else {
tmp = (x + y) - (y / (a / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-2d+119)) then
tmp = (x + y) - (y * (z / a))
else if (a <= 1.3d+18) then
tmp = x - (y / (t / (a - z)))
else
tmp = (x + y) - (y / (a / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2e+119) {
tmp = (x + y) - (y * (z / a));
} else if (a <= 1.3e+18) {
tmp = x - (y / (t / (a - z)));
} else {
tmp = (x + y) - (y / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2e+119: tmp = (x + y) - (y * (z / a)) elif a <= 1.3e+18: tmp = x - (y / (t / (a - z))) else: tmp = (x + y) - (y / (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2e+119) tmp = Float64(Float64(x + y) - Float64(y * Float64(z / a))); elseif (a <= 1.3e+18) tmp = Float64(x - Float64(y / Float64(t / Float64(a - z)))); else tmp = Float64(Float64(x + y) - Float64(y / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2e+119) tmp = (x + y) - (y * (z / a)); elseif (a <= 1.3e+18) tmp = x - (y / (t / (a - z))); else tmp = (x + y) - (y / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2e+119], N[(N[(x + y), $MachinePrecision] - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.3e+18], N[(x - N[(y / N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + y), $MachinePrecision] - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2 \cdot 10^{+119}:\\
\;\;\;\;\left(x + y\right) - y \cdot \frac{z}{a}\\
\mathbf{elif}\;a \leq 1.3 \cdot 10^{+18}:\\
\;\;\;\;x - \frac{y}{\frac{t}{a - z}}\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) - \frac{y}{\frac{a}{z}}\\
\end{array}
\end{array}
if a < -1.99999999999999989e119Initial program 79.1%
associate-*l/93.7%
Simplified93.7%
Taylor expanded in t around 0 90.1%
if -1.99999999999999989e119 < a < 1.3e18Initial program 76.3%
associate-*l/77.9%
Simplified77.9%
associate-/r/78.6%
Applied egg-rr78.6%
Taylor expanded in t around inf 81.3%
associate--l+81.3%
associate-*r/81.3%
associate-*r/81.3%
div-sub81.2%
distribute-lft-out--81.2%
associate-*r/81.2%
mul-1-neg81.2%
unsub-neg81.2%
*-commutative81.2%
cancel-sign-sub-inv81.2%
distribute-rgt-in81.3%
sub-neg81.3%
Simplified81.3%
Taylor expanded in x around 0 81.3%
Simplified83.5%
if 1.3e18 < a Initial program 79.4%
associate-*l/91.9%
Simplified91.9%
Taylor expanded in t around 0 81.9%
associate-/l*88.7%
Simplified88.7%
Final simplification85.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.25e+118) (not (<= a 2.15e+39))) (+ x y) (+ x (* z (/ y t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.25e+118) || !(a <= 2.15e+39)) {
tmp = x + y;
} else {
tmp = x + (z * (y / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-1.25d+118)) .or. (.not. (a <= 2.15d+39))) then
tmp = x + y
else
tmp = x + (z * (y / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.25e+118) || !(a <= 2.15e+39)) {
tmp = x + y;
} else {
tmp = x + (z * (y / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.25e+118) or not (a <= 2.15e+39): tmp = x + y else: tmp = x + (z * (y / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.25e+118) || !(a <= 2.15e+39)) tmp = Float64(x + y); else tmp = Float64(x + Float64(z * Float64(y / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.25e+118) || ~((a <= 2.15e+39))) tmp = x + y; else tmp = x + (z * (y / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.25e+118], N[Not[LessEqual[a, 2.15e+39]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.25 \cdot 10^{+118} \lor \neg \left(a \leq 2.15 \cdot 10^{+39}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y}{t}\\
\end{array}
\end{array}
if a < -1.24999999999999993e118 or 2.15e39 < a Initial program 78.6%
associate-*l/92.5%
Simplified92.5%
Taylor expanded in a around inf 82.9%
+-commutative82.9%
Simplified82.9%
if -1.24999999999999993e118 < a < 2.15e39Initial program 76.7%
associate-*l/78.3%
Simplified78.3%
associate-/r/79.0%
Applied egg-rr79.0%
Taylor expanded in t around inf 81.0%
associate--l+81.0%
associate-*r/81.0%
associate-*r/81.0%
div-sub81.0%
distribute-lft-out--81.0%
associate-*r/81.0%
mul-1-neg81.0%
unsub-neg81.0%
*-commutative81.0%
cancel-sign-sub-inv81.0%
distribute-rgt-in81.0%
sub-neg81.0%
Simplified81.0%
Taylor expanded in a around 0 77.0%
Simplified78.6%
Final simplification80.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.2e+118) (not (<= a 2.35e+35))) (+ x y) (+ x (/ y (/ t z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.2e+118) || !(a <= 2.35e+35)) {
tmp = x + y;
} else {
tmp = x + (y / (t / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-1.2d+118)) .or. (.not. (a <= 2.35d+35))) then
tmp = x + y
else
tmp = x + (y / (t / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.2e+118) || !(a <= 2.35e+35)) {
tmp = x + y;
} else {
tmp = x + (y / (t / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.2e+118) or not (a <= 2.35e+35): tmp = x + y else: tmp = x + (y / (t / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.2e+118) || !(a <= 2.35e+35)) tmp = Float64(x + y); else tmp = Float64(x + Float64(y / Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.2e+118) || ~((a <= 2.35e+35))) tmp = x + y; else tmp = x + (y / (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.2e+118], N[Not[LessEqual[a, 2.35e+35]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.2 \cdot 10^{+118} \lor \neg \left(a \leq 2.35 \cdot 10^{+35}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{t}{z}}\\
\end{array}
\end{array}
if a < -1.2e118 or 2.35000000000000017e35 < a Initial program 78.6%
associate-*l/92.5%
Simplified92.5%
Taylor expanded in a around inf 82.9%
+-commutative82.9%
Simplified82.9%
if -1.2e118 < a < 2.35000000000000017e35Initial program 76.7%
associate-*l/78.3%
Simplified78.3%
associate-/r/79.0%
Applied egg-rr79.0%
Taylor expanded in t around inf 81.0%
associate--l+81.0%
associate-*r/81.0%
associate-*r/81.0%
div-sub81.0%
distribute-lft-out--81.0%
associate-*r/81.0%
mul-1-neg81.0%
unsub-neg81.0%
*-commutative81.0%
cancel-sign-sub-inv81.0%
distribute-rgt-in81.0%
sub-neg81.0%
Simplified81.0%
Taylor expanded in x around 0 81.0%
Simplified82.6%
Taylor expanded in a around 0 77.0%
mul-1-neg77.0%
associate-/l*78.6%
Simplified78.6%
Final simplification80.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -9e-13) (not (<= a 2.6e+37))) (+ x y) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -9e-13) || !(a <= 2.6e+37)) {
tmp = x + y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-9d-13)) .or. (.not. (a <= 2.6d+37))) then
tmp = x + y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -9e-13) || !(a <= 2.6e+37)) {
tmp = x + y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -9e-13) or not (a <= 2.6e+37): tmp = x + y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -9e-13) || !(a <= 2.6e+37)) tmp = Float64(x + y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -9e-13) || ~((a <= 2.6e+37))) tmp = x + y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -9e-13], N[Not[LessEqual[a, 2.6e+37]], $MachinePrecision]], N[(x + y), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9 \cdot 10^{-13} \lor \neg \left(a \leq 2.6 \cdot 10^{+37}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -9e-13 or 2.5999999999999999e37 < a Initial program 77.7%
associate-*l/89.8%
Simplified89.8%
Taylor expanded in a around inf 79.0%
+-commutative79.0%
Simplified79.0%
if -9e-13 < a < 2.5999999999999999e37Initial program 77.3%
associate-*l/78.4%
Simplified78.4%
Taylor expanded in x around inf 56.4%
Final simplification66.9%
(FPCore (x y z t a) :precision binary64 (if (<= z -1e+215) (* y (/ z t)) (+ x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1e+215) {
tmp = y * (z / t);
} else {
tmp = x + y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1d+215)) then
tmp = y * (z / t)
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1e+215) {
tmp = y * (z / t);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1e+215: tmp = y * (z / t) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1e+215) tmp = Float64(y * Float64(z / t)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1e+215) tmp = y * (z / t); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1e+215], N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+215}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -9.99999999999999907e214Initial program 76.3%
associate-*l/91.9%
Simplified91.9%
Taylor expanded in x around 0 55.9%
sub-neg55.9%
associate-*r/71.5%
*-rgt-identity71.5%
distribute-rgt-neg-in71.5%
distribute-frac-neg71.5%
distribute-lft-in71.5%
distribute-frac-neg71.5%
sub-neg71.5%
Simplified71.5%
Taylor expanded in a around 0 60.5%
if -9.99999999999999907e214 < z Initial program 77.6%
associate-*l/82.8%
Simplified82.8%
Taylor expanded in a around inf 66.3%
+-commutative66.3%
Simplified66.3%
Final simplification65.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.3e+214) (* z (/ y t)) (+ x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.3e+214) {
tmp = z * (y / t);
} else {
tmp = x + y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.3d+214)) then
tmp = z * (y / t)
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.3e+214) {
tmp = z * (y / t);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.3e+214: tmp = z * (y / t) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.3e+214) tmp = Float64(z * Float64(y / t)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.3e+214) tmp = z * (y / t); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.3e+214], N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.3 \cdot 10^{+214}:\\
\;\;\;\;z \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -2.2999999999999999e214Initial program 76.3%
associate-*l/91.9%
Simplified91.9%
Taylor expanded in x around 0 55.9%
sub-neg55.9%
associate-*r/71.5%
*-rgt-identity71.5%
distribute-rgt-neg-in71.5%
distribute-frac-neg71.5%
distribute-lft-in71.5%
distribute-frac-neg71.5%
sub-neg71.5%
Simplified71.5%
Taylor expanded in a around 0 47.6%
associate-/l*60.3%
associate-/r/60.6%
Applied egg-rr60.6%
if -2.2999999999999999e214 < z Initial program 77.6%
associate-*l/82.8%
Simplified82.8%
Taylor expanded in a around inf 66.3%
+-commutative66.3%
Simplified66.3%
Final simplification65.8%
(FPCore (x y z t a) :precision binary64 (if (<= y -2.2e+142) y x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -2.2e+142) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (y <= (-2.2d+142)) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -2.2e+142) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -2.2e+142: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -2.2e+142) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -2.2e+142) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -2.2e+142], y, x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.2 \cdot 10^{+142}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -2.19999999999999987e142Initial program 49.0%
associate-*l/79.9%
Simplified79.9%
Taylor expanded in x around 0 40.4%
sub-neg40.4%
associate-*r/69.6%
*-rgt-identity69.6%
distribute-rgt-neg-in69.6%
distribute-frac-neg69.6%
distribute-lft-in69.7%
distribute-frac-neg69.7%
sub-neg69.7%
Simplified69.7%
Taylor expanded in a around inf 46.3%
if -2.19999999999999987e142 < y Initial program 81.4%
associate-*l/84.2%
Simplified84.2%
Taylor expanded in x around inf 60.0%
Final simplification58.3%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 77.4%
associate-*l/83.7%
Simplified83.7%
Taylor expanded in x around inf 53.8%
Final simplification53.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)))
(t_2 (- (+ x y) (/ (* (- z t) y) (- a t)))))
(if (< t_2 -1.3664970889390727e-7)
t_1
(if (< t_2 1.4754293444577233e-239)
(/ (- (* y (- a z)) (* x t)) (- a t))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
double t_2 = (x + y) - (((z - t) * y) / (a - t));
double tmp;
if (t_2 < -1.3664970889390727e-7) {
tmp = t_1;
} else if (t_2 < 1.4754293444577233e-239) {
tmp = ((y * (a - z)) - (x * t)) / (a - t);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y + x) - (((z - t) * (1.0d0 / (a - t))) * y)
t_2 = (x + y) - (((z - t) * y) / (a - t))
if (t_2 < (-1.3664970889390727d-7)) then
tmp = t_1
else if (t_2 < 1.4754293444577233d-239) then
tmp = ((y * (a - z)) - (x * t)) / (a - t)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
double t_2 = (x + y) - (((z - t) * y) / (a - t));
double tmp;
if (t_2 < -1.3664970889390727e-7) {
tmp = t_1;
} else if (t_2 < 1.4754293444577233e-239) {
tmp = ((y * (a - z)) - (x * t)) / (a - t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y) t_2 = (x + y) - (((z - t) * y) / (a - t)) tmp = 0 if t_2 < -1.3664970889390727e-7: tmp = t_1 elif t_2 < 1.4754293444577233e-239: tmp = ((y * (a - z)) - (x * t)) / (a - t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y + x) - Float64(Float64(Float64(z - t) * Float64(1.0 / Float64(a - t))) * y)) t_2 = Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) tmp = 0.0 if (t_2 < -1.3664970889390727e-7) tmp = t_1; elseif (t_2 < 1.4754293444577233e-239) tmp = Float64(Float64(Float64(y * Float64(a - z)) - Float64(x * t)) / Float64(a - t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y); t_2 = (x + y) - (((z - t) * y) / (a - t)); tmp = 0.0; if (t_2 < -1.3664970889390727e-7) tmp = t_1; elseif (t_2 < 1.4754293444577233e-239) tmp = ((y * (a - z)) - (x * t)) / (a - t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y + x), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * N[(1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$2, -1.3664970889390727e-7], t$95$1, If[Less[t$95$2, 1.4754293444577233e-239], N[(N[(N[(y * N[(a - z), $MachinePrecision]), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y + x\right) - \left(\left(z - t\right) \cdot \frac{1}{a - t}\right) \cdot y\\
t_2 := \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\\
\mathbf{if}\;t_2 < -1.3664970889390727 \cdot 10^{-7}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 < 1.4754293444577233 \cdot 10^{-239}:\\
\;\;\;\;\frac{y \cdot \left(a - z\right) - x \cdot t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2024024
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
:precision binary64
:herbie-target
(if (< (- (+ x y) (/ (* (- z t) y) (- a t))) -1.3664970889390727e-7) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)) (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) 1.4754293444577233e-239) (/ (- (* y (- a z)) (* x t)) (- a t)) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y))))
(- (+ x y) (/ (* (- z t) y) (- a t))))