
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- a t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (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) / (a - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - t)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (a - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (a - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{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) (- a t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (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) / (a - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - t)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (a - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (a - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{a - t}
\end{array}
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- a t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (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) / (a - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - t)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (a - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (a - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{a - t}
\end{array}
Initial program 99.2%
Final simplification99.2%
(FPCore (x y z t a)
:precision binary64
(if (or (<= t -2e+74)
(and (not (<= t -11500.0)) (or (<= t -9.5e-65) (not (<= t 7.2e-18)))))
(+ x (/ y (/ t (- t z))))
(+ x (* y (/ (- z t) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2e+74) || (!(t <= -11500.0) && ((t <= -9.5e-65) || !(t <= 7.2e-18)))) {
tmp = x + (y / (t / (t - z)));
} else {
tmp = x + (y * ((z - t) / 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 ((t <= (-2d+74)) .or. (.not. (t <= (-11500.0d0))) .and. (t <= (-9.5d-65)) .or. (.not. (t <= 7.2d-18))) then
tmp = x + (y / (t / (t - z)))
else
tmp = x + (y * ((z - t) / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2e+74) || (!(t <= -11500.0) && ((t <= -9.5e-65) || !(t <= 7.2e-18)))) {
tmp = x + (y / (t / (t - z)));
} else {
tmp = x + (y * ((z - t) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -2e+74) or (not (t <= -11500.0) and ((t <= -9.5e-65) or not (t <= 7.2e-18))): tmp = x + (y / (t / (t - z))) else: tmp = x + (y * ((z - t) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -2e+74) || (!(t <= -11500.0) && ((t <= -9.5e-65) || !(t <= 7.2e-18)))) tmp = Float64(x + Float64(y / Float64(t / Float64(t - z)))); else tmp = Float64(x + Float64(y * Float64(Float64(z - t) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -2e+74) || (~((t <= -11500.0)) && ((t <= -9.5e-65) || ~((t <= 7.2e-18))))) tmp = x + (y / (t / (t - z))); else tmp = x + (y * ((z - t) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2e+74], And[N[Not[LessEqual[t, -11500.0]], $MachinePrecision], Or[LessEqual[t, -9.5e-65], N[Not[LessEqual[t, 7.2e-18]], $MachinePrecision]]]], N[(x + N[(y / N[(t / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2 \cdot 10^{+74} \lor \neg \left(t \leq -11500\right) \land \left(t \leq -9.5 \cdot 10^{-65} \lor \neg \left(t \leq 7.2 \cdot 10^{-18}\right)\right):\\
\;\;\;\;x + \frac{y}{\frac{t}{t - z}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z - t}{a}\\
\end{array}
\end{array}
if t < -1.9999999999999999e74 or -11500 < t < -9.5000000000000004e-65 or 7.20000000000000021e-18 < t Initial program 99.9%
+-commutative99.9%
*-commutative99.9%
associate-*l/70.8%
sub-neg70.8%
+-commutative70.8%
neg-sub070.8%
associate-+l-70.8%
sub0-neg70.8%
neg-mul-170.8%
times-frac97.1%
fma-def97.1%
sub-neg97.1%
+-commutative97.1%
neg-sub097.1%
associate-+l-97.1%
sub0-neg97.1%
neg-mul-197.1%
*-commutative97.1%
associate-/l*97.1%
metadata-eval97.1%
/-rgt-identity97.1%
Simplified97.1%
Taylor expanded in a around 0 67.7%
+-commutative67.7%
associate-/l*90.4%
Simplified90.4%
if -1.9999999999999999e74 < t < -11500 or -9.5000000000000004e-65 < t < 7.20000000000000021e-18Initial program 98.5%
Taylor expanded in a around inf 87.3%
Final simplification88.8%
(FPCore (x y z t a)
:precision binary64
(if (<= t -3.2e+96)
(+ x y)
(if (<= t 2.7e-14)
(+ x (* y (/ z a)))
(if (<= t 6.5e+125)
(- x (* z (/ y t)))
(if (<= t 4.1e+154) (* (- t z) (/ y (- t a))) (+ x y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.2e+96) {
tmp = x + y;
} else if (t <= 2.7e-14) {
tmp = x + (y * (z / a));
} else if (t <= 6.5e+125) {
tmp = x - (z * (y / t));
} else if (t <= 4.1e+154) {
tmp = (t - 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 (t <= (-3.2d+96)) then
tmp = x + y
else if (t <= 2.7d-14) then
tmp = x + (y * (z / a))
else if (t <= 6.5d+125) then
tmp = x - (z * (y / t))
else if (t <= 4.1d+154) then
tmp = (t - 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 (t <= -3.2e+96) {
tmp = x + y;
} else if (t <= 2.7e-14) {
tmp = x + (y * (z / a));
} else if (t <= 6.5e+125) {
tmp = x - (z * (y / t));
} else if (t <= 4.1e+154) {
tmp = (t - z) * (y / (t - a));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.2e+96: tmp = x + y elif t <= 2.7e-14: tmp = x + (y * (z / a)) elif t <= 6.5e+125: tmp = x - (z * (y / t)) elif t <= 4.1e+154: tmp = (t - z) * (y / (t - a)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.2e+96) tmp = Float64(x + y); elseif (t <= 2.7e-14) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (t <= 6.5e+125) tmp = Float64(x - Float64(z * Float64(y / t))); elseif (t <= 4.1e+154) tmp = Float64(Float64(t - 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 (t <= -3.2e+96) tmp = x + y; elseif (t <= 2.7e-14) tmp = x + (y * (z / a)); elseif (t <= 6.5e+125) tmp = x - (z * (y / t)); elseif (t <= 4.1e+154) tmp = (t - z) * (y / (t - a)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.2e+96], N[(x + y), $MachinePrecision], If[LessEqual[t, 2.7e-14], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e+125], N[(x - N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.1e+154], N[(N[(t - z), $MachinePrecision] * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{+96}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-14}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{+125}:\\
\;\;\;\;x - z \cdot \frac{y}{t}\\
\mathbf{elif}\;t \leq 4.1 \cdot 10^{+154}:\\
\;\;\;\;\left(t - z\right) \cdot \frac{y}{t - a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -3.20000000000000006e96 or 4.1e154 < t Initial program 99.9%
Taylor expanded in t around inf 82.7%
if -3.20000000000000006e96 < t < 2.6999999999999999e-14Initial program 98.6%
Taylor expanded in t around 0 79.7%
if 2.6999999999999999e-14 < t < 6.4999999999999999e125Initial program 99.9%
+-commutative99.9%
fma-def99.9%
Simplified99.9%
Taylor expanded in z around inf 92.5%
Taylor expanded in a around 0 88.8%
+-commutative88.8%
mul-1-neg88.8%
unsub-neg88.8%
associate-/l*88.8%
associate-/r/88.8%
Simplified88.8%
if 6.4999999999999999e125 < t < 4.1e154Initial program 100.0%
+-commutative100.0%
*-commutative100.0%
associate-*l/73.1%
sub-neg73.1%
+-commutative73.1%
neg-sub073.1%
associate-+l-73.1%
sub0-neg73.1%
neg-mul-173.1%
times-frac99.8%
fma-def99.8%
sub-neg99.8%
+-commutative99.8%
neg-sub099.8%
associate-+l-99.8%
sub0-neg99.8%
neg-mul-199.8%
*-commutative99.8%
associate-/l*99.8%
metadata-eval99.8%
/-rgt-identity99.8%
Simplified99.8%
Taylor expanded in y around -inf 71.0%
*-commutative71.0%
associate-*r/97.8%
Simplified97.8%
Final simplification82.1%
(FPCore (x y z t a)
:precision binary64
(if (<= t -3.6e+99)
(+ x y)
(if (<= t 1.1e-14)
(+ x (* y (/ (- z t) a)))
(if (<= t 1.7e+126)
(- x (* z (/ y t)))
(if (<= t 2.1e+154) (* (- t z) (/ y (- t a))) (+ x y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.6e+99) {
tmp = x + y;
} else if (t <= 1.1e-14) {
tmp = x + (y * ((z - t) / a));
} else if (t <= 1.7e+126) {
tmp = x - (z * (y / t));
} else if (t <= 2.1e+154) {
tmp = (t - 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 (t <= (-3.6d+99)) then
tmp = x + y
else if (t <= 1.1d-14) then
tmp = x + (y * ((z - t) / a))
else if (t <= 1.7d+126) then
tmp = x - (z * (y / t))
else if (t <= 2.1d+154) then
tmp = (t - 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 (t <= -3.6e+99) {
tmp = x + y;
} else if (t <= 1.1e-14) {
tmp = x + (y * ((z - t) / a));
} else if (t <= 1.7e+126) {
tmp = x - (z * (y / t));
} else if (t <= 2.1e+154) {
tmp = (t - z) * (y / (t - a));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.6e+99: tmp = x + y elif t <= 1.1e-14: tmp = x + (y * ((z - t) / a)) elif t <= 1.7e+126: tmp = x - (z * (y / t)) elif t <= 2.1e+154: tmp = (t - z) * (y / (t - a)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.6e+99) tmp = Float64(x + y); elseif (t <= 1.1e-14) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / a))); elseif (t <= 1.7e+126) tmp = Float64(x - Float64(z * Float64(y / t))); elseif (t <= 2.1e+154) tmp = Float64(Float64(t - 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 (t <= -3.6e+99) tmp = x + y; elseif (t <= 1.1e-14) tmp = x + (y * ((z - t) / a)); elseif (t <= 1.7e+126) tmp = x - (z * (y / t)); elseif (t <= 2.1e+154) tmp = (t - z) * (y / (t - a)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.6e+99], N[(x + y), $MachinePrecision], If[LessEqual[t, 1.1e-14], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e+126], N[(x - N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.1e+154], N[(N[(t - z), $MachinePrecision] * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.6 \cdot 10^{+99}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{-14}:\\
\;\;\;\;x + y \cdot \frac{z - t}{a}\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{+126}:\\
\;\;\;\;x - z \cdot \frac{y}{t}\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{+154}:\\
\;\;\;\;\left(t - z\right) \cdot \frac{y}{t - a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -3.6000000000000002e99 or 2.09999999999999994e154 < t Initial program 99.9%
Taylor expanded in t around inf 82.7%
if -3.6000000000000002e99 < t < 1.1e-14Initial program 98.6%
Taylor expanded in a around inf 83.3%
if 1.1e-14 < t < 1.69999999999999995e126Initial program 99.9%
+-commutative99.9%
fma-def99.9%
Simplified99.9%
Taylor expanded in z around inf 92.5%
Taylor expanded in a around 0 88.8%
+-commutative88.8%
mul-1-neg88.8%
unsub-neg88.8%
associate-/l*88.8%
associate-/r/88.8%
Simplified88.8%
if 1.69999999999999995e126 < t < 2.09999999999999994e154Initial program 100.0%
+-commutative100.0%
*-commutative100.0%
associate-*l/73.1%
sub-neg73.1%
+-commutative73.1%
neg-sub073.1%
associate-+l-73.1%
sub0-neg73.1%
neg-mul-173.1%
times-frac99.8%
fma-def99.8%
sub-neg99.8%
+-commutative99.8%
neg-sub099.8%
associate-+l-99.8%
sub0-neg99.8%
neg-mul-199.8%
*-commutative99.8%
associate-/l*99.8%
metadata-eval99.8%
/-rgt-identity99.8%
Simplified99.8%
Taylor expanded in y around -inf 71.0%
*-commutative71.0%
associate-*r/97.8%
Simplified97.8%
Final simplification84.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ z (- a t)))))
(if (<= z -2e+250)
t_1
(if (<= z 2.1e-288)
(+ x y)
(if (<= z 4.8e-128) x (if (<= z 1.7e+215) (+ x y) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (z / (a - t));
double tmp;
if (z <= -2e+250) {
tmp = t_1;
} else if (z <= 2.1e-288) {
tmp = x + y;
} else if (z <= 4.8e-128) {
tmp = x;
} else if (z <= 1.7e+215) {
tmp = x + y;
} 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) :: tmp
t_1 = y * (z / (a - t))
if (z <= (-2d+250)) then
tmp = t_1
else if (z <= 2.1d-288) then
tmp = x + y
else if (z <= 4.8d-128) then
tmp = x
else if (z <= 1.7d+215) then
tmp = x + y
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 * (z / (a - t));
double tmp;
if (z <= -2e+250) {
tmp = t_1;
} else if (z <= 2.1e-288) {
tmp = x + y;
} else if (z <= 4.8e-128) {
tmp = x;
} else if (z <= 1.7e+215) {
tmp = x + y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (z / (a - t)) tmp = 0 if z <= -2e+250: tmp = t_1 elif z <= 2.1e-288: tmp = x + y elif z <= 4.8e-128: tmp = x elif z <= 1.7e+215: tmp = x + y else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(z / Float64(a - t))) tmp = 0.0 if (z <= -2e+250) tmp = t_1; elseif (z <= 2.1e-288) tmp = Float64(x + y); elseif (z <= 4.8e-128) tmp = x; elseif (z <= 1.7e+215) tmp = Float64(x + y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (z / (a - t)); tmp = 0.0; if (z <= -2e+250) tmp = t_1; elseif (z <= 2.1e-288) tmp = x + y; elseif (z <= 4.8e-128) tmp = x; elseif (z <= 1.7e+215) tmp = x + y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2e+250], t$95$1, If[LessEqual[z, 2.1e-288], N[(x + y), $MachinePrecision], If[LessEqual[z, 4.8e-128], x, If[LessEqual[z, 1.7e+215], N[(x + y), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z}{a - t}\\
\mathbf{if}\;z \leq -2 \cdot 10^{+250}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-288}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-128}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+215}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -1.9999999999999998e250 or 1.70000000000000009e215 < z Initial program 97.7%
+-commutative97.7%
fma-def97.7%
Simplified97.7%
Taylor expanded in z around inf 95.3%
Taylor expanded in y around inf 54.5%
associate-*r/73.9%
Simplified73.9%
if -1.9999999999999998e250 < z < 2.09999999999999996e-288 or 4.7999999999999996e-128 < z < 1.70000000000000009e215Initial program 99.4%
Taylor expanded in t around inf 69.2%
if 2.09999999999999996e-288 < z < 4.7999999999999996e-128Initial program 99.9%
Taylor expanded in x around inf 75.5%
Final simplification70.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -2.4e+106) (not (<= t 7.2e-14))) (+ x (/ y (/ t (- t z)))) (+ x (/ y (/ (- a t) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.4e+106) || !(t <= 7.2e-14)) {
tmp = x + (y / (t / (t - z)));
} else {
tmp = x + (y / ((a - 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 ((t <= (-2.4d+106)) .or. (.not. (t <= 7.2d-14))) then
tmp = x + (y / (t / (t - z)))
else
tmp = x + (y / ((a - 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 ((t <= -2.4e+106) || !(t <= 7.2e-14)) {
tmp = x + (y / (t / (t - z)));
} else {
tmp = x + (y / ((a - t) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -2.4e+106) or not (t <= 7.2e-14): tmp = x + (y / (t / (t - z))) else: tmp = x + (y / ((a - t) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -2.4e+106) || !(t <= 7.2e-14)) tmp = Float64(x + Float64(y / Float64(t / Float64(t - z)))); else tmp = Float64(x + Float64(y / Float64(Float64(a - t) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -2.4e+106) || ~((t <= 7.2e-14))) tmp = x + (y / (t / (t - z))); else tmp = x + (y / ((a - t) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2.4e+106], N[Not[LessEqual[t, 7.2e-14]], $MachinePrecision]], N[(x + N[(y / N[(t / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.4 \cdot 10^{+106} \lor \neg \left(t \leq 7.2 \cdot 10^{-14}\right):\\
\;\;\;\;x + \frac{y}{\frac{t}{t - z}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a - t}{z}}\\
\end{array}
\end{array}
if t < -2.4000000000000001e106 or 7.1999999999999996e-14 < t Initial program 99.9%
+-commutative99.9%
*-commutative99.9%
associate-*l/67.8%
sub-neg67.8%
+-commutative67.8%
neg-sub067.8%
associate-+l-67.8%
sub0-neg67.8%
neg-mul-167.8%
times-frac96.7%
fma-def96.7%
sub-neg96.7%
+-commutative96.7%
neg-sub096.7%
associate-+l-96.7%
sub0-neg96.7%
neg-mul-196.7%
*-commutative96.7%
associate-/l*96.7%
metadata-eval96.7%
/-rgt-identity96.7%
Simplified96.7%
Taylor expanded in a around 0 65.1%
+-commutative65.1%
associate-/l*91.5%
Simplified91.5%
if -2.4000000000000001e106 < t < 7.1999999999999996e-14Initial program 98.6%
Taylor expanded in z around inf 87.6%
associate-/l*92.1%
Simplified92.1%
Final simplification91.9%
(FPCore (x y z t a) :precision binary64 (if (<= z 3.5e-286) (+ x y) (if (<= z 3.2e-128) x (if (<= z 2.4e+218) (+ x y) (* y (/ (- z) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= 3.5e-286) {
tmp = x + y;
} else if (z <= 3.2e-128) {
tmp = x;
} else if (z <= 2.4e+218) {
tmp = x + y;
} else {
tmp = 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 (z <= 3.5d-286) then
tmp = x + y
else if (z <= 3.2d-128) then
tmp = x
else if (z <= 2.4d+218) then
tmp = x + y
else
tmp = 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 (z <= 3.5e-286) {
tmp = x + y;
} else if (z <= 3.2e-128) {
tmp = x;
} else if (z <= 2.4e+218) {
tmp = x + y;
} else {
tmp = y * (-z / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= 3.5e-286: tmp = x + y elif z <= 3.2e-128: tmp = x elif z <= 2.4e+218: tmp = x + y else: tmp = y * (-z / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= 3.5e-286) tmp = Float64(x + y); elseif (z <= 3.2e-128) tmp = x; elseif (z <= 2.4e+218) tmp = Float64(x + y); else tmp = Float64(y * Float64(Float64(-z) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= 3.5e-286) tmp = x + y; elseif (z <= 3.2e-128) tmp = x; elseif (z <= 2.4e+218) tmp = x + y; else tmp = y * (-z / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, 3.5e-286], N[(x + y), $MachinePrecision], If[LessEqual[z, 3.2e-128], x, If[LessEqual[z, 2.4e+218], N[(x + y), $MachinePrecision], N[(y * N[((-z) / t), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 3.5 \cdot 10^{-286}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{-128}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+218}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{-z}{t}\\
\end{array}
\end{array}
if z < 3.49999999999999988e-286 or 3.1999999999999998e-128 < z < 2.39999999999999981e218Initial program 99.5%
Taylor expanded in t around inf 66.2%
if 3.49999999999999988e-286 < z < 3.1999999999999998e-128Initial program 99.9%
Taylor expanded in x around inf 75.5%
if 2.39999999999999981e218 < z Initial program 96.4%
+-commutative96.4%
*-commutative96.4%
associate-*l/71.8%
sub-neg71.8%
+-commutative71.8%
neg-sub071.8%
associate-+l-71.8%
sub0-neg71.8%
neg-mul-171.8%
times-frac92.6%
fma-def92.6%
sub-neg92.6%
+-commutative92.6%
neg-sub092.6%
associate-+l-92.6%
sub0-neg92.6%
neg-mul-192.6%
*-commutative92.6%
associate-/l*92.6%
metadata-eval92.6%
/-rgt-identity92.6%
Simplified92.6%
Taylor expanded in a around 0 49.6%
+-commutative49.6%
associate-/l*60.2%
Simplified60.2%
Taylor expanded in y around inf 49.0%
Taylor expanded in z around inf 48.2%
neg-mul-148.2%
distribute-neg-frac48.2%
Simplified48.2%
Final simplification65.5%
(FPCore (x y z t a) :precision binary64 (if (<= z 1.25e-289) (+ x y) (if (<= z 3.6e-128) x (if (<= z 3.1e+218) (+ x y) (/ (- y) (/ t z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= 1.25e-289) {
tmp = x + y;
} else if (z <= 3.6e-128) {
tmp = x;
} else if (z <= 3.1e+218) {
tmp = x + y;
} else {
tmp = -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 (z <= 1.25d-289) then
tmp = x + y
else if (z <= 3.6d-128) then
tmp = x
else if (z <= 3.1d+218) then
tmp = x + y
else
tmp = -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 (z <= 1.25e-289) {
tmp = x + y;
} else if (z <= 3.6e-128) {
tmp = x;
} else if (z <= 3.1e+218) {
tmp = x + y;
} else {
tmp = -y / (t / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= 1.25e-289: tmp = x + y elif z <= 3.6e-128: tmp = x elif z <= 3.1e+218: tmp = x + y else: tmp = -y / (t / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= 1.25e-289) tmp = Float64(x + y); elseif (z <= 3.6e-128) tmp = x; elseif (z <= 3.1e+218) tmp = Float64(x + y); else tmp = Float64(Float64(-y) / Float64(t / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= 1.25e-289) tmp = x + y; elseif (z <= 3.6e-128) tmp = x; elseif (z <= 3.1e+218) tmp = x + y; else tmp = -y / (t / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, 1.25e-289], N[(x + y), $MachinePrecision], If[LessEqual[z, 3.6e-128], x, If[LessEqual[z, 3.1e+218], N[(x + y), $MachinePrecision], N[((-y) / N[(t / z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 1.25 \cdot 10^{-289}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{-128}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{+218}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;\frac{-y}{\frac{t}{z}}\\
\end{array}
\end{array}
if z < 1.25000000000000007e-289 or 3.60000000000000025e-128 < z < 3.1000000000000002e218Initial program 99.5%
Taylor expanded in t around inf 66.2%
if 1.25000000000000007e-289 < z < 3.60000000000000025e-128Initial program 99.9%
Taylor expanded in x around inf 75.5%
if 3.1000000000000002e218 < z Initial program 96.4%
+-commutative96.4%
*-commutative96.4%
associate-*l/71.8%
sub-neg71.8%
+-commutative71.8%
neg-sub071.8%
associate-+l-71.8%
sub0-neg71.8%
neg-mul-171.8%
times-frac92.6%
fma-def92.6%
sub-neg92.6%
+-commutative92.6%
neg-sub092.6%
associate-+l-92.6%
sub0-neg92.6%
neg-mul-192.6%
*-commutative92.6%
associate-/l*92.6%
metadata-eval92.6%
/-rgt-identity92.6%
Simplified92.6%
Taylor expanded in z around inf 53.9%
associate-*r/53.9%
associate-*r*53.9%
neg-mul-153.9%
Simplified53.9%
Taylor expanded in t around inf 42.6%
mul-1-neg42.6%
associate-/l*48.2%
distribute-neg-frac48.2%
Simplified48.2%
Final simplification65.5%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.18e+98) (+ x y) (if (<= t 1.75e-17) (+ x (* y (/ z a))) (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.18e+98) {
tmp = x + y;
} else if (t <= 1.75e-17) {
tmp = x + (y * (z / 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 (t <= (-1.18d+98)) then
tmp = x + y
else if (t <= 1.75d-17) then
tmp = x + (y * (z / 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 (t <= -1.18e+98) {
tmp = x + y;
} else if (t <= 1.75e-17) {
tmp = x + (y * (z / a));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.18e+98: tmp = x + y elif t <= 1.75e-17: tmp = x + (y * (z / a)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.18e+98) tmp = Float64(x + y); elseif (t <= 1.75e-17) tmp = Float64(x + Float64(y * Float64(z / a))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.18e+98) tmp = x + y; elseif (t <= 1.75e-17) tmp = x + (y * (z / a)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.18e+98], N[(x + y), $MachinePrecision], If[LessEqual[t, 1.75e-17], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.18 \cdot 10^{+98}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{-17}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -1.18000000000000002e98 or 1.7500000000000001e-17 < t Initial program 99.9%
Taylor expanded in t around inf 79.1%
if -1.18000000000000002e98 < t < 1.7500000000000001e-17Initial program 98.6%
Taylor expanded in t around 0 79.7%
Final simplification79.5%
(FPCore (x y z t a) :precision binary64 (if (<= t -5.2e+284) x (if (<= t -7e+153) y (if (<= t 4.5e+225) x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -5.2e+284) {
tmp = x;
} else if (t <= -7e+153) {
tmp = y;
} else if (t <= 4.5e+225) {
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 (t <= (-5.2d+284)) then
tmp = x
else if (t <= (-7d+153)) then
tmp = y
else if (t <= 4.5d+225) 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 (t <= -5.2e+284) {
tmp = x;
} else if (t <= -7e+153) {
tmp = y;
} else if (t <= 4.5e+225) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -5.2e+284: tmp = x elif t <= -7e+153: tmp = y elif t <= 4.5e+225: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -5.2e+284) tmp = x; elseif (t <= -7e+153) tmp = y; elseif (t <= 4.5e+225) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -5.2e+284) tmp = x; elseif (t <= -7e+153) tmp = y; elseif (t <= 4.5e+225) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -5.2e+284], x, If[LessEqual[t, -7e+153], y, If[LessEqual[t, 4.5e+225], x, y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.2 \cdot 10^{+284}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq -7 \cdot 10^{+153}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{+225}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -5.1999999999999997e284 or -6.9999999999999998e153 < t < 4.49999999999999976e225Initial program 99.0%
Taylor expanded in x around inf 56.3%
if -5.1999999999999997e284 < t < -6.9999999999999998e153 or 4.49999999999999976e225 < t Initial program 100.0%
+-commutative100.0%
*-commutative100.0%
associate-*l/51.5%
sub-neg51.5%
+-commutative51.5%
neg-sub051.5%
associate-+l-51.5%
sub0-neg51.5%
neg-mul-151.5%
times-frac94.0%
fma-def94.0%
sub-neg94.0%
+-commutative94.0%
neg-sub094.0%
associate-+l-94.0%
sub0-neg94.0%
neg-mul-194.0%
*-commutative94.0%
associate-/l*94.0%
metadata-eval94.0%
/-rgt-identity94.0%
Simplified94.0%
Taylor expanded in a around 0 51.5%
+-commutative51.5%
associate-/l*91.2%
Simplified91.2%
Taylor expanded in y around inf 64.9%
Taylor expanded in z around 0 60.7%
Final simplification57.0%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.1e-73) (+ x y) (if (<= t 1.85e-13) x (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.1e-73) {
tmp = x + y;
} else if (t <= 1.85e-13) {
tmp = x;
} 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 (t <= (-1.1d-73)) then
tmp = x + y
else if (t <= 1.85d-13) then
tmp = x
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 (t <= -1.1e-73) {
tmp = x + y;
} else if (t <= 1.85e-13) {
tmp = x;
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.1e-73: tmp = x + y elif t <= 1.85e-13: tmp = x else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.1e-73) tmp = Float64(x + y); elseif (t <= 1.85e-13) tmp = x; else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.1e-73) tmp = x + y; elseif (t <= 1.85e-13) tmp = x; else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.1e-73], N[(x + y), $MachinePrecision], If[LessEqual[t, 1.85e-13], x, N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.1 \cdot 10^{-73}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{-13}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -1.1e-73 or 1.84999999999999994e-13 < t Initial program 99.9%
Taylor expanded in t around inf 74.7%
if -1.1e-73 < t < 1.84999999999999994e-13Initial program 98.2%
Taylor expanded in x around inf 54.7%
Final simplification66.0%
(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 99.2%
Taylor expanded in x around inf 51.6%
Final simplification51.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (/ (- z t) (- a t))))))
(if (< y -8.508084860551241e-17)
t_1
(if (< y 2.894426862792089e-49)
(+ x (* (* y (- z t)) (/ 1.0 (- a t))))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * ((z - t) / (a - t)));
double tmp;
if (y < -8.508084860551241e-17) {
tmp = t_1;
} else if (y < 2.894426862792089e-49) {
tmp = x + ((y * (z - t)) * (1.0 / (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) :: tmp
t_1 = x + (y * ((z - t) / (a - t)))
if (y < (-8.508084860551241d-17)) then
tmp = t_1
else if (y < 2.894426862792089d-49) then
tmp = x + ((y * (z - t)) * (1.0d0 / (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 = x + (y * ((z - t) / (a - t)));
double tmp;
if (y < -8.508084860551241e-17) {
tmp = t_1;
} else if (y < 2.894426862792089e-49) {
tmp = x + ((y * (z - t)) * (1.0 / (a - t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * ((z - t) / (a - t))) tmp = 0 if y < -8.508084860551241e-17: tmp = t_1 elif y < 2.894426862792089e-49: tmp = x + ((y * (z - t)) * (1.0 / (a - t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))) tmp = 0.0 if (y < -8.508084860551241e-17) tmp = t_1; elseif (y < 2.894426862792089e-49) tmp = Float64(x + Float64(Float64(y * Float64(z - t)) * Float64(1.0 / Float64(a - t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y * ((z - t) / (a - t))); tmp = 0.0; if (y < -8.508084860551241e-17) tmp = t_1; elseif (y < 2.894426862792089e-49) tmp = x + ((y * (z - t)) * (1.0 / (a - t))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[y, -8.508084860551241e-17], t$95$1, If[Less[y, 2.894426862792089e-49], N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;y < -8.508084860551241 \cdot 10^{-17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y < 2.894426862792089 \cdot 10^{-49}:\\
\;\;\;\;x + \left(y \cdot \left(z - t\right)\right) \cdot \frac{1}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2023187
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, B"
:precision binary64
:herbie-target
(if (< y -8.508084860551241e-17) (+ x (* y (/ (- z t) (- a t)))) (if (< y 2.894426862792089e-49) (+ x (* (* y (- z t)) (/ 1.0 (- a t)))) (+ x (* y (/ (- z t) (- a t))))))
(+ x (* y (/ (- z t) (- a t)))))