
(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 7 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 (+ x (* (/ y a) (- t z))))
double code(double x, double y, double z, double t, double a) {
return x + ((y / a) * (t - z));
}
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))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y / a) * (t - z));
}
def code(x, y, z, t, a): return x + ((y / a) * (t - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y / a) * Float64(t - z))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y / a) * (t - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y / a), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{a} \cdot \left(t - z\right)
\end{array}
Initial program 89.2%
associate-*l/97.1%
Simplified97.1%
Final simplification97.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (/ y a) t)))
(if (<= t -7.2e+133)
t_1
(if (<= t -6.5e-140)
x
(if (<= t -4.1e-215) (* (/ z a) (- y)) (if (<= t 9.8e+107) x t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y / a) * t;
double tmp;
if (t <= -7.2e+133) {
tmp = t_1;
} else if (t <= -6.5e-140) {
tmp = x;
} else if (t <= -4.1e-215) {
tmp = (z / a) * -y;
} else if (t <= 9.8e+107) {
tmp = x;
} 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 / a) * t
if (t <= (-7.2d+133)) then
tmp = t_1
else if (t <= (-6.5d-140)) then
tmp = x
else if (t <= (-4.1d-215)) then
tmp = (z / a) * -y
else if (t <= 9.8d+107) then
tmp = x
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 / a) * t;
double tmp;
if (t <= -7.2e+133) {
tmp = t_1;
} else if (t <= -6.5e-140) {
tmp = x;
} else if (t <= -4.1e-215) {
tmp = (z / a) * -y;
} else if (t <= 9.8e+107) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y / a) * t tmp = 0 if t <= -7.2e+133: tmp = t_1 elif t <= -6.5e-140: tmp = x elif t <= -4.1e-215: tmp = (z / a) * -y elif t <= 9.8e+107: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y / a) * t) tmp = 0.0 if (t <= -7.2e+133) tmp = t_1; elseif (t <= -6.5e-140) tmp = x; elseif (t <= -4.1e-215) tmp = Float64(Float64(z / a) * Float64(-y)); elseif (t <= 9.8e+107) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y / a) * t; tmp = 0.0; if (t <= -7.2e+133) tmp = t_1; elseif (t <= -6.5e-140) tmp = x; elseif (t <= -4.1e-215) tmp = (z / a) * -y; elseif (t <= 9.8e+107) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -7.2e+133], t$95$1, If[LessEqual[t, -6.5e-140], x, If[LessEqual[t, -4.1e-215], N[(N[(z / a), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[t, 9.8e+107], x, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{a} \cdot t\\
\mathbf{if}\;t \leq -7.2 \cdot 10^{+133}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -6.5 \cdot 10^{-140}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq -4.1 \cdot 10^{-215}:\\
\;\;\;\;\frac{z}{a} \cdot \left(-y\right)\\
\mathbf{elif}\;t \leq 9.8 \cdot 10^{+107}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -7.19999999999999956e133 or 9.8000000000000003e107 < t Initial program 84.9%
associate-*l/97.2%
Simplified97.2%
Taylor expanded in t around inf 66.2%
*-commutative66.2%
associate-*r/76.0%
Simplified76.0%
if -7.19999999999999956e133 < t < -6.4999999999999995e-140 or -4.09999999999999985e-215 < t < 9.8000000000000003e107Initial program 91.8%
associate-*l/98.0%
Simplified98.0%
Taylor expanded in x around inf 55.6%
if -6.4999999999999995e-140 < t < -4.09999999999999985e-215Initial program 91.0%
associate-*l/82.9%
Simplified82.9%
*-commutative82.9%
clear-num82.9%
un-div-inv82.6%
Applied egg-rr82.6%
Taylor expanded in z around inf 55.7%
mul-1-neg55.7%
associate-*r/64.5%
distribute-rgt-neg-in64.5%
distribute-neg-frac64.5%
Simplified64.5%
Final simplification63.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -2.8e-5) (not (<= y 5.3e+17))) (* y (/ (- t z) a)) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -2.8e-5) || !(y <= 5.3e+17)) {
tmp = y * ((t - 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 ((y <= (-2.8d-5)) .or. (.not. (y <= 5.3d+17))) then
tmp = y * ((t - 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 ((y <= -2.8e-5) || !(y <= 5.3e+17)) {
tmp = y * ((t - z) / a);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -2.8e-5) or not (y <= 5.3e+17): tmp = y * ((t - z) / a) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -2.8e-5) || !(y <= 5.3e+17)) tmp = Float64(y * Float64(Float64(t - z) / a)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -2.8e-5) || ~((y <= 5.3e+17))) tmp = y * ((t - z) / a); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -2.8e-5], N[Not[LessEqual[y, 5.3e+17]], $MachinePrecision]], N[(y * N[(N[(t - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.8 \cdot 10^{-5} \lor \neg \left(y \leq 5.3 \cdot 10^{+17}\right):\\
\;\;\;\;y \cdot \frac{t - z}{a}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -2.79999999999999996e-5 or 5.3e17 < y Initial program 81.0%
associate-*l/96.4%
Simplified96.4%
*-commutative96.4%
clear-num96.3%
un-div-inv96.6%
Applied egg-rr96.6%
Taylor expanded in x around 0 67.7%
mul-1-neg67.7%
associate-*l/83.0%
*-commutative83.0%
distribute-rgt-neg-in83.0%
neg-sub083.0%
div-sub81.5%
associate--r-81.5%
neg-sub081.5%
mul-1-neg81.5%
+-commutative81.5%
mul-1-neg81.5%
sub-neg81.5%
div-sub83.0%
Simplified83.0%
if -2.79999999999999996e-5 < y < 5.3e17Initial program 98.3%
associate-*l/97.8%
Simplified97.8%
Taylor expanded in x around inf 65.9%
Final simplification74.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -7e+32) (not (<= y 7.2e+53))) (* y (/ (- t z) a)) (+ x (* (/ y a) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -7e+32) || !(y <= 7.2e+53)) {
tmp = y * ((t - z) / a);
} else {
tmp = x + ((y / 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 ((y <= (-7d+32)) .or. (.not. (y <= 7.2d+53))) then
tmp = y * ((t - z) / a)
else
tmp = x + ((y / 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 ((y <= -7e+32) || !(y <= 7.2e+53)) {
tmp = y * ((t - z) / a);
} else {
tmp = x + ((y / a) * t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -7e+32) or not (y <= 7.2e+53): tmp = y * ((t - z) / a) else: tmp = x + ((y / a) * t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -7e+32) || !(y <= 7.2e+53)) tmp = Float64(y * Float64(Float64(t - z) / a)); else tmp = Float64(x + Float64(Float64(y / a) * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -7e+32) || ~((y <= 7.2e+53))) tmp = y * ((t - z) / a); else tmp = x + ((y / a) * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -7e+32], N[Not[LessEqual[y, 7.2e+53]], $MachinePrecision]], N[(y * N[(N[(t - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7 \cdot 10^{+32} \lor \neg \left(y \leq 7.2 \cdot 10^{+53}\right):\\
\;\;\;\;y \cdot \frac{t - z}{a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{a} \cdot t\\
\end{array}
\end{array}
if y < -7.0000000000000002e32 or 7.2e53 < y Initial program 78.9%
associate-*l/96.0%
Simplified96.0%
*-commutative96.0%
clear-num96.0%
un-div-inv96.3%
Applied egg-rr96.3%
Taylor expanded in x around 0 67.7%
mul-1-neg67.7%
associate-*l/84.6%
*-commutative84.6%
distribute-rgt-neg-in84.6%
neg-sub084.6%
div-sub83.0%
associate--r-83.0%
neg-sub083.0%
mul-1-neg83.0%
+-commutative83.0%
mul-1-neg83.0%
sub-neg83.0%
div-sub84.6%
Simplified84.6%
if -7.0000000000000002e32 < y < 7.2e53Initial program 98.5%
associate-*l/98.0%
Simplified98.0%
Taylor expanded in z around 0 85.5%
cancel-sign-sub-inv85.5%
metadata-eval85.5%
*-lft-identity85.5%
+-commutative85.5%
*-commutative85.5%
associate-*r/86.0%
Simplified86.0%
Final simplification85.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -2.4e+128) (not (<= t 5.8e-42))) (+ x (* (/ y a) t)) (- x (/ (* y z) a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.4e+128) || !(t <= 5.8e-42)) {
tmp = x + ((y / a) * t);
} 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 ((t <= (-2.4d+128)) .or. (.not. (t <= 5.8d-42))) then
tmp = x + ((y / a) * t)
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 ((t <= -2.4e+128) || !(t <= 5.8e-42)) {
tmp = x + ((y / a) * t);
} else {
tmp = x - ((y * z) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -2.4e+128) or not (t <= 5.8e-42): tmp = x + ((y / a) * t) else: tmp = x - ((y * z) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -2.4e+128) || !(t <= 5.8e-42)) tmp = Float64(x + Float64(Float64(y / a) * t)); 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 ((t <= -2.4e+128) || ~((t <= 5.8e-42))) tmp = x + ((y / a) * t); else tmp = x - ((y * z) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2.4e+128], N[Not[LessEqual[t, 5.8e-42]], $MachinePrecision]], N[(x + N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.4 \cdot 10^{+128} \lor \neg \left(t \leq 5.8 \cdot 10^{-42}\right):\\
\;\;\;\;x + \frac{y}{a} \cdot t\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y \cdot z}{a}\\
\end{array}
\end{array}
if t < -2.4000000000000002e128 or 5.8000000000000006e-42 < t Initial program 86.8%
associate-*l/97.1%
Simplified97.1%
Taylor expanded in z around 0 80.9%
cancel-sign-sub-inv80.9%
metadata-eval80.9%
*-lft-identity80.9%
+-commutative80.9%
*-commutative80.9%
associate-*r/90.7%
Simplified90.7%
if -2.4000000000000002e128 < t < 5.8000000000000006e-42Initial program 91.5%
associate-*l/97.0%
Simplified97.0%
Taylor expanded in z around inf 82.2%
Final simplification86.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -7.2e+133) (not (<= t 5.5e+108))) (* (/ y a) t) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -7.2e+133) || !(t <= 5.5e+108)) {
tmp = (y / a) * t;
} 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.2d+133)) .or. (.not. (t <= 5.5d+108))) then
tmp = (y / a) * t
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.2e+133) || !(t <= 5.5e+108)) {
tmp = (y / a) * t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -7.2e+133) or not (t <= 5.5e+108): tmp = (y / a) * t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -7.2e+133) || !(t <= 5.5e+108)) tmp = Float64(Float64(y / a) * t); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -7.2e+133) || ~((t <= 5.5e+108))) tmp = (y / a) * t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -7.2e+133], N[Not[LessEqual[t, 5.5e+108]], $MachinePrecision]], N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.2 \cdot 10^{+133} \lor \neg \left(t \leq 5.5 \cdot 10^{+108}\right):\\
\;\;\;\;\frac{y}{a} \cdot t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -7.19999999999999956e133 or 5.4999999999999998e108 < t Initial program 84.9%
associate-*l/97.2%
Simplified97.2%
Taylor expanded in t around inf 66.2%
*-commutative66.2%
associate-*r/76.0%
Simplified76.0%
if -7.19999999999999956e133 < t < 5.4999999999999998e108Initial program 91.8%
associate-*l/97.0%
Simplified97.0%
Taylor expanded in x around inf 53.3%
Final simplification61.6%
(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 89.2%
associate-*l/97.1%
Simplified97.1%
Taylor expanded in x around inf 40.5%
Final simplification40.5%
(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 2023268
(FPCore (x y z t a)
:name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, F"
:precision binary64
:herbie-target
(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)))