
(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 12 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 (/ (- t z) (- a t))))
(if (<= a -5.4e-59)
(fma t_1 y (+ y x))
(if (<= a 9.5e+29) (+ x (/ y (/ t (- z a)))) (+ (+ y x) (* y t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (t - z) / (a - t);
double tmp;
if (a <= -5.4e-59) {
tmp = fma(t_1, y, (y + x));
} else if (a <= 9.5e+29) {
tmp = x + (y / (t / (z - a)));
} else {
tmp = (y + x) + (y * t_1);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(t - z) / Float64(a - t)) tmp = 0.0 if (a <= -5.4e-59) tmp = fma(t_1, y, Float64(y + x)); elseif (a <= 9.5e+29) tmp = Float64(x + Float64(y / Float64(t / Float64(z - a)))); else tmp = Float64(Float64(y + x) + Float64(y * t_1)); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.4e-59], N[(t$95$1 * y + N[(y + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e+29], N[(x + N[(y / N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y + x), $MachinePrecision] + N[(y * t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - z}{a - t}\\
\mathbf{if}\;a \leq -5.4 \cdot 10^{-59}:\\
\;\;\;\;\mathsf{fma}\left(t_1, y, y + x\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{+29}:\\
\;\;\;\;x + \frac{y}{\frac{t}{z - a}}\\
\mathbf{else}:\\
\;\;\;\;\left(y + x\right) + y \cdot t_1\\
\end{array}
\end{array}
if a < -5.3999999999999998e-59Initial program 80.0%
sub-neg80.0%
distribute-frac-neg80.0%
distribute-rgt-neg-out80.0%
+-commutative80.0%
associate-*l/94.0%
distribute-rgt-neg-in94.0%
distribute-lft-neg-in94.0%
distribute-frac-neg94.0%
fma-def94.0%
sub-neg94.0%
distribute-neg-in94.0%
remove-double-neg94.0%
+-commutative94.0%
sub-neg94.0%
Simplified94.0%
if -5.3999999999999998e-59 < a < 9.5000000000000003e29Initial program 69.7%
sub-neg69.7%
distribute-frac-neg69.7%
distribute-rgt-neg-out69.7%
+-commutative69.7%
associate-*l/72.3%
distribute-rgt-neg-in72.3%
distribute-lft-neg-in72.3%
distribute-frac-neg72.3%
fma-def72.3%
sub-neg72.3%
distribute-neg-in72.3%
remove-double-neg72.3%
+-commutative72.3%
sub-neg72.3%
Simplified72.3%
Taylor expanded in t around inf 70.4%
associate-+r+87.2%
distribute-rgt1-in87.2%
metadata-eval87.2%
mul0-lft87.2%
associate-/l*89.4%
Simplified89.4%
if 9.5000000000000003e29 < a Initial program 82.5%
associate-*l/98.3%
Simplified98.3%
Final simplification92.8%
(FPCore (x y z t a)
:precision binary64
(if (<= a -3.7e-221)
(+ y x)
(if (<= a -2e-298)
(/ (* z y) t)
(if (<= a 9.5e-197) x (if (<= a 5.1e-54) (* (- z a) (/ y t)) (+ y x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.7e-221) {
tmp = y + x;
} else if (a <= -2e-298) {
tmp = (z * y) / t;
} else if (a <= 9.5e-197) {
tmp = x;
} else if (a <= 5.1e-54) {
tmp = (z - a) * (y / t);
} else {
tmp = y + 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 <= (-3.7d-221)) then
tmp = y + x
else if (a <= (-2d-298)) then
tmp = (z * y) / t
else if (a <= 9.5d-197) then
tmp = x
else if (a <= 5.1d-54) then
tmp = (z - a) * (y / t)
else
tmp = y + 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 <= -3.7e-221) {
tmp = y + x;
} else if (a <= -2e-298) {
tmp = (z * y) / t;
} else if (a <= 9.5e-197) {
tmp = x;
} else if (a <= 5.1e-54) {
tmp = (z - a) * (y / t);
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.7e-221: tmp = y + x elif a <= -2e-298: tmp = (z * y) / t elif a <= 9.5e-197: tmp = x elif a <= 5.1e-54: tmp = (z - a) * (y / t) else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.7e-221) tmp = Float64(y + x); elseif (a <= -2e-298) tmp = Float64(Float64(z * y) / t); elseif (a <= 9.5e-197) tmp = x; elseif (a <= 5.1e-54) tmp = Float64(Float64(z - a) * Float64(y / t)); else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3.7e-221) tmp = y + x; elseif (a <= -2e-298) tmp = (z * y) / t; elseif (a <= 9.5e-197) tmp = x; elseif (a <= 5.1e-54) tmp = (z - a) * (y / t); else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.7e-221], N[(y + x), $MachinePrecision], If[LessEqual[a, -2e-298], N[(N[(z * y), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[a, 9.5e-197], x, If[LessEqual[a, 5.1e-54], N[(N[(z - a), $MachinePrecision] * N[(y / t), $MachinePrecision]), $MachinePrecision], N[(y + x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.7 \cdot 10^{-221}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;a \leq -2 \cdot 10^{-298}:\\
\;\;\;\;\frac{z \cdot y}{t}\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-197}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 5.1 \cdot 10^{-54}:\\
\;\;\;\;\left(z - a\right) \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if a < -3.69999999999999985e-221 or 5.1000000000000001e-54 < a Initial program 79.7%
associate-*l/90.7%
Simplified90.7%
Taylor expanded in a around inf 73.8%
+-commutative73.8%
Simplified73.8%
if -3.69999999999999985e-221 < a < -1.99999999999999982e-298Initial program 66.1%
associate-*l/65.9%
Simplified65.9%
Taylor expanded in x around 0 54.8%
sub-neg54.8%
associate-*r/54.6%
*-rgt-identity54.6%
distribute-rgt-neg-in54.6%
distribute-frac-neg54.6%
distribute-lft-in54.6%
distribute-frac-neg54.6%
sub-neg54.6%
Simplified54.6%
Taylor expanded in a around 0 77.3%
if -1.99999999999999982e-298 < a < 9.5000000000000003e-197Initial program 73.4%
associate-*l/78.2%
Simplified78.2%
Taylor expanded in x around inf 56.4%
if 9.5000000000000003e-197 < a < 5.1000000000000001e-54Initial program 60.3%
associate-*l/64.9%
Simplified64.9%
Taylor expanded in x around 0 33.9%
sub-neg33.9%
associate-*r/38.5%
*-rgt-identity38.5%
distribute-rgt-neg-in38.5%
distribute-frac-neg38.5%
distribute-lft-in38.5%
distribute-frac-neg38.5%
sub-neg38.5%
Simplified38.5%
Taylor expanded in t around inf 46.1%
associate-*r/46.1%
mul-1-neg46.1%
sub-neg46.1%
mul-1-neg46.1%
Simplified46.1%
Taylor expanded in y around inf 46.1%
Taylor expanded in z around 0 46.0%
mul-1-neg46.0%
associate-/l*56.0%
+-commutative56.0%
associate-*l/55.8%
sub-neg55.8%
associate-/l*45.8%
associate-*r/55.7%
*-commutative55.7%
distribute-lft-out--55.7%
div-sub55.7%
associate-*r/46.1%
associate-*l/53.6%
Simplified53.6%
Final simplification69.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -4.7e-58) (not (<= a 9.5e+27))) (+ (+ y x) (* y (/ (- t z) (- a t)))) (+ x (/ y (/ t (- z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -4.7e-58) || !(a <= 9.5e+27)) {
tmp = (y + x) + (y * ((t - z) / (a - t)));
} else {
tmp = x + (y / (t / (z - a)));
}
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 <= (-4.7d-58)) .or. (.not. (a <= 9.5d+27))) then
tmp = (y + x) + (y * ((t - z) / (a - t)))
else
tmp = x + (y / (t / (z - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -4.7e-58) || !(a <= 9.5e+27)) {
tmp = (y + x) + (y * ((t - z) / (a - t)));
} else {
tmp = x + (y / (t / (z - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -4.7e-58) or not (a <= 9.5e+27): tmp = (y + x) + (y * ((t - z) / (a - t))) else: tmp = x + (y / (t / (z - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -4.7e-58) || !(a <= 9.5e+27)) tmp = Float64(Float64(y + x) + Float64(y * Float64(Float64(t - z) / Float64(a - t)))); else tmp = Float64(x + Float64(y / Float64(t / Float64(z - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -4.7e-58) || ~((a <= 9.5e+27))) tmp = (y + x) + (y * ((t - z) / (a - t))); else tmp = x + (y / (t / (z - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -4.7e-58], N[Not[LessEqual[a, 9.5e+27]], $MachinePrecision]], N[(N[(y + x), $MachinePrecision] + N[(y * N[(N[(t - z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.7 \cdot 10^{-58} \lor \neg \left(a \leq 9.5 \cdot 10^{+27}\right):\\
\;\;\;\;\left(y + x\right) + y \cdot \frac{t - z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{t}{z - a}}\\
\end{array}
\end{array}
if a < -4.69999999999999994e-58 or 9.4999999999999997e27 < a Initial program 81.2%
associate-*l/96.0%
Simplified96.0%
if -4.69999999999999994e-58 < a < 9.4999999999999997e27Initial program 69.7%
sub-neg69.7%
distribute-frac-neg69.7%
distribute-rgt-neg-out69.7%
+-commutative69.7%
associate-*l/72.3%
distribute-rgt-neg-in72.3%
distribute-lft-neg-in72.3%
distribute-frac-neg72.3%
fma-def72.3%
sub-neg72.3%
distribute-neg-in72.3%
remove-double-neg72.3%
+-commutative72.3%
sub-neg72.3%
Simplified72.3%
Taylor expanded in t around inf 70.4%
associate-+r+87.2%
distribute-rgt1-in87.2%
metadata-eval87.2%
mul0-lft87.2%
associate-/l*89.4%
Simplified89.4%
Final simplification92.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.2e-47) (not (<= a 2.75e-74))) (- (+ y x) (* y (/ z a))) (+ x (/ (* z y) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.2e-47) || !(a <= 2.75e-74)) {
tmp = (y + x) - (y * (z / a));
} 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.2d-47)) .or. (.not. (a <= 2.75d-74))) then
tmp = (y + x) - (y * (z / a))
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.2e-47) || !(a <= 2.75e-74)) {
tmp = (y + x) - (y * (z / a));
} else {
tmp = x + ((z * y) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.2e-47) or not (a <= 2.75e-74): tmp = (y + x) - (y * (z / a)) else: tmp = x + ((z * y) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.2e-47) || !(a <= 2.75e-74)) tmp = Float64(Float64(y + x) - Float64(y * Float64(z / a))); else tmp = Float64(x + Float64(Float64(z * y) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.2e-47) || ~((a <= 2.75e-74))) tmp = (y + x) - (y * (z / a)); else tmp = x + ((z * y) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.2e-47], N[Not[LessEqual[a, 2.75e-74]], $MachinePrecision]], N[(N[(y + x), $MachinePrecision] - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z * y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.2 \cdot 10^{-47} \lor \neg \left(a \leq 2.75 \cdot 10^{-74}\right):\\
\;\;\;\;\left(y + x\right) - y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z \cdot y}{t}\\
\end{array}
\end{array}
if a < -1.2e-47 or 2.75e-74 < a Initial program 78.3%
associate-*l/92.0%
Simplified92.0%
Taylor expanded in t around 0 86.8%
if -1.2e-47 < a < 2.75e-74Initial program 72.2%
associate-*l/75.1%
Simplified75.1%
Taylor expanded in t around inf 86.3%
sub-neg86.3%
mul-1-neg86.3%
unsub-neg86.3%
associate-/l*80.3%
mul-1-neg80.3%
remove-double-neg80.3%
associate-/l*84.4%
Simplified84.4%
Taylor expanded in a around 0 80.7%
Final simplification84.1%
(FPCore (x y z t a) :precision binary64 (if (<= a -4.2e-57) (- (+ y x) (/ y (/ a z))) (if (<= a 4.3e-74) (+ x (/ (* z y) t)) (- (+ y x) (* y (/ z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.2e-57) {
tmp = (y + x) - (y / (a / z));
} else if (a <= 4.3e-74) {
tmp = x + ((z * y) / t);
} else {
tmp = (y + x) - (y * (z / a));
}
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 <= (-4.2d-57)) then
tmp = (y + x) - (y / (a / z))
else if (a <= 4.3d-74) then
tmp = x + ((z * y) / t)
else
tmp = (y + x) - (y * (z / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.2e-57) {
tmp = (y + x) - (y / (a / z));
} else if (a <= 4.3e-74) {
tmp = x + ((z * y) / t);
} else {
tmp = (y + x) - (y * (z / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.2e-57: tmp = (y + x) - (y / (a / z)) elif a <= 4.3e-74: tmp = x + ((z * y) / t) else: tmp = (y + x) - (y * (z / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.2e-57) tmp = Float64(Float64(y + x) - Float64(y / Float64(a / z))); elseif (a <= 4.3e-74) tmp = Float64(x + Float64(Float64(z * y) / t)); else tmp = Float64(Float64(y + x) - Float64(y * Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.2e-57) tmp = (y + x) - (y / (a / z)); elseif (a <= 4.3e-74) tmp = x + ((z * y) / t); else tmp = (y + x) - (y * (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.2e-57], N[(N[(y + x), $MachinePrecision] - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.3e-74], N[(x + N[(N[(z * y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(N[(y + x), $MachinePrecision] - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.2 \cdot 10^{-57}:\\
\;\;\;\;\left(y + x\right) - \frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;a \leq 4.3 \cdot 10^{-74}:\\
\;\;\;\;x + \frac{z \cdot y}{t}\\
\mathbf{else}:\\
\;\;\;\;\left(y + x\right) - y \cdot \frac{z}{a}\\
\end{array}
\end{array}
if a < -4.1999999999999999e-57Initial program 80.0%
associate-*l/94.0%
Simplified94.0%
Taylor expanded in t around 0 79.2%
associate-/l*84.5%
Simplified84.5%
if -4.1999999999999999e-57 < a < 4.29999999999999972e-74Initial program 70.7%
associate-*l/73.7%
Simplified73.7%
Taylor expanded in t around inf 87.3%
sub-neg87.3%
mul-1-neg87.3%
unsub-neg87.3%
associate-/l*81.0%
mul-1-neg81.0%
remove-double-neg81.0%
associate-/l*85.3%
Simplified85.3%
Taylor expanded in a around 0 80.5%
if 4.29999999999999972e-74 < a Initial program 78.3%
associate-*l/90.7%
Simplified90.7%
Taylor expanded in t around 0 88.9%
Final simplification84.1%
(FPCore (x y z t a) :precision binary64 (if (<= a -8.5e-58) (- (+ y x) (/ y (/ a z))) (if (<= a 4e+28) (+ x (/ y (/ t (- z a)))) (- (+ y x) (* y (/ z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -8.5e-58) {
tmp = (y + x) - (y / (a / z));
} else if (a <= 4e+28) {
tmp = x + (y / (t / (z - a)));
} else {
tmp = (y + x) - (y * (z / a));
}
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 <= (-8.5d-58)) then
tmp = (y + x) - (y / (a / z))
else if (a <= 4d+28) then
tmp = x + (y / (t / (z - a)))
else
tmp = (y + x) - (y * (z / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -8.5e-58) {
tmp = (y + x) - (y / (a / z));
} else if (a <= 4e+28) {
tmp = x + (y / (t / (z - a)));
} else {
tmp = (y + x) - (y * (z / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -8.5e-58: tmp = (y + x) - (y / (a / z)) elif a <= 4e+28: tmp = x + (y / (t / (z - a))) else: tmp = (y + x) - (y * (z / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -8.5e-58) tmp = Float64(Float64(y + x) - Float64(y / Float64(a / z))); elseif (a <= 4e+28) tmp = Float64(x + Float64(y / Float64(t / Float64(z - a)))); else tmp = Float64(Float64(y + x) - Float64(y * Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -8.5e-58) tmp = (y + x) - (y / (a / z)); elseif (a <= 4e+28) tmp = x + (y / (t / (z - a))); else tmp = (y + x) - (y * (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -8.5e-58], N[(N[(y + x), $MachinePrecision] - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4e+28], N[(x + N[(y / N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y + x), $MachinePrecision] - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.5 \cdot 10^{-58}:\\
\;\;\;\;\left(y + x\right) - \frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;a \leq 4 \cdot 10^{+28}:\\
\;\;\;\;x + \frac{y}{\frac{t}{z - a}}\\
\mathbf{else}:\\
\;\;\;\;\left(y + x\right) - y \cdot \frac{z}{a}\\
\end{array}
\end{array}
if a < -8.5000000000000004e-58Initial program 80.0%
associate-*l/94.0%
Simplified94.0%
Taylor expanded in t around 0 79.2%
associate-/l*84.5%
Simplified84.5%
if -8.5000000000000004e-58 < a < 3.99999999999999983e28Initial program 69.7%
sub-neg69.7%
distribute-frac-neg69.7%
distribute-rgt-neg-out69.7%
+-commutative69.7%
associate-*l/72.3%
distribute-rgt-neg-in72.3%
distribute-lft-neg-in72.3%
distribute-frac-neg72.3%
fma-def72.3%
sub-neg72.3%
distribute-neg-in72.3%
remove-double-neg72.3%
+-commutative72.3%
sub-neg72.3%
Simplified72.3%
Taylor expanded in t around inf 70.4%
associate-+r+87.2%
distribute-rgt1-in87.2%
metadata-eval87.2%
mul0-lft87.2%
associate-/l*89.4%
Simplified89.4%
if 3.99999999999999983e28 < a Initial program 82.5%
associate-*l/98.3%
Simplified98.3%
Taylor expanded in t around 0 96.9%
Final simplification89.8%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.5e-221) (+ y x) (if (<= a -1.2e-299) (* y (/ z t)) (if (<= a 9.5e+27) x (+ y x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.5e-221) {
tmp = y + x;
} else if (a <= -1.2e-299) {
tmp = y * (z / t);
} else if (a <= 9.5e+27) {
tmp = x;
} else {
tmp = y + 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 <= (-1.5d-221)) then
tmp = y + x
else if (a <= (-1.2d-299)) then
tmp = y * (z / t)
else if (a <= 9.5d+27) then
tmp = x
else
tmp = y + 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 <= -1.5e-221) {
tmp = y + x;
} else if (a <= -1.2e-299) {
tmp = y * (z / t);
} else if (a <= 9.5e+27) {
tmp = x;
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.5e-221: tmp = y + x elif a <= -1.2e-299: tmp = y * (z / t) elif a <= 9.5e+27: tmp = x else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.5e-221) tmp = Float64(y + x); elseif (a <= -1.2e-299) tmp = Float64(y * Float64(z / t)); elseif (a <= 9.5e+27) tmp = x; else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.5e-221) tmp = y + x; elseif (a <= -1.2e-299) tmp = y * (z / t); elseif (a <= 9.5e+27) tmp = x; else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.5e-221], N[(y + x), $MachinePrecision], If[LessEqual[a, -1.2e-299], N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e+27], x, N[(y + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.5 \cdot 10^{-221}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;a \leq -1.2 \cdot 10^{-299}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{+27}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if a < -1.5000000000000001e-221 or 9.4999999999999997e27 < a Initial program 81.6%
associate-*l/93.4%
Simplified93.4%
Taylor expanded in a around inf 75.8%
+-commutative75.8%
Simplified75.8%
if -1.5000000000000001e-221 < a < -1.2000000000000001e-299Initial program 66.1%
associate-*l/65.9%
Simplified65.9%
Taylor expanded in x around 0 54.8%
sub-neg54.8%
associate-*r/54.6%
*-rgt-identity54.6%
distribute-rgt-neg-in54.6%
distribute-frac-neg54.6%
distribute-lft-in54.6%
distribute-frac-neg54.6%
sub-neg54.6%
Simplified54.6%
Taylor expanded in a around 0 77.2%
if -1.2000000000000001e-299 < a < 9.4999999999999997e27Initial program 62.7%
associate-*l/66.6%
Simplified66.6%
Taylor expanded in x around inf 47.3%
Final simplification68.3%
(FPCore (x y z t a) :precision binary64 (if (<= a -2.5e-221) (+ y x) (if (<= a -4.2e-298) (/ (* z y) t) (if (<= a 1.15e+29) x (+ y x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.5e-221) {
tmp = y + x;
} else if (a <= -4.2e-298) {
tmp = (z * y) / t;
} else if (a <= 1.15e+29) {
tmp = x;
} else {
tmp = y + 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 <= (-2.5d-221)) then
tmp = y + x
else if (a <= (-4.2d-298)) then
tmp = (z * y) / t
else if (a <= 1.15d+29) then
tmp = x
else
tmp = y + 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 <= -2.5e-221) {
tmp = y + x;
} else if (a <= -4.2e-298) {
tmp = (z * y) / t;
} else if (a <= 1.15e+29) {
tmp = x;
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.5e-221: tmp = y + x elif a <= -4.2e-298: tmp = (z * y) / t elif a <= 1.15e+29: tmp = x else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.5e-221) tmp = Float64(y + x); elseif (a <= -4.2e-298) tmp = Float64(Float64(z * y) / t); elseif (a <= 1.15e+29) tmp = x; else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.5e-221) tmp = y + x; elseif (a <= -4.2e-298) tmp = (z * y) / t; elseif (a <= 1.15e+29) tmp = x; else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.5e-221], N[(y + x), $MachinePrecision], If[LessEqual[a, -4.2e-298], N[(N[(z * y), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[a, 1.15e+29], x, N[(y + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.5 \cdot 10^{-221}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;a \leq -4.2 \cdot 10^{-298}:\\
\;\;\;\;\frac{z \cdot y}{t}\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{+29}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if a < -2.49999999999999998e-221 or 1.1500000000000001e29 < a Initial program 81.6%
associate-*l/93.4%
Simplified93.4%
Taylor expanded in a around inf 75.8%
+-commutative75.8%
Simplified75.8%
if -2.49999999999999998e-221 < a < -4.2000000000000001e-298Initial program 66.1%
associate-*l/65.9%
Simplified65.9%
Taylor expanded in x around 0 54.8%
sub-neg54.8%
associate-*r/54.6%
*-rgt-identity54.6%
distribute-rgt-neg-in54.6%
distribute-frac-neg54.6%
distribute-lft-in54.6%
distribute-frac-neg54.6%
sub-neg54.6%
Simplified54.6%
Taylor expanded in a around 0 77.3%
if -4.2000000000000001e-298 < a < 1.1500000000000001e29Initial program 62.7%
associate-*l/66.6%
Simplified66.6%
Taylor expanded in x around inf 47.3%
Final simplification68.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -4e-35) (not (<= a 3.55e-31))) (+ y x) (+ x (/ (* z y) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -4e-35) || !(a <= 3.55e-31)) {
tmp = y + x;
} 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 <= (-4d-35)) .or. (.not. (a <= 3.55d-31))) then
tmp = y + x
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 <= -4e-35) || !(a <= 3.55e-31)) {
tmp = y + x;
} else {
tmp = x + ((z * y) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -4e-35) or not (a <= 3.55e-31): tmp = y + x else: tmp = x + ((z * y) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -4e-35) || !(a <= 3.55e-31)) tmp = Float64(y + x); else tmp = Float64(x + Float64(Float64(z * y) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -4e-35) || ~((a <= 3.55e-31))) tmp = y + x; else tmp = x + ((z * y) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -4e-35], N[Not[LessEqual[a, 3.55e-31]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(N[(z * y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4 \cdot 10^{-35} \lor \neg \left(a \leq 3.55 \cdot 10^{-31}\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z \cdot y}{t}\\
\end{array}
\end{array}
if a < -4.00000000000000003e-35 or 3.5499999999999999e-31 < a Initial program 78.4%
associate-*l/93.1%
Simplified93.1%
Taylor expanded in a around inf 80.4%
+-commutative80.4%
Simplified80.4%
if -4.00000000000000003e-35 < a < 3.5499999999999999e-31Initial program 72.6%
associate-*l/75.2%
Simplified75.2%
Taylor expanded in t around inf 83.9%
sub-neg83.9%
mul-1-neg83.9%
unsub-neg83.9%
associate-/l*78.4%
mul-1-neg78.4%
remove-double-neg78.4%
associate-/l*82.2%
Simplified82.2%
Taylor expanded in a around 0 79.1%
Final simplification79.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2.9e-59) (not (<= a 9.5e+27))) (+ y x) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.9e-59) || !(a <= 9.5e+27)) {
tmp = y + x;
} 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 <= (-2.9d-59)) .or. (.not. (a <= 9.5d+27))) then
tmp = y + x
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 <= -2.9e-59) || !(a <= 9.5e+27)) {
tmp = y + x;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2.9e-59) or not (a <= 9.5e+27): tmp = y + x else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2.9e-59) || !(a <= 9.5e+27)) tmp = Float64(y + x); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -2.9e-59) || ~((a <= 9.5e+27))) tmp = y + x; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.9e-59], N[Not[LessEqual[a, 9.5e+27]], $MachinePrecision]], N[(y + x), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.9 \cdot 10^{-59} \lor \neg \left(a \leq 9.5 \cdot 10^{+27}\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -2.90000000000000016e-59 or 9.4999999999999997e27 < a Initial program 81.3%
associate-*l/96.0%
Simplified96.0%
Taylor expanded in a around inf 80.4%
+-commutative80.4%
Simplified80.4%
if -2.90000000000000016e-59 < a < 9.4999999999999997e27Initial program 69.4%
associate-*l/72.1%
Simplified72.1%
Taylor expanded in x around inf 50.0%
Final simplification65.7%
(FPCore (x y z t a) :precision binary64 (if (<= y 2e+88) x y))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= 2e+88) {
tmp = x;
} else {
tmp = 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 (y <= 2d+88) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= 2e+88) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= 2e+88: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= 2e+88) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= 2e+88) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, 2e+88], x, y]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2 \cdot 10^{+88}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if y < 1.99999999999999992e88Initial program 80.6%
associate-*l/86.9%
Simplified86.9%
Taylor expanded in x around inf 58.7%
if 1.99999999999999992e88 < y Initial program 49.9%
associate-*l/72.1%
Simplified72.1%
Taylor expanded in x around 0 48.8%
sub-neg48.8%
associate-*r/68.7%
*-rgt-identity68.7%
distribute-rgt-neg-in68.7%
distribute-frac-neg68.7%
distribute-lft-in68.7%
distribute-frac-neg68.7%
sub-neg68.7%
Simplified68.7%
Taylor expanded in a around inf 31.0%
Final simplification54.2%
(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 75.6%
associate-*l/84.4%
Simplified84.4%
Taylor expanded in x around inf 50.8%
Final simplification50.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 2024021
(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))))