
(FPCore (x y z t a) :precision binary64 (- x (/ (- y z) (/ (+ (- t z) 1.0) a))))
double code(double x, double y, double z, double t, double a) {
return x - ((y - z) / (((t - z) + 1.0) / 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 - z) + 1.0d0) / a))
end function
public static double code(double x, double y, double z, double t, double a) {
return x - ((y - z) / (((t - z) + 1.0) / a));
}
def code(x, y, z, t, a): return x - ((y - z) / (((t - z) + 1.0) / a))
function code(x, y, z, t, a) return Float64(x - Float64(Float64(y - z) / Float64(Float64(Float64(t - z) + 1.0) / a))) end
function tmp = code(x, y, z, t, a) tmp = x - ((y - z) / (((t - z) + 1.0) / a)); end
code[x_, y_, z_, t_, a_] := N[(x - N[(N[(y - z), $MachinePrecision] / N[(N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (- x (/ (- y z) (/ (+ (- t z) 1.0) a))))
double code(double x, double y, double z, double t, double a) {
return x - ((y - z) / (((t - z) + 1.0) / 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 - z) + 1.0d0) / a))
end function
public static double code(double x, double y, double z, double t, double a) {
return x - ((y - z) / (((t - z) + 1.0) / a));
}
def code(x, y, z, t, a): return x - ((y - z) / (((t - z) + 1.0) / a))
function code(x, y, z, t, a) return Float64(x - Float64(Float64(y - z) / Float64(Float64(Float64(t - z) + 1.0) / a))) end
function tmp = code(x, y, z, t, a) tmp = x - ((y - z) / (((t - z) + 1.0) / a)); end
code[x_, y_, z_, t_, a_] := N[(x - N[(N[(y - z), $MachinePrecision] / N[(N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}}
\end{array}
(FPCore (x y z t a) :precision binary64 (+ x (* a (/ (- z y) (+ (- t z) 1.0)))))
double code(double x, double y, double z, double t, double a) {
return x + (a * ((z - y) / ((t - z) + 1.0)));
}
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 + (a * ((z - y) / ((t - z) + 1.0d0)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (a * ((z - y) / ((t - z) + 1.0)));
}
def code(x, y, z, t, a): return x + (a * ((z - y) / ((t - z) + 1.0)))
function code(x, y, z, t, a) return Float64(x + Float64(a * Float64(Float64(z - y) / Float64(Float64(t - z) + 1.0)))) end
function tmp = code(x, y, z, t, a) tmp = x + (a * ((z - y) / ((t - z) + 1.0))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(a * N[(N[(z - y), $MachinePrecision] / N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + a \cdot \frac{z - y}{\left(t - z\right) + 1}
\end{array}
Initial program 96.2%
associate-/r/99.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* y a))))
(if (<= z -4.4e+16)
(- x a)
(if (<= z -1.95e-177)
(- x (* a (/ y t)))
(if (<= z -7.5e-278)
t_1
(if (<= z 3.05e-257)
(- x (* y (/ a t)))
(if (<= z 2.55e-16)
t_1
(if (<= z 3.1e+132) (+ x (* y (/ a z))) (- x a)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (y * a);
double tmp;
if (z <= -4.4e+16) {
tmp = x - a;
} else if (z <= -1.95e-177) {
tmp = x - (a * (y / t));
} else if (z <= -7.5e-278) {
tmp = t_1;
} else if (z <= 3.05e-257) {
tmp = x - (y * (a / t));
} else if (z <= 2.55e-16) {
tmp = t_1;
} else if (z <= 3.1e+132) {
tmp = x + (y * (a / z));
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x - (y * a)
if (z <= (-4.4d+16)) then
tmp = x - a
else if (z <= (-1.95d-177)) then
tmp = x - (a * (y / t))
else if (z <= (-7.5d-278)) then
tmp = t_1
else if (z <= 3.05d-257) then
tmp = x - (y * (a / t))
else if (z <= 2.55d-16) then
tmp = t_1
else if (z <= 3.1d+132) then
tmp = x + (y * (a / z))
else
tmp = x - a
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);
double tmp;
if (z <= -4.4e+16) {
tmp = x - a;
} else if (z <= -1.95e-177) {
tmp = x - (a * (y / t));
} else if (z <= -7.5e-278) {
tmp = t_1;
} else if (z <= 3.05e-257) {
tmp = x - (y * (a / t));
} else if (z <= 2.55e-16) {
tmp = t_1;
} else if (z <= 3.1e+132) {
tmp = x + (y * (a / z));
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (y * a) tmp = 0 if z <= -4.4e+16: tmp = x - a elif z <= -1.95e-177: tmp = x - (a * (y / t)) elif z <= -7.5e-278: tmp = t_1 elif z <= 3.05e-257: tmp = x - (y * (a / t)) elif z <= 2.55e-16: tmp = t_1 elif z <= 3.1e+132: tmp = x + (y * (a / z)) else: tmp = x - a return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(y * a)) tmp = 0.0 if (z <= -4.4e+16) tmp = Float64(x - a); elseif (z <= -1.95e-177) tmp = Float64(x - Float64(a * Float64(y / t))); elseif (z <= -7.5e-278) tmp = t_1; elseif (z <= 3.05e-257) tmp = Float64(x - Float64(y * Float64(a / t))); elseif (z <= 2.55e-16) tmp = t_1; elseif (z <= 3.1e+132) tmp = Float64(x + Float64(y * Float64(a / z))); else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (y * a); tmp = 0.0; if (z <= -4.4e+16) tmp = x - a; elseif (z <= -1.95e-177) tmp = x - (a * (y / t)); elseif (z <= -7.5e-278) tmp = t_1; elseif (z <= 3.05e-257) tmp = x - (y * (a / t)); elseif (z <= 2.55e-16) tmp = t_1; elseif (z <= 3.1e+132) tmp = x + (y * (a / z)); else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.4e+16], N[(x - a), $MachinePrecision], If[LessEqual[z, -1.95e-177], N[(x - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7.5e-278], t$95$1, If[LessEqual[z, 3.05e-257], N[(x - N[(y * N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.55e-16], t$95$1, If[LessEqual[z, 3.1e+132], N[(x + N[(y * N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - y \cdot a\\
\mathbf{if}\;z \leq -4.4 \cdot 10^{+16}:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq -1.95 \cdot 10^{-177}:\\
\;\;\;\;x - a \cdot \frac{y}{t}\\
\mathbf{elif}\;z \leq -7.5 \cdot 10^{-278}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.05 \cdot 10^{-257}:\\
\;\;\;\;x - y \cdot \frac{a}{t}\\
\mathbf{elif}\;z \leq 2.55 \cdot 10^{-16}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{+132}:\\
\;\;\;\;x + y \cdot \frac{a}{z}\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -4.4e16 or 3.0999999999999998e132 < z Initial program 93.2%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in z around inf 79.4%
if -4.4e16 < z < -1.95000000000000007e-177Initial program 95.1%
associate-/r/99.8%
Simplified99.8%
Taylor expanded in t around inf 80.2%
Taylor expanded in y around inf 75.5%
if -1.95000000000000007e-177 < z < -7.49999999999999946e-278 or 3.0499999999999998e-257 < z < 2.55e-16Initial program 99.9%
associate-/r/100.0%
Simplified100.0%
Taylor expanded in t around 0 81.4%
Taylor expanded in z around 0 79.9%
if -7.49999999999999946e-278 < z < 3.0499999999999998e-257Initial program 100.0%
associate-/r/99.8%
Simplified99.8%
Taylor expanded in t around inf 77.0%
Taylor expanded in y around inf 82.5%
associate-*r/82.4%
Simplified82.4%
if 2.55e-16 < z < 3.0999999999999998e132Initial program 99.8%
associate-/r/99.8%
Simplified99.8%
Taylor expanded in y around inf 86.6%
Taylor expanded in z around inf 71.6%
associate-/l*74.8%
Simplified74.8%
associate-/r/74.9%
Applied egg-rr74.9%
Final simplification78.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* y a))))
(if (<= z -3.35e+19)
(- x a)
(if (<= z -1.95e-177)
(- x (* a (/ y t)))
(if (<= z -1.85e-277)
t_1
(if (<= z 2.8e-257)
(- x (/ y (/ t a)))
(if (<= z 2.5e-16)
t_1
(if (<= z 3.2e+126) (+ x (* y (/ a z))) (- x a)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (y * a);
double tmp;
if (z <= -3.35e+19) {
tmp = x - a;
} else if (z <= -1.95e-177) {
tmp = x - (a * (y / t));
} else if (z <= -1.85e-277) {
tmp = t_1;
} else if (z <= 2.8e-257) {
tmp = x - (y / (t / a));
} else if (z <= 2.5e-16) {
tmp = t_1;
} else if (z <= 3.2e+126) {
tmp = x + (y * (a / z));
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x - (y * a)
if (z <= (-3.35d+19)) then
tmp = x - a
else if (z <= (-1.95d-177)) then
tmp = x - (a * (y / t))
else if (z <= (-1.85d-277)) then
tmp = t_1
else if (z <= 2.8d-257) then
tmp = x - (y / (t / a))
else if (z <= 2.5d-16) then
tmp = t_1
else if (z <= 3.2d+126) then
tmp = x + (y * (a / z))
else
tmp = x - a
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);
double tmp;
if (z <= -3.35e+19) {
tmp = x - a;
} else if (z <= -1.95e-177) {
tmp = x - (a * (y / t));
} else if (z <= -1.85e-277) {
tmp = t_1;
} else if (z <= 2.8e-257) {
tmp = x - (y / (t / a));
} else if (z <= 2.5e-16) {
tmp = t_1;
} else if (z <= 3.2e+126) {
tmp = x + (y * (a / z));
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (y * a) tmp = 0 if z <= -3.35e+19: tmp = x - a elif z <= -1.95e-177: tmp = x - (a * (y / t)) elif z <= -1.85e-277: tmp = t_1 elif z <= 2.8e-257: tmp = x - (y / (t / a)) elif z <= 2.5e-16: tmp = t_1 elif z <= 3.2e+126: tmp = x + (y * (a / z)) else: tmp = x - a return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(y * a)) tmp = 0.0 if (z <= -3.35e+19) tmp = Float64(x - a); elseif (z <= -1.95e-177) tmp = Float64(x - Float64(a * Float64(y / t))); elseif (z <= -1.85e-277) tmp = t_1; elseif (z <= 2.8e-257) tmp = Float64(x - Float64(y / Float64(t / a))); elseif (z <= 2.5e-16) tmp = t_1; elseif (z <= 3.2e+126) tmp = Float64(x + Float64(y * Float64(a / z))); else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (y * a); tmp = 0.0; if (z <= -3.35e+19) tmp = x - a; elseif (z <= -1.95e-177) tmp = x - (a * (y / t)); elseif (z <= -1.85e-277) tmp = t_1; elseif (z <= 2.8e-257) tmp = x - (y / (t / a)); elseif (z <= 2.5e-16) tmp = t_1; elseif (z <= 3.2e+126) tmp = x + (y * (a / z)); else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.35e+19], N[(x - a), $MachinePrecision], If[LessEqual[z, -1.95e-177], N[(x - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.85e-277], t$95$1, If[LessEqual[z, 2.8e-257], N[(x - N[(y / N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.5e-16], t$95$1, If[LessEqual[z, 3.2e+126], N[(x + N[(y * N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - y \cdot a\\
\mathbf{if}\;z \leq -3.35 \cdot 10^{+19}:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq -1.95 \cdot 10^{-177}:\\
\;\;\;\;x - a \cdot \frac{y}{t}\\
\mathbf{elif}\;z \leq -1.85 \cdot 10^{-277}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-257}:\\
\;\;\;\;x - \frac{y}{\frac{t}{a}}\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{-16}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{+126}:\\
\;\;\;\;x + y \cdot \frac{a}{z}\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -3.35e19 or 3.1999999999999998e126 < z Initial program 93.2%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in z around inf 79.4%
if -3.35e19 < z < -1.95000000000000007e-177Initial program 95.1%
associate-/r/99.8%
Simplified99.8%
Taylor expanded in t around inf 80.2%
Taylor expanded in y around inf 75.5%
if -1.95000000000000007e-177 < z < -1.84999999999999992e-277 or 2.80000000000000001e-257 < z < 2.5000000000000002e-16Initial program 99.9%
associate-/r/100.0%
Simplified100.0%
Taylor expanded in t around 0 81.4%
Taylor expanded in z around 0 79.9%
if -1.84999999999999992e-277 < z < 2.80000000000000001e-257Initial program 100.0%
associate-/r/99.8%
Simplified99.8%
Taylor expanded in t around inf 77.0%
Taylor expanded in y around inf 82.5%
associate-*r/82.4%
Simplified82.4%
clear-num82.4%
un-div-inv82.6%
Applied egg-rr82.6%
if 2.5000000000000002e-16 < z < 3.1999999999999998e126Initial program 99.8%
associate-/r/99.8%
Simplified99.8%
Taylor expanded in y around inf 86.6%
Taylor expanded in z around inf 71.6%
associate-/l*74.8%
Simplified74.8%
associate-/r/74.9%
Applied egg-rr74.9%
Final simplification78.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* y a))))
(if (<= z -17000000000000.0)
(- x a)
(if (<= z -2e-177)
(- x (* a (/ y t)))
(if (<= z -4.5e-278)
t_1
(if (<= z 5.9e-257)
(- x (/ y (/ t a)))
(if (<= z 3e-143) t_1 (+ x (/ a (/ (- 1.0 z) z))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (y * a);
double tmp;
if (z <= -17000000000000.0) {
tmp = x - a;
} else if (z <= -2e-177) {
tmp = x - (a * (y / t));
} else if (z <= -4.5e-278) {
tmp = t_1;
} else if (z <= 5.9e-257) {
tmp = x - (y / (t / a));
} else if (z <= 3e-143) {
tmp = t_1;
} else {
tmp = x + (a / ((1.0 - z) / 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)
if (z <= (-17000000000000.0d0)) then
tmp = x - a
else if (z <= (-2d-177)) then
tmp = x - (a * (y / t))
else if (z <= (-4.5d-278)) then
tmp = t_1
else if (z <= 5.9d-257) then
tmp = x - (y / (t / a))
else if (z <= 3d-143) then
tmp = t_1
else
tmp = x + (a / ((1.0d0 - z) / 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);
double tmp;
if (z <= -17000000000000.0) {
tmp = x - a;
} else if (z <= -2e-177) {
tmp = x - (a * (y / t));
} else if (z <= -4.5e-278) {
tmp = t_1;
} else if (z <= 5.9e-257) {
tmp = x - (y / (t / a));
} else if (z <= 3e-143) {
tmp = t_1;
} else {
tmp = x + (a / ((1.0 - z) / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (y * a) tmp = 0 if z <= -17000000000000.0: tmp = x - a elif z <= -2e-177: tmp = x - (a * (y / t)) elif z <= -4.5e-278: tmp = t_1 elif z <= 5.9e-257: tmp = x - (y / (t / a)) elif z <= 3e-143: tmp = t_1 else: tmp = x + (a / ((1.0 - z) / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(y * a)) tmp = 0.0 if (z <= -17000000000000.0) tmp = Float64(x - a); elseif (z <= -2e-177) tmp = Float64(x - Float64(a * Float64(y / t))); elseif (z <= -4.5e-278) tmp = t_1; elseif (z <= 5.9e-257) tmp = Float64(x - Float64(y / Float64(t / a))); elseif (z <= 3e-143) tmp = t_1; else tmp = Float64(x + Float64(a / Float64(Float64(1.0 - z) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (y * a); tmp = 0.0; if (z <= -17000000000000.0) tmp = x - a; elseif (z <= -2e-177) tmp = x - (a * (y / t)); elseif (z <= -4.5e-278) tmp = t_1; elseif (z <= 5.9e-257) tmp = x - (y / (t / a)); elseif (z <= 3e-143) tmp = t_1; else tmp = x + (a / ((1.0 - z) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -17000000000000.0], N[(x - a), $MachinePrecision], If[LessEqual[z, -2e-177], N[(x - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.5e-278], t$95$1, If[LessEqual[z, 5.9e-257], N[(x - N[(y / N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3e-143], t$95$1, N[(x + N[(a / N[(N[(1.0 - z), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - y \cdot a\\
\mathbf{if}\;z \leq -17000000000000:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq -2 \cdot 10^{-177}:\\
\;\;\;\;x - a \cdot \frac{y}{t}\\
\mathbf{elif}\;z \leq -4.5 \cdot 10^{-278}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 5.9 \cdot 10^{-257}:\\
\;\;\;\;x - \frac{y}{\frac{t}{a}}\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-143}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{a}{\frac{1 - z}{z}}\\
\end{array}
\end{array}
if z < -1.7e13Initial program 94.3%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in z around inf 75.3%
if -1.7e13 < z < -1.9999999999999999e-177Initial program 95.1%
associate-/r/99.8%
Simplified99.8%
Taylor expanded in t around inf 80.2%
Taylor expanded in y around inf 75.5%
if -1.9999999999999999e-177 < z < -4.4999999999999998e-278 or 5.9e-257 < z < 2.99999999999999985e-143Initial program 99.9%
associate-/r/100.0%
Simplified100.0%
Taylor expanded in t around 0 88.5%
Taylor expanded in z around 0 88.5%
if -4.4999999999999998e-278 < z < 5.9e-257Initial program 100.0%
associate-/r/99.8%
Simplified99.8%
Taylor expanded in t around inf 77.0%
Taylor expanded in y around inf 82.5%
associate-*r/82.4%
Simplified82.4%
clear-num82.4%
un-div-inv82.6%
Applied egg-rr82.6%
if 2.99999999999999985e-143 < z Initial program 95.8%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in y around 0 83.3%
associate-*r/83.3%
neg-mul-183.3%
associate--l+83.3%
Simplified83.3%
Taylor expanded in t around 0 60.5%
sub-neg60.5%
mul-1-neg60.5%
remove-double-neg60.5%
associate-/l*74.2%
Simplified74.2%
Final simplification77.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- z y) (/ (- z) a)))))
(if (<= z -8.5e+31)
t_1
(if (<= z 3.9e-19)
(- x (/ (- y z) (/ (+ t 1.0) a)))
(if (<= z 1e+32)
(+ x (/ (* a (- z y)) (- 1.0 z)))
(if (<= z 1e+66) (+ x (/ (- z y) (/ t a))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - y) / (-z / a));
double tmp;
if (z <= -8.5e+31) {
tmp = t_1;
} else if (z <= 3.9e-19) {
tmp = x - ((y - z) / ((t + 1.0) / a));
} else if (z <= 1e+32) {
tmp = x + ((a * (z - y)) / (1.0 - z));
} else if (z <= 1e+66) {
tmp = x + ((z - y) / (t / a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((z - y) / (-z / a))
if (z <= (-8.5d+31)) then
tmp = t_1
else if (z <= 3.9d-19) then
tmp = x - ((y - z) / ((t + 1.0d0) / a))
else if (z <= 1d+32) then
tmp = x + ((a * (z - y)) / (1.0d0 - z))
else if (z <= 1d+66) then
tmp = x + ((z - y) / (t / a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - y) / (-z / a));
double tmp;
if (z <= -8.5e+31) {
tmp = t_1;
} else if (z <= 3.9e-19) {
tmp = x - ((y - z) / ((t + 1.0) / a));
} else if (z <= 1e+32) {
tmp = x + ((a * (z - y)) / (1.0 - z));
} else if (z <= 1e+66) {
tmp = x + ((z - y) / (t / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((z - y) / (-z / a)) tmp = 0 if z <= -8.5e+31: tmp = t_1 elif z <= 3.9e-19: tmp = x - ((y - z) / ((t + 1.0) / a)) elif z <= 1e+32: tmp = x + ((a * (z - y)) / (1.0 - z)) elif z <= 1e+66: tmp = x + ((z - y) / (t / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(z - y) / Float64(Float64(-z) / a))) tmp = 0.0 if (z <= -8.5e+31) tmp = t_1; elseif (z <= 3.9e-19) tmp = Float64(x - Float64(Float64(y - z) / Float64(Float64(t + 1.0) / a))); elseif (z <= 1e+32) tmp = Float64(x + Float64(Float64(a * Float64(z - y)) / Float64(1.0 - z))); elseif (z <= 1e+66) tmp = Float64(x + Float64(Float64(z - y) / Float64(t / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((z - y) / (-z / a)); tmp = 0.0; if (z <= -8.5e+31) tmp = t_1; elseif (z <= 3.9e-19) tmp = x - ((y - z) / ((t + 1.0) / a)); elseif (z <= 1e+32) tmp = x + ((a * (z - y)) / (1.0 - z)); elseif (z <= 1e+66) tmp = x + ((z - y) / (t / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(z - y), $MachinePrecision] / N[((-z) / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.5e+31], t$95$1, If[LessEqual[z, 3.9e-19], N[(x - N[(N[(y - z), $MachinePrecision] / N[(N[(t + 1.0), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e+32], N[(x + N[(N[(a * N[(z - y), $MachinePrecision]), $MachinePrecision] / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e+66], N[(x + N[(N[(z - y), $MachinePrecision] / N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{z - y}{\frac{-z}{a}}\\
\mathbf{if}\;z \leq -8.5 \cdot 10^{+31}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{-19}:\\
\;\;\;\;x - \frac{y - z}{\frac{t + 1}{a}}\\
\mathbf{elif}\;z \leq 10^{+32}:\\
\;\;\;\;x + \frac{a \cdot \left(z - y\right)}{1 - z}\\
\mathbf{elif}\;z \leq 10^{+66}:\\
\;\;\;\;x + \frac{z - y}{\frac{t}{a}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -8.49999999999999947e31 or 9.99999999999999945e65 < z Initial program 93.6%
Taylor expanded in z around inf 84.3%
mul-1-neg84.3%
distribute-neg-frac84.3%
Simplified84.3%
if -8.49999999999999947e31 < z < 3.89999999999999995e-19Initial program 98.2%
Taylor expanded in z around 0 98.2%
if 3.89999999999999995e-19 < z < 1.00000000000000005e32Initial program 99.9%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in t around 0 100.0%
if 1.00000000000000005e32 < z < 9.99999999999999945e65Initial program 100.0%
Taylor expanded in t around inf 75.3%
Final simplification91.1%
(FPCore (x y z t a)
:precision binary64
(if (<= z -5.2e+32)
(- x a)
(if (<= z 1.25e-34)
(- x (/ a (/ (+ t 1.0) y)))
(if (<= z 8.5e+130) (- x (/ a (/ (- 1.0 z) y))) (- x a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.2e+32) {
tmp = x - a;
} else if (z <= 1.25e-34) {
tmp = x - (a / ((t + 1.0) / y));
} else if (z <= 8.5e+130) {
tmp = x - (a / ((1.0 - z) / y));
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-5.2d+32)) then
tmp = x - a
else if (z <= 1.25d-34) then
tmp = x - (a / ((t + 1.0d0) / y))
else if (z <= 8.5d+130) then
tmp = x - (a / ((1.0d0 - z) / y))
else
tmp = x - a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.2e+32) {
tmp = x - a;
} else if (z <= 1.25e-34) {
tmp = x - (a / ((t + 1.0) / y));
} else if (z <= 8.5e+130) {
tmp = x - (a / ((1.0 - z) / y));
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -5.2e+32: tmp = x - a elif z <= 1.25e-34: tmp = x - (a / ((t + 1.0) / y)) elif z <= 8.5e+130: tmp = x - (a / ((1.0 - z) / y)) else: tmp = x - a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -5.2e+32) tmp = Float64(x - a); elseif (z <= 1.25e-34) tmp = Float64(x - Float64(a / Float64(Float64(t + 1.0) / y))); elseif (z <= 8.5e+130) tmp = Float64(x - Float64(a / Float64(Float64(1.0 - z) / y))); else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -5.2e+32) tmp = x - a; elseif (z <= 1.25e-34) tmp = x - (a / ((t + 1.0) / y)); elseif (z <= 8.5e+130) tmp = x - (a / ((1.0 - z) / y)); else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -5.2e+32], N[(x - a), $MachinePrecision], If[LessEqual[z, 1.25e-34], N[(x - N[(a / N[(N[(t + 1.0), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.5e+130], N[(x - N[(a / N[(N[(1.0 - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.2 \cdot 10^{+32}:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-34}:\\
\;\;\;\;x - \frac{a}{\frac{t + 1}{y}}\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{+130}:\\
\;\;\;\;x - \frac{a}{\frac{1 - z}{y}}\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -5.2000000000000004e32 or 8.49999999999999965e130 < z Initial program 93.1%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in z around inf 80.0%
if -5.2000000000000004e32 < z < 1.2500000000000001e-34Initial program 98.2%
associate-/r/99.9%
Simplified99.9%
associate-*l/92.4%
Applied egg-rr92.4%
Taylor expanded in z around 0 83.8%
associate-/l*91.2%
Simplified91.2%
if 1.2500000000000001e-34 < z < 8.49999999999999965e130Initial program 99.8%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in t around 0 79.2%
Taylor expanded in y around inf 76.2%
*-commutative76.2%
associate-/l*79.0%
Simplified79.0%
Final simplification84.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.5e+32) (not (<= z 1.28e+112))) (+ x (/ (- z y) (/ (- z) a))) (- x (* a (/ y (- (+ t 1.0) z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.5e+32) || !(z <= 1.28e+112)) {
tmp = x + ((z - y) / (-z / a));
} else {
tmp = x - (a * (y / ((t + 1.0) - 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.5d+32)) .or. (.not. (z <= 1.28d+112))) then
tmp = x + ((z - y) / (-z / a))
else
tmp = x - (a * (y / ((t + 1.0d0) - 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.5e+32) || !(z <= 1.28e+112)) {
tmp = x + ((z - y) / (-z / a));
} else {
tmp = x - (a * (y / ((t + 1.0) - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.5e+32) or not (z <= 1.28e+112): tmp = x + ((z - y) / (-z / a)) else: tmp = x - (a * (y / ((t + 1.0) - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.5e+32) || !(z <= 1.28e+112)) tmp = Float64(x + Float64(Float64(z - y) / Float64(Float64(-z) / a))); else tmp = Float64(x - Float64(a * Float64(y / Float64(Float64(t + 1.0) - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.5e+32) || ~((z <= 1.28e+112))) tmp = x + ((z - y) / (-z / a)); else tmp = x - (a * (y / ((t + 1.0) - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.5e+32], N[Not[LessEqual[z, 1.28e+112]], $MachinePrecision]], N[(x + N[(N[(z - y), $MachinePrecision] / N[((-z) / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(a * N[(y / N[(N[(t + 1.0), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.5 \cdot 10^{+32} \lor \neg \left(z \leq 1.28 \cdot 10^{+112}\right):\\
\;\;\;\;x + \frac{z - y}{\frac{-z}{a}}\\
\mathbf{else}:\\
\;\;\;\;x - a \cdot \frac{y}{\left(t + 1\right) - z}\\
\end{array}
\end{array}
if z < -1.5e32 or 1.28e112 < z Initial program 93.3%
Taylor expanded in z around inf 84.1%
mul-1-neg84.1%
distribute-neg-frac84.1%
Simplified84.1%
if -1.5e32 < z < 1.28e112Initial program 98.5%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in y around inf 89.6%
Final simplification87.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -3.4e+133) (not (<= y 3.7e-47))) (- x (* a (/ y (- (+ t 1.0) z)))) (+ x (* a (/ z (+ (- t z) 1.0))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -3.4e+133) || !(y <= 3.7e-47)) {
tmp = x - (a * (y / ((t + 1.0) - z)));
} else {
tmp = x + (a * (z / ((t - z) + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((y <= (-3.4d+133)) .or. (.not. (y <= 3.7d-47))) then
tmp = x - (a * (y / ((t + 1.0d0) - z)))
else
tmp = x + (a * (z / ((t - z) + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -3.4e+133) || !(y <= 3.7e-47)) {
tmp = x - (a * (y / ((t + 1.0) - z)));
} else {
tmp = x + (a * (z / ((t - z) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -3.4e+133) or not (y <= 3.7e-47): tmp = x - (a * (y / ((t + 1.0) - z))) else: tmp = x + (a * (z / ((t - z) + 1.0))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -3.4e+133) || !(y <= 3.7e-47)) tmp = Float64(x - Float64(a * Float64(y / Float64(Float64(t + 1.0) - z)))); else tmp = Float64(x + Float64(a * Float64(z / Float64(Float64(t - z) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -3.4e+133) || ~((y <= 3.7e-47))) tmp = x - (a * (y / ((t + 1.0) - z))); else tmp = x + (a * (z / ((t - z) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -3.4e+133], N[Not[LessEqual[y, 3.7e-47]], $MachinePrecision]], N[(x - N[(a * N[(y / N[(N[(t + 1.0), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(a * N[(z / N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.4 \cdot 10^{+133} \lor \neg \left(y \leq 3.7 \cdot 10^{-47}\right):\\
\;\;\;\;x - a \cdot \frac{y}{\left(t + 1\right) - z}\\
\mathbf{else}:\\
\;\;\;\;x + a \cdot \frac{z}{\left(t - z\right) + 1}\\
\end{array}
\end{array}
if y < -3.39999999999999987e133 or 3.7e-47 < y Initial program 97.2%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in y around inf 88.1%
if -3.39999999999999987e133 < y < 3.7e-47Initial program 95.4%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in y around 0 95.4%
associate-*r/95.4%
neg-mul-195.4%
associate--l+95.4%
Simplified95.4%
Final simplification92.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -3e+29) (not (<= z 2.55e-16))) (+ x (/ (- z y) (/ (- z) a))) (- x (/ a (/ (+ t 1.0) y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3e+29) || !(z <= 2.55e-16)) {
tmp = x + ((z - y) / (-z / a));
} else {
tmp = x - (a / ((t + 1.0) / 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 ((z <= (-3d+29)) .or. (.not. (z <= 2.55d-16))) then
tmp = x + ((z - y) / (-z / a))
else
tmp = x - (a / ((t + 1.0d0) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3e+29) || !(z <= 2.55e-16)) {
tmp = x + ((z - y) / (-z / a));
} else {
tmp = x - (a / ((t + 1.0) / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -3e+29) or not (z <= 2.55e-16): tmp = x + ((z - y) / (-z / a)) else: tmp = x - (a / ((t + 1.0) / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -3e+29) || !(z <= 2.55e-16)) tmp = Float64(x + Float64(Float64(z - y) / Float64(Float64(-z) / a))); else tmp = Float64(x - Float64(a / Float64(Float64(t + 1.0) / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -3e+29) || ~((z <= 2.55e-16))) tmp = x + ((z - y) / (-z / a)); else tmp = x - (a / ((t + 1.0) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -3e+29], N[Not[LessEqual[z, 2.55e-16]], $MachinePrecision]], N[(x + N[(N[(z - y), $MachinePrecision] / N[((-z) / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(a / N[(N[(t + 1.0), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{+29} \lor \neg \left(z \leq 2.55 \cdot 10^{-16}\right):\\
\;\;\;\;x + \frac{z - y}{\frac{-z}{a}}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{a}{\frac{t + 1}{y}}\\
\end{array}
\end{array}
if z < -2.9999999999999999e29 or 2.55e-16 < z Initial program 94.5%
Taylor expanded in z around inf 82.1%
mul-1-neg82.1%
distribute-neg-frac82.1%
Simplified82.1%
if -2.9999999999999999e29 < z < 2.55e-16Initial program 98.2%
associate-/r/99.9%
Simplified99.9%
associate-*l/92.6%
Applied egg-rr92.6%
Taylor expanded in z around 0 83.3%
associate-/l*90.6%
Simplified90.6%
Final simplification85.9%
(FPCore (x y z t a)
:precision binary64
(if (<= z -8e-12)
(- x a)
(if (<= z 2.55e-16)
(- x (* y a))
(if (<= z 3.5e+126) (+ x (* y (/ a z))) (- x a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8e-12) {
tmp = x - a;
} else if (z <= 2.55e-16) {
tmp = x - (y * a);
} else if (z <= 3.5e+126) {
tmp = x + (y * (a / z));
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-8d-12)) then
tmp = x - a
else if (z <= 2.55d-16) then
tmp = x - (y * a)
else if (z <= 3.5d+126) then
tmp = x + (y * (a / z))
else
tmp = x - a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8e-12) {
tmp = x - a;
} else if (z <= 2.55e-16) {
tmp = x - (y * a);
} else if (z <= 3.5e+126) {
tmp = x + (y * (a / z));
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -8e-12: tmp = x - a elif z <= 2.55e-16: tmp = x - (y * a) elif z <= 3.5e+126: tmp = x + (y * (a / z)) else: tmp = x - a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -8e-12) tmp = Float64(x - a); elseif (z <= 2.55e-16) tmp = Float64(x - Float64(y * a)); elseif (z <= 3.5e+126) tmp = Float64(x + Float64(y * Float64(a / z))); else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -8e-12) tmp = x - a; elseif (z <= 2.55e-16) tmp = x - (y * a); elseif (z <= 3.5e+126) tmp = x + (y * (a / z)); else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -8e-12], N[(x - a), $MachinePrecision], If[LessEqual[z, 2.55e-16], N[(x - N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.5e+126], N[(x + N[(y * N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8 \cdot 10^{-12}:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq 2.55 \cdot 10^{-16}:\\
\;\;\;\;x - y \cdot a\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{+126}:\\
\;\;\;\;x + y \cdot \frac{a}{z}\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -7.99999999999999984e-12 or 3.5000000000000003e126 < z Initial program 92.6%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in z around inf 79.2%
if -7.99999999999999984e-12 < z < 2.55e-16Initial program 99.1%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in t around 0 72.2%
Taylor expanded in z around 0 68.3%
if 2.55e-16 < z < 3.5000000000000003e126Initial program 99.8%
associate-/r/99.8%
Simplified99.8%
Taylor expanded in y around inf 86.6%
Taylor expanded in z around inf 71.6%
associate-/l*74.8%
Simplified74.8%
associate-/r/74.9%
Applied egg-rr74.9%
Final simplification74.0%
(FPCore (x y z t a)
:precision binary64
(if (<= z -8.8e+32)
(- x a)
(if (<= z 2.55e-16)
(- x (* y (/ a (+ t 1.0))))
(if (<= z 4.6e+126) (+ x (* y (/ a z))) (- x a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8.8e+32) {
tmp = x - a;
} else if (z <= 2.55e-16) {
tmp = x - (y * (a / (t + 1.0)));
} else if (z <= 4.6e+126) {
tmp = x + (y * (a / z));
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-8.8d+32)) then
tmp = x - a
else if (z <= 2.55d-16) then
tmp = x - (y * (a / (t + 1.0d0)))
else if (z <= 4.6d+126) then
tmp = x + (y * (a / z))
else
tmp = x - a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8.8e+32) {
tmp = x - a;
} else if (z <= 2.55e-16) {
tmp = x - (y * (a / (t + 1.0)));
} else if (z <= 4.6e+126) {
tmp = x + (y * (a / z));
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -8.8e+32: tmp = x - a elif z <= 2.55e-16: tmp = x - (y * (a / (t + 1.0))) elif z <= 4.6e+126: tmp = x + (y * (a / z)) else: tmp = x - a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -8.8e+32) tmp = Float64(x - a); elseif (z <= 2.55e-16) tmp = Float64(x - Float64(y * Float64(a / Float64(t + 1.0)))); elseif (z <= 4.6e+126) tmp = Float64(x + Float64(y * Float64(a / z))); else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -8.8e+32) tmp = x - a; elseif (z <= 2.55e-16) tmp = x - (y * (a / (t + 1.0))); elseif (z <= 4.6e+126) tmp = x + (y * (a / z)); else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -8.8e+32], N[(x - a), $MachinePrecision], If[LessEqual[z, 2.55e-16], N[(x - N[(y * N[(a / N[(t + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.6e+126], N[(x + N[(y * N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.8 \cdot 10^{+32}:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq 2.55 \cdot 10^{-16}:\\
\;\;\;\;x - y \cdot \frac{a}{t + 1}\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{+126}:\\
\;\;\;\;x + y \cdot \frac{a}{z}\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -8.80000000000000004e32 or 4.6000000000000001e126 < z Initial program 93.1%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in z around inf 80.0%
if -8.80000000000000004e32 < z < 2.55e-16Initial program 98.2%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in z around 0 83.3%
associate-/l*90.6%
associate-/r/89.6%
Simplified89.6%
if 2.55e-16 < z < 4.6000000000000001e126Initial program 99.8%
associate-/r/99.8%
Simplified99.8%
Taylor expanded in y around inf 86.6%
Taylor expanded in z around inf 71.6%
associate-/l*74.8%
Simplified74.8%
associate-/r/74.9%
Applied egg-rr74.9%
Final simplification83.7%
(FPCore (x y z t a)
:precision binary64
(if (<= z -7e+31)
(- x a)
(if (<= z 2.55e-16)
(- x (/ a (/ (+ t 1.0) y)))
(if (<= z 4.6e+130) (+ x (* y (/ a z))) (- x a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -7e+31) {
tmp = x - a;
} else if (z <= 2.55e-16) {
tmp = x - (a / ((t + 1.0) / y));
} else if (z <= 4.6e+130) {
tmp = x + (y * (a / z));
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-7d+31)) then
tmp = x - a
else if (z <= 2.55d-16) then
tmp = x - (a / ((t + 1.0d0) / y))
else if (z <= 4.6d+130) then
tmp = x + (y * (a / z))
else
tmp = x - a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -7e+31) {
tmp = x - a;
} else if (z <= 2.55e-16) {
tmp = x - (a / ((t + 1.0) / y));
} else if (z <= 4.6e+130) {
tmp = x + (y * (a / z));
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -7e+31: tmp = x - a elif z <= 2.55e-16: tmp = x - (a / ((t + 1.0) / y)) elif z <= 4.6e+130: tmp = x + (y * (a / z)) else: tmp = x - a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -7e+31) tmp = Float64(x - a); elseif (z <= 2.55e-16) tmp = Float64(x - Float64(a / Float64(Float64(t + 1.0) / y))); elseif (z <= 4.6e+130) tmp = Float64(x + Float64(y * Float64(a / z))); else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -7e+31) tmp = x - a; elseif (z <= 2.55e-16) tmp = x - (a / ((t + 1.0) / y)); elseif (z <= 4.6e+130) tmp = x + (y * (a / z)); else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -7e+31], N[(x - a), $MachinePrecision], If[LessEqual[z, 2.55e-16], N[(x - N[(a / N[(N[(t + 1.0), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.6e+130], N[(x + N[(y * N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+31}:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq 2.55 \cdot 10^{-16}:\\
\;\;\;\;x - \frac{a}{\frac{t + 1}{y}}\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{+130}:\\
\;\;\;\;x + y \cdot \frac{a}{z}\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -7e31 or 4.60000000000000042e130 < z Initial program 93.1%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in z around inf 80.0%
if -7e31 < z < 2.55e-16Initial program 98.2%
associate-/r/99.9%
Simplified99.9%
associate-*l/92.6%
Applied egg-rr92.6%
Taylor expanded in z around 0 83.3%
associate-/l*90.6%
Simplified90.6%
if 2.55e-16 < z < 4.60000000000000042e130Initial program 99.8%
associate-/r/99.8%
Simplified99.8%
Taylor expanded in y around inf 86.6%
Taylor expanded in z around inf 71.6%
associate-/l*74.8%
Simplified74.8%
associate-/r/74.9%
Applied egg-rr74.9%
Final simplification84.2%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.65e-37) (- x a) (if (<= z 1.65e-41) (+ x (* z a)) (- x a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.65e-37) {
tmp = x - a;
} else if (z <= 1.65e-41) {
tmp = x + (z * a);
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.65d-37)) then
tmp = x - a
else if (z <= 1.65d-41) then
tmp = x + (z * a)
else
tmp = x - a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.65e-37) {
tmp = x - a;
} else if (z <= 1.65e-41) {
tmp = x + (z * a);
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.65e-37: tmp = x - a elif z <= 1.65e-41: tmp = x + (z * a) else: tmp = x - a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.65e-37) tmp = Float64(x - a); elseif (z <= 1.65e-41) tmp = Float64(x + Float64(z * a)); else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.65e-37) tmp = x - a; elseif (z <= 1.65e-41) tmp = x + (z * a); else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.65e-37], N[(x - a), $MachinePrecision], If[LessEqual[z, 1.65e-41], N[(x + N[(z * a), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.65 \cdot 10^{-37}:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-41}:\\
\;\;\;\;x + z \cdot a\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -1.64999999999999991e-37 or 1.65000000000000012e-41 < z Initial program 94.2%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in z around inf 72.9%
if -1.64999999999999991e-37 < z < 1.65000000000000012e-41Initial program 99.0%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in y around 0 64.7%
associate-*r/64.7%
neg-mul-164.7%
associate--l+64.7%
Simplified64.7%
Taylor expanded in t around 0 60.5%
sub-neg60.5%
mul-1-neg60.5%
remove-double-neg60.5%
associate-/l*60.5%
Simplified60.5%
Taylor expanded in z around 0 60.5%
Final simplification67.9%
(FPCore (x y z t a) :precision binary64 (if (<= z -4.4e-13) (- x a) (if (<= z 5.5e-144) (- x (* y a)) (- x a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.4e-13) {
tmp = x - a;
} else if (z <= 5.5e-144) {
tmp = x - (y * a);
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-4.4d-13)) then
tmp = x - a
else if (z <= 5.5d-144) then
tmp = x - (y * a)
else
tmp = x - a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.4e-13) {
tmp = x - a;
} else if (z <= 5.5e-144) {
tmp = x - (y * a);
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4.4e-13: tmp = x - a elif z <= 5.5e-144: tmp = x - (y * a) else: tmp = x - a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.4e-13) tmp = Float64(x - a); elseif (z <= 5.5e-144) tmp = Float64(x - Float64(y * a)); else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -4.4e-13) tmp = x - a; elseif (z <= 5.5e-144) tmp = x - (y * a); else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.4e-13], N[(x - a), $MachinePrecision], If[LessEqual[z, 5.5e-144], N[(x - N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x - a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.4 \cdot 10^{-13}:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{-144}:\\
\;\;\;\;x - y \cdot a\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -4.39999999999999993e-13 or 5.49999999999999973e-144 < z Initial program 94.7%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in z around inf 73.1%
if -4.39999999999999993e-13 < z < 5.49999999999999973e-144Initial program 98.8%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in t around 0 73.3%
Taylor expanded in z around 0 69.4%
Final simplification71.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.25e-38) (- x a) (if (<= z 3.6e+60) x (- x a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.25e-38) {
tmp = x - a;
} else if (z <= 3.6e+60) {
tmp = x;
} else {
tmp = x - a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.25d-38)) then
tmp = x - a
else if (z <= 3.6d+60) then
tmp = x
else
tmp = x - a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.25e-38) {
tmp = x - a;
} else if (z <= 3.6e+60) {
tmp = x;
} else {
tmp = x - a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.25e-38: tmp = x - a elif z <= 3.6e+60: tmp = x else: tmp = x - a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.25e-38) tmp = Float64(x - a); elseif (z <= 3.6e+60) tmp = x; else tmp = Float64(x - a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.25e-38) tmp = x - a; elseif (z <= 3.6e+60) tmp = x; else tmp = x - a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.25e-38], N[(x - a), $MachinePrecision], If[LessEqual[z, 3.6e+60], x, N[(x - a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.25 \cdot 10^{-38}:\\
\;\;\;\;x - a\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{+60}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x - a\\
\end{array}
\end{array}
if z < -1.25000000000000008e-38 or 3.59999999999999968e60 < z Initial program 93.3%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in z around inf 75.6%
if -1.25000000000000008e-38 < z < 3.59999999999999968e60Initial program 99.2%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in y around inf 90.4%
Taylor expanded in x around inf 59.1%
Final simplification67.5%
(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 96.2%
associate-/r/99.9%
Simplified99.9%
Taylor expanded in y around inf 72.9%
Taylor expanded in x around inf 49.4%
Final simplification49.4%
(FPCore (x y z t a) :precision binary64 (- x (* (/ (- y z) (+ (- t z) 1.0)) a)))
double code(double x, double y, double z, double t, double a) {
return x - (((y - z) / ((t - z) + 1.0)) * 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 - z) + 1.0d0)) * a)
end function
public static double code(double x, double y, double z, double t, double a) {
return x - (((y - z) / ((t - z) + 1.0)) * a);
}
def code(x, y, z, t, a): return x - (((y - z) / ((t - z) + 1.0)) * a)
function code(x, y, z, t, a) return Float64(x - Float64(Float64(Float64(y - z) / Float64(Float64(t - z) + 1.0)) * a)) end
function tmp = code(x, y, z, t, a) tmp = x - (((y - z) / ((t - z) + 1.0)) * a); end
code[x_, y_, z_, t_, a_] := N[(x - N[(N[(N[(y - z), $MachinePrecision] / N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \frac{y - z}{\left(t - z\right) + 1} \cdot a
\end{array}
herbie shell --seed 2023257
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.SparkLine:renderSparkLine from Chart-1.5.3"
:precision binary64
:herbie-target
(- x (* (/ (- y z) (+ (- t z) 1.0)) a))
(- x (/ (- y z) (/ (+ (- t z) 1.0) a))))