
(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 13 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 (let* ((t_1 (/ (- z t) (- a t)))) (if (<= t_1 -4e+104) (+ x (/ (* y z) (- a t))) (+ x (* y t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (z - t) / (a - t);
double tmp;
if (t_1 <= -4e+104) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = x + (y * 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 = (z - t) / (a - t)
if (t_1 <= (-4d+104)) then
tmp = x + ((y * z) / (a - t))
else
tmp = x + (y * 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 = (z - t) / (a - t);
double tmp;
if (t_1 <= -4e+104) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = x + (y * t_1);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (z - t) / (a - t) tmp = 0 if t_1 <= -4e+104: tmp = x + ((y * z) / (a - t)) else: tmp = x + (y * t_1) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(z - t) / Float64(a - t)) tmp = 0.0 if (t_1 <= -4e+104) tmp = Float64(x + Float64(Float64(y * z) / Float64(a - t))); else tmp = Float64(x + Float64(y * t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (z - t) / (a - t); tmp = 0.0; if (t_1 <= -4e+104) tmp = x + ((y * z) / (a - t)); else tmp = x + (y * t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -4e+104], N[(x + N[(N[(y * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z - t}{a - t}\\
\mathbf{if}\;t\_1 \leq -4 \cdot 10^{+104}:\\
\;\;\;\;x + \frac{y \cdot z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot t\_1\\
\end{array}
\end{array}
if (/.f64 (-.f64 z t) (-.f64 a t)) < -4e104Initial program 87.2%
Taylor expanded in z around inf 99.9%
if -4e104 < (/.f64 (-.f64 z t) (-.f64 a t)) Initial program 99.0%
Final simplification99.2%
(FPCore (x y z t a)
:precision binary64
(if (<= t -5.5e+137)
(+ x y)
(if (<= t -2.6e+39)
(+ x (* y (/ z (- a t))))
(if (or (<= t -1.9e-22) (not (<= t 5e+92)))
(+ x y)
(+ x (/ (* y z) (- a t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -5.5e+137) {
tmp = x + y;
} else if (t <= -2.6e+39) {
tmp = x + (y * (z / (a - t)));
} else if ((t <= -1.9e-22) || !(t <= 5e+92)) {
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 (t <= (-5.5d+137)) then
tmp = x + y
else if (t <= (-2.6d+39)) then
tmp = x + (y * (z / (a - t)))
else if ((t <= (-1.9d-22)) .or. (.not. (t <= 5d+92))) 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 (t <= -5.5e+137) {
tmp = x + y;
} else if (t <= -2.6e+39) {
tmp = x + (y * (z / (a - t)));
} else if ((t <= -1.9e-22) || !(t <= 5e+92)) {
tmp = x + y;
} else {
tmp = x + ((y * z) / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -5.5e+137: tmp = x + y elif t <= -2.6e+39: tmp = x + (y * (z / (a - t))) elif (t <= -1.9e-22) or not (t <= 5e+92): tmp = x + y else: tmp = x + ((y * z) / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -5.5e+137) tmp = Float64(x + y); elseif (t <= -2.6e+39) tmp = Float64(x + Float64(y * Float64(z / Float64(a - t)))); elseif ((t <= -1.9e-22) || !(t <= 5e+92)) tmp = Float64(x + y); else tmp = Float64(x + Float64(Float64(y * z) / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -5.5e+137) tmp = x + y; elseif (t <= -2.6e+39) tmp = x + (y * (z / (a - t))); elseif ((t <= -1.9e-22) || ~((t <= 5e+92))) tmp = x + y; else tmp = x + ((y * z) / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -5.5e+137], N[(x + y), $MachinePrecision], If[LessEqual[t, -2.6e+39], N[(x + N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -1.9e-22], N[Not[LessEqual[t, 5e+92]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(N[(y * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.5 \cdot 10^{+137}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq -2.6 \cdot 10^{+39}:\\
\;\;\;\;x + y \cdot \frac{z}{a - t}\\
\mathbf{elif}\;t \leq -1.9 \cdot 10^{-22} \lor \neg \left(t \leq 5 \cdot 10^{+92}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot z}{a - t}\\
\end{array}
\end{array}
if t < -5.5000000000000002e137 or -2.6e39 < t < -1.90000000000000012e-22 or 5.00000000000000022e92 < t Initial program 99.9%
Taylor expanded in t around inf 88.2%
+-commutative88.2%
Simplified88.2%
if -5.5000000000000002e137 < t < -2.6e39Initial program 99.9%
Taylor expanded in z around inf 91.0%
associate-/l*94.9%
Simplified94.9%
if -1.90000000000000012e-22 < t < 5.00000000000000022e92Initial program 95.7%
Taylor expanded in z around inf 89.1%
Final simplification89.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* y (+ (/ z t) -1.0)))))
(if (<= t -4.5e+119)
t_1
(if (<= t -6.7e+43)
(+ x (* y (/ z (- a t))))
(if (<= t -1.9e-22)
(- x (* t (/ y (- a t))))
(if (<= t 880.0) (+ x (/ (* y z) (- a t))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (y * ((z / t) + -1.0));
double tmp;
if (t <= -4.5e+119) {
tmp = t_1;
} else if (t <= -6.7e+43) {
tmp = x + (y * (z / (a - t)));
} else if (t <= -1.9e-22) {
tmp = x - (t * (y / (a - t)));
} else if (t <= 880.0) {
tmp = x + ((y * z) / (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) + (-1.0d0)))
if (t <= (-4.5d+119)) then
tmp = t_1
else if (t <= (-6.7d+43)) then
tmp = x + (y * (z / (a - t)))
else if (t <= (-1.9d-22)) then
tmp = x - (t * (y / (a - t)))
else if (t <= 880.0d0) then
tmp = x + ((y * z) / (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) + -1.0));
double tmp;
if (t <= -4.5e+119) {
tmp = t_1;
} else if (t <= -6.7e+43) {
tmp = x + (y * (z / (a - t)));
} else if (t <= -1.9e-22) {
tmp = x - (t * (y / (a - t)));
} else if (t <= 880.0) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (y * ((z / t) + -1.0)) tmp = 0 if t <= -4.5e+119: tmp = t_1 elif t <= -6.7e+43: tmp = x + (y * (z / (a - t))) elif t <= -1.9e-22: tmp = x - (t * (y / (a - t))) elif t <= 880.0: tmp = x + ((y * z) / (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) + -1.0))) tmp = 0.0 if (t <= -4.5e+119) tmp = t_1; elseif (t <= -6.7e+43) tmp = Float64(x + Float64(y * Float64(z / Float64(a - t)))); elseif (t <= -1.9e-22) tmp = Float64(x - Float64(t * Float64(y / Float64(a - t)))); elseif (t <= 880.0) tmp = Float64(x + Float64(Float64(y * z) / 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) + -1.0)); tmp = 0.0; if (t <= -4.5e+119) tmp = t_1; elseif (t <= -6.7e+43) tmp = x + (y * (z / (a - t))); elseif (t <= -1.9e-22) tmp = x - (t * (y / (a - t))); elseif (t <= 880.0) tmp = x + ((y * z) / (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] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.5e+119], t$95$1, If[LessEqual[t, -6.7e+43], N[(x + N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.9e-22], N[(x - N[(t * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 880.0], N[(x + N[(N[(y * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - y \cdot \left(\frac{z}{t} + -1\right)\\
\mathbf{if}\;t \leq -4.5 \cdot 10^{+119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -6.7 \cdot 10^{+43}:\\
\;\;\;\;x + y \cdot \frac{z}{a - t}\\
\mathbf{elif}\;t \leq -1.9 \cdot 10^{-22}:\\
\;\;\;\;x - t \cdot \frac{y}{a - t}\\
\mathbf{elif}\;t \leq 880:\\
\;\;\;\;x + \frac{y \cdot z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.5000000000000002e119 or 880 < t Initial program 99.9%
Taylor expanded in a around 0 69.2%
mul-1-neg69.2%
unsub-neg69.2%
associate-/l*91.4%
div-sub91.4%
sub-neg91.4%
*-inverses91.4%
metadata-eval91.4%
Simplified91.4%
if -4.5000000000000002e119 < t < -6.69999999999999976e43Initial program 99.8%
Taylor expanded in z around inf 93.8%
associate-/l*98.6%
Simplified98.6%
if -6.69999999999999976e43 < t < -1.90000000000000012e-22Initial program 100.0%
clear-num100.0%
un-div-inv100.0%
Applied egg-rr100.0%
Taylor expanded in z around 0 99.7%
mul-1-neg99.7%
associate-*r/100.0%
unsub-neg100.0%
Simplified100.0%
if -1.90000000000000012e-22 < t < 880Initial program 95.0%
Taylor expanded in z around inf 91.8%
Final simplification92.5%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.9e-22)
(+ x y)
(if (<= t 1.45e-21)
(+ x (/ (* y z) a))
(if (or (<= t 7.8e+46) (not (<= t 6.5e+90)))
(+ x y)
(+ x (/ y (/ a z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.9e-22) {
tmp = x + y;
} else if (t <= 1.45e-21) {
tmp = x + ((y * z) / a);
} else if ((t <= 7.8e+46) || !(t <= 6.5e+90)) {
tmp = x + y;
} else {
tmp = x + (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 (t <= (-1.9d-22)) then
tmp = x + y
else if (t <= 1.45d-21) then
tmp = x + ((y * z) / a)
else if ((t <= 7.8d+46) .or. (.not. (t <= 6.5d+90))) then
tmp = x + y
else
tmp = x + (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 (t <= -1.9e-22) {
tmp = x + y;
} else if (t <= 1.45e-21) {
tmp = x + ((y * z) / a);
} else if ((t <= 7.8e+46) || !(t <= 6.5e+90)) {
tmp = x + y;
} else {
tmp = x + (y / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.9e-22: tmp = x + y elif t <= 1.45e-21: tmp = x + ((y * z) / a) elif (t <= 7.8e+46) or not (t <= 6.5e+90): tmp = x + y else: tmp = x + (y / (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.9e-22) tmp = Float64(x + y); elseif (t <= 1.45e-21) tmp = Float64(x + Float64(Float64(y * z) / a)); elseif ((t <= 7.8e+46) || !(t <= 6.5e+90)) tmp = Float64(x + y); else tmp = Float64(x + Float64(y / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.9e-22) tmp = x + y; elseif (t <= 1.45e-21) tmp = x + ((y * z) / a); elseif ((t <= 7.8e+46) || ~((t <= 6.5e+90))) tmp = x + y; else tmp = x + (y / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.9e-22], N[(x + y), $MachinePrecision], If[LessEqual[t, 1.45e-21], N[(x + N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 7.8e+46], N[Not[LessEqual[t, 6.5e+90]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{-22}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-21}:\\
\;\;\;\;x + \frac{y \cdot z}{a}\\
\mathbf{elif}\;t \leq 7.8 \cdot 10^{+46} \lor \neg \left(t \leq 6.5 \cdot 10^{+90}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\end{array}
\end{array}
if t < -1.90000000000000012e-22 or 1.45e-21 < t < 7.7999999999999999e46 or 6.5000000000000001e90 < t Initial program 99.9%
Taylor expanded in t around inf 81.4%
+-commutative81.4%
Simplified81.4%
if -1.90000000000000012e-22 < t < 1.45e-21Initial program 94.8%
Taylor expanded in t around 0 79.4%
if 7.7999999999999999e46 < t < 6.5000000000000001e90Initial program 99.9%
clear-num99.9%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in t around 0 74.5%
Final simplification80.1%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.9e-22)
(+ x y)
(if (<= t 4.4e-103)
(+ x (/ (* y z) a))
(if (<= t 1.02e+93) (- x (* y (/ z t))) (+ x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.9e-22) {
tmp = x + y;
} else if (t <= 4.4e-103) {
tmp = x + ((y * z) / a);
} else if (t <= 1.02e+93) {
tmp = x - (y * (z / t));
} else {
tmp = x + y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.9d-22)) then
tmp = x + y
else if (t <= 4.4d-103) then
tmp = x + ((y * z) / a)
else if (t <= 1.02d+93) then
tmp = x - (y * (z / t))
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.9e-22) {
tmp = x + y;
} else if (t <= 4.4e-103) {
tmp = x + ((y * z) / a);
} else if (t <= 1.02e+93) {
tmp = x - (y * (z / t));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.9e-22: tmp = x + y elif t <= 4.4e-103: tmp = x + ((y * z) / a) elif t <= 1.02e+93: tmp = x - (y * (z / t)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.9e-22) tmp = Float64(x + y); elseif (t <= 4.4e-103) tmp = Float64(x + Float64(Float64(y * z) / a)); elseif (t <= 1.02e+93) tmp = Float64(x - Float64(y * Float64(z / t))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.9e-22) tmp = x + y; elseif (t <= 4.4e-103) tmp = x + ((y * z) / a); elseif (t <= 1.02e+93) tmp = x - (y * (z / t)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.9e-22], N[(x + y), $MachinePrecision], If[LessEqual[t, 4.4e-103], N[(x + N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.02e+93], N[(x - N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{-22}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 4.4 \cdot 10^{-103}:\\
\;\;\;\;x + \frac{y \cdot z}{a}\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{+93}:\\
\;\;\;\;x - y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -1.90000000000000012e-22 or 1.0200000000000001e93 < t Initial program 99.9%
Taylor expanded in t around inf 84.3%
+-commutative84.3%
Simplified84.3%
if -1.90000000000000012e-22 < t < 4.3999999999999999e-103Initial program 94.1%
Taylor expanded in t around 0 83.5%
if 4.3999999999999999e-103 < t < 1.0200000000000001e93Initial program 99.8%
Taylor expanded in z around inf 79.0%
associate-/l*85.3%
Simplified85.3%
Taylor expanded in a around 0 61.9%
mul-1-neg61.9%
unsub-neg61.9%
associate-/l*65.8%
Simplified65.8%
Final simplification80.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -9.5e+137) (not (<= t 1.1e+95))) (+ x y) (+ x (* y (/ z (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -9.5e+137) || !(t <= 1.1e+95)) {
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 ((t <= (-9.5d+137)) .or. (.not. (t <= 1.1d+95))) 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 ((t <= -9.5e+137) || !(t <= 1.1e+95)) {
tmp = x + y;
} else {
tmp = x + (y * (z / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -9.5e+137) or not (t <= 1.1e+95): tmp = x + y else: tmp = x + (y * (z / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -9.5e+137) || !(t <= 1.1e+95)) tmp = Float64(x + y); else tmp = Float64(x + Float64(y * Float64(z / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -9.5e+137) || ~((t <= 1.1e+95))) tmp = x + y; else tmp = x + (y * (z / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -9.5e+137], N[Not[LessEqual[t, 1.1e+95]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.5 \cdot 10^{+137} \lor \neg \left(t \leq 1.1 \cdot 10^{+95}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{a - t}\\
\end{array}
\end{array}
if t < -9.50000000000000031e137 or 1.0999999999999999e95 < t Initial program 99.9%
Taylor expanded in t around inf 89.0%
+-commutative89.0%
Simplified89.0%
if -9.50000000000000031e137 < t < 1.0999999999999999e95Initial program 96.5%
Taylor expanded in z around inf 87.4%
associate-/l*87.0%
Simplified87.0%
Final simplification87.5%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.9e-22) (- x (* t (/ y (- a t)))) (if (<= t 1.55e+95) (+ x (/ (* y z) (- a t))) (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.9e-22) {
tmp = x - (t * (y / (a - t)));
} else if (t <= 1.55e+95) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = x + y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-1.9d-22)) then
tmp = x - (t * (y / (a - t)))
else if (t <= 1.55d+95) then
tmp = x + ((y * z) / (a - t))
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.9e-22) {
tmp = x - (t * (y / (a - t)));
} else if (t <= 1.55e+95) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.9e-22: tmp = x - (t * (y / (a - t))) elif t <= 1.55e+95: tmp = x + ((y * z) / (a - t)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.9e-22) tmp = Float64(x - Float64(t * Float64(y / Float64(a - t)))); elseif (t <= 1.55e+95) tmp = Float64(x + Float64(Float64(y * z) / Float64(a - t))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.9e-22) tmp = x - (t * (y / (a - t))); elseif (t <= 1.55e+95) tmp = x + ((y * z) / (a - t)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.9e-22], N[(x - N[(t * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.55e+95], N[(x + N[(N[(y * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{-22}:\\
\;\;\;\;x - t \cdot \frac{y}{a - t}\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{+95}:\\
\;\;\;\;x + \frac{y \cdot z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -1.90000000000000012e-22Initial program 99.9%
clear-num99.9%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in z around 0 78.7%
mul-1-neg78.7%
associate-*r/89.0%
unsub-neg89.0%
Simplified89.0%
if -1.90000000000000012e-22 < t < 1.5500000000000001e95Initial program 95.7%
Taylor expanded in z around inf 89.1%
if 1.5500000000000001e95 < t Initial program 100.0%
Taylor expanded in t around inf 88.5%
+-commutative88.5%
Simplified88.5%
Final simplification89.0%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.9e-22) (+ x (* y (/ t (- t a)))) (if (<= t 880.0) (+ x (/ (* y z) (- a t))) (- x (* y (+ (/ z t) -1.0))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.9e-22) {
tmp = x + (y * (t / (t - a)));
} else if (t <= 880.0) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = x - (y * ((z / t) + -1.0));
}
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.9d-22)) then
tmp = x + (y * (t / (t - a)))
else if (t <= 880.0d0) then
tmp = x + ((y * z) / (a - t))
else
tmp = x - (y * ((z / t) + (-1.0d0)))
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.9e-22) {
tmp = x + (y * (t / (t - a)));
} else if (t <= 880.0) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = x - (y * ((z / t) + -1.0));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.9e-22: tmp = x + (y * (t / (t - a))) elif t <= 880.0: tmp = x + ((y * z) / (a - t)) else: tmp = x - (y * ((z / t) + -1.0)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.9e-22) tmp = Float64(x + Float64(y * Float64(t / Float64(t - a)))); elseif (t <= 880.0) tmp = Float64(x + Float64(Float64(y * z) / Float64(a - t))); else tmp = Float64(x - Float64(y * Float64(Float64(z / t) + -1.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.9e-22) tmp = x + (y * (t / (t - a))); elseif (t <= 880.0) tmp = x + ((y * z) / (a - t)); else tmp = x - (y * ((z / t) + -1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.9e-22], N[(x + N[(y * N[(t / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 880.0], N[(x + N[(N[(y * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y * N[(N[(z / t), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{-22}:\\
\;\;\;\;x + y \cdot \frac{t}{t - a}\\
\mathbf{elif}\;t \leq 880:\\
\;\;\;\;x + \frac{y \cdot z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot \left(\frac{z}{t} + -1\right)\\
\end{array}
\end{array}
if t < -1.90000000000000012e-22Initial program 99.9%
Taylor expanded in z around 0 78.7%
mul-1-neg78.7%
unsub-neg78.7%
*-commutative78.7%
associate-/l*89.6%
Simplified89.6%
if -1.90000000000000012e-22 < t < 880Initial program 95.0%
Taylor expanded in z around inf 91.8%
if 880 < t Initial program 99.9%
Taylor expanded in a around 0 67.1%
mul-1-neg67.1%
unsub-neg67.1%
associate-/l*90.8%
div-sub90.8%
sub-neg90.8%
*-inverses90.8%
metadata-eval90.8%
Simplified90.8%
Final simplification91.0%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.7e-22) (+ x (* y (/ t (- t a)))) (if (<= t 920.0) (+ x (/ (* y z) (- a t))) (+ x (* y (/ (- t z) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.7e-22) {
tmp = x + (y * (t / (t - a)));
} else if (t <= 920.0) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = x + (y * ((t - 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 <= (-1.7d-22)) then
tmp = x + (y * (t / (t - a)))
else if (t <= 920.0d0) then
tmp = x + ((y * z) / (a - t))
else
tmp = x + (y * ((t - 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 <= -1.7e-22) {
tmp = x + (y * (t / (t - a)));
} else if (t <= 920.0) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = x + (y * ((t - z) / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.7e-22: tmp = x + (y * (t / (t - a))) elif t <= 920.0: tmp = x + ((y * z) / (a - t)) else: tmp = x + (y * ((t - z) / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.7e-22) tmp = Float64(x + Float64(y * Float64(t / Float64(t - a)))); elseif (t <= 920.0) tmp = Float64(x + Float64(Float64(y * z) / Float64(a - t))); else tmp = Float64(x + Float64(y * Float64(Float64(t - z) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.7e-22) tmp = x + (y * (t / (t - a))); elseif (t <= 920.0) tmp = x + ((y * z) / (a - t)); else tmp = x + (y * ((t - z) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.7e-22], N[(x + N[(y * N[(t / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 920.0], N[(x + N[(N[(y * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(t - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{-22}:\\
\;\;\;\;x + y \cdot \frac{t}{t - a}\\
\mathbf{elif}\;t \leq 920:\\
\;\;\;\;x + \frac{y \cdot z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t - z}{t}\\
\end{array}
\end{array}
if t < -1.6999999999999999e-22Initial program 99.9%
Taylor expanded in z around 0 78.7%
mul-1-neg78.7%
unsub-neg78.7%
*-commutative78.7%
associate-/l*89.6%
Simplified89.6%
if -1.6999999999999999e-22 < t < 920Initial program 95.0%
Taylor expanded in z around inf 91.8%
if 920 < t Initial program 99.9%
clear-num99.9%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in a around 0 67.1%
mul-1-neg67.1%
unsub-neg67.1%
associate-/l*90.8%
Simplified90.8%
Final simplification91.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.9e-22) (not (<= t 9.6e-23))) (+ x y) (+ x (/ y (/ a z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.9e-22) || !(t <= 9.6e-23)) {
tmp = x + y;
} else {
tmp = x + (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 ((t <= (-1.9d-22)) .or. (.not. (t <= 9.6d-23))) then
tmp = x + y
else
tmp = x + (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 ((t <= -1.9e-22) || !(t <= 9.6e-23)) {
tmp = x + y;
} else {
tmp = x + (y / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.9e-22) or not (t <= 9.6e-23): tmp = x + y else: tmp = x + (y / (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.9e-22) || !(t <= 9.6e-23)) tmp = Float64(x + y); else tmp = Float64(x + Float64(y / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.9e-22) || ~((t <= 9.6e-23))) tmp = x + y; else tmp = x + (y / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.9e-22], N[Not[LessEqual[t, 9.6e-23]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{-22} \lor \neg \left(t \leq 9.6 \cdot 10^{-23}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\end{array}
\end{array}
if t < -1.90000000000000012e-22 or 9.59999999999999986e-23 < t Initial program 99.9%
Taylor expanded in t around inf 77.6%
+-commutative77.6%
Simplified77.6%
if -1.90000000000000012e-22 < t < 9.59999999999999986e-23Initial program 94.8%
clear-num94.8%
un-div-inv95.9%
Applied egg-rr95.9%
Taylor expanded in t around 0 78.9%
Final simplification78.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -7.4e-48) (not (<= t 8.2e-38))) (+ x y) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -7.4e-48) || !(t <= 8.2e-38)) {
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 ((t <= (-7.4d-48)) .or. (.not. (t <= 8.2d-38))) 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 ((t <= -7.4e-48) || !(t <= 8.2e-38)) {
tmp = x + y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -7.4e-48) or not (t <= 8.2e-38): tmp = x + y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -7.4e-48) || !(t <= 8.2e-38)) tmp = Float64(x + y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -7.4e-48) || ~((t <= 8.2e-38))) tmp = x + y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -7.4e-48], N[Not[LessEqual[t, 8.2e-38]], $MachinePrecision]], N[(x + y), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.4 \cdot 10^{-48} \lor \neg \left(t \leq 8.2 \cdot 10^{-38}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -7.3999999999999996e-48 or 8.1999999999999996e-38 < t Initial program 99.9%
Taylor expanded in t around inf 75.2%
+-commutative75.2%
Simplified75.2%
if -7.3999999999999996e-48 < t < 8.1999999999999996e-38Initial program 94.4%
Taylor expanded in x around inf 46.9%
Final simplification62.2%
(FPCore (x y z t a) :precision binary64 (+ x (/ y (/ (- a t) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y / ((a - t) / (z - 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 / ((a - t) / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y / ((a - t) / (z - t)));
}
def code(x, y, z, t, a): return x + (y / ((a - t) / (z - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y / Float64(Float64(a - t) / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y / ((a - t) / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{\frac{a - t}{z - t}}
\end{array}
Initial program 97.4%
clear-num97.4%
un-div-inv97.9%
Applied egg-rr97.9%
Final simplification97.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 97.4%
Taylor expanded in x around inf 48.9%
Final simplification48.9%
(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 2024130
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, B"
:precision binary64
:alt
(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)))))