
(FPCore (x y z t a) :precision binary64 (+ x (/ (* y (- z t)) a)))
double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / a);
}
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)
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / a);
}
def code(x, y, z, t, a): return x + ((y * (z - t)) / a)
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y * Float64(z - t)) / a)) end
function tmp = code(x, y, z, t, a) tmp = x + ((y * (z - t)) / a); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - t\right)}{a}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 15 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* y (- z t)) a)))
double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / a);
}
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)
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / a);
}
def code(x, y, z, t, a): return x + ((y * (z - t)) / a)
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y * Float64(z - t)) / a)) end
function tmp = code(x, y, z, t, a) tmp = x + ((y * (z - t)) / a); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - t\right)}{a}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (<= a -5.9e-108) (fma y (/ (- z t) a) x) (+ x (/ (- z t) (/ a y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5.9e-108) {
tmp = fma(y, ((z - t) / a), x);
} else {
tmp = x + ((z - t) / (a / y));
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (a <= -5.9e-108) tmp = fma(y, Float64(Float64(z - t) / a), x); else tmp = Float64(x + Float64(Float64(z - t) / Float64(a / y))); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -5.9e-108], N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.9 \cdot 10^{-108}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{z - t}{a}, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z - t}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -5.89999999999999965e-108Initial program 94.6%
+-commutative94.6%
associate-/l*99.9%
fma-define99.9%
Simplified99.9%
if -5.89999999999999965e-108 < a Initial program 92.6%
clear-num92.6%
inv-pow92.6%
associate-/r*99.2%
Applied egg-rr99.2%
unpow-199.2%
clear-num99.3%
Applied egg-rr99.3%
Final simplification99.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* y (- z t)) a)))
(if (or (<= t_1 -1e+80) (not (<= t_1 5e+132)))
(* (- z t) (/ y a))
(- x (/ (* y t) a)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y * (z - t)) / a;
double tmp;
if ((t_1 <= -1e+80) || !(t_1 <= 5e+132)) {
tmp = (z - t) * (y / a);
} else {
tmp = x - ((y * 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) :: t_1
real(8) :: tmp
t_1 = (y * (z - t)) / a
if ((t_1 <= (-1d+80)) .or. (.not. (t_1 <= 5d+132))) then
tmp = (z - t) * (y / a)
else
tmp = x - ((y * t) / a)
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 - t)) / a;
double tmp;
if ((t_1 <= -1e+80) || !(t_1 <= 5e+132)) {
tmp = (z - t) * (y / a);
} else {
tmp = x - ((y * t) / a);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y * (z - t)) / a tmp = 0 if (t_1 <= -1e+80) or not (t_1 <= 5e+132): tmp = (z - t) * (y / a) else: tmp = x - ((y * t) / a) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y * Float64(z - t)) / a) tmp = 0.0 if ((t_1 <= -1e+80) || !(t_1 <= 5e+132)) tmp = Float64(Float64(z - t) * Float64(y / a)); else tmp = Float64(x - Float64(Float64(y * t) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y * (z - t)) / a; tmp = 0.0; if ((t_1 <= -1e+80) || ~((t_1 <= 5e+132))) tmp = (z - t) * (y / a); else tmp = x - ((y * t) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -1e+80], N[Not[LessEqual[t$95$1, 5e+132]], $MachinePrecision]], N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(z - t\right)}{a}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+80} \lor \neg \left(t\_1 \leq 5 \cdot 10^{+132}\right):\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y \cdot t}{a}\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (-.f64 z t)) a) < -1e80 or 5.0000000000000001e132 < (/.f64 (*.f64 y (-.f64 z t)) a) Initial program 87.1%
Taylor expanded in x around 0 83.9%
*-commutative83.9%
associate-*r/92.7%
*-commutative92.7%
Applied egg-rr92.7%
if -1e80 < (/.f64 (*.f64 y (-.f64 z t)) a) < 5.0000000000000001e132Initial program 99.2%
Taylor expanded in z around 0 89.8%
mul-1-neg89.8%
unsub-neg89.8%
associate-/l*89.1%
Simplified89.1%
*-commutative89.1%
associate-*l/89.8%
Applied egg-rr89.8%
Final simplification91.2%
(FPCore (x y z t a) :precision binary64 (if (<= x -2.1e-54) x (if (<= x 3.8e-114) (* t (/ (- y) a)) (if (<= x 370.0) (/ z (/ a y)) x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -2.1e-54) {
tmp = x;
} else if (x <= 3.8e-114) {
tmp = t * (-y / a);
} else if (x <= 370.0) {
tmp = z / (a / 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 (x <= (-2.1d-54)) then
tmp = x
else if (x <= 3.8d-114) then
tmp = t * (-y / a)
else if (x <= 370.0d0) then
tmp = z / (a / 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 (x <= -2.1e-54) {
tmp = x;
} else if (x <= 3.8e-114) {
tmp = t * (-y / a);
} else if (x <= 370.0) {
tmp = z / (a / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -2.1e-54: tmp = x elif x <= 3.8e-114: tmp = t * (-y / a) elif x <= 370.0: tmp = z / (a / y) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -2.1e-54) tmp = x; elseif (x <= 3.8e-114) tmp = Float64(t * Float64(Float64(-y) / a)); elseif (x <= 370.0) tmp = Float64(z / Float64(a / y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -2.1e-54) tmp = x; elseif (x <= 3.8e-114) tmp = t * (-y / a); elseif (x <= 370.0) tmp = z / (a / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -2.1e-54], x, If[LessEqual[x, 3.8e-114], N[(t * N[((-y) / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 370.0], N[(z / N[(a / y), $MachinePrecision]), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.1 \cdot 10^{-54}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-114}:\\
\;\;\;\;t \cdot \frac{-y}{a}\\
\mathbf{elif}\;x \leq 370:\\
\;\;\;\;\frac{z}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -2.1e-54 or 370 < x Initial program 95.0%
Taylor expanded in x around inf 63.5%
if -2.1e-54 < x < 3.7999999999999998e-114Initial program 92.8%
Taylor expanded in x around 0 80.9%
Taylor expanded in z around 0 50.8%
mul-1-neg50.8%
associate-/l*55.5%
distribute-rgt-neg-in55.5%
Simplified55.5%
if 3.7999999999999998e-114 < x < 370Initial program 87.1%
Taylor expanded in x around 0 58.6%
Taylor expanded in z around inf 40.3%
associate-/l*36.6%
Simplified36.6%
associate-*r/40.3%
clear-num40.3%
Applied egg-rr40.3%
associate-/r/40.3%
Simplified40.3%
associate-*l/40.3%
*-un-lft-identity40.3%
associate-*l/53.0%
clear-num52.9%
associate-*l/53.0%
*-un-lft-identity53.0%
Applied egg-rr53.0%
Final simplification59.5%
(FPCore (x y z t a)
:precision binary64
(if (<= x -1.1e-52)
x
(if (<= x 2.6e-114)
(/ t (/ a (- y)))
(if (<= x 55000000000.0) (/ z (/ a y)) x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -1.1e-52) {
tmp = x;
} else if (x <= 2.6e-114) {
tmp = t / (a / -y);
} else if (x <= 55000000000.0) {
tmp = z / (a / 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 (x <= (-1.1d-52)) then
tmp = x
else if (x <= 2.6d-114) then
tmp = t / (a / -y)
else if (x <= 55000000000.0d0) then
tmp = z / (a / 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 (x <= -1.1e-52) {
tmp = x;
} else if (x <= 2.6e-114) {
tmp = t / (a / -y);
} else if (x <= 55000000000.0) {
tmp = z / (a / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -1.1e-52: tmp = x elif x <= 2.6e-114: tmp = t / (a / -y) elif x <= 55000000000.0: tmp = z / (a / y) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -1.1e-52) tmp = x; elseif (x <= 2.6e-114) tmp = Float64(t / Float64(a / Float64(-y))); elseif (x <= 55000000000.0) tmp = Float64(z / Float64(a / y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -1.1e-52) tmp = x; elseif (x <= 2.6e-114) tmp = t / (a / -y); elseif (x <= 55000000000.0) tmp = z / (a / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -1.1e-52], x, If[LessEqual[x, 2.6e-114], N[(t / N[(a / (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 55000000000.0], N[(z / N[(a / y), $MachinePrecision]), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.1 \cdot 10^{-52}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{-114}:\\
\;\;\;\;\frac{t}{\frac{a}{-y}}\\
\mathbf{elif}\;x \leq 55000000000:\\
\;\;\;\;\frac{z}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -1.10000000000000005e-52 or 5.5e10 < x Initial program 95.0%
Taylor expanded in x around inf 63.5%
if -1.10000000000000005e-52 < x < 2.60000000000000013e-114Initial program 92.8%
Taylor expanded in x around 0 80.9%
Taylor expanded in z around 0 50.8%
associate-*r/50.8%
mul-1-neg50.8%
distribute-lft-neg-out50.8%
*-commutative50.8%
associate-/l*51.6%
Simplified51.6%
*-commutative51.6%
div-inv51.6%
associate-*l*55.4%
add-sqr-sqrt24.4%
sqrt-unprod21.0%
sqr-neg21.0%
sqrt-unprod3.4%
add-sqr-sqrt7.6%
associate-/r/7.5%
div-inv7.5%
frac-2neg7.5%
add-sqr-sqrt4.1%
sqrt-unprod20.7%
sqr-neg20.7%
sqrt-unprod30.9%
add-sqr-sqrt55.7%
distribute-neg-frac255.7%
Applied egg-rr55.7%
if 2.60000000000000013e-114 < x < 5.5e10Initial program 87.1%
Taylor expanded in x around 0 58.6%
Taylor expanded in z around inf 40.3%
associate-/l*36.6%
Simplified36.6%
associate-*r/40.3%
clear-num40.3%
Applied egg-rr40.3%
associate-/r/40.3%
Simplified40.3%
associate-*l/40.3%
*-un-lft-identity40.3%
associate-*l/53.0%
clear-num52.9%
associate-*l/53.0%
*-un-lft-identity53.0%
Applied egg-rr53.0%
Final simplification59.5%
(FPCore (x y z t a) :precision binary64 (if (<= (* y (- z t)) 4e+298) (- x (/ (* y (- t z)) a)) (* (- z t) (/ y a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y * (z - t)) <= 4e+298) {
tmp = x - ((y * (t - z)) / a);
} else {
tmp = (z - t) * (y / 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 ((y * (z - t)) <= 4d+298) then
tmp = x - ((y * (t - z)) / a)
else
tmp = (z - t) * (y / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y * (z - t)) <= 4e+298) {
tmp = x - ((y * (t - z)) / a);
} else {
tmp = (z - t) * (y / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y * (z - t)) <= 4e+298: tmp = x - ((y * (t - z)) / a) else: tmp = (z - t) * (y / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(y * Float64(z - t)) <= 4e+298) tmp = Float64(x - Float64(Float64(y * Float64(t - z)) / a)); else tmp = Float64(Float64(z - t) * Float64(y / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y * (z - t)) <= 4e+298) tmp = x - ((y * (t - z)) / a); else tmp = (z - t) * (y / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision], 4e+298], N[(x - N[(N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \cdot \left(z - t\right) \leq 4 \cdot 10^{+298}:\\
\;\;\;\;x - \frac{y \cdot \left(t - z\right)}{a}\\
\mathbf{else}:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\
\end{array}
\end{array}
if (*.f64 y (-.f64 z t)) < 3.9999999999999998e298Initial program 96.6%
if 3.9999999999999998e298 < (*.f64 y (-.f64 z t)) Initial program 68.9%
Taylor expanded in x around 0 68.9%
*-commutative68.9%
associate-*r/99.9%
*-commutative99.9%
Applied egg-rr99.9%
Final simplification97.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= x -1.05e-53) (not (<= x 205.0))) (+ x (/ (* y z) a)) (* (- z t) (/ y a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -1.05e-53) || !(x <= 205.0)) {
tmp = x + ((y * z) / a);
} else {
tmp = (z - t) * (y / 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 ((x <= (-1.05d-53)) .or. (.not. (x <= 205.0d0))) then
tmp = x + ((y * z) / a)
else
tmp = (z - t) * (y / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -1.05e-53) || !(x <= 205.0)) {
tmp = x + ((y * z) / a);
} else {
tmp = (z - t) * (y / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (x <= -1.05e-53) or not (x <= 205.0): tmp = x + ((y * z) / a) else: tmp = (z - t) * (y / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((x <= -1.05e-53) || !(x <= 205.0)) tmp = Float64(x + Float64(Float64(y * z) / a)); else tmp = Float64(Float64(z - t) * Float64(y / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((x <= -1.05e-53) || ~((x <= 205.0))) tmp = x + ((y * z) / a); else tmp = (z - t) * (y / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[x, -1.05e-53], N[Not[LessEqual[x, 205.0]], $MachinePrecision]], N[(x + N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.05 \cdot 10^{-53} \lor \neg \left(x \leq 205\right):\\
\;\;\;\;x + \frac{y \cdot z}{a}\\
\mathbf{else}:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\
\end{array}
\end{array}
if x < -1.04999999999999989e-53 or 205 < x Initial program 95.0%
Taylor expanded in z around inf 81.8%
if -1.04999999999999989e-53 < x < 205Initial program 91.4%
Taylor expanded in x around 0 75.5%
*-commutative75.5%
associate-*r/79.7%
*-commutative79.7%
Applied egg-rr79.7%
Final simplification80.8%
(FPCore (x y z t a) :precision binary64 (if (<= a -155000000000.0) x (if (<= a 2.6e+106) (* (- z t) (/ y a)) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -155000000000.0) {
tmp = x;
} else if (a <= 2.6e+106) {
tmp = (z - t) * (y / a);
} 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 <= (-155000000000.0d0)) then
tmp = x
else if (a <= 2.6d+106) then
tmp = (z - t) * (y / a)
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 <= -155000000000.0) {
tmp = x;
} else if (a <= 2.6e+106) {
tmp = (z - t) * (y / a);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -155000000000.0: tmp = x elif a <= 2.6e+106: tmp = (z - t) * (y / a) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -155000000000.0) tmp = x; elseif (a <= 2.6e+106) tmp = Float64(Float64(z - t) * Float64(y / a)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -155000000000.0) tmp = x; elseif (a <= 2.6e+106) tmp = (z - t) * (y / a); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -155000000000.0], x, If[LessEqual[a, 2.6e+106], N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -155000000000:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{+106}:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.55e11 or 2.6000000000000002e106 < a Initial program 87.8%
Taylor expanded in x around inf 67.7%
if -1.55e11 < a < 2.6000000000000002e106Initial program 96.9%
Taylor expanded in x around 0 74.0%
*-commutative74.0%
associate-*r/75.6%
*-commutative75.6%
Applied egg-rr75.6%
Final simplification72.5%
(FPCore (x y z t a) :precision binary64 (if (<= x -4.2e-52) (+ x (* y (/ z a))) (if (<= x 6700000.0) (* (- z t) (/ y a)) (+ x (/ (* y z) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -4.2e-52) {
tmp = x + (y * (z / a));
} else if (x <= 6700000.0) {
tmp = (z - t) * (y / a);
} else {
tmp = x + ((y * z) / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (x <= (-4.2d-52)) then
tmp = x + (y * (z / a))
else if (x <= 6700000.0d0) then
tmp = (z - t) * (y / a)
else
tmp = x + ((y * z) / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -4.2e-52) {
tmp = x + (y * (z / a));
} else if (x <= 6700000.0) {
tmp = (z - t) * (y / a);
} else {
tmp = x + ((y * z) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -4.2e-52: tmp = x + (y * (z / a)) elif x <= 6700000.0: tmp = (z - t) * (y / a) else: tmp = x + ((y * z) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -4.2e-52) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (x <= 6700000.0) tmp = Float64(Float64(z - t) * Float64(y / a)); else tmp = Float64(x + Float64(Float64(y * z) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -4.2e-52) tmp = x + (y * (z / a)); elseif (x <= 6700000.0) tmp = (z - t) * (y / a); else tmp = x + ((y * z) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -4.2e-52], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6700000.0], N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.2 \cdot 10^{-52}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;x \leq 6700000:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot z}{a}\\
\end{array}
\end{array}
if x < -4.1999999999999997e-52Initial program 91.9%
Taylor expanded in t around 0 80.4%
+-commutative80.4%
associate-/l*81.8%
Simplified81.8%
if -4.1999999999999997e-52 < x < 6.7e6Initial program 91.4%
Taylor expanded in x around 0 75.5%
*-commutative75.5%
associate-*r/79.7%
*-commutative79.7%
Applied egg-rr79.7%
if 6.7e6 < x Initial program 98.4%
Taylor expanded in z around inf 83.4%
Final simplification81.2%
(FPCore (x y z t a) :precision binary64 (if (<= x -2.7e-53) (+ x (* y (/ z a))) (if (<= x 0.000145) (* (- z t) (/ y a)) (+ x (/ y (/ a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -2.7e-53) {
tmp = x + (y * (z / a));
} else if (x <= 0.000145) {
tmp = (z - t) * (y / a);
} 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 (x <= (-2.7d-53)) then
tmp = x + (y * (z / a))
else if (x <= 0.000145d0) then
tmp = (z - t) * (y / a)
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 (x <= -2.7e-53) {
tmp = x + (y * (z / a));
} else if (x <= 0.000145) {
tmp = (z - t) * (y / a);
} else {
tmp = x + (y / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -2.7e-53: tmp = x + (y * (z / a)) elif x <= 0.000145: tmp = (z - t) * (y / a) else: tmp = x + (y / (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -2.7e-53) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (x <= 0.000145) tmp = Float64(Float64(z - t) * Float64(y / a)); 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 (x <= -2.7e-53) tmp = x + (y * (z / a)); elseif (x <= 0.000145) tmp = (z - t) * (y / a); else tmp = x + (y / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -2.7e-53], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.000145], N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.7 \cdot 10^{-53}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;x \leq 0.000145:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\end{array}
\end{array}
if x < -2.6999999999999999e-53Initial program 91.9%
Taylor expanded in t around 0 80.4%
+-commutative80.4%
associate-/l*81.8%
Simplified81.8%
if -2.6999999999999999e-53 < x < 1.45e-4Initial program 92.1%
Taylor expanded in x around 0 76.1%
*-commutative76.1%
associate-*r/79.5%
*-commutative79.5%
Applied egg-rr79.5%
if 1.45e-4 < x Initial program 97.0%
Taylor expanded in t around 0 82.2%
+-commutative82.2%
associate-/l*83.6%
Simplified83.6%
clear-num21.6%
un-div-inv21.6%
Applied egg-rr83.6%
Final simplification81.2%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.02e+52) (+ x (/ y (/ a z))) (if (<= z 3.2e+67) (- x (* t (/ y a))) (+ x (/ (* y z) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.02e+52) {
tmp = x + (y / (a / z));
} else if (z <= 3.2e+67) {
tmp = x - (t * (y / a));
} else {
tmp = x + ((y * z) / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.02d+52)) then
tmp = x + (y / (a / z))
else if (z <= 3.2d+67) then
tmp = x - (t * (y / a))
else
tmp = x + ((y * z) / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.02e+52) {
tmp = x + (y / (a / z));
} else if (z <= 3.2e+67) {
tmp = x - (t * (y / a));
} else {
tmp = x + ((y * z) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.02e+52: tmp = x + (y / (a / z)) elif z <= 3.2e+67: tmp = x - (t * (y / a)) else: tmp = x + ((y * z) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.02e+52) tmp = Float64(x + Float64(y / Float64(a / z))); elseif (z <= 3.2e+67) tmp = Float64(x - Float64(t * Float64(y / a))); else tmp = Float64(x + Float64(Float64(y * z) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.02e+52) tmp = x + (y / (a / z)); elseif (z <= 3.2e+67) tmp = x - (t * (y / a)); else tmp = x + ((y * z) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.02e+52], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.2e+67], N[(x - N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.02 \cdot 10^{+52}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{+67}:\\
\;\;\;\;x - t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot z}{a}\\
\end{array}
\end{array}
if z < -1.02000000000000002e52Initial program 80.4%
Taylor expanded in t around 0 81.5%
+-commutative81.5%
associate-/l*87.0%
Simplified87.0%
clear-num56.5%
un-div-inv56.5%
Applied egg-rr87.0%
if -1.02000000000000002e52 < z < 3.19999999999999983e67Initial program 96.4%
Taylor expanded in z around 0 89.5%
mul-1-neg89.5%
unsub-neg89.5%
associate-/l*91.3%
Simplified91.3%
if 3.19999999999999983e67 < z Initial program 96.0%
Taylor expanded in z around inf 90.0%
Final simplification90.2%
(FPCore (x y z t a) :precision binary64 (if (<= a -6.4e-63) (+ x (* y (* (- z t) (/ 1.0 a)))) (+ x (/ (- z t) (/ a y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -6.4e-63) {
tmp = x + (y * ((z - t) * (1.0 / a)));
} else {
tmp = x + ((z - t) / (a / 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 (a <= (-6.4d-63)) then
tmp = x + (y * ((z - t) * (1.0d0 / a)))
else
tmp = x + ((z - t) / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -6.4e-63) {
tmp = x + (y * ((z - t) * (1.0 / a)));
} else {
tmp = x + ((z - t) / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -6.4e-63: tmp = x + (y * ((z - t) * (1.0 / a))) else: tmp = x + ((z - t) / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -6.4e-63) tmp = Float64(x + Float64(y * Float64(Float64(z - t) * Float64(1.0 / a)))); else tmp = Float64(x + Float64(Float64(z - t) / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -6.4e-63) tmp = x + (y * ((z - t) * (1.0 / a))); else tmp = x + ((z - t) / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -6.4e-63], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.4 \cdot 10^{-63}:\\
\;\;\;\;x + y \cdot \left(\left(z - t\right) \cdot \frac{1}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z - t}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -6.39999999999999978e-63Initial program 94.1%
clear-num94.1%
inv-pow94.1%
associate-/r*93.6%
Applied egg-rr93.6%
unpow-193.6%
associate-/r/93.3%
clear-num93.6%
div-inv93.5%
associate-*l*99.8%
Applied egg-rr99.8%
if -6.39999999999999978e-63 < a Initial program 92.9%
clear-num92.9%
inv-pow92.9%
associate-/r*99.2%
Applied egg-rr99.2%
unpow-199.2%
clear-num99.3%
Applied egg-rr99.3%
Final simplification99.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -9e+47) (not (<= z 1.3e+61))) (* y (/ z a)) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -9e+47) || !(z <= 1.3e+61)) {
tmp = y * (z / a);
} 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 ((z <= (-9d+47)) .or. (.not. (z <= 1.3d+61))) then
tmp = y * (z / a)
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 ((z <= -9e+47) || !(z <= 1.3e+61)) {
tmp = y * (z / a);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -9e+47) or not (z <= 1.3e+61): tmp = y * (z / a) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -9e+47) || !(z <= 1.3e+61)) tmp = Float64(y * Float64(z / a)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -9e+47) || ~((z <= 1.3e+61))) tmp = y * (z / a); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -9e+47], N[Not[LessEqual[z, 1.3e+61]], $MachinePrecision]], N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9 \cdot 10^{+47} \lor \neg \left(z \leq 1.3 \cdot 10^{+61}\right):\\
\;\;\;\;y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -8.99999999999999958e47 or 1.29999999999999986e61 < z Initial program 88.7%
Taylor expanded in x around 0 66.3%
Taylor expanded in z around inf 58.9%
associate-/l*60.5%
Simplified60.5%
if -8.99999999999999958e47 < z < 1.29999999999999986e61Initial program 96.3%
Taylor expanded in x around inf 50.3%
Final simplification54.3%
(FPCore (x y z t a) :precision binary64 (if (<= x -1.75e-67) x (if (<= x 7200000.0) (* z (/ y a)) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -1.75e-67) {
tmp = x;
} else if (x <= 7200000.0) {
tmp = z * (y / a);
} 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 (x <= (-1.75d-67)) then
tmp = x
else if (x <= 7200000.0d0) then
tmp = z * (y / a)
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 (x <= -1.75e-67) {
tmp = x;
} else if (x <= 7200000.0) {
tmp = z * (y / a);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -1.75e-67: tmp = x elif x <= 7200000.0: tmp = z * (y / a) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -1.75e-67) tmp = x; elseif (x <= 7200000.0) tmp = Float64(z * Float64(y / a)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -1.75e-67) tmp = x; elseif (x <= 7200000.0) tmp = z * (y / a); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -1.75e-67], x, If[LessEqual[x, 7200000.0], N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.75 \cdot 10^{-67}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 7200000:\\
\;\;\;\;z \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -1.75e-67 or 7.2e6 < x Initial program 94.5%
Taylor expanded in x around inf 62.5%
if -1.75e-67 < x < 7.2e6Initial program 91.9%
Taylor expanded in x around 0 76.3%
Taylor expanded in z around inf 39.9%
associate-/l*40.6%
Simplified40.6%
clear-num40.6%
un-div-inv40.6%
Applied egg-rr40.6%
associate-/r/43.6%
Applied egg-rr43.6%
Final simplification53.9%
(FPCore (x y z t a) :precision binary64 (+ x (/ (- z t) (/ a y))))
double code(double x, double y, double z, double t, double a) {
return x + ((z - t) / (a / y));
}
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 + ((z - t) / (a / y))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((z - t) / (a / y));
}
def code(x, y, z, t, a): return x + ((z - t) / (a / y))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(z - t) / Float64(a / y))) end
function tmp = code(x, y, z, t, a) tmp = x + ((z - t) / (a / y)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(z - t), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{z - t}{\frac{a}{y}}
\end{array}
Initial program 93.3%
clear-num93.3%
inv-pow93.3%
associate-/r*97.4%
Applied egg-rr97.4%
unpow-197.4%
clear-num97.4%
Applied egg-rr97.4%
Final simplification97.4%
(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 93.3%
Taylor expanded in x around inf 41.3%
Final simplification41.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ a (- z t))))
(if (< y -1.0761266216389975e-10)
(+ x (/ 1.0 (/ t_1 y)))
(if (< y 2.894426862792089e-49)
(+ x (/ (* y (- z t)) a))
(+ x (/ y t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = a / (z - t);
double tmp;
if (y < -1.0761266216389975e-10) {
tmp = x + (1.0 / (t_1 / y));
} else if (y < 2.894426862792089e-49) {
tmp = x + ((y * (z - t)) / a);
} 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 = a / (z - t)
if (y < (-1.0761266216389975d-10)) then
tmp = x + (1.0d0 / (t_1 / y))
else if (y < 2.894426862792089d-49) then
tmp = x + ((y * (z - t)) / a)
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 = a / (z - t);
double tmp;
if (y < -1.0761266216389975e-10) {
tmp = x + (1.0 / (t_1 / y));
} else if (y < 2.894426862792089e-49) {
tmp = x + ((y * (z - t)) / a);
} else {
tmp = x + (y / t_1);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = a / (z - t) tmp = 0 if y < -1.0761266216389975e-10: tmp = x + (1.0 / (t_1 / y)) elif y < 2.894426862792089e-49: tmp = x + ((y * (z - t)) / a) else: tmp = x + (y / t_1) return tmp
function code(x, y, z, t, a) t_1 = Float64(a / Float64(z - t)) tmp = 0.0 if (y < -1.0761266216389975e-10) tmp = Float64(x + Float64(1.0 / Float64(t_1 / y))); elseif (y < 2.894426862792089e-49) tmp = Float64(x + Float64(Float64(y * Float64(z - t)) / a)); else tmp = Float64(x + Float64(y / t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = a / (z - t); tmp = 0.0; if (y < -1.0761266216389975e-10) tmp = x + (1.0 / (t_1 / y)); elseif (y < 2.894426862792089e-49) tmp = x + ((y * (z - t)) / a); else tmp = x + (y / t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[Less[y, -1.0761266216389975e-10], N[(x + N[(1.0 / N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[y, 2.894426862792089e-49], N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a}{z - t}\\
\mathbf{if}\;y < -1.0761266216389975 \cdot 10^{-10}:\\
\;\;\;\;x + \frac{1}{\frac{t\_1}{y}}\\
\mathbf{elif}\;y < 2.894426862792089 \cdot 10^{-49}:\\
\;\;\;\;x + \frac{y \cdot \left(z - t\right)}{a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{t\_1}\\
\end{array}
\end{array}
herbie shell --seed 2024046
(FPCore (x y z t a)
:name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, E"
:precision binary64
:alt
(if (< y -1.0761266216389975e-10) (+ x (/ 1.0 (/ (/ a (- z t)) y))) (if (< y 2.894426862792089e-49) (+ x (/ (* y (- z t)) a)) (+ x (/ y (/ a (- z t))))))
(+ x (/ (* y (- z t)) a)))