
(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) (- z t))))
double code(double x, double y, double z, double t, double a) {
return x + ((y / a) * (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) * (z - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y / a) * (z - t));
}
def code(x, y, z, t, a): return x + ((y / a) * (z - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y / a) * Float64(z - t))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y / a) * (z - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y / a), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{a} \cdot \left(z - t\right)
\end{array}
Initial program 92.9%
associate-*l/97.5%
Simplified97.5%
Final simplification97.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.7e+114) (not (<= t 3.1e+91))) (* (/ y a) (- t)) (+ x (/ y (/ a z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.7e+114) || !(t <= 3.1e+91)) {
tmp = (y / a) * -t;
} 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.7d+114)) .or. (.not. (t <= 3.1d+91))) then
tmp = (y / a) * -t
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.7e+114) || !(t <= 3.1e+91)) {
tmp = (y / a) * -t;
} else {
tmp = x + (y / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.7e+114) or not (t <= 3.1e+91): tmp = (y / a) * -t else: tmp = x + (y / (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.7e+114) || !(t <= 3.1e+91)) tmp = Float64(Float64(y / a) * Float64(-t)); 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.7e+114) || ~((t <= 3.1e+91))) tmp = (y / a) * -t; else tmp = x + (y / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.7e+114], N[Not[LessEqual[t, 3.1e+91]], $MachinePrecision]], N[(N[(y / a), $MachinePrecision] * (-t)), $MachinePrecision], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{+114} \lor \neg \left(t \leq 3.1 \cdot 10^{+91}\right):\\
\;\;\;\;\frac{y}{a} \cdot \left(-t\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\end{array}
\end{array}
if t < -1.7e114 or 3.09999999999999998e91 < t Initial program 88.8%
associate-*l/98.5%
Simplified98.5%
Taylor expanded in z around 0 79.9%
mul-1-neg79.9%
associate-*l/89.6%
distribute-rgt-neg-out89.6%
+-commutative89.6%
*-commutative89.6%
distribute-lft-neg-out89.6%
unsub-neg89.6%
Simplified89.6%
Taylor expanded in x around 0 60.1%
mul-1-neg60.1%
associate-*l/69.8%
distribute-lft-neg-out69.8%
*-commutative69.8%
distribute-neg-frac69.8%
Simplified69.8%
if -1.7e114 < t < 3.09999999999999998e91Initial program 95.2%
associate-/l*98.1%
Simplified98.1%
Taylor expanded in z around inf 82.9%
Final simplification78.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -3.3e+124) (not (<= t 6.8e+89))) (* (/ y a) (- t)) (+ x (* (/ y a) z))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -3.3e+124) || !(t <= 6.8e+89)) {
tmp = (y / a) * -t;
} 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 <= (-3.3d+124)) .or. (.not. (t <= 6.8d+89))) then
tmp = (y / a) * -t
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 <= -3.3e+124) || !(t <= 6.8e+89)) {
tmp = (y / a) * -t;
} else {
tmp = x + ((y / a) * z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -3.3e+124) or not (t <= 6.8e+89): tmp = (y / a) * -t else: tmp = x + ((y / a) * z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -3.3e+124) || !(t <= 6.8e+89)) tmp = Float64(Float64(y / a) * Float64(-t)); else tmp = Float64(x + Float64(Float64(y / a) * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -3.3e+124) || ~((t <= 6.8e+89))) tmp = (y / a) * -t; else tmp = x + ((y / a) * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -3.3e+124], N[Not[LessEqual[t, 6.8e+89]], $MachinePrecision]], N[(N[(y / a), $MachinePrecision] * (-t)), $MachinePrecision], N[(x + N[(N[(y / a), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.3 \cdot 10^{+124} \lor \neg \left(t \leq 6.8 \cdot 10^{+89}\right):\\
\;\;\;\;\frac{y}{a} \cdot \left(-t\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{a} \cdot z\\
\end{array}
\end{array}
if t < -3.30000000000000015e124 or 6.8000000000000004e89 < t Initial program 88.3%
associate-*l/98.5%
Simplified98.5%
Taylor expanded in z around 0 80.1%
mul-1-neg80.1%
associate-*l/90.2%
distribute-rgt-neg-out90.2%
+-commutative90.2%
*-commutative90.2%
distribute-lft-neg-out90.2%
unsub-neg90.2%
Simplified90.2%
Taylor expanded in x around 0 60.5%
mul-1-neg60.5%
associate-*l/70.6%
distribute-lft-neg-out70.6%
*-commutative70.6%
distribute-neg-frac70.6%
Simplified70.6%
if -3.30000000000000015e124 < t < 6.8000000000000004e89Initial program 95.3%
associate-*l/97.0%
Simplified97.0%
Taylor expanded in t around 0 80.6%
associate-*l/82.7%
*-commutative82.7%
Simplified82.7%
Final simplification78.5%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.7e+25) (+ x (* (/ y a) z)) (if (<= z 2.05e+49) (- x (* (/ y a) t)) (+ x (/ y (/ a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.7e+25) {
tmp = x + ((y / a) * z);
} else if (z <= 2.05e+49) {
tmp = x - ((y / a) * t);
} 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 (z <= (-1.7d+25)) then
tmp = x + ((y / a) * z)
else if (z <= 2.05d+49) then
tmp = x - ((y / a) * t)
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 (z <= -1.7e+25) {
tmp = x + ((y / a) * z);
} else if (z <= 2.05e+49) {
tmp = x - ((y / a) * t);
} else {
tmp = x + (y / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.7e+25: tmp = x + ((y / a) * z) elif z <= 2.05e+49: tmp = x - ((y / a) * t) else: tmp = x + (y / (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.7e+25) tmp = Float64(x + Float64(Float64(y / a) * z)); elseif (z <= 2.05e+49) tmp = Float64(x - Float64(Float64(y / a) * t)); 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 (z <= -1.7e+25) tmp = x + ((y / a) * z); elseif (z <= 2.05e+49) tmp = x - ((y / a) * t); else tmp = x + (y / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.7e+25], N[(x + N[(N[(y / a), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.05e+49], N[(x - N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.7 \cdot 10^{+25}:\\
\;\;\;\;x + \frac{y}{a} \cdot z\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+49}:\\
\;\;\;\;x - \frac{y}{a} \cdot t\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\end{array}
\end{array}
if z < -1.69999999999999992e25Initial program 88.2%
associate-*l/99.9%
Simplified99.9%
Taylor expanded in t around 0 79.4%
associate-*l/84.5%
*-commutative84.5%
Simplified84.5%
if -1.69999999999999992e25 < z < 2.05e49Initial program 95.2%
associate-*l/96.4%
Simplified96.4%
Taylor expanded in z around 0 87.8%
mul-1-neg87.8%
associate-*l/90.3%
distribute-rgt-neg-out90.3%
+-commutative90.3%
*-commutative90.3%
distribute-lft-neg-out90.3%
unsub-neg90.3%
Simplified90.3%
if 2.05e49 < z Initial program 91.8%
associate-/l*96.2%
Simplified96.2%
Taylor expanded in z around inf 85.2%
Final simplification87.9%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.9e+26) (+ x (* (/ y a) z)) (if (<= z 3.4e+51) (- x (/ t (/ a y))) (+ x (/ y (/ a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.9e+26) {
tmp = x + ((y / a) * z);
} else if (z <= 3.4e+51) {
tmp = x - (t / (a / 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 (z <= (-1.9d+26)) then
tmp = x + ((y / a) * z)
else if (z <= 3.4d+51) then
tmp = x - (t / (a / 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 (z <= -1.9e+26) {
tmp = x + ((y / a) * z);
} else if (z <= 3.4e+51) {
tmp = x - (t / (a / y));
} else {
tmp = x + (y / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.9e+26: tmp = x + ((y / a) * z) elif z <= 3.4e+51: tmp = x - (t / (a / y)) else: tmp = x + (y / (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.9e+26) tmp = Float64(x + Float64(Float64(y / a) * z)); elseif (z <= 3.4e+51) tmp = Float64(x - Float64(t / Float64(a / 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 (z <= -1.9e+26) tmp = x + ((y / a) * z); elseif (z <= 3.4e+51) tmp = x - (t / (a / y)); else tmp = x + (y / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.9e+26], N[(x + N[(N[(y / a), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.4e+51], N[(x - N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+26}:\\
\;\;\;\;x + \frac{y}{a} \cdot z\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{+51}:\\
\;\;\;\;x - \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\end{array}
\end{array}
if z < -1.9000000000000001e26Initial program 88.2%
associate-*l/99.9%
Simplified99.9%
Taylor expanded in t around 0 79.4%
associate-*l/84.5%
*-commutative84.5%
Simplified84.5%
if -1.9000000000000001e26 < z < 3.39999999999999984e51Initial program 95.2%
associate-*l/96.4%
Simplified96.4%
Taylor expanded in z around 0 87.8%
mul-1-neg87.8%
associate-*l/90.3%
distribute-rgt-neg-out90.3%
+-commutative90.3%
*-commutative90.3%
distribute-lft-neg-out90.3%
unsub-neg90.3%
Simplified90.3%
Taylor expanded in t around 0 87.8%
*-commutative87.8%
associate-/l*90.4%
Simplified90.4%
if 3.39999999999999984e51 < z Initial program 91.8%
associate-/l*96.2%
Simplified96.2%
Taylor expanded in z around inf 85.2%
Final simplification87.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.35e+18) (not (<= t 4.25e+86))) (* (/ y a) (- t)) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.35e+18) || !(t <= 4.25e+86)) {
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 <= (-1.35d+18)) .or. (.not. (t <= 4.25d+86))) 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 <= -1.35e+18) || !(t <= 4.25e+86)) {
tmp = (y / a) * -t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.35e+18) or not (t <= 4.25e+86): tmp = (y / a) * -t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.35e+18) || !(t <= 4.25e+86)) tmp = Float64(Float64(y / a) * Float64(-t)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.35e+18) || ~((t <= 4.25e+86))) tmp = (y / a) * -t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.35e+18], N[Not[LessEqual[t, 4.25e+86]], $MachinePrecision]], N[(N[(y / a), $MachinePrecision] * (-t)), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.35 \cdot 10^{+18} \lor \neg \left(t \leq 4.25 \cdot 10^{+86}\right):\\
\;\;\;\;\frac{y}{a} \cdot \left(-t\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -1.35e18 or 4.2500000000000003e86 < t Initial program 89.3%
associate-*l/98.8%
Simplified98.8%
Taylor expanded in z around 0 77.4%
mul-1-neg77.4%
associate-*l/86.0%
distribute-rgt-neg-out86.0%
+-commutative86.0%
*-commutative86.0%
distribute-lft-neg-out86.0%
unsub-neg86.0%
Simplified86.0%
Taylor expanded in x around 0 56.6%
mul-1-neg56.6%
associate-*l/65.2%
distribute-lft-neg-out65.2%
*-commutative65.2%
distribute-neg-frac65.2%
Simplified65.2%
if -1.35e18 < t < 4.2500000000000003e86Initial program 95.8%
associate-*l/96.5%
Simplified96.5%
Taylor expanded in x around inf 48.9%
Final simplification56.2%
(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 92.9%
associate-*l/97.5%
Simplified97.5%
Taylor expanded in x around inf 37.2%
Final simplification37.2%
(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 2023192
(FPCore (x y z t a)
:name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, E"
: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)))