
(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
(if (<= t -2.1e+159)
(+ x (/ -1.0 (/ (/ t y) (- a z))))
(if (<= t 6.5e+123)
(fma (- z t) (/ y (- t a)) (+ x y))
(+ (- x (* a (/ y t))) (* y (/ z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.1e+159) {
tmp = x + (-1.0 / ((t / y) / (a - z)));
} else if (t <= 6.5e+123) {
tmp = fma((z - t), (y / (t - a)), (x + y));
} else {
tmp = (x - (a * (y / t))) + (y * (z / t));
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.1e+159) tmp = Float64(x + Float64(-1.0 / Float64(Float64(t / y) / Float64(a - z)))); elseif (t <= 6.5e+123) tmp = fma(Float64(z - t), Float64(y / Float64(t - a)), Float64(x + y)); else tmp = Float64(Float64(x - Float64(a * Float64(y / t))) + Float64(y * Float64(z / t))); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.1e+159], N[(x + N[(-1.0 / N[(N[(t / y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e+123], N[(N[(z - t), $MachinePrecision] * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision] + N[(x + y), $MachinePrecision]), $MachinePrecision], N[(N[(x - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.1 \cdot 10^{+159}:\\
\;\;\;\;x + \frac{-1}{\frac{\frac{t}{y}}{a - z}}\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{+123}:\\
\;\;\;\;\mathsf{fma}\left(z - t, \frac{y}{t - a}, x + y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x - a \cdot \frac{y}{t}\right) + y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if t < -2.09999999999999989e159Initial program 63.5%
Taylor expanded in t around -inf 86.5%
mul-1-neg86.5%
unsub-neg86.5%
*-commutative86.5%
Simplified86.5%
clear-num86.4%
inv-pow86.4%
distribute-lft-out--86.4%
Applied egg-rr86.4%
unpow-186.4%
associate-/r*95.7%
Simplified95.7%
if -2.09999999999999989e159 < t < 6.5000000000000001e123Initial program 93.0%
sub-neg93.0%
+-commutative93.0%
distribute-frac-neg93.0%
distribute-rgt-neg-out93.0%
associate-/l*95.4%
fma-define95.5%
distribute-frac-neg95.5%
distribute-neg-frac295.5%
sub-neg95.5%
distribute-neg-in95.5%
remove-double-neg95.5%
+-commutative95.5%
sub-neg95.5%
Simplified95.5%
if 6.5000000000000001e123 < t Initial program 44.3%
Taylor expanded in t around inf 67.9%
sub-neg67.9%
mul-1-neg67.9%
unsub-neg67.9%
associate-/l*82.0%
mul-1-neg82.0%
remove-double-neg82.0%
associate-/l*100.0%
Simplified100.0%
Final simplification96.2%
(FPCore (x y z t a)
:precision binary64
(if (<= t -2.15e+158)
(+ x (/ -1.0 (/ (/ t y) (- a z))))
(if (<= t 4.7e+101)
(+ (+ x y) (/ (* y (- z t)) (- t a)))
(+ (- x (* a (/ y t))) (* y (/ z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.15e+158) {
tmp = x + (-1.0 / ((t / y) / (a - z)));
} else if (t <= 4.7e+101) {
tmp = (x + y) + ((y * (z - t)) / (t - a));
} else {
tmp = (x - (a * (y / t))) + (y * (z / 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 (t <= (-2.15d+158)) then
tmp = x + ((-1.0d0) / ((t / y) / (a - z)))
else if (t <= 4.7d+101) then
tmp = (x + y) + ((y * (z - t)) / (t - a))
else
tmp = (x - (a * (y / t))) + (y * (z / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.15e+158) {
tmp = x + (-1.0 / ((t / y) / (a - z)));
} else if (t <= 4.7e+101) {
tmp = (x + y) + ((y * (z - t)) / (t - a));
} else {
tmp = (x - (a * (y / t))) + (y * (z / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.15e+158: tmp = x + (-1.0 / ((t / y) / (a - z))) elif t <= 4.7e+101: tmp = (x + y) + ((y * (z - t)) / (t - a)) else: tmp = (x - (a * (y / t))) + (y * (z / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.15e+158) tmp = Float64(x + Float64(-1.0 / Float64(Float64(t / y) / Float64(a - z)))); elseif (t <= 4.7e+101) tmp = Float64(Float64(x + y) + Float64(Float64(y * Float64(z - t)) / Float64(t - a))); else tmp = Float64(Float64(x - Float64(a * Float64(y / t))) + Float64(y * Float64(z / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.15e+158) tmp = x + (-1.0 / ((t / y) / (a - z))); elseif (t <= 4.7e+101) tmp = (x + y) + ((y * (z - t)) / (t - a)); else tmp = (x - (a * (y / t))) + (y * (z / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.15e+158], N[(x + N[(-1.0 / N[(N[(t / y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.7e+101], N[(N[(x + y), $MachinePrecision] + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.15 \cdot 10^{+158}:\\
\;\;\;\;x + \frac{-1}{\frac{\frac{t}{y}}{a - z}}\\
\mathbf{elif}\;t \leq 4.7 \cdot 10^{+101}:\\
\;\;\;\;\left(x + y\right) + \frac{y \cdot \left(z - t\right)}{t - a}\\
\mathbf{else}:\\
\;\;\;\;\left(x - a \cdot \frac{y}{t}\right) + y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if t < -2.15e158Initial program 63.5%
Taylor expanded in t around -inf 86.5%
mul-1-neg86.5%
unsub-neg86.5%
*-commutative86.5%
Simplified86.5%
clear-num86.4%
inv-pow86.4%
distribute-lft-out--86.4%
Applied egg-rr86.4%
unpow-186.4%
associate-/r*95.7%
Simplified95.7%
if -2.15e158 < t < 4.69999999999999971e101Initial program 93.9%
if 4.69999999999999971e101 < t Initial program 43.6%
Taylor expanded in t around inf 68.0%
sub-neg68.0%
mul-1-neg68.0%
unsub-neg68.0%
associate-/l*81.1%
mul-1-neg81.1%
remove-double-neg81.1%
associate-/l*97.9%
Simplified97.9%
Final simplification94.8%
(FPCore (x y z t a)
:precision binary64
(if (<= a -3.2e-59)
(- (+ x y) (* y (/ z a)))
(if (<= a 1.8e-40)
(+ x (/ -1.0 (/ (/ t y) (- a z))))
(- (+ x y) (/ y (/ a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.2e-59) {
tmp = (x + y) - (y * (z / a));
} else if (a <= 1.8e-40) {
tmp = x + (-1.0 / ((t / y) / (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 <= (-3.2d-59)) then
tmp = (x + y) - (y * (z / a))
else if (a <= 1.8d-40) then
tmp = x + ((-1.0d0) / ((t / y) / (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 <= -3.2e-59) {
tmp = (x + y) - (y * (z / a));
} else if (a <= 1.8e-40) {
tmp = x + (-1.0 / ((t / y) / (a - z)));
} else {
tmp = (x + y) - (y / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.2e-59: tmp = (x + y) - (y * (z / a)) elif a <= 1.8e-40: tmp = x + (-1.0 / ((t / y) / (a - z))) else: tmp = (x + y) - (y / (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.2e-59) tmp = Float64(Float64(x + y) - Float64(y * Float64(z / a))); elseif (a <= 1.8e-40) tmp = Float64(x + Float64(-1.0 / Float64(Float64(t / y) / 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 <= -3.2e-59) tmp = (x + y) - (y * (z / a)); elseif (a <= 1.8e-40) tmp = x + (-1.0 / ((t / y) / (a - z))); else tmp = (x + y) - (y / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.2e-59], N[(N[(x + y), $MachinePrecision] - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.8e-40], N[(x + N[(-1.0 / N[(N[(t / y), $MachinePrecision] / 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 -3.2 \cdot 10^{-59}:\\
\;\;\;\;\left(x + y\right) - y \cdot \frac{z}{a}\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-40}:\\
\;\;\;\;x + \frac{-1}{\frac{\frac{t}{y}}{a - z}}\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) - \frac{y}{\frac{a}{z}}\\
\end{array}
\end{array}
if a < -3.1999999999999999e-59Initial program 84.4%
Taylor expanded in t around 0 84.1%
associate-/l*88.2%
Simplified88.2%
if -3.1999999999999999e-59 < a < 1.8e-40Initial program 78.4%
Taylor expanded in t around -inf 86.6%
mul-1-neg86.6%
unsub-neg86.6%
*-commutative86.6%
Simplified86.6%
clear-num86.5%
inv-pow86.5%
distribute-lft-out--86.5%
Applied egg-rr86.5%
unpow-186.5%
associate-/r*91.7%
Simplified91.7%
if 1.8e-40 < a Initial program 86.7%
Taylor expanded in t around 0 87.9%
associate-/l*90.1%
Simplified90.1%
clear-num90.2%
un-div-inv90.2%
Applied egg-rr90.2%
Final simplification90.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.85e-59) (not (<= a 5.7e-38))) (- (+ 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 <= -3.85e-59) || !(a <= 5.7e-38)) {
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 <= (-3.85d-59)) .or. (.not. (a <= 5.7d-38))) 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 <= -3.85e-59) || !(a <= 5.7e-38)) {
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 <= -3.85e-59) or not (a <= 5.7e-38): 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 <= -3.85e-59) || !(a <= 5.7e-38)) 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 <= -3.85e-59) || ~((a <= 5.7e-38))) 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, -3.85e-59], N[Not[LessEqual[a, 5.7e-38]], $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 -3.85 \cdot 10^{-59} \lor \neg \left(a \leq 5.7 \cdot 10^{-38}\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 < -3.85e-59 or 5.69999999999999994e-38 < a Initial program 85.6%
Taylor expanded in t around 0 86.1%
associate-/l*89.3%
Simplified89.3%
if -3.85e-59 < a < 5.69999999999999994e-38Initial program 78.4%
Taylor expanded in t around -inf 86.6%
mul-1-neg86.6%
unsub-neg86.6%
*-commutative86.6%
Simplified86.6%
Taylor expanded in y around 0 86.6%
Final simplification88.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.5e-60) (not (<= a 4.6e+60))) (+ x y) (+ x (/ (* y (- z a)) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.5e-60) || !(a <= 4.6e+60)) {
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 <= (-3.5d-60)) .or. (.not. (a <= 4.6d+60))) 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 <= -3.5e-60) || !(a <= 4.6e+60)) {
tmp = x + y;
} else {
tmp = x + ((y * (z - a)) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -3.5e-60) or not (a <= 4.6e+60): tmp = x + y else: tmp = x + ((y * (z - a)) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -3.5e-60) || !(a <= 4.6e+60)) 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 <= -3.5e-60) || ~((a <= 4.6e+60))) 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, -3.5e-60], N[Not[LessEqual[a, 4.6e+60]], $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 -3.5 \cdot 10^{-60} \lor \neg \left(a \leq 4.6 \cdot 10^{+60}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z - a\right)}{t}\\
\end{array}
\end{array}
if a < -3.49999999999999976e-60 or 4.60000000000000034e60 < a Initial program 85.7%
sub-neg85.7%
+-commutative85.7%
distribute-frac-neg85.7%
distribute-rgt-neg-out85.7%
associate-/l*92.2%
fma-define92.4%
distribute-frac-neg92.4%
distribute-neg-frac292.4%
sub-neg92.4%
distribute-neg-in92.4%
remove-double-neg92.4%
+-commutative92.4%
sub-neg92.4%
Simplified92.4%
Taylor expanded in a around inf 76.6%
+-commutative76.6%
Simplified76.6%
if -3.49999999999999976e-60 < a < 4.60000000000000034e60Initial program 79.4%
Taylor expanded in t around -inf 83.4%
mul-1-neg83.4%
unsub-neg83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in y around 0 83.4%
Final simplification80.0%
(FPCore (x y z t a) :precision binary64 (if (<= a -3.3e-60) (- (+ x y) (* y (/ z a))) (if (<= a 1.5e-41) (+ x (/ (* y (- z a)) t)) (- (+ x y) (/ y (/ a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.3e-60) {
tmp = (x + y) - (y * (z / a));
} else if (a <= 1.5e-41) {
tmp = x + ((y * (z - a)) / t);
} 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 <= (-3.3d-60)) then
tmp = (x + y) - (y * (z / a))
else if (a <= 1.5d-41) then
tmp = x + ((y * (z - a)) / t)
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 <= -3.3e-60) {
tmp = (x + y) - (y * (z / a));
} else if (a <= 1.5e-41) {
tmp = x + ((y * (z - a)) / t);
} else {
tmp = (x + y) - (y / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.3e-60: tmp = (x + y) - (y * (z / a)) elif a <= 1.5e-41: tmp = x + ((y * (z - a)) / t) else: tmp = (x + y) - (y / (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.3e-60) tmp = Float64(Float64(x + y) - Float64(y * Float64(z / a))); elseif (a <= 1.5e-41) tmp = Float64(x + Float64(Float64(y * Float64(z - a)) / t)); 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 <= -3.3e-60) tmp = (x + y) - (y * (z / a)); elseif (a <= 1.5e-41) tmp = x + ((y * (z - a)) / t); else tmp = (x + y) - (y / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.3e-60], N[(N[(x + y), $MachinePrecision] - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.5e-41], N[(x + N[(N[(y * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $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 -3.3 \cdot 10^{-60}:\\
\;\;\;\;\left(x + y\right) - y \cdot \frac{z}{a}\\
\mathbf{elif}\;a \leq 1.5 \cdot 10^{-41}:\\
\;\;\;\;x + \frac{y \cdot \left(z - a\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) - \frac{y}{\frac{a}{z}}\\
\end{array}
\end{array}
if a < -3.2999999999999998e-60Initial program 84.4%
Taylor expanded in t around 0 84.1%
associate-/l*88.2%
Simplified88.2%
if -3.2999999999999998e-60 < a < 1.49999999999999994e-41Initial program 78.4%
Taylor expanded in t around -inf 86.6%
mul-1-neg86.6%
unsub-neg86.6%
*-commutative86.6%
Simplified86.6%
Taylor expanded in y around 0 86.6%
if 1.49999999999999994e-41 < a Initial program 86.7%
Taylor expanded in t around 0 87.9%
associate-/l*90.1%
Simplified90.1%
clear-num90.2%
un-div-inv90.2%
Applied egg-rr90.2%
Final simplification88.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1e-58) (not (<= a 4.7e+60))) (+ x y) (+ x (/ (* y z) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1e-58) || !(a <= 4.7e+60)) {
tmp = x + y;
} else {
tmp = x + ((y * z) / 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 <= (-1d-58)) .or. (.not. (a <= 4.7d+60))) then
tmp = x + y
else
tmp = x + ((y * z) / 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 <= -1e-58) || !(a <= 4.7e+60)) {
tmp = x + y;
} else {
tmp = x + ((y * z) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1e-58) or not (a <= 4.7e+60): tmp = x + y else: tmp = x + ((y * z) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1e-58) || !(a <= 4.7e+60)) tmp = Float64(x + y); else tmp = Float64(x + Float64(Float64(y * z) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1e-58) || ~((a <= 4.7e+60))) tmp = x + y; else tmp = x + ((y * z) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1e-58], N[Not[LessEqual[a, 4.7e+60]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1 \cdot 10^{-58} \lor \neg \left(a \leq 4.7 \cdot 10^{+60}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\end{array}
\end{array}
if a < -1e-58 or 4.6999999999999998e60 < a Initial program 85.7%
sub-neg85.7%
+-commutative85.7%
distribute-frac-neg85.7%
distribute-rgt-neg-out85.7%
associate-/l*92.2%
fma-define92.4%
distribute-frac-neg92.4%
distribute-neg-frac292.4%
sub-neg92.4%
distribute-neg-in92.4%
remove-double-neg92.4%
+-commutative92.4%
sub-neg92.4%
Simplified92.4%
Taylor expanded in a around inf 76.6%
+-commutative76.6%
Simplified76.6%
if -1e-58 < a < 4.6999999999999998e60Initial program 79.4%
Taylor expanded in t around -inf 83.4%
mul-1-neg83.4%
unsub-neg83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in a around 0 82.0%
Final simplification79.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -7e+134) (not (<= z 3.9e+107))) (* z (/ y (- t a))) (+ x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -7e+134) || !(z <= 3.9e+107)) {
tmp = z * (y / (t - a));
} 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 <= (-7d+134)) .or. (.not. (z <= 3.9d+107))) then
tmp = z * (y / (t - a))
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 <= -7e+134) || !(z <= 3.9e+107)) {
tmp = z * (y / (t - a));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -7e+134) or not (z <= 3.9e+107): tmp = z * (y / (t - a)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -7e+134) || !(z <= 3.9e+107)) tmp = Float64(z * Float64(y / Float64(t - a))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -7e+134) || ~((z <= 3.9e+107))) tmp = z * (y / (t - a)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -7e+134], N[Not[LessEqual[z, 3.9e+107]], $MachinePrecision]], N[(z * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+134} \lor \neg \left(z \leq 3.9 \cdot 10^{+107}\right):\\
\;\;\;\;z \cdot \frac{y}{t - a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -7.00000000000000006e134 or 3.8999999999999998e107 < z Initial program 77.1%
sub-neg77.1%
+-commutative77.1%
distribute-frac-neg77.1%
distribute-rgt-neg-out77.1%
associate-/l*86.4%
fma-define86.4%
distribute-frac-neg86.4%
distribute-neg-frac286.4%
sub-neg86.4%
distribute-neg-in86.4%
remove-double-neg86.4%
+-commutative86.4%
sub-neg86.4%
Simplified86.4%
Taylor expanded in z around inf 51.9%
*-commutative51.9%
*-lft-identity51.9%
times-frac67.4%
/-rgt-identity67.4%
Simplified67.4%
if -7.00000000000000006e134 < z < 3.8999999999999998e107Initial program 85.1%
sub-neg85.1%
+-commutative85.1%
distribute-frac-neg85.1%
distribute-rgt-neg-out85.1%
associate-/l*87.0%
fma-define87.3%
distribute-frac-neg87.3%
distribute-neg-frac287.3%
sub-neg87.3%
distribute-neg-in87.3%
remove-double-neg87.3%
+-commutative87.3%
sub-neg87.3%
Simplified87.3%
Taylor expanded in a around inf 77.4%
+-commutative77.4%
Simplified77.4%
Final simplification74.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.05e+135) (not (<= z 2.55e+107))) (* y (/ z (- t a))) (+ x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.05e+135) || !(z <= 2.55e+107)) {
tmp = y * (z / (t - a));
} 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 <= (-1.05d+135)) .or. (.not. (z <= 2.55d+107))) then
tmp = y * (z / (t - a))
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 <= -1.05e+135) || !(z <= 2.55e+107)) {
tmp = y * (z / (t - a));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.05e+135) or not (z <= 2.55e+107): tmp = y * (z / (t - a)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.05e+135) || !(z <= 2.55e+107)) tmp = Float64(y * Float64(z / Float64(t - a))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.05e+135) || ~((z <= 2.55e+107))) tmp = y * (z / (t - a)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.05e+135], N[Not[LessEqual[z, 2.55e+107]], $MachinePrecision]], N[(y * N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.05 \cdot 10^{+135} \lor \neg \left(z \leq 2.55 \cdot 10^{+107}\right):\\
\;\;\;\;y \cdot \frac{z}{t - a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -1.05000000000000005e135 or 2.5500000000000001e107 < z Initial program 77.1%
sub-neg77.1%
+-commutative77.1%
distribute-frac-neg77.1%
distribute-rgt-neg-out77.1%
associate-/l*86.4%
fma-define86.4%
distribute-frac-neg86.4%
distribute-neg-frac286.4%
sub-neg86.4%
distribute-neg-in86.4%
remove-double-neg86.4%
+-commutative86.4%
sub-neg86.4%
Simplified86.4%
Taylor expanded in z around inf 51.9%
associate-/l*66.3%
Simplified66.3%
if -1.05000000000000005e135 < z < 2.5500000000000001e107Initial program 85.1%
sub-neg85.1%
+-commutative85.1%
distribute-frac-neg85.1%
distribute-rgt-neg-out85.1%
associate-/l*87.0%
fma-define87.3%
distribute-frac-neg87.3%
distribute-neg-frac287.3%
sub-neg87.3%
distribute-neg-in87.3%
remove-double-neg87.3%
+-commutative87.3%
sub-neg87.3%
Simplified87.3%
Taylor expanded in a around inf 77.4%
+-commutative77.4%
Simplified77.4%
Final simplification74.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -6e-61) (not (<= a 1.2e-52))) (+ x y) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -6e-61) || !(a <= 1.2e-52)) {
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 <= (-6d-61)) .or. (.not. (a <= 1.2d-52))) 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 <= -6e-61) || !(a <= 1.2e-52)) {
tmp = x + y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -6e-61) or not (a <= 1.2e-52): tmp = x + y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -6e-61) || !(a <= 1.2e-52)) 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 <= -6e-61) || ~((a <= 1.2e-52))) tmp = x + y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -6e-61], N[Not[LessEqual[a, 1.2e-52]], $MachinePrecision]], N[(x + y), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6 \cdot 10^{-61} \lor \neg \left(a \leq 1.2 \cdot 10^{-52}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -6.00000000000000024e-61 or 1.2000000000000001e-52 < a Initial program 85.3%
sub-neg85.3%
+-commutative85.3%
distribute-frac-neg85.3%
distribute-rgt-neg-out85.3%
associate-/l*91.3%
fma-define91.5%
distribute-frac-neg91.5%
distribute-neg-frac291.5%
sub-neg91.5%
distribute-neg-in91.5%
remove-double-neg91.5%
+-commutative91.5%
sub-neg91.5%
Simplified91.5%
Taylor expanded in a around inf 74.2%
+-commutative74.2%
Simplified74.2%
if -6.00000000000000024e-61 < a < 1.2000000000000001e-52Initial program 78.7%
sub-neg78.7%
+-commutative78.7%
distribute-frac-neg78.7%
distribute-rgt-neg-out78.7%
associate-/l*80.4%
fma-define80.5%
distribute-frac-neg80.5%
distribute-neg-frac280.5%
sub-neg80.5%
distribute-neg-in80.5%
remove-double-neg80.5%
+-commutative80.5%
sub-neg80.5%
Simplified80.5%
Taylor expanded in t around inf 58.9%
distribute-rgt1-in58.9%
metadata-eval58.9%
mul0-lft58.9%
Simplified58.9%
Taylor expanded in x around 0 58.9%
Final simplification67.9%
(FPCore (x y z t a) :precision binary64 (if (<= y 2.95e+165) x y))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= 2.95e+165) {
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 <= 2.95d+165) 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 <= 2.95e+165) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= 2.95e+165: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= 2.95e+165) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= 2.95e+165) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, 2.95e+165], x, y]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.95 \cdot 10^{+165}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if y < 2.94999999999999998e165Initial program 84.1%
sub-neg84.1%
+-commutative84.1%
distribute-frac-neg84.1%
distribute-rgt-neg-out84.1%
associate-/l*88.5%
fma-define88.7%
distribute-frac-neg88.7%
distribute-neg-frac288.7%
sub-neg88.7%
distribute-neg-in88.7%
remove-double-neg88.7%
+-commutative88.7%
sub-neg88.7%
Simplified88.7%
Taylor expanded in t around inf 59.7%
distribute-rgt1-in59.7%
metadata-eval59.7%
mul0-lft59.7%
Simplified59.7%
Taylor expanded in x around 0 59.7%
if 2.94999999999999998e165 < y Initial program 70.8%
sub-neg70.8%
+-commutative70.8%
distribute-frac-neg70.8%
distribute-rgt-neg-out70.8%
associate-/l*73.9%
fma-define74.4%
distribute-frac-neg74.4%
distribute-neg-frac274.4%
sub-neg74.4%
distribute-neg-in74.4%
remove-double-neg74.4%
+-commutative74.4%
sub-neg74.4%
Simplified74.4%
Taylor expanded in a around inf 35.1%
+-commutative35.1%
Simplified35.1%
Taylor expanded in y around inf 31.9%
(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 82.6%
sub-neg82.6%
+-commutative82.6%
distribute-frac-neg82.6%
distribute-rgt-neg-out82.6%
associate-/l*86.8%
fma-define87.0%
distribute-frac-neg87.0%
distribute-neg-frac287.0%
sub-neg87.0%
distribute-neg-in87.0%
remove-double-neg87.0%
+-commutative87.0%
sub-neg87.0%
Simplified87.0%
Taylor expanded in t around inf 53.8%
distribute-rgt1-in53.8%
metadata-eval53.8%
mul0-lft53.8%
Simplified53.8%
Taylor expanded in x around 0 53.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 2024177
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
:precision binary64
:alt
(! :herbie-platform default (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) -13664970889390727/100000000000000000000000) (- (+ y x) (* (* (- z t) (/ 1 (- a t))) y)) (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) 14754293444577233/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ (- (* y (- a z)) (* x t)) (- a t)) (- (+ y x) (* (* (- z t) (/ 1 (- a t))) y)))))
(- (+ x y) (/ (* (- z t) y) (- a t))))