
(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 13 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 (or (<= a -6e+57) (not (<= a 1e-19))) (+ x (/ y (/ a (- t z)))) (+ x (/ (* y (- t z)) a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -6e+57) || !(a <= 1e-19)) {
tmp = x + (y / (a / (t - z)));
} else {
tmp = x + ((y * (t - 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 ((a <= (-6d+57)) .or. (.not. (a <= 1d-19))) then
tmp = x + (y / (a / (t - z)))
else
tmp = x + ((y * (t - 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 ((a <= -6e+57) || !(a <= 1e-19)) {
tmp = x + (y / (a / (t - z)));
} else {
tmp = x + ((y * (t - z)) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -6e+57) or not (a <= 1e-19): tmp = x + (y / (a / (t - z))) else: tmp = x + ((y * (t - z)) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -6e+57) || !(a <= 1e-19)) tmp = Float64(x + Float64(y / Float64(a / Float64(t - z)))); else tmp = Float64(x + Float64(Float64(y * Float64(t - z)) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -6e+57) || ~((a <= 1e-19))) tmp = x + (y / (a / (t - z))); else tmp = x + ((y * (t - z)) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -6e+57], N[Not[LessEqual[a, 1e-19]], $MachinePrecision]], N[(x + N[(y / N[(a / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6 \cdot 10^{+57} \lor \neg \left(a \leq 10^{-19}\right):\\
\;\;\;\;x + \frac{y}{\frac{a}{t - z}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(t - z\right)}{a}\\
\end{array}
\end{array}
if a < -5.9999999999999999e57 or 9.9999999999999998e-20 < a Initial program 86.8%
associate-/l*99.8%
Simplified99.8%
clear-num99.8%
un-div-inv99.9%
Applied egg-rr99.9%
if -5.9999999999999999e57 < a < 9.9999999999999998e-20Initial program 99.9%
Final simplification99.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* y (- z)) a)))
(if (<= t -1.95e+140)
(* t (/ y a))
(if (<= t -4.2e-50)
x
(if (<= t -5.8e-230)
t_1
(if (<= t 1.96e-289)
x
(if (<= t 1.2e-104) t_1 (if (<= t 6.5e+78) x (/ t (/ a y))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y * -z) / a;
double tmp;
if (t <= -1.95e+140) {
tmp = t * (y / a);
} else if (t <= -4.2e-50) {
tmp = x;
} else if (t <= -5.8e-230) {
tmp = t_1;
} else if (t <= 1.96e-289) {
tmp = x;
} else if (t <= 1.2e-104) {
tmp = t_1;
} else if (t <= 6.5e+78) {
tmp = x;
} else {
tmp = 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) :: t_1
real(8) :: tmp
t_1 = (y * -z) / a
if (t <= (-1.95d+140)) then
tmp = t * (y / a)
else if (t <= (-4.2d-50)) then
tmp = x
else if (t <= (-5.8d-230)) then
tmp = t_1
else if (t <= 1.96d-289) then
tmp = x
else if (t <= 1.2d-104) then
tmp = t_1
else if (t <= 6.5d+78) then
tmp = x
else
tmp = t / (a / y)
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) / a;
double tmp;
if (t <= -1.95e+140) {
tmp = t * (y / a);
} else if (t <= -4.2e-50) {
tmp = x;
} else if (t <= -5.8e-230) {
tmp = t_1;
} else if (t <= 1.96e-289) {
tmp = x;
} else if (t <= 1.2e-104) {
tmp = t_1;
} else if (t <= 6.5e+78) {
tmp = x;
} else {
tmp = t / (a / y);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y * -z) / a tmp = 0 if t <= -1.95e+140: tmp = t * (y / a) elif t <= -4.2e-50: tmp = x elif t <= -5.8e-230: tmp = t_1 elif t <= 1.96e-289: tmp = x elif t <= 1.2e-104: tmp = t_1 elif t <= 6.5e+78: tmp = x else: tmp = t / (a / y) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y * Float64(-z)) / a) tmp = 0.0 if (t <= -1.95e+140) tmp = Float64(t * Float64(y / a)); elseif (t <= -4.2e-50) tmp = x; elseif (t <= -5.8e-230) tmp = t_1; elseif (t <= 1.96e-289) tmp = x; elseif (t <= 1.2e-104) tmp = t_1; elseif (t <= 6.5e+78) tmp = x; else tmp = Float64(t / Float64(a / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y * -z) / a; tmp = 0.0; if (t <= -1.95e+140) tmp = t * (y / a); elseif (t <= -4.2e-50) tmp = x; elseif (t <= -5.8e-230) tmp = t_1; elseif (t <= 1.96e-289) tmp = x; elseif (t <= 1.2e-104) tmp = t_1; elseif (t <= 6.5e+78) tmp = x; else tmp = t / (a / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y * (-z)), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[t, -1.95e+140], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.2e-50], x, If[LessEqual[t, -5.8e-230], t$95$1, If[LessEqual[t, 1.96e-289], x, If[LessEqual[t, 1.2e-104], t$95$1, If[LessEqual[t, 6.5e+78], x, N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(-z\right)}{a}\\
\mathbf{if}\;t \leq -1.95 \cdot 10^{+140}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{elif}\;t \leq -4.2 \cdot 10^{-50}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq -5.8 \cdot 10^{-230}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.96 \cdot 10^{-289}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-104}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{+78}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if t < -1.94999999999999987e140Initial program 94.1%
associate-/l*85.6%
Simplified85.6%
associate-*r/94.1%
clear-num94.1%
Applied egg-rr94.1%
Taylor expanded in t around inf 69.8%
associate-/l*75.4%
Simplified75.4%
if -1.94999999999999987e140 < t < -4.2000000000000002e-50 or -5.80000000000000011e-230 < t < 1.96e-289 or 1.2e-104 < t < 6.50000000000000036e78Initial program 94.6%
associate-/l*96.2%
Simplified96.2%
Taylor expanded in x around inf 56.3%
if -4.2000000000000002e-50 < t < -5.80000000000000011e-230 or 1.96e-289 < t < 1.2e-104Initial program 97.6%
associate-/l*93.9%
Simplified93.9%
Taylor expanded in z around inf 64.2%
mul-1-neg64.2%
associate-/l*60.5%
distribute-rgt-neg-in60.5%
distribute-frac-neg260.5%
Simplified60.5%
associate-*r/64.2%
frac-2neg64.2%
remove-double-neg64.2%
*-commutative64.2%
distribute-rgt-neg-in64.2%
Applied egg-rr64.2%
if 6.50000000000000036e78 < t Initial program 85.9%
associate-/l*83.4%
Simplified83.4%
associate-*r/85.9%
clear-num85.8%
Applied egg-rr85.8%
Taylor expanded in t around inf 65.6%
associate-/l*74.6%
Simplified74.6%
clear-num74.5%
un-div-inv74.6%
Applied egg-rr74.6%
Final simplification64.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ z (- a)))))
(if (<= t -2.1e+140)
(* t (/ y a))
(if (<= t -3.9e-50)
x
(if (<= t -7.5e-230)
t_1
(if (<= t 1.85e-289)
x
(if (<= t 6.6e-143) t_1 (if (<= t 6e+83) x (/ t (/ a y))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (z / -a);
double tmp;
if (t <= -2.1e+140) {
tmp = t * (y / a);
} else if (t <= -3.9e-50) {
tmp = x;
} else if (t <= -7.5e-230) {
tmp = t_1;
} else if (t <= 1.85e-289) {
tmp = x;
} else if (t <= 6.6e-143) {
tmp = t_1;
} else if (t <= 6e+83) {
tmp = x;
} else {
tmp = 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) :: t_1
real(8) :: tmp
t_1 = y * (z / -a)
if (t <= (-2.1d+140)) then
tmp = t * (y / a)
else if (t <= (-3.9d-50)) then
tmp = x
else if (t <= (-7.5d-230)) then
tmp = t_1
else if (t <= 1.85d-289) then
tmp = x
else if (t <= 6.6d-143) then
tmp = t_1
else if (t <= 6d+83) then
tmp = x
else
tmp = t / (a / y)
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 / -a);
double tmp;
if (t <= -2.1e+140) {
tmp = t * (y / a);
} else if (t <= -3.9e-50) {
tmp = x;
} else if (t <= -7.5e-230) {
tmp = t_1;
} else if (t <= 1.85e-289) {
tmp = x;
} else if (t <= 6.6e-143) {
tmp = t_1;
} else if (t <= 6e+83) {
tmp = x;
} else {
tmp = t / (a / y);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (z / -a) tmp = 0 if t <= -2.1e+140: tmp = t * (y / a) elif t <= -3.9e-50: tmp = x elif t <= -7.5e-230: tmp = t_1 elif t <= 1.85e-289: tmp = x elif t <= 6.6e-143: tmp = t_1 elif t <= 6e+83: tmp = x else: tmp = t / (a / y) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(z / Float64(-a))) tmp = 0.0 if (t <= -2.1e+140) tmp = Float64(t * Float64(y / a)); elseif (t <= -3.9e-50) tmp = x; elseif (t <= -7.5e-230) tmp = t_1; elseif (t <= 1.85e-289) tmp = x; elseif (t <= 6.6e-143) tmp = t_1; elseif (t <= 6e+83) tmp = x; else tmp = Float64(t / Float64(a / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (z / -a); tmp = 0.0; if (t <= -2.1e+140) tmp = t * (y / a); elseif (t <= -3.9e-50) tmp = x; elseif (t <= -7.5e-230) tmp = t_1; elseif (t <= 1.85e-289) tmp = x; elseif (t <= 6.6e-143) tmp = t_1; elseif (t <= 6e+83) tmp = x; else tmp = t / (a / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(z / (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.1e+140], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.9e-50], x, If[LessEqual[t, -7.5e-230], t$95$1, If[LessEqual[t, 1.85e-289], x, If[LessEqual[t, 6.6e-143], t$95$1, If[LessEqual[t, 6e+83], x, N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z}{-a}\\
\mathbf{if}\;t \leq -2.1 \cdot 10^{+140}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{elif}\;t \leq -3.9 \cdot 10^{-50}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq -7.5 \cdot 10^{-230}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{-289}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{-143}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6 \cdot 10^{+83}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if t < -2.1000000000000002e140Initial program 94.1%
associate-/l*85.6%
Simplified85.6%
associate-*r/94.1%
clear-num94.1%
Applied egg-rr94.1%
Taylor expanded in t around inf 69.8%
associate-/l*75.4%
Simplified75.4%
if -2.1000000000000002e140 < t < -3.90000000000000021e-50 or -7.50000000000000006e-230 < t < 1.84999999999999994e-289 or 6.6000000000000001e-143 < t < 5.9999999999999999e83Initial program 95.0%
associate-/l*94.9%
Simplified94.9%
Taylor expanded in x around inf 54.9%
if -3.90000000000000021e-50 < t < -7.50000000000000006e-230 or 1.84999999999999994e-289 < t < 6.6000000000000001e-143Initial program 97.2%
associate-/l*95.7%
Simplified95.7%
Taylor expanded in z around inf 66.1%
mul-1-neg66.1%
associate-/l*64.6%
distribute-rgt-neg-in64.6%
distribute-frac-neg264.6%
Simplified64.6%
if 5.9999999999999999e83 < t Initial program 85.9%
associate-/l*83.4%
Simplified83.4%
associate-*r/85.9%
clear-num85.8%
Applied egg-rr85.8%
Taylor expanded in t around inf 65.6%
associate-/l*74.6%
Simplified74.6%
clear-num74.5%
un-div-inv74.6%
Applied egg-rr74.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -9e+71) (not (<= a 3.7e-48))) (+ x (* y (/ t a))) (* (/ y a) (- t z))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -9e+71) || !(a <= 3.7e-48)) {
tmp = x + (y * (t / a));
} else {
tmp = (y / a) * (t - 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 ((a <= (-9d+71)) .or. (.not. (a <= 3.7d-48))) then
tmp = x + (y * (t / a))
else
tmp = (y / a) * (t - z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -9e+71) || !(a <= 3.7e-48)) {
tmp = x + (y * (t / a));
} else {
tmp = (y / a) * (t - z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -9e+71) or not (a <= 3.7e-48): tmp = x + (y * (t / a)) else: tmp = (y / a) * (t - z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -9e+71) || !(a <= 3.7e-48)) tmp = Float64(x + Float64(y * Float64(t / a))); else tmp = Float64(Float64(y / a) * Float64(t - z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -9e+71) || ~((a <= 3.7e-48))) tmp = x + (y * (t / a)); else tmp = (y / a) * (t - z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -9e+71], N[Not[LessEqual[a, 3.7e-48]], $MachinePrecision]], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y / a), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9 \cdot 10^{+71} \lor \neg \left(a \leq 3.7 \cdot 10^{-48}\right):\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{a} \cdot \left(t - z\right)\\
\end{array}
\end{array}
if a < -9.00000000000000087e71 or 3.6999999999999998e-48 < a Initial program 88.0%
clear-num88.0%
associate-/r/88.0%
Applied egg-rr88.0%
Taylor expanded in z around 0 72.0%
cancel-sign-sub-inv72.0%
metadata-eval72.0%
associate-*r/78.4%
*-lft-identity78.4%
*-commutative78.4%
associate-*l/72.0%
associate-*r/78.4%
Simplified78.4%
if -9.00000000000000087e71 < a < 3.6999999999999998e-48Initial program 99.2%
associate-/l*86.3%
Simplified86.3%
Taylor expanded in x around 0 83.2%
mul-1-neg83.2%
distribute-frac-neg83.2%
*-commutative83.2%
distribute-lft-neg-in83.2%
associate-*r/81.1%
*-commutative81.1%
neg-sub081.1%
sub-neg81.1%
+-commutative81.1%
associate--r+81.1%
neg-sub081.1%
remove-double-neg81.1%
Simplified81.1%
Final simplification79.8%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.95e+26) (* (/ y a) (- t z)) (if (<= t 7.2e+35) (- x (/ (* y z) a)) (+ x (* y (/ t a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.95e+26) {
tmp = (y / a) * (t - z);
} else if (t <= 7.2e+35) {
tmp = x - ((y * z) / 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) :: tmp
if (t <= (-1.95d+26)) then
tmp = (y / a) * (t - z)
else if (t <= 7.2d+35) then
tmp = x - ((y * z) / 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 tmp;
if (t <= -1.95e+26) {
tmp = (y / a) * (t - z);
} else if (t <= 7.2e+35) {
tmp = x - ((y * z) / a);
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.95e+26: tmp = (y / a) * (t - z) elif t <= 7.2e+35: tmp = x - ((y * z) / a) else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.95e+26) tmp = Float64(Float64(y / a) * Float64(t - z)); elseif (t <= 7.2e+35) tmp = Float64(x - Float64(Float64(y * z) / a)); else tmp = Float64(x + Float64(y * Float64(t / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.95e+26) tmp = (y / a) * (t - z); elseif (t <= 7.2e+35) tmp = x - ((y * z) / a); else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.95e+26], N[(N[(y / a), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.2e+35], N[(x - N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.95 \cdot 10^{+26}:\\
\;\;\;\;\frac{y}{a} \cdot \left(t - z\right)\\
\mathbf{elif}\;t \leq 7.2 \cdot 10^{+35}:\\
\;\;\;\;x - \frac{y \cdot z}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
if t < -1.95e26Initial program 89.2%
associate-/l*85.6%
Simplified85.6%
Taylor expanded in x around 0 65.9%
mul-1-neg65.9%
distribute-frac-neg65.9%
*-commutative65.9%
distribute-lft-neg-in65.9%
associate-*r/76.2%
*-commutative76.2%
neg-sub076.2%
sub-neg76.2%
+-commutative76.2%
associate--r+76.2%
neg-sub076.2%
remove-double-neg76.2%
Simplified76.2%
if -1.95e26 < t < 7.2000000000000001e35Initial program 98.0%
associate-/l*96.7%
Simplified96.7%
Taylor expanded in z around inf 91.4%
if 7.2000000000000001e35 < t Initial program 87.6%
clear-num87.6%
associate-/r/87.6%
Applied egg-rr87.6%
Taylor expanded in z around 0 84.9%
cancel-sign-sub-inv84.9%
metadata-eval84.9%
associate-*r/93.6%
*-lft-identity93.6%
*-commutative93.6%
associate-*l/84.9%
associate-*r/83.0%
Simplified83.0%
(FPCore (x y z t a) :precision binary64 (if (<= t -2e+143) (* (/ y a) (- t z)) (if (<= t 4e+33) (- x (/ y (/ a z))) (+ x (* y (/ t a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2e+143) {
tmp = (y / a) * (t - z);
} else if (t <= 4e+33) {
tmp = x - (y / (a / z));
} 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) :: tmp
if (t <= (-2d+143)) then
tmp = (y / a) * (t - z)
else if (t <= 4d+33) then
tmp = x - (y / (a / z))
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 tmp;
if (t <= -2e+143) {
tmp = (y / a) * (t - z);
} else if (t <= 4e+33) {
tmp = x - (y / (a / z));
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2e+143: tmp = (y / a) * (t - z) elif t <= 4e+33: tmp = x - (y / (a / z)) else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2e+143) tmp = Float64(Float64(y / a) * Float64(t - z)); elseif (t <= 4e+33) tmp = Float64(x - Float64(y / Float64(a / z))); else tmp = Float64(x + Float64(y * Float64(t / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2e+143) tmp = (y / a) * (t - z); elseif (t <= 4e+33) tmp = x - (y / (a / z)); else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2e+143], N[(N[(y / a), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4e+33], N[(x - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2 \cdot 10^{+143}:\\
\;\;\;\;\frac{y}{a} \cdot \left(t - z\right)\\
\mathbf{elif}\;t \leq 4 \cdot 10^{+33}:\\
\;\;\;\;x - \frac{y}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
if t < -2e143Initial program 94.1%
associate-/l*85.6%
Simplified85.6%
Taylor expanded in x around 0 80.0%
mul-1-neg80.0%
distribute-frac-neg80.0%
*-commutative80.0%
distribute-lft-neg-in80.0%
associate-*r/85.2%
*-commutative85.2%
neg-sub085.2%
sub-neg85.2%
+-commutative85.2%
associate--r+85.2%
neg-sub085.2%
remove-double-neg85.2%
Simplified85.2%
if -2e143 < t < 3.9999999999999998e33Initial program 96.1%
associate-/l*95.4%
Simplified95.4%
associate-*r/96.1%
clear-num96.0%
Applied egg-rr96.0%
Taylor expanded in z around inf 86.8%
*-commutative86.8%
associate-*r/89.0%
*-commutative89.0%
associate-/r/87.2%
Simplified87.2%
if 3.9999999999999998e33 < t Initial program 87.6%
clear-num87.6%
associate-/r/87.6%
Applied egg-rr87.6%
Taylor expanded in z around 0 84.9%
cancel-sign-sub-inv84.9%
metadata-eval84.9%
associate-*r/93.6%
*-lft-identity93.6%
*-commutative93.6%
associate-*l/84.9%
associate-*r/83.0%
Simplified83.0%
(FPCore (x y z t a) :precision binary64 (if (<= t -2.75e+32) (* (/ y a) (- t z)) (if (<= t 3.6e+35) (- x (* y (/ z a))) (+ x (* y (/ t a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.75e+32) {
tmp = (y / a) * (t - z);
} else if (t <= 3.6e+35) {
tmp = x - (y * (z / 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) :: tmp
if (t <= (-2.75d+32)) then
tmp = (y / a) * (t - z)
else if (t <= 3.6d+35) then
tmp = x - (y * (z / 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 tmp;
if (t <= -2.75e+32) {
tmp = (y / a) * (t - z);
} else if (t <= 3.6e+35) {
tmp = x - (y * (z / a));
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.75e+32: tmp = (y / a) * (t - z) elif t <= 3.6e+35: tmp = x - (y * (z / a)) else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.75e+32) tmp = Float64(Float64(y / a) * Float64(t - z)); elseif (t <= 3.6e+35) tmp = Float64(x - Float64(y * Float64(z / a))); else tmp = Float64(x + Float64(y * Float64(t / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.75e+32) tmp = (y / a) * (t - z); elseif (t <= 3.6e+35) tmp = x - (y * (z / a)); else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.75e+32], N[(N[(y / a), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e+35], N[(x - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.75 \cdot 10^{+32}:\\
\;\;\;\;\frac{y}{a} \cdot \left(t - z\right)\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{+35}:\\
\;\;\;\;x - y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
if t < -2.74999999999999992e32Initial program 89.2%
associate-/l*85.6%
Simplified85.6%
Taylor expanded in x around 0 65.9%
mul-1-neg65.9%
distribute-frac-neg65.9%
*-commutative65.9%
distribute-lft-neg-in65.9%
associate-*r/76.2%
*-commutative76.2%
neg-sub076.2%
sub-neg76.2%
+-commutative76.2%
associate--r+76.2%
neg-sub076.2%
remove-double-neg76.2%
Simplified76.2%
if -2.74999999999999992e32 < t < 3.6e35Initial program 98.0%
associate-/l*96.7%
Simplified96.7%
Taylor expanded in z around inf 91.4%
associate-/l*90.1%
Simplified90.1%
if 3.6e35 < t Initial program 87.6%
clear-num87.6%
associate-/r/87.6%
Applied egg-rr87.6%
Taylor expanded in z around 0 84.9%
cancel-sign-sub-inv84.9%
metadata-eval84.9%
associate-*r/93.6%
*-lft-identity93.6%
*-commutative93.6%
associate-*l/84.9%
associate-*r/83.0%
Simplified83.0%
(FPCore (x y z t a) :precision binary64 (if (<= a -3.3e+122) x (if (<= a 32000000000000.0) (* (/ y a) (- t z)) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.3e+122) {
tmp = x;
} else if (a <= 32000000000000.0) {
tmp = (y / a) * (t - z);
} 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 <= (-3.3d+122)) then
tmp = x
else if (a <= 32000000000000.0d0) then
tmp = (y / a) * (t - z)
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 <= -3.3e+122) {
tmp = x;
} else if (a <= 32000000000000.0) {
tmp = (y / a) * (t - z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.3e+122: tmp = x elif a <= 32000000000000.0: tmp = (y / a) * (t - z) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.3e+122) tmp = x; elseif (a <= 32000000000000.0) tmp = Float64(Float64(y / a) * Float64(t - z)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3.3e+122) tmp = x; elseif (a <= 32000000000000.0) tmp = (y / a) * (t - z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.3e+122], x, If[LessEqual[a, 32000000000000.0], N[(N[(y / a), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.3 \cdot 10^{+122}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 32000000000000:\\
\;\;\;\;\frac{y}{a} \cdot \left(t - z\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.2999999999999999e122 or 3.2e13 < a Initial program 88.4%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in x around inf 63.3%
if -3.2999999999999999e122 < a < 3.2e13Initial program 97.6%
associate-/l*87.3%
Simplified87.3%
Taylor expanded in x around 0 77.6%
mul-1-neg77.6%
distribute-frac-neg77.6%
*-commutative77.6%
distribute-lft-neg-in77.6%
associate-*r/77.4%
*-commutative77.4%
neg-sub077.4%
sub-neg77.4%
+-commutative77.4%
associate--r+77.4%
neg-sub077.4%
remove-double-neg77.4%
Simplified77.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.9e+140) (not (<= t 5.6e+75))) (* t (/ y a)) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.9e+140) || !(t <= 5.6e+75)) {
tmp = 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 ((t <= (-1.9d+140)) .or. (.not. (t <= 5.6d+75))) then
tmp = 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 ((t <= -1.9e+140) || !(t <= 5.6e+75)) {
tmp = t * (y / a);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.9e+140) or not (t <= 5.6e+75): tmp = t * (y / a) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.9e+140) || !(t <= 5.6e+75)) tmp = Float64(t * Float64(y / a)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.9e+140) || ~((t <= 5.6e+75))) tmp = t * (y / a); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.9e+140], N[Not[LessEqual[t, 5.6e+75]], $MachinePrecision]], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{+140} \lor \neg \left(t \leq 5.6 \cdot 10^{+75}\right):\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -1.9e140 or 5.60000000000000023e75 < t Initial program 89.6%
associate-/l*84.4%
Simplified84.4%
associate-*r/89.6%
clear-num89.5%
Applied egg-rr89.5%
Taylor expanded in t around inf 67.5%
associate-/l*74.9%
Simplified74.9%
if -1.9e140 < t < 5.60000000000000023e75Initial program 95.8%
associate-/l*95.2%
Simplified95.2%
Taylor expanded in x around inf 45.8%
Final simplification54.1%
(FPCore (x y z t a) :precision binary64 (if (<= t -2.1e+140) (* t (/ y a)) (if (<= t 1.55e+79) x (/ t (/ a y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.1e+140) {
tmp = t * (y / a);
} else if (t <= 1.55e+79) {
tmp = x;
} else {
tmp = 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 (t <= (-2.1d+140)) then
tmp = t * (y / a)
else if (t <= 1.55d+79) then
tmp = x
else
tmp = 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 (t <= -2.1e+140) {
tmp = t * (y / a);
} else if (t <= 1.55e+79) {
tmp = x;
} else {
tmp = t / (a / y);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.1e+140: tmp = t * (y / a) elif t <= 1.55e+79: tmp = x else: tmp = t / (a / y) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.1e+140) tmp = Float64(t * Float64(y / a)); elseif (t <= 1.55e+79) tmp = x; else tmp = Float64(t / Float64(a / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.1e+140) tmp = t * (y / a); elseif (t <= 1.55e+79) tmp = x; else tmp = t / (a / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.1e+140], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.55e+79], x, N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.1 \cdot 10^{+140}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{+79}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if t < -2.1000000000000002e140Initial program 94.1%
associate-/l*85.6%
Simplified85.6%
associate-*r/94.1%
clear-num94.1%
Applied egg-rr94.1%
Taylor expanded in t around inf 69.8%
associate-/l*75.4%
Simplified75.4%
if -2.1000000000000002e140 < t < 1.5499999999999999e79Initial program 95.8%
associate-/l*95.2%
Simplified95.2%
Taylor expanded in x around inf 45.8%
if 1.5499999999999999e79 < t Initial program 85.9%
associate-/l*83.4%
Simplified83.4%
associate-*r/85.9%
clear-num85.8%
Applied egg-rr85.8%
Taylor expanded in t around inf 65.6%
associate-/l*74.6%
Simplified74.6%
clear-num74.5%
un-div-inv74.6%
Applied egg-rr74.6%
(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(y / Float64(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[(y / N[(a / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{\frac{a}{t - z}}
\end{array}
Initial program 94.1%
associate-/l*92.1%
Simplified92.1%
clear-num92.1%
un-div-inv93.1%
Applied egg-rr93.1%
Final simplification93.1%
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- t z) a))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((t - z) / 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 * ((t - z) / a))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((t - z) / a));
}
def code(x, y, z, t, a): return x + (y * ((t - z) / a))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(t - z) / a))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((t - z) / a)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(t - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{t - z}{a}
\end{array}
Initial program 94.1%
associate-/l*92.1%
Simplified92.1%
Final simplification92.1%
(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 94.1%
associate-/l*92.1%
Simplified92.1%
Taylor expanded in x around inf 37.9%
(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 2024135
(FPCore (x y z t a)
:name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, F"
:precision binary64
:alt
(! :herbie-platform default (if (< y -430450648655599/4000000000000000000000000) (- x (/ 1 (/ (/ a (- z t)) y))) (if (< y 2894426862792089/10000000000000000000000000000000000000000000000000000000000000000) (- x (/ (* y (- z t)) a)) (- x (/ y (/ a (- z t)))))))
(- x (/ (* y (- z t)) a)))