
(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 11 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 92.9%
associate-*l/96.2%
Simplified96.2%
Final simplification96.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (/ y a) t)) (t_2 (* (/ y a) (- z))))
(if (<= z -8.3e+77)
t_2
(if (<= z -2.7e-102)
x
(if (<= z -5.7e-238)
t_1
(if (<= z 5.2e-241) x (if (<= z 3800000.0) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y / a) * t;
double t_2 = (y / a) * -z;
double tmp;
if (z <= -8.3e+77) {
tmp = t_2;
} else if (z <= -2.7e-102) {
tmp = x;
} else if (z <= -5.7e-238) {
tmp = t_1;
} else if (z <= 5.2e-241) {
tmp = x;
} else if (z <= 3800000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
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) :: t_2
real(8) :: tmp
t_1 = (y / a) * t
t_2 = (y / a) * -z
if (z <= (-8.3d+77)) then
tmp = t_2
else if (z <= (-2.7d-102)) then
tmp = x
else if (z <= (-5.7d-238)) then
tmp = t_1
else if (z <= 5.2d-241) then
tmp = x
else if (z <= 3800000.0d0) then
tmp = t_1
else
tmp = t_2
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 t_2 = (y / a) * -z;
double tmp;
if (z <= -8.3e+77) {
tmp = t_2;
} else if (z <= -2.7e-102) {
tmp = x;
} else if (z <= -5.7e-238) {
tmp = t_1;
} else if (z <= 5.2e-241) {
tmp = x;
} else if (z <= 3800000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y / a) * t t_2 = (y / a) * -z tmp = 0 if z <= -8.3e+77: tmp = t_2 elif z <= -2.7e-102: tmp = x elif z <= -5.7e-238: tmp = t_1 elif z <= 5.2e-241: tmp = x elif z <= 3800000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y / a) * t) t_2 = Float64(Float64(y / a) * Float64(-z)) tmp = 0.0 if (z <= -8.3e+77) tmp = t_2; elseif (z <= -2.7e-102) tmp = x; elseif (z <= -5.7e-238) tmp = t_1; elseif (z <= 5.2e-241) tmp = x; elseif (z <= 3800000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y / a) * t; t_2 = (y / a) * -z; tmp = 0.0; if (z <= -8.3e+77) tmp = t_2; elseif (z <= -2.7e-102) tmp = x; elseif (z <= -5.7e-238) tmp = t_1; elseif (z <= 5.2e-241) tmp = x; elseif (z <= 3800000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y / a), $MachinePrecision] * (-z)), $MachinePrecision]}, If[LessEqual[z, -8.3e+77], t$95$2, If[LessEqual[z, -2.7e-102], x, If[LessEqual[z, -5.7e-238], t$95$1, If[LessEqual[z, 5.2e-241], x, If[LessEqual[z, 3800000.0], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{a} \cdot t\\
t_2 := \frac{y}{a} \cdot \left(-z\right)\\
\mathbf{if}\;z \leq -8.3 \cdot 10^{+77}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -2.7 \cdot 10^{-102}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -5.7 \cdot 10^{-238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-241}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 3800000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -8.2999999999999998e77 or 3.8e6 < z Initial program 93.1%
associate-*l/93.1%
Simplified93.1%
Taylor expanded in z around inf 82.7%
associate-*l/86.1%
*-commutative86.1%
Simplified86.1%
Taylor expanded in x around 0 53.4%
associate-*r/53.4%
*-commutative53.4%
associate-*r/53.4%
associate-*r/56.3%
neg-mul-156.3%
distribute-rgt-neg-in56.3%
Simplified56.3%
if -8.2999999999999998e77 < z < -2.7e-102 or -5.70000000000000022e-238 < z < 5.1999999999999998e-241Initial program 96.9%
associate-*l/97.1%
Simplified97.1%
Taylor expanded in z around inf 75.5%
associate-*l/77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in x around inf 68.1%
if -2.7e-102 < z < -5.70000000000000022e-238 or 5.1999999999999998e-241 < z < 3.8e6Initial program 89.8%
associate-/l*96.8%
Simplified96.8%
Taylor expanded in z around 0 84.8%
associate-*r/84.8%
neg-mul-184.8%
Simplified84.8%
Taylor expanded in x around 0 47.7%
associate-*r/55.6%
Simplified55.6%
Final simplification59.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ t a))))
(if (<= t -4.1e+96)
t_1
(if (<= t 4.5e-60)
x
(if (<= t 9e-39) t_1 (if (<= t 3.2e+119) x (* (/ y a) t)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (t / a);
double tmp;
if (t <= -4.1e+96) {
tmp = t_1;
} else if (t <= 4.5e-60) {
tmp = x;
} else if (t <= 9e-39) {
tmp = t_1;
} else if (t <= 3.2e+119) {
tmp = x;
} else {
tmp = (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) :: t_1
real(8) :: tmp
t_1 = y * (t / a)
if (t <= (-4.1d+96)) then
tmp = t_1
else if (t <= 4.5d-60) then
tmp = x
else if (t <= 9d-39) then
tmp = t_1
else if (t <= 3.2d+119) then
tmp = x
else
tmp = (y / a) * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * (t / a);
double tmp;
if (t <= -4.1e+96) {
tmp = t_1;
} else if (t <= 4.5e-60) {
tmp = x;
} else if (t <= 9e-39) {
tmp = t_1;
} else if (t <= 3.2e+119) {
tmp = x;
} else {
tmp = (y / a) * t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (t / a) tmp = 0 if t <= -4.1e+96: tmp = t_1 elif t <= 4.5e-60: tmp = x elif t <= 9e-39: tmp = t_1 elif t <= 3.2e+119: tmp = x else: tmp = (y / a) * t return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(t / a)) tmp = 0.0 if (t <= -4.1e+96) tmp = t_1; elseif (t <= 4.5e-60) tmp = x; elseif (t <= 9e-39) tmp = t_1; elseif (t <= 3.2e+119) tmp = x; else tmp = Float64(Float64(y / a) * t); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (t / a); tmp = 0.0; if (t <= -4.1e+96) tmp = t_1; elseif (t <= 4.5e-60) tmp = x; elseif (t <= 9e-39) tmp = t_1; elseif (t <= 3.2e+119) tmp = x; else tmp = (y / a) * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.1e+96], t$95$1, If[LessEqual[t, 4.5e-60], x, If[LessEqual[t, 9e-39], t$95$1, If[LessEqual[t, 3.2e+119], x, N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{t}{a}\\
\mathbf{if}\;t \leq -4.1 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-60}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 9 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+119}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{a} \cdot t\\
\end{array}
\end{array}
if t < -4.09999999999999998e96 or 4.50000000000000001e-60 < t < 9.0000000000000002e-39Initial program 85.6%
associate-/l*93.6%
Simplified93.6%
Taylor expanded in z around 0 82.1%
associate-*r/82.1%
neg-mul-182.1%
Simplified82.1%
Taylor expanded in x around 0 62.7%
associate-/l*68.8%
associate-/r/74.6%
Applied egg-rr74.6%
if -4.09999999999999998e96 < t < 4.50000000000000001e-60 or 9.0000000000000002e-39 < t < 3.19999999999999989e119Initial program 94.6%
associate-*l/97.0%
Simplified97.0%
Taylor expanded in z around inf 82.2%
associate-*l/85.7%
*-commutative85.7%
Simplified85.7%
Taylor expanded in x around inf 54.1%
if 3.19999999999999989e119 < t Initial program 94.0%
associate-/l*85.3%
Simplified85.3%
Taylor expanded in z around 0 74.8%
associate-*r/74.8%
neg-mul-174.8%
Simplified74.8%
Taylor expanded in x around 0 61.0%
associate-*r/61.7%
Simplified61.7%
Final simplification58.8%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.95e+96)
(* y (/ t a))
(if (<= t 4.5e-60)
x
(if (<= t 5.3e-39) (/ (* y t) a) (if (<= t 6.8e+118) x (* (/ y a) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.95e+96) {
tmp = y * (t / a);
} else if (t <= 4.5e-60) {
tmp = x;
} else if (t <= 5.3e-39) {
tmp = (y * t) / a;
} else if (t <= 6.8e+118) {
tmp = x;
} else {
tmp = (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 (t <= (-1.95d+96)) then
tmp = y * (t / a)
else if (t <= 4.5d-60) then
tmp = x
else if (t <= 5.3d-39) then
tmp = (y * t) / a
else if (t <= 6.8d+118) then
tmp = x
else
tmp = (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 (t <= -1.95e+96) {
tmp = y * (t / a);
} else if (t <= 4.5e-60) {
tmp = x;
} else if (t <= 5.3e-39) {
tmp = (y * t) / a;
} else if (t <= 6.8e+118) {
tmp = x;
} else {
tmp = (y / a) * t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.95e+96: tmp = y * (t / a) elif t <= 4.5e-60: tmp = x elif t <= 5.3e-39: tmp = (y * t) / a elif t <= 6.8e+118: tmp = x else: tmp = (y / a) * t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.95e+96) tmp = Float64(y * Float64(t / a)); elseif (t <= 4.5e-60) tmp = x; elseif (t <= 5.3e-39) tmp = Float64(Float64(y * t) / a); elseif (t <= 6.8e+118) tmp = x; else tmp = Float64(Float64(y / a) * t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.95e+96) tmp = y * (t / a); elseif (t <= 4.5e-60) tmp = x; elseif (t <= 5.3e-39) tmp = (y * t) / a; elseif (t <= 6.8e+118) tmp = x; else tmp = (y / a) * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.95e+96], N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e-60], x, If[LessEqual[t, 5.3e-39], N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[t, 6.8e+118], x, N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.95 \cdot 10^{+96}:\\
\;\;\;\;y \cdot \frac{t}{a}\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-60}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 5.3 \cdot 10^{-39}:\\
\;\;\;\;\frac{y \cdot t}{a}\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{+118}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{a} \cdot t\\
\end{array}
\end{array}
if t < -1.95e96Initial program 83.4%
associate-/l*92.7%
Simplified92.7%
Taylor expanded in z around 0 82.0%
associate-*r/82.0%
neg-mul-182.0%
Simplified82.0%
Taylor expanded in x around 0 59.5%
associate-/l*68.9%
associate-/r/73.3%
Applied egg-rr73.3%
if -1.95e96 < t < 4.50000000000000001e-60 or 5.30000000000000003e-39 < t < 6.79999999999999973e118Initial program 94.6%
associate-*l/97.0%
Simplified97.0%
Taylor expanded in z around inf 82.2%
associate-*l/85.7%
*-commutative85.7%
Simplified85.7%
Taylor expanded in x around inf 54.1%
if 4.50000000000000001e-60 < t < 5.30000000000000003e-39Initial program 100.0%
associate-/l*99.5%
Simplified99.5%
Taylor expanded in z around 0 83.2%
associate-*r/83.2%
neg-mul-183.2%
Simplified83.2%
Taylor expanded in x around 0 83.8%
if 6.79999999999999973e118 < t Initial program 94.0%
associate-/l*85.3%
Simplified85.3%
Taylor expanded in z around 0 74.8%
associate-*r/74.8%
neg-mul-174.8%
Simplified74.8%
Taylor expanded in x around 0 61.0%
associate-*r/61.7%
Simplified61.7%
Final simplification58.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* y t) a))))
(if (<= z -3.9e+186)
t_1
(if (<= z -1.42e+78)
(/ (- z) (/ a y))
(if (<= z 4e+174) t_1 (* (/ y a) (- z)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y * t) / a);
double tmp;
if (z <= -3.9e+186) {
tmp = t_1;
} else if (z <= -1.42e+78) {
tmp = -z / (a / y);
} else if (z <= 4e+174) {
tmp = t_1;
} else {
tmp = (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) :: t_1
real(8) :: tmp
t_1 = x + ((y * t) / a)
if (z <= (-3.9d+186)) then
tmp = t_1
else if (z <= (-1.42d+78)) then
tmp = -z / (a / y)
else if (z <= 4d+174) then
tmp = t_1
else
tmp = (y / a) * -z
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 * t) / a);
double tmp;
if (z <= -3.9e+186) {
tmp = t_1;
} else if (z <= -1.42e+78) {
tmp = -z / (a / y);
} else if (z <= 4e+174) {
tmp = t_1;
} else {
tmp = (y / a) * -z;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y * t) / a) tmp = 0 if z <= -3.9e+186: tmp = t_1 elif z <= -1.42e+78: tmp = -z / (a / y) elif z <= 4e+174: tmp = t_1 else: tmp = (y / a) * -z return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y * t) / a)) tmp = 0.0 if (z <= -3.9e+186) tmp = t_1; elseif (z <= -1.42e+78) tmp = Float64(Float64(-z) / Float64(a / y)); elseif (z <= 4e+174) tmp = t_1; else tmp = Float64(Float64(y / a) * Float64(-z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y * t) / a); tmp = 0.0; if (z <= -3.9e+186) tmp = t_1; elseif (z <= -1.42e+78) tmp = -z / (a / y); elseif (z <= 4e+174) tmp = t_1; else tmp = (y / a) * -z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.9e+186], t$95$1, If[LessEqual[z, -1.42e+78], N[((-z) / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4e+174], t$95$1, N[(N[(y / a), $MachinePrecision] * (-z)), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y \cdot t}{a}\\
\mathbf{if}\;z \leq -3.9 \cdot 10^{+186}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.42 \cdot 10^{+78}:\\
\;\;\;\;\frac{-z}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 4 \cdot 10^{+174}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{a} \cdot \left(-z\right)\\
\end{array}
\end{array}
if z < -3.9000000000000001e186 or -1.42e78 < z < 4.00000000000000028e174Initial program 93.4%
associate-/l*95.7%
Simplified95.7%
Taylor expanded in z around 0 81.0%
associate-*r/81.0%
neg-mul-181.0%
Simplified81.0%
Taylor expanded in x around 0 79.1%
if -3.9000000000000001e186 < z < -1.42e78Initial program 88.9%
associate-*l/99.7%
Simplified99.7%
Taylor expanded in z around inf 83.1%
associate-*l/93.9%
*-commutative93.9%
Simplified93.9%
Taylor expanded in x around 0 65.8%
associate-*r/65.8%
*-commutative65.8%
associate-*r/65.8%
associate-*r/76.6%
neg-mul-176.6%
distribute-rgt-neg-in76.6%
Simplified76.6%
distribute-rgt-neg-out76.6%
clear-num76.6%
div-inv76.7%
distribute-neg-frac76.7%
Applied egg-rr76.7%
if 4.00000000000000028e174 < z Initial program 92.0%
associate-*l/93.6%
Simplified93.6%
Taylor expanded in z around inf 84.7%
associate-*l/88.9%
*-commutative88.9%
Simplified88.9%
Taylor expanded in x around 0 59.7%
associate-*r/59.7%
*-commutative59.7%
associate-*r/59.7%
associate-*r/64.9%
neg-mul-164.9%
distribute-rgt-neg-in64.9%
Simplified64.9%
Final simplification77.0%
(FPCore (x y z t a)
:precision binary64
(if (<= z -6e+186)
(+ x (/ (* y t) a))
(if (<= z -1.42e+78)
(/ (- z) (/ a y))
(if (<= z 1.25e+174) (+ x (* y (/ t a))) (* (/ y a) (- z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -6e+186) {
tmp = x + ((y * t) / a);
} else if (z <= -1.42e+78) {
tmp = -z / (a / y);
} else if (z <= 1.25e+174) {
tmp = x + (y * (t / a));
} else {
tmp = (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 <= (-6d+186)) then
tmp = x + ((y * t) / a)
else if (z <= (-1.42d+78)) then
tmp = -z / (a / y)
else if (z <= 1.25d+174) then
tmp = x + (y * (t / a))
else
tmp = (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 <= -6e+186) {
tmp = x + ((y * t) / a);
} else if (z <= -1.42e+78) {
tmp = -z / (a / y);
} else if (z <= 1.25e+174) {
tmp = x + (y * (t / a));
} else {
tmp = (y / a) * -z;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -6e+186: tmp = x + ((y * t) / a) elif z <= -1.42e+78: tmp = -z / (a / y) elif z <= 1.25e+174: tmp = x + (y * (t / a)) else: tmp = (y / a) * -z return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -6e+186) tmp = Float64(x + Float64(Float64(y * t) / a)); elseif (z <= -1.42e+78) tmp = Float64(Float64(-z) / Float64(a / y)); elseif (z <= 1.25e+174) tmp = Float64(x + Float64(y * Float64(t / a))); else tmp = Float64(Float64(y / a) * Float64(-z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -6e+186) tmp = x + ((y * t) / a); elseif (z <= -1.42e+78) tmp = -z / (a / y); elseif (z <= 1.25e+174) tmp = x + (y * (t / a)); else tmp = (y / a) * -z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -6e+186], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.42e+78], N[((-z) / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.25e+174], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y / a), $MachinePrecision] * (-z)), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6 \cdot 10^{+186}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{elif}\;z \leq -1.42 \cdot 10^{+78}:\\
\;\;\;\;\frac{-z}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{+174}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{a} \cdot \left(-z\right)\\
\end{array}
\end{array}
if z < -5.99999999999999964e186Initial program 94.9%
associate-/l*90.0%
Simplified90.0%
Taylor expanded in z around 0 57.2%
associate-*r/57.2%
neg-mul-157.2%
Simplified57.2%
Taylor expanded in x around 0 57.1%
if -5.99999999999999964e186 < z < -1.42e78Initial program 88.9%
associate-*l/99.7%
Simplified99.7%
Taylor expanded in z around inf 83.1%
associate-*l/93.9%
*-commutative93.9%
Simplified93.9%
Taylor expanded in x around 0 65.8%
associate-*r/65.8%
*-commutative65.8%
associate-*r/65.8%
associate-*r/76.6%
neg-mul-176.6%
distribute-rgt-neg-in76.6%
Simplified76.6%
distribute-rgt-neg-out76.6%
clear-num76.6%
div-inv76.7%
distribute-neg-frac76.7%
Applied egg-rr76.7%
if -1.42e78 < z < 1.2499999999999999e174Initial program 93.2%
associate-/l*96.3%
Simplified96.3%
clear-num96.2%
associate-/r/96.2%
clear-num96.2%
Applied egg-rr96.2%
Taylor expanded in z around 0 83.3%
neg-mul-183.3%
distribute-neg-frac83.3%
Simplified83.3%
sub-neg83.3%
+-commutative83.3%
distribute-lft-neg-in83.3%
distribute-frac-neg83.3%
remove-double-neg83.3%
Applied egg-rr83.3%
if 1.2499999999999999e174 < z Initial program 92.0%
associate-*l/93.6%
Simplified93.6%
Taylor expanded in z around inf 84.7%
associate-*l/88.9%
*-commutative88.9%
Simplified88.9%
Taylor expanded in x around 0 59.7%
associate-*r/59.7%
*-commutative59.7%
associate-*r/59.7%
associate-*r/64.9%
neg-mul-164.9%
distribute-rgt-neg-in64.9%
Simplified64.9%
Final simplification78.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ y (/ a t)))))
(if (<= z -3.5e+186)
t_1
(if (<= z -1.42e+78)
(/ (- z) (/ a y))
(if (<= z 9.2e+173) t_1 (* (/ y a) (- z)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y / (a / t));
double tmp;
if (z <= -3.5e+186) {
tmp = t_1;
} else if (z <= -1.42e+78) {
tmp = -z / (a / y);
} else if (z <= 9.2e+173) {
tmp = t_1;
} else {
tmp = (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) :: t_1
real(8) :: tmp
t_1 = x + (y / (a / t))
if (z <= (-3.5d+186)) then
tmp = t_1
else if (z <= (-1.42d+78)) then
tmp = -z / (a / y)
else if (z <= 9.2d+173) then
tmp = t_1
else
tmp = (y / a) * -z
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 / (a / t));
double tmp;
if (z <= -3.5e+186) {
tmp = t_1;
} else if (z <= -1.42e+78) {
tmp = -z / (a / y);
} else if (z <= 9.2e+173) {
tmp = t_1;
} else {
tmp = (y / a) * -z;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y / (a / t)) tmp = 0 if z <= -3.5e+186: tmp = t_1 elif z <= -1.42e+78: tmp = -z / (a / y) elif z <= 9.2e+173: tmp = t_1 else: tmp = (y / a) * -z return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y / Float64(a / t))) tmp = 0.0 if (z <= -3.5e+186) tmp = t_1; elseif (z <= -1.42e+78) tmp = Float64(Float64(-z) / Float64(a / y)); elseif (z <= 9.2e+173) tmp = t_1; else tmp = Float64(Float64(y / a) * Float64(-z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y / (a / t)); tmp = 0.0; if (z <= -3.5e+186) tmp = t_1; elseif (z <= -1.42e+78) tmp = -z / (a / y); elseif (z <= 9.2e+173) tmp = t_1; else tmp = (y / a) * -z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.5e+186], t$95$1, If[LessEqual[z, -1.42e+78], N[((-z) / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.2e+173], t$95$1, N[(N[(y / a), $MachinePrecision] * (-z)), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y}{\frac{a}{t}}\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{+186}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.42 \cdot 10^{+78}:\\
\;\;\;\;\frac{-z}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{+173}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{a} \cdot \left(-z\right)\\
\end{array}
\end{array}
if z < -3.49999999999999987e186 or -1.42e78 < z < 9.1999999999999998e173Initial program 93.4%
associate-/l*95.7%
Simplified95.7%
clear-num95.6%
associate-/r/95.6%
clear-num95.6%
Applied egg-rr95.6%
Taylor expanded in z around 0 80.9%
neg-mul-180.9%
distribute-neg-frac80.9%
Simplified80.9%
sub-neg80.9%
+-commutative80.9%
distribute-lft-neg-in80.9%
distribute-frac-neg80.9%
remove-double-neg80.9%
Applied egg-rr80.9%
*-commutative80.9%
clear-num80.9%
un-div-inv81.0%
Applied egg-rr81.0%
if -3.49999999999999987e186 < z < -1.42e78Initial program 88.9%
associate-*l/99.7%
Simplified99.7%
Taylor expanded in z around inf 83.1%
associate-*l/93.9%
*-commutative93.9%
Simplified93.9%
Taylor expanded in x around 0 65.8%
associate-*r/65.8%
*-commutative65.8%
associate-*r/65.8%
associate-*r/76.6%
neg-mul-176.6%
distribute-rgt-neg-in76.6%
Simplified76.6%
distribute-rgt-neg-out76.6%
clear-num76.6%
div-inv76.7%
distribute-neg-frac76.7%
Applied egg-rr76.7%
if 9.1999999999999998e173 < z Initial program 92.0%
associate-*l/93.6%
Simplified93.6%
Taylor expanded in z around inf 84.7%
associate-*l/88.9%
*-commutative88.9%
Simplified88.9%
Taylor expanded in x around 0 59.7%
associate-*r/59.7%
*-commutative59.7%
associate-*r/59.7%
associate-*r/64.9%
neg-mul-164.9%
distribute-rgt-neg-in64.9%
Simplified64.9%
Final simplification78.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -3.5e+23) (not (<= z 0.72))) (- x (* (/ y a) z)) (+ x (/ y (/ a t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3.5e+23) || !(z <= 0.72)) {
tmp = x - ((y / a) * z);
} 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 ((z <= (-3.5d+23)) .or. (.not. (z <= 0.72d0))) then
tmp = x - ((y / a) * z)
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 ((z <= -3.5e+23) || !(z <= 0.72)) {
tmp = x - ((y / a) * z);
} else {
tmp = x + (y / (a / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -3.5e+23) or not (z <= 0.72): tmp = x - ((y / a) * z) else: tmp = x + (y / (a / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -3.5e+23) || !(z <= 0.72)) tmp = Float64(x - Float64(Float64(y / a) * z)); else tmp = Float64(x + Float64(y / Float64(a / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -3.5e+23) || ~((z <= 0.72))) tmp = x - ((y / a) * z); else tmp = x + (y / (a / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -3.5e+23], N[Not[LessEqual[z, 0.72]], $MachinePrecision]], N[(x - N[(N[(y / a), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{+23} \lor \neg \left(z \leq 0.72\right):\\
\;\;\;\;x - \frac{y}{a} \cdot z\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\
\end{array}
\end{array}
if z < -3.5000000000000002e23 or 0.71999999999999997 < z Initial program 93.0%
associate-*l/93.9%
Simplified93.9%
Taylor expanded in z around inf 82.9%
associate-*l/86.8%
*-commutative86.8%
Simplified86.8%
if -3.5000000000000002e23 < z < 0.71999999999999997Initial program 92.8%
associate-/l*96.6%
Simplified96.6%
clear-num96.5%
associate-/r/96.5%
clear-num96.6%
Applied egg-rr96.6%
Taylor expanded in z around 0 87.7%
neg-mul-187.7%
distribute-neg-frac87.7%
Simplified87.7%
sub-neg87.7%
+-commutative87.7%
distribute-lft-neg-in87.7%
distribute-frac-neg87.7%
remove-double-neg87.7%
Applied egg-rr87.7%
*-commutative87.7%
clear-num87.7%
un-div-inv87.7%
Applied egg-rr87.7%
Final simplification87.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -4.8e+23) (not (<= z 0.8))) (- x (* (/ y a) z)) (+ x (* (/ y a) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -4.8e+23) || !(z <= 0.8)) {
tmp = x - ((y / a) * z);
} 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 ((z <= (-4.8d+23)) .or. (.not. (z <= 0.8d0))) then
tmp = x - ((y / a) * z)
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 ((z <= -4.8e+23) || !(z <= 0.8)) {
tmp = x - ((y / a) * z);
} else {
tmp = x + ((y / a) * t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -4.8e+23) or not (z <= 0.8): tmp = x - ((y / a) * z) else: tmp = x + ((y / a) * t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -4.8e+23) || !(z <= 0.8)) tmp = Float64(x - Float64(Float64(y / a) * z)); 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 ((z <= -4.8e+23) || ~((z <= 0.8))) tmp = x - ((y / a) * z); else tmp = x + ((y / a) * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -4.8e+23], N[Not[LessEqual[z, 0.8]], $MachinePrecision]], N[(x - N[(N[(y / a), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.8 \cdot 10^{+23} \lor \neg \left(z \leq 0.8\right):\\
\;\;\;\;x - \frac{y}{a} \cdot z\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{a} \cdot t\\
\end{array}
\end{array}
if z < -4.8e23 or 0.80000000000000004 < z Initial program 93.0%
associate-*l/93.9%
Simplified93.9%
Taylor expanded in z around inf 82.9%
associate-*l/86.8%
*-commutative86.8%
Simplified86.8%
if -4.8e23 < z < 0.80000000000000004Initial program 92.8%
associate-*l/97.9%
Simplified97.9%
Taylor expanded in z around 0 85.2%
*-commutative85.2%
associate-*l/89.6%
neg-mul-189.6%
distribute-rgt-neg-out89.6%
Simplified89.6%
Final simplification88.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -8.2e+97) (not (<= t 7.2e+118))) (* (/ y a) t) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -8.2e+97) || !(t <= 7.2e+118)) {
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 <= (-8.2d+97)) .or. (.not. (t <= 7.2d+118))) 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 <= -8.2e+97) || !(t <= 7.2e+118)) {
tmp = (y / a) * t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -8.2e+97) or not (t <= 7.2e+118): tmp = (y / a) * t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -8.2e+97) || !(t <= 7.2e+118)) 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 <= -8.2e+97) || ~((t <= 7.2e+118))) tmp = (y / a) * t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -8.2e+97], N[Not[LessEqual[t, 7.2e+118]], $MachinePrecision]], N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8.2 \cdot 10^{+97} \lor \neg \left(t \leq 7.2 \cdot 10^{+118}\right):\\
\;\;\;\;\frac{y}{a} \cdot t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -8.19999999999999977e97 or 7.2e118 < t Initial program 88.1%
associate-/l*89.4%
Simplified89.4%
Taylor expanded in z around 0 78.8%
associate-*r/78.8%
neg-mul-178.8%
Simplified78.8%
Taylor expanded in x around 0 60.2%
associate-*r/65.9%
Simplified65.9%
if -8.19999999999999977e97 < t < 7.2e118Initial program 94.8%
associate-*l/96.6%
Simplified96.6%
Taylor expanded in z around inf 80.2%
associate-*l/84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in x around inf 52.5%
Final simplification56.3%
(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/96.2%
Simplified96.2%
Taylor expanded in z around inf 66.7%
associate-*l/69.9%
*-commutative69.9%
Simplified69.9%
Taylor expanded in x around inf 42.0%
Final simplification42.0%
(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 2024031
(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)))