
(FPCore (x y z t a b) :precision binary64 (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))
double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
code = ((x * y) + (z * (t - a))) / (y + (z * (b - y)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
}
def code(x, y, z, t, a, b): return ((x * y) + (z * (t - a))) / (y + (z * (b - y)))
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x * y) + Float64(z * Float64(t - a))) / Float64(y + Float64(z * Float64(b - y)))) end
function tmp = code(x, y, z, t, a, b) tmp = ((x * y) + (z * (t - a))) / (y + (z * (b - y))); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x * y), $MachinePrecision] + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))
double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
code = ((x * y) + (z * (t - a))) / (y + (z * (b - y)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
}
def code(x, y, z, t, a, b): return ((x * y) + (z * (t - a))) / (y + (z * (b - y)))
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x * y) + Float64(z * Float64(t - a))) / Float64(y + Float64(z * Float64(b - y)))) end
function tmp = code(x, y, z, t, a, b) tmp = ((x * y) + (z * (t - a))) / (y + (z * (b - y))); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x * y), $MachinePrecision] + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (- a t)))
(t_2 (- (* z (- y b)) y))
(t_3
(+
(/ (+ (* x (/ y (- b y))) (* y (/ (- a t) (pow (- b y) 2.0)))) z)
(/ (- a t) (- y b)))))
(if (<= z -1.7e-12)
t_3
(if (<= z -3.4e-307)
(/ (- t_1 (* x y)) t_2)
(if (<= z 7.5e-170)
(* x (- (/ t_1 (* x t_2)) (/ y t_2)))
(if (<= z 1.02e+21)
(/ (fma x y (* z (- t a))) (fma z (- b y) y))
t_3))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (a - t);
double t_2 = (z * (y - b)) - y;
double t_3 = (((x * (y / (b - y))) + (y * ((a - t) / pow((b - y), 2.0)))) / z) + ((a - t) / (y - b));
double tmp;
if (z <= -1.7e-12) {
tmp = t_3;
} else if (z <= -3.4e-307) {
tmp = (t_1 - (x * y)) / t_2;
} else if (z <= 7.5e-170) {
tmp = x * ((t_1 / (x * t_2)) - (y / t_2));
} else if (z <= 1.02e+21) {
tmp = fma(x, y, (z * (t - a))) / fma(z, (b - y), y);
} else {
tmp = t_3;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(a - t)) t_2 = Float64(Float64(z * Float64(y - b)) - y) t_3 = Float64(Float64(Float64(Float64(x * Float64(y / Float64(b - y))) + Float64(y * Float64(Float64(a - t) / (Float64(b - y) ^ 2.0)))) / z) + Float64(Float64(a - t) / Float64(y - b))) tmp = 0.0 if (z <= -1.7e-12) tmp = t_3; elseif (z <= -3.4e-307) tmp = Float64(Float64(t_1 - Float64(x * y)) / t_2); elseif (z <= 7.5e-170) tmp = Float64(x * Float64(Float64(t_1 / Float64(x * t_2)) - Float64(y / t_2))); elseif (z <= 1.02e+21) tmp = Float64(fma(x, y, Float64(z * Float64(t - a))) / fma(z, Float64(b - y), y)); else tmp = t_3; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * N[(y - b), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(x * N[(y / N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(a - t), $MachinePrecision] / N[Power[N[(b - y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] + N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.7e-12], t$95$3, If[LessEqual[z, -3.4e-307], N[(N[(t$95$1 - N[(x * y), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], If[LessEqual[z, 7.5e-170], N[(x * N[(N[(t$95$1 / N[(x * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(y / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.02e+21], N[(N[(x * y + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * N[(b - y), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(a - t\right)\\
t_2 := z \cdot \left(y - b\right) - y\\
t_3 := \frac{x \cdot \frac{y}{b - y} + y \cdot \frac{a - t}{{\left(b - y\right)}^{2}}}{z} + \frac{a - t}{y - b}\\
\mathbf{if}\;z \leq -1.7 \cdot 10^{-12}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -3.4 \cdot 10^{-307}:\\
\;\;\;\;\frac{t\_1 - x \cdot y}{t\_2}\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{-170}:\\
\;\;\;\;x \cdot \left(\frac{t\_1}{x \cdot t\_2} - \frac{y}{t\_2}\right)\\
\mathbf{elif}\;z \leq 1.02 \cdot 10^{+21}:\\
\;\;\;\;\frac{\mathsf{fma}\left(x, y, z \cdot \left(t - a\right)\right)}{\mathsf{fma}\left(z, b - y, y\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -1.7e-12 or 1.02e21 < z Initial program 32.4%
Taylor expanded in z around -inf 61.3%
associate--l+61.3%
mul-1-neg61.3%
distribute-lft-out--61.3%
associate-/l*70.4%
associate-/l*91.8%
div-sub91.8%
Simplified91.8%
if -1.7e-12 < z < -3.39999999999999989e-307Initial program 95.5%
if -3.39999999999999989e-307 < z < 7.4999999999999998e-170Initial program 80.3%
Taylor expanded in x around inf 96.7%
if 7.4999999999999998e-170 < z < 1.02e21Initial program 99.4%
fma-define99.4%
+-commutative99.4%
fma-define99.4%
Simplified99.4%
Final simplification94.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (- a t)))
(t_2 (- (* z (- y b)) y))
(t_3
(+
(/ (+ (* x (/ y (- b y))) (* y (/ (- a t) (pow (- b y) 2.0)))) z)
(/ (- a t) (- y b))))
(t_4 (/ (- t_1 (* x y)) t_2)))
(if (<= z -1.7e-12)
t_3
(if (<= z -4.2e-307)
t_4
(if (<= z 3.8e-169)
(* x (- (/ t_1 (* x t_2)) (/ y t_2)))
(if (<= z 5.6e+18) t_4 t_3))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (a - t);
double t_2 = (z * (y - b)) - y;
double t_3 = (((x * (y / (b - y))) + (y * ((a - t) / pow((b - y), 2.0)))) / z) + ((a - t) / (y - b));
double t_4 = (t_1 - (x * y)) / t_2;
double tmp;
if (z <= -1.7e-12) {
tmp = t_3;
} else if (z <= -4.2e-307) {
tmp = t_4;
} else if (z <= 3.8e-169) {
tmp = x * ((t_1 / (x * t_2)) - (y / t_2));
} else if (z <= 5.6e+18) {
tmp = t_4;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = z * (a - t)
t_2 = (z * (y - b)) - y
t_3 = (((x * (y / (b - y))) + (y * ((a - t) / ((b - y) ** 2.0d0)))) / z) + ((a - t) / (y - b))
t_4 = (t_1 - (x * y)) / t_2
if (z <= (-1.7d-12)) then
tmp = t_3
else if (z <= (-4.2d-307)) then
tmp = t_4
else if (z <= 3.8d-169) then
tmp = x * ((t_1 / (x * t_2)) - (y / t_2))
else if (z <= 5.6d+18) then
tmp = t_4
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (a - t);
double t_2 = (z * (y - b)) - y;
double t_3 = (((x * (y / (b - y))) + (y * ((a - t) / Math.pow((b - y), 2.0)))) / z) + ((a - t) / (y - b));
double t_4 = (t_1 - (x * y)) / t_2;
double tmp;
if (z <= -1.7e-12) {
tmp = t_3;
} else if (z <= -4.2e-307) {
tmp = t_4;
} else if (z <= 3.8e-169) {
tmp = x * ((t_1 / (x * t_2)) - (y / t_2));
} else if (z <= 5.6e+18) {
tmp = t_4;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (a - t) t_2 = (z * (y - b)) - y t_3 = (((x * (y / (b - y))) + (y * ((a - t) / math.pow((b - y), 2.0)))) / z) + ((a - t) / (y - b)) t_4 = (t_1 - (x * y)) / t_2 tmp = 0 if z <= -1.7e-12: tmp = t_3 elif z <= -4.2e-307: tmp = t_4 elif z <= 3.8e-169: tmp = x * ((t_1 / (x * t_2)) - (y / t_2)) elif z <= 5.6e+18: tmp = t_4 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(a - t)) t_2 = Float64(Float64(z * Float64(y - b)) - y) t_3 = Float64(Float64(Float64(Float64(x * Float64(y / Float64(b - y))) + Float64(y * Float64(Float64(a - t) / (Float64(b - y) ^ 2.0)))) / z) + Float64(Float64(a - t) / Float64(y - b))) t_4 = Float64(Float64(t_1 - Float64(x * y)) / t_2) tmp = 0.0 if (z <= -1.7e-12) tmp = t_3; elseif (z <= -4.2e-307) tmp = t_4; elseif (z <= 3.8e-169) tmp = Float64(x * Float64(Float64(t_1 / Float64(x * t_2)) - Float64(y / t_2))); elseif (z <= 5.6e+18) tmp = t_4; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (a - t); t_2 = (z * (y - b)) - y; t_3 = (((x * (y / (b - y))) + (y * ((a - t) / ((b - y) ^ 2.0)))) / z) + ((a - t) / (y - b)); t_4 = (t_1 - (x * y)) / t_2; tmp = 0.0; if (z <= -1.7e-12) tmp = t_3; elseif (z <= -4.2e-307) tmp = t_4; elseif (z <= 3.8e-169) tmp = x * ((t_1 / (x * t_2)) - (y / t_2)); elseif (z <= 5.6e+18) tmp = t_4; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * N[(y - b), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(x * N[(y / N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(a - t), $MachinePrecision] / N[Power[N[(b - y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] + N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t$95$1 - N[(x * y), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision]}, If[LessEqual[z, -1.7e-12], t$95$3, If[LessEqual[z, -4.2e-307], t$95$4, If[LessEqual[z, 3.8e-169], N[(x * N[(N[(t$95$1 / N[(x * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(y / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.6e+18], t$95$4, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(a - t\right)\\
t_2 := z \cdot \left(y - b\right) - y\\
t_3 := \frac{x \cdot \frac{y}{b - y} + y \cdot \frac{a - t}{{\left(b - y\right)}^{2}}}{z} + \frac{a - t}{y - b}\\
t_4 := \frac{t\_1 - x \cdot y}{t\_2}\\
\mathbf{if}\;z \leq -1.7 \cdot 10^{-12}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -4.2 \cdot 10^{-307}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{-169}:\\
\;\;\;\;x \cdot \left(\frac{t\_1}{x \cdot t\_2} - \frac{y}{t\_2}\right)\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{+18}:\\
\;\;\;\;t\_4\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -1.7e-12 or 5.6e18 < z Initial program 32.4%
Taylor expanded in z around -inf 61.3%
associate--l+61.3%
mul-1-neg61.3%
distribute-lft-out--61.3%
associate-/l*70.4%
associate-/l*91.8%
div-sub91.8%
Simplified91.8%
if -1.7e-12 < z < -4.2000000000000002e-307 or 3.8e-169 < z < 5.6e18Initial program 97.0%
if -4.2000000000000002e-307 < z < 3.8e-169Initial program 80.3%
Taylor expanded in x around inf 96.7%
Final simplification94.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- a t) (- y b))) (t_2 (* z (- y b))))
(if (<= z -2.05e+154)
t_1
(if (<= z -2.05e+125)
(+
(/ x (- 1.0 z))
(* x (/ (- (- (/ a x) (* b (/ z (pow (+ z -1.0) 2.0)))) (/ t x)) y)))
(if (<= z -1.7e-12)
(+ (- t_1 (* x (/ y t_2))) (* y (/ (- a t) (* z (pow (- b y) 2.0)))))
(if (<= z 1.1e+26)
(/ (- (* z (- a t)) (* x y)) (- t_2 y))
(if (<= z 1e+128)
(- (/ (- a t) y) (/ (+ x (/ (- t a) y)) z))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a - t) / (y - b);
double t_2 = z * (y - b);
double tmp;
if (z <= -2.05e+154) {
tmp = t_1;
} else if (z <= -2.05e+125) {
tmp = (x / (1.0 - z)) + (x * ((((a / x) - (b * (z / pow((z + -1.0), 2.0)))) - (t / x)) / y));
} else if (z <= -1.7e-12) {
tmp = (t_1 - (x * (y / t_2))) + (y * ((a - t) / (z * pow((b - y), 2.0))));
} else if (z <= 1.1e+26) {
tmp = ((z * (a - t)) - (x * y)) / (t_2 - y);
} else if (z <= 1e+128) {
tmp = ((a - t) / y) - ((x + ((t - a) / y)) / z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (a - t) / (y - b)
t_2 = z * (y - b)
if (z <= (-2.05d+154)) then
tmp = t_1
else if (z <= (-2.05d+125)) then
tmp = (x / (1.0d0 - z)) + (x * ((((a / x) - (b * (z / ((z + (-1.0d0)) ** 2.0d0)))) - (t / x)) / y))
else if (z <= (-1.7d-12)) then
tmp = (t_1 - (x * (y / t_2))) + (y * ((a - t) / (z * ((b - y) ** 2.0d0))))
else if (z <= 1.1d+26) then
tmp = ((z * (a - t)) - (x * y)) / (t_2 - y)
else if (z <= 1d+128) then
tmp = ((a - t) / y) - ((x + ((t - a) / y)) / z)
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 b) {
double t_1 = (a - t) / (y - b);
double t_2 = z * (y - b);
double tmp;
if (z <= -2.05e+154) {
tmp = t_1;
} else if (z <= -2.05e+125) {
tmp = (x / (1.0 - z)) + (x * ((((a / x) - (b * (z / Math.pow((z + -1.0), 2.0)))) - (t / x)) / y));
} else if (z <= -1.7e-12) {
tmp = (t_1 - (x * (y / t_2))) + (y * ((a - t) / (z * Math.pow((b - y), 2.0))));
} else if (z <= 1.1e+26) {
tmp = ((z * (a - t)) - (x * y)) / (t_2 - y);
} else if (z <= 1e+128) {
tmp = ((a - t) / y) - ((x + ((t - a) / y)) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a - t) / (y - b) t_2 = z * (y - b) tmp = 0 if z <= -2.05e+154: tmp = t_1 elif z <= -2.05e+125: tmp = (x / (1.0 - z)) + (x * ((((a / x) - (b * (z / math.pow((z + -1.0), 2.0)))) - (t / x)) / y)) elif z <= -1.7e-12: tmp = (t_1 - (x * (y / t_2))) + (y * ((a - t) / (z * math.pow((b - y), 2.0)))) elif z <= 1.1e+26: tmp = ((z * (a - t)) - (x * y)) / (t_2 - y) elif z <= 1e+128: tmp = ((a - t) / y) - ((x + ((t - a) / y)) / z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a - t) / Float64(y - b)) t_2 = Float64(z * Float64(y - b)) tmp = 0.0 if (z <= -2.05e+154) tmp = t_1; elseif (z <= -2.05e+125) tmp = Float64(Float64(x / Float64(1.0 - z)) + Float64(x * Float64(Float64(Float64(Float64(a / x) - Float64(b * Float64(z / (Float64(z + -1.0) ^ 2.0)))) - Float64(t / x)) / y))); elseif (z <= -1.7e-12) tmp = Float64(Float64(t_1 - Float64(x * Float64(y / t_2))) + Float64(y * Float64(Float64(a - t) / Float64(z * (Float64(b - y) ^ 2.0))))); elseif (z <= 1.1e+26) tmp = Float64(Float64(Float64(z * Float64(a - t)) - Float64(x * y)) / Float64(t_2 - y)); elseif (z <= 1e+128) tmp = Float64(Float64(Float64(a - t) / y) - Float64(Float64(x + Float64(Float64(t - a) / y)) / z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a - t) / (y - b); t_2 = z * (y - b); tmp = 0.0; if (z <= -2.05e+154) tmp = t_1; elseif (z <= -2.05e+125) tmp = (x / (1.0 - z)) + (x * ((((a / x) - (b * (z / ((z + -1.0) ^ 2.0)))) - (t / x)) / y)); elseif (z <= -1.7e-12) tmp = (t_1 - (x * (y / t_2))) + (y * ((a - t) / (z * ((b - y) ^ 2.0)))); elseif (z <= 1.1e+26) tmp = ((z * (a - t)) - (x * y)) / (t_2 - y); elseif (z <= 1e+128) tmp = ((a - t) / y) - ((x + ((t - a) / y)) / z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(y - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.05e+154], t$95$1, If[LessEqual[z, -2.05e+125], N[(N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(N[(N[(a / x), $MachinePrecision] - N[(b * N[(z / N[Power[N[(z + -1.0), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.7e-12], N[(N[(t$95$1 - N[(x * N[(y / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(a - t), $MachinePrecision] / N[(z * N[Power[N[(b - y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.1e+26], N[(N[(N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision] / N[(t$95$2 - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e+128], N[(N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision] - N[(N[(x + N[(N[(t - a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a - t}{y - b}\\
t_2 := z \cdot \left(y - b\right)\\
\mathbf{if}\;z \leq -2.05 \cdot 10^{+154}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.05 \cdot 10^{+125}:\\
\;\;\;\;\frac{x}{1 - z} + x \cdot \frac{\left(\frac{a}{x} - b \cdot \frac{z}{{\left(z + -1\right)}^{2}}\right) - \frac{t}{x}}{y}\\
\mathbf{elif}\;z \leq -1.7 \cdot 10^{-12}:\\
\;\;\;\;\left(t\_1 - x \cdot \frac{y}{t\_2}\right) + y \cdot \frac{a - t}{z \cdot {\left(b - y\right)}^{2}}\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{+26}:\\
\;\;\;\;\frac{z \cdot \left(a - t\right) - x \cdot y}{t\_2 - y}\\
\mathbf{elif}\;z \leq 10^{+128}:\\
\;\;\;\;\frac{a - t}{y} - \frac{x + \frac{t - a}{y}}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.05e154 or 1.0000000000000001e128 < z Initial program 22.3%
Taylor expanded in z around inf 85.5%
if -2.05e154 < z < -2.04999999999999996e125Initial program 27.3%
Taylor expanded in x around inf 40.0%
Taylor expanded in z around inf 64.1%
Taylor expanded in y around -inf 87.6%
distribute-lft-out87.6%
sub-neg87.6%
metadata-eval87.6%
associate-/l*87.8%
associate--l+87.8%
associate-/l*94.2%
sub-neg94.2%
metadata-eval94.2%
Simplified94.2%
if -2.04999999999999996e125 < z < -1.7e-12Initial program 50.6%
Taylor expanded in z around inf 64.4%
associate--r+64.4%
+-commutative64.4%
associate--l+64.4%
associate-/l*68.4%
div-sub68.4%
associate-/l*89.1%
Simplified89.1%
if -1.7e-12 < z < 1.10000000000000004e26Initial program 93.5%
if 1.10000000000000004e26 < z < 1.0000000000000001e128Initial program 42.1%
Taylor expanded in y around inf 37.3%
mul-1-neg37.3%
unsub-neg37.3%
Simplified37.3%
Taylor expanded in z around -inf 86.5%
mul-1-neg86.5%
unsub-neg86.5%
associate-*r/86.5%
mul-1-neg86.5%
sub-neg86.5%
mul-1-neg86.5%
remove-double-neg86.5%
Simplified86.5%
Final simplification90.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- a t) (- y b))))
(if (<= z -2.05e+154)
t_1
(if (<= z -2.05e+125)
(+
(/ x (- 1.0 z))
(* x (/ (- (- (/ a x) (* b (/ z (pow (+ z -1.0) 2.0)))) (/ t x)) y)))
(if (<= z -1.1e+21)
t_1
(if (<= z 1.1e+26)
(/ (- (* z (- a t)) (* x y)) (- (* z (- y b)) y))
(if (<= z 1e+128)
(- (/ (- a t) y) (/ (+ x (/ (- t a) y)) z))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a - t) / (y - b);
double tmp;
if (z <= -2.05e+154) {
tmp = t_1;
} else if (z <= -2.05e+125) {
tmp = (x / (1.0 - z)) + (x * ((((a / x) - (b * (z / pow((z + -1.0), 2.0)))) - (t / x)) / y));
} else if (z <= -1.1e+21) {
tmp = t_1;
} else if (z <= 1.1e+26) {
tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y);
} else if (z <= 1e+128) {
tmp = ((a - t) / y) - ((x + ((t - a) / y)) / z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (a - t) / (y - b)
if (z <= (-2.05d+154)) then
tmp = t_1
else if (z <= (-2.05d+125)) then
tmp = (x / (1.0d0 - z)) + (x * ((((a / x) - (b * (z / ((z + (-1.0d0)) ** 2.0d0)))) - (t / x)) / y))
else if (z <= (-1.1d+21)) then
tmp = t_1
else if (z <= 1.1d+26) then
tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y)
else if (z <= 1d+128) then
tmp = ((a - t) / y) - ((x + ((t - a) / y)) / z)
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 b) {
double t_1 = (a - t) / (y - b);
double tmp;
if (z <= -2.05e+154) {
tmp = t_1;
} else if (z <= -2.05e+125) {
tmp = (x / (1.0 - z)) + (x * ((((a / x) - (b * (z / Math.pow((z + -1.0), 2.0)))) - (t / x)) / y));
} else if (z <= -1.1e+21) {
tmp = t_1;
} else if (z <= 1.1e+26) {
tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y);
} else if (z <= 1e+128) {
tmp = ((a - t) / y) - ((x + ((t - a) / y)) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a - t) / (y - b) tmp = 0 if z <= -2.05e+154: tmp = t_1 elif z <= -2.05e+125: tmp = (x / (1.0 - z)) + (x * ((((a / x) - (b * (z / math.pow((z + -1.0), 2.0)))) - (t / x)) / y)) elif z <= -1.1e+21: tmp = t_1 elif z <= 1.1e+26: tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y) elif z <= 1e+128: tmp = ((a - t) / y) - ((x + ((t - a) / y)) / z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a - t) / Float64(y - b)) tmp = 0.0 if (z <= -2.05e+154) tmp = t_1; elseif (z <= -2.05e+125) tmp = Float64(Float64(x / Float64(1.0 - z)) + Float64(x * Float64(Float64(Float64(Float64(a / x) - Float64(b * Float64(z / (Float64(z + -1.0) ^ 2.0)))) - Float64(t / x)) / y))); elseif (z <= -1.1e+21) tmp = t_1; elseif (z <= 1.1e+26) tmp = Float64(Float64(Float64(z * Float64(a - t)) - Float64(x * y)) / Float64(Float64(z * Float64(y - b)) - y)); elseif (z <= 1e+128) tmp = Float64(Float64(Float64(a - t) / y) - Float64(Float64(x + Float64(Float64(t - a) / y)) / z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a - t) / (y - b); tmp = 0.0; if (z <= -2.05e+154) tmp = t_1; elseif (z <= -2.05e+125) tmp = (x / (1.0 - z)) + (x * ((((a / x) - (b * (z / ((z + -1.0) ^ 2.0)))) - (t / x)) / y)); elseif (z <= -1.1e+21) tmp = t_1; elseif (z <= 1.1e+26) tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y); elseif (z <= 1e+128) tmp = ((a - t) / y) - ((x + ((t - a) / y)) / z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.05e+154], t$95$1, If[LessEqual[z, -2.05e+125], N[(N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(N[(N[(a / x), $MachinePrecision] - N[(b * N[(z / N[Power[N[(z + -1.0), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.1e+21], t$95$1, If[LessEqual[z, 1.1e+26], N[(N[(N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(y - b), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e+128], N[(N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision] - N[(N[(x + N[(N[(t - a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a - t}{y - b}\\
\mathbf{if}\;z \leq -2.05 \cdot 10^{+154}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.05 \cdot 10^{+125}:\\
\;\;\;\;\frac{x}{1 - z} + x \cdot \frac{\left(\frac{a}{x} - b \cdot \frac{z}{{\left(z + -1\right)}^{2}}\right) - \frac{t}{x}}{y}\\
\mathbf{elif}\;z \leq -1.1 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{+26}:\\
\;\;\;\;\frac{z \cdot \left(a - t\right) - x \cdot y}{z \cdot \left(y - b\right) - y}\\
\mathbf{elif}\;z \leq 10^{+128}:\\
\;\;\;\;\frac{a - t}{y} - \frac{x + \frac{t - a}{y}}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.05e154 or -2.04999999999999996e125 < z < -1.1e21 or 1.0000000000000001e128 < z Initial program 27.6%
Taylor expanded in z around inf 83.1%
if -2.05e154 < z < -2.04999999999999996e125Initial program 27.3%
Taylor expanded in x around inf 40.0%
Taylor expanded in z around inf 64.1%
Taylor expanded in y around -inf 87.6%
distribute-lft-out87.6%
sub-neg87.6%
metadata-eval87.6%
associate-/l*87.8%
associate--l+87.8%
associate-/l*94.2%
sub-neg94.2%
metadata-eval94.2%
Simplified94.2%
if -1.1e21 < z < 1.10000000000000004e26Initial program 92.5%
if 1.10000000000000004e26 < z < 1.0000000000000001e128Initial program 42.1%
Taylor expanded in y around inf 37.3%
mul-1-neg37.3%
unsub-neg37.3%
Simplified37.3%
Taylor expanded in z around -inf 86.5%
mul-1-neg86.5%
unsub-neg86.5%
associate-*r/86.5%
mul-1-neg86.5%
sub-neg86.5%
mul-1-neg86.5%
remove-double-neg86.5%
Simplified86.5%
Final simplification89.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- (/ (- a t) y) (/ (+ x (/ (- t a) y)) z)))
(t_2 (/ (* x (- (+ (/ t x) (/ y z)) (/ a x))) b))
(t_3 (/ (- a t) (- y b))))
(if (<= z -2.2e+154)
t_3
(if (<= z -2.05e+125)
t_1
(if (<= z -3.9e-11)
t_3
(if (<= z 5.2e-67)
(- x (/ (* z (- a t)) y))
(if (<= z 5.3e-48)
t_2
(if (<= z 110.0)
(/ (+ (* x y) (* z (- t a))) (* y (- 1.0 z)))
(if (<= z 43000000000.0) t_2 (if (<= z 1e+128) t_1 t_3))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((a - t) / y) - ((x + ((t - a) / y)) / z);
double t_2 = (x * (((t / x) + (y / z)) - (a / x))) / b;
double t_3 = (a - t) / (y - b);
double tmp;
if (z <= -2.2e+154) {
tmp = t_3;
} else if (z <= -2.05e+125) {
tmp = t_1;
} else if (z <= -3.9e-11) {
tmp = t_3;
} else if (z <= 5.2e-67) {
tmp = x - ((z * (a - t)) / y);
} else if (z <= 5.3e-48) {
tmp = t_2;
} else if (z <= 110.0) {
tmp = ((x * y) + (z * (t - a))) / (y * (1.0 - z));
} else if (z <= 43000000000.0) {
tmp = t_2;
} else if (z <= 1e+128) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = ((a - t) / y) - ((x + ((t - a) / y)) / z)
t_2 = (x * (((t / x) + (y / z)) - (a / x))) / b
t_3 = (a - t) / (y - b)
if (z <= (-2.2d+154)) then
tmp = t_3
else if (z <= (-2.05d+125)) then
tmp = t_1
else if (z <= (-3.9d-11)) then
tmp = t_3
else if (z <= 5.2d-67) then
tmp = x - ((z * (a - t)) / y)
else if (z <= 5.3d-48) then
tmp = t_2
else if (z <= 110.0d0) then
tmp = ((x * y) + (z * (t - a))) / (y * (1.0d0 - z))
else if (z <= 43000000000.0d0) then
tmp = t_2
else if (z <= 1d+128) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((a - t) / y) - ((x + ((t - a) / y)) / z);
double t_2 = (x * (((t / x) + (y / z)) - (a / x))) / b;
double t_3 = (a - t) / (y - b);
double tmp;
if (z <= -2.2e+154) {
tmp = t_3;
} else if (z <= -2.05e+125) {
tmp = t_1;
} else if (z <= -3.9e-11) {
tmp = t_3;
} else if (z <= 5.2e-67) {
tmp = x - ((z * (a - t)) / y);
} else if (z <= 5.3e-48) {
tmp = t_2;
} else if (z <= 110.0) {
tmp = ((x * y) + (z * (t - a))) / (y * (1.0 - z));
} else if (z <= 43000000000.0) {
tmp = t_2;
} else if (z <= 1e+128) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((a - t) / y) - ((x + ((t - a) / y)) / z) t_2 = (x * (((t / x) + (y / z)) - (a / x))) / b t_3 = (a - t) / (y - b) tmp = 0 if z <= -2.2e+154: tmp = t_3 elif z <= -2.05e+125: tmp = t_1 elif z <= -3.9e-11: tmp = t_3 elif z <= 5.2e-67: tmp = x - ((z * (a - t)) / y) elif z <= 5.3e-48: tmp = t_2 elif z <= 110.0: tmp = ((x * y) + (z * (t - a))) / (y * (1.0 - z)) elif z <= 43000000000.0: tmp = t_2 elif z <= 1e+128: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(a - t) / y) - Float64(Float64(x + Float64(Float64(t - a) / y)) / z)) t_2 = Float64(Float64(x * Float64(Float64(Float64(t / x) + Float64(y / z)) - Float64(a / x))) / b) t_3 = Float64(Float64(a - t) / Float64(y - b)) tmp = 0.0 if (z <= -2.2e+154) tmp = t_3; elseif (z <= -2.05e+125) tmp = t_1; elseif (z <= -3.9e-11) tmp = t_3; elseif (z <= 5.2e-67) tmp = Float64(x - Float64(Float64(z * Float64(a - t)) / y)); elseif (z <= 5.3e-48) tmp = t_2; elseif (z <= 110.0) tmp = Float64(Float64(Float64(x * y) + Float64(z * Float64(t - a))) / Float64(y * Float64(1.0 - z))); elseif (z <= 43000000000.0) tmp = t_2; elseif (z <= 1e+128) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((a - t) / y) - ((x + ((t - a) / y)) / z); t_2 = (x * (((t / x) + (y / z)) - (a / x))) / b; t_3 = (a - t) / (y - b); tmp = 0.0; if (z <= -2.2e+154) tmp = t_3; elseif (z <= -2.05e+125) tmp = t_1; elseif (z <= -3.9e-11) tmp = t_3; elseif (z <= 5.2e-67) tmp = x - ((z * (a - t)) / y); elseif (z <= 5.3e-48) tmp = t_2; elseif (z <= 110.0) tmp = ((x * y) + (z * (t - a))) / (y * (1.0 - z)); elseif (z <= 43000000000.0) tmp = t_2; elseif (z <= 1e+128) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision] - N[(N[(x + N[(N[(t - a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(N[(t / x), $MachinePrecision] + N[(y / z), $MachinePrecision]), $MachinePrecision] - N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.2e+154], t$95$3, If[LessEqual[z, -2.05e+125], t$95$1, If[LessEqual[z, -3.9e-11], t$95$3, If[LessEqual[z, 5.2e-67], N[(x - N[(N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.3e-48], t$95$2, If[LessEqual[z, 110.0], N[(N[(N[(x * y), $MachinePrecision] + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 43000000000.0], t$95$2, If[LessEqual[z, 1e+128], t$95$1, t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a - t}{y} - \frac{x + \frac{t - a}{y}}{z}\\
t_2 := \frac{x \cdot \left(\left(\frac{t}{x} + \frac{y}{z}\right) - \frac{a}{x}\right)}{b}\\
t_3 := \frac{a - t}{y - b}\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+154}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -2.05 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -3.9 \cdot 10^{-11}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-67}:\\
\;\;\;\;x - \frac{z \cdot \left(a - t\right)}{y}\\
\mathbf{elif}\;z \leq 5.3 \cdot 10^{-48}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 110:\\
\;\;\;\;\frac{x \cdot y + z \cdot \left(t - a\right)}{y \cdot \left(1 - z\right)}\\
\mathbf{elif}\;z \leq 43000000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 10^{+128}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -2.2000000000000001e154 or -2.04999999999999996e125 < z < -3.9000000000000001e-11 or 1.0000000000000001e128 < z Initial program 30.7%
Taylor expanded in z around inf 81.8%
if -2.2000000000000001e154 < z < -2.04999999999999996e125 or 4.3e10 < z < 1.0000000000000001e128Initial program 40.2%
Taylor expanded in y around inf 36.7%
mul-1-neg36.7%
unsub-neg36.7%
Simplified36.7%
Taylor expanded in z around -inf 88.1%
mul-1-neg88.1%
unsub-neg88.1%
associate-*r/88.1%
mul-1-neg88.1%
sub-neg88.1%
mul-1-neg88.1%
remove-double-neg88.1%
Simplified88.1%
if -3.9000000000000001e-11 < z < 5.1999999999999998e-67Initial program 91.6%
Taylor expanded in z around 0 67.2%
Taylor expanded in x around 0 75.1%
if 5.1999999999999998e-67 < z < 5.3e-48 or 110 < z < 4.3e10Initial program 99.0%
Taylor expanded in x around inf 67.3%
Taylor expanded in b around inf 99.8%
if 5.3e-48 < z < 110Initial program 99.4%
Taylor expanded in y around inf 69.8%
mul-1-neg69.8%
unsub-neg69.8%
Simplified69.8%
Final simplification79.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- a t) (- y b))))
(if (<= z -2.06e+154)
t_1
(if (<= z -1.55e+125)
(*
t
(-
(/ z (* y (- 1.0 z)))
(/ (+ (* (/ a y) (/ z (- 1.0 z))) (/ x (+ z -1.0))) t)))
(if (<= z -2.6e+23)
t_1
(if (<= z 4.7e+25)
(/ (- (* z (- a t)) (* x y)) (- (* z (- y b)) y))
(if (<= z 1e+128)
(- (/ (- a t) y) (/ (+ x (/ (- t a) y)) z))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a - t) / (y - b);
double tmp;
if (z <= -2.06e+154) {
tmp = t_1;
} else if (z <= -1.55e+125) {
tmp = t * ((z / (y * (1.0 - z))) - ((((a / y) * (z / (1.0 - z))) + (x / (z + -1.0))) / t));
} else if (z <= -2.6e+23) {
tmp = t_1;
} else if (z <= 4.7e+25) {
tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y);
} else if (z <= 1e+128) {
tmp = ((a - t) / y) - ((x + ((t - a) / y)) / z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (a - t) / (y - b)
if (z <= (-2.06d+154)) then
tmp = t_1
else if (z <= (-1.55d+125)) then
tmp = t * ((z / (y * (1.0d0 - z))) - ((((a / y) * (z / (1.0d0 - z))) + (x / (z + (-1.0d0)))) / t))
else if (z <= (-2.6d+23)) then
tmp = t_1
else if (z <= 4.7d+25) then
tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y)
else if (z <= 1d+128) then
tmp = ((a - t) / y) - ((x + ((t - a) / y)) / z)
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 b) {
double t_1 = (a - t) / (y - b);
double tmp;
if (z <= -2.06e+154) {
tmp = t_1;
} else if (z <= -1.55e+125) {
tmp = t * ((z / (y * (1.0 - z))) - ((((a / y) * (z / (1.0 - z))) + (x / (z + -1.0))) / t));
} else if (z <= -2.6e+23) {
tmp = t_1;
} else if (z <= 4.7e+25) {
tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y);
} else if (z <= 1e+128) {
tmp = ((a - t) / y) - ((x + ((t - a) / y)) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a - t) / (y - b) tmp = 0 if z <= -2.06e+154: tmp = t_1 elif z <= -1.55e+125: tmp = t * ((z / (y * (1.0 - z))) - ((((a / y) * (z / (1.0 - z))) + (x / (z + -1.0))) / t)) elif z <= -2.6e+23: tmp = t_1 elif z <= 4.7e+25: tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y) elif z <= 1e+128: tmp = ((a - t) / y) - ((x + ((t - a) / y)) / z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a - t) / Float64(y - b)) tmp = 0.0 if (z <= -2.06e+154) tmp = t_1; elseif (z <= -1.55e+125) tmp = Float64(t * Float64(Float64(z / Float64(y * Float64(1.0 - z))) - Float64(Float64(Float64(Float64(a / y) * Float64(z / Float64(1.0 - z))) + Float64(x / Float64(z + -1.0))) / t))); elseif (z <= -2.6e+23) tmp = t_1; elseif (z <= 4.7e+25) tmp = Float64(Float64(Float64(z * Float64(a - t)) - Float64(x * y)) / Float64(Float64(z * Float64(y - b)) - y)); elseif (z <= 1e+128) tmp = Float64(Float64(Float64(a - t) / y) - Float64(Float64(x + Float64(Float64(t - a) / y)) / z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a - t) / (y - b); tmp = 0.0; if (z <= -2.06e+154) tmp = t_1; elseif (z <= -1.55e+125) tmp = t * ((z / (y * (1.0 - z))) - ((((a / y) * (z / (1.0 - z))) + (x / (z + -1.0))) / t)); elseif (z <= -2.6e+23) tmp = t_1; elseif (z <= 4.7e+25) tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y); elseif (z <= 1e+128) tmp = ((a - t) / y) - ((x + ((t - a) / y)) / z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.06e+154], t$95$1, If[LessEqual[z, -1.55e+125], N[(t * N[(N[(z / N[(y * N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(N[(a / y), $MachinePrecision] * N[(z / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.6e+23], t$95$1, If[LessEqual[z, 4.7e+25], N[(N[(N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(y - b), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e+128], N[(N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision] - N[(N[(x + N[(N[(t - a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a - t}{y - b}\\
\mathbf{if}\;z \leq -2.06 \cdot 10^{+154}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.55 \cdot 10^{+125}:\\
\;\;\;\;t \cdot \left(\frac{z}{y \cdot \left(1 - z\right)} - \frac{\frac{a}{y} \cdot \frac{z}{1 - z} + \frac{x}{z + -1}}{t}\right)\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{+23}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.7 \cdot 10^{+25}:\\
\;\;\;\;\frac{z \cdot \left(a - t\right) - x \cdot y}{z \cdot \left(y - b\right) - y}\\
\mathbf{elif}\;z \leq 10^{+128}:\\
\;\;\;\;\frac{a - t}{y} - \frac{x + \frac{t - a}{y}}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.05999999999999988e154 or -1.55e125 < z < -2.59999999999999992e23 or 1.0000000000000001e128 < z Initial program 27.6%
Taylor expanded in z around inf 83.1%
if -2.05999999999999988e154 < z < -1.55e125Initial program 27.3%
Taylor expanded in y around inf 27.3%
mul-1-neg27.3%
unsub-neg27.3%
Simplified27.3%
Taylor expanded in t around -inf 67.0%
mul-1-neg67.0%
distribute-rgt-neg-in67.0%
mul-1-neg67.0%
unsub-neg67.0%
associate-*r/67.0%
mul-1-neg67.0%
Simplified92.0%
if -2.59999999999999992e23 < z < 4.6999999999999998e25Initial program 92.5%
if 4.6999999999999998e25 < z < 1.0000000000000001e128Initial program 42.1%
Taylor expanded in y around inf 37.3%
mul-1-neg37.3%
unsub-neg37.3%
Simplified37.3%
Taylor expanded in z around -inf 86.5%
mul-1-neg86.5%
unsub-neg86.5%
associate-*r/86.5%
mul-1-neg86.5%
sub-neg86.5%
mul-1-neg86.5%
remove-double-neg86.5%
Simplified86.5%
Final simplification89.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- (/ (- a t) y) (/ (+ x (/ (- t a) y)) z)))
(t_2 (/ (- a t) (- y b))))
(if (<= z -2.05e+154)
t_2
(if (<= z -1.8e+125)
t_1
(if (<= z -2.6e+23)
t_2
(if (<= z 1.1e+26)
(/ (- (* z (- a t)) (* x y)) (- (* z (- y b)) y))
(if (<= z 1e+128) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((a - t) / y) - ((x + ((t - a) / y)) / z);
double t_2 = (a - t) / (y - b);
double tmp;
if (z <= -2.05e+154) {
tmp = t_2;
} else if (z <= -1.8e+125) {
tmp = t_1;
} else if (z <= -2.6e+23) {
tmp = t_2;
} else if (z <= 1.1e+26) {
tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y);
} else if (z <= 1e+128) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((a - t) / y) - ((x + ((t - a) / y)) / z)
t_2 = (a - t) / (y - b)
if (z <= (-2.05d+154)) then
tmp = t_2
else if (z <= (-1.8d+125)) then
tmp = t_1
else if (z <= (-2.6d+23)) then
tmp = t_2
else if (z <= 1.1d+26) then
tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y)
else if (z <= 1d+128) 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 b) {
double t_1 = ((a - t) / y) - ((x + ((t - a) / y)) / z);
double t_2 = (a - t) / (y - b);
double tmp;
if (z <= -2.05e+154) {
tmp = t_2;
} else if (z <= -1.8e+125) {
tmp = t_1;
} else if (z <= -2.6e+23) {
tmp = t_2;
} else if (z <= 1.1e+26) {
tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y);
} else if (z <= 1e+128) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((a - t) / y) - ((x + ((t - a) / y)) / z) t_2 = (a - t) / (y - b) tmp = 0 if z <= -2.05e+154: tmp = t_2 elif z <= -1.8e+125: tmp = t_1 elif z <= -2.6e+23: tmp = t_2 elif z <= 1.1e+26: tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y) elif z <= 1e+128: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(a - t) / y) - Float64(Float64(x + Float64(Float64(t - a) / y)) / z)) t_2 = Float64(Float64(a - t) / Float64(y - b)) tmp = 0.0 if (z <= -2.05e+154) tmp = t_2; elseif (z <= -1.8e+125) tmp = t_1; elseif (z <= -2.6e+23) tmp = t_2; elseif (z <= 1.1e+26) tmp = Float64(Float64(Float64(z * Float64(a - t)) - Float64(x * y)) / Float64(Float64(z * Float64(y - b)) - y)); elseif (z <= 1e+128) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((a - t) / y) - ((x + ((t - a) / y)) / z); t_2 = (a - t) / (y - b); tmp = 0.0; if (z <= -2.05e+154) tmp = t_2; elseif (z <= -1.8e+125) tmp = t_1; elseif (z <= -2.6e+23) tmp = t_2; elseif (z <= 1.1e+26) tmp = ((z * (a - t)) - (x * y)) / ((z * (y - b)) - y); elseif (z <= 1e+128) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision] - N[(N[(x + N[(N[(t - a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.05e+154], t$95$2, If[LessEqual[z, -1.8e+125], t$95$1, If[LessEqual[z, -2.6e+23], t$95$2, If[LessEqual[z, 1.1e+26], N[(N[(N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(y - b), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e+128], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a - t}{y} - \frac{x + \frac{t - a}{y}}{z}\\
t_2 := \frac{a - t}{y - b}\\
\mathbf{if}\;z \leq -2.05 \cdot 10^{+154}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.8 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{+23}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{+26}:\\
\;\;\;\;\frac{z \cdot \left(a - t\right) - x \cdot y}{z \cdot \left(y - b\right) - y}\\
\mathbf{elif}\;z \leq 10^{+128}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -2.05e154 or -1.8000000000000002e125 < z < -2.59999999999999992e23 or 1.0000000000000001e128 < z Initial program 27.6%
Taylor expanded in z around inf 83.1%
if -2.05e154 < z < -1.8000000000000002e125 or 1.10000000000000004e26 < z < 1.0000000000000001e128Initial program 38.2%
Taylor expanded in y around inf 34.6%
mul-1-neg34.6%
unsub-neg34.6%
Simplified34.6%
Taylor expanded in z around -inf 87.9%
mul-1-neg87.9%
unsub-neg87.9%
associate-*r/87.9%
mul-1-neg87.9%
sub-neg87.9%
mul-1-neg87.9%
remove-double-neg87.9%
Simplified87.9%
if -2.59999999999999992e23 < z < 1.10000000000000004e26Initial program 92.5%
Final simplification89.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- a t) (- y b))))
(if (<= z -1.45e-11)
t_1
(if (<= z 2e-67)
(- x (/ (* z (- a t)) y))
(if (<= z 3.5e-48)
(/ (* x (- (+ (/ t x) (/ y z)) (/ a x))) b)
(if (<= z 850.0)
(/ (+ (* x y) (* z (- t a))) (* y (- 1.0 z)))
(if (or (<= z 3.05e+71) (not (<= z 1e+128)))
t_1
(/ x (- 1.0 z)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a - t) / (y - b);
double tmp;
if (z <= -1.45e-11) {
tmp = t_1;
} else if (z <= 2e-67) {
tmp = x - ((z * (a - t)) / y);
} else if (z <= 3.5e-48) {
tmp = (x * (((t / x) + (y / z)) - (a / x))) / b;
} else if (z <= 850.0) {
tmp = ((x * y) + (z * (t - a))) / (y * (1.0 - z));
} else if ((z <= 3.05e+71) || !(z <= 1e+128)) {
tmp = t_1;
} else {
tmp = x / (1.0 - z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (a - t) / (y - b)
if (z <= (-1.45d-11)) then
tmp = t_1
else if (z <= 2d-67) then
tmp = x - ((z * (a - t)) / y)
else if (z <= 3.5d-48) then
tmp = (x * (((t / x) + (y / z)) - (a / x))) / b
else if (z <= 850.0d0) then
tmp = ((x * y) + (z * (t - a))) / (y * (1.0d0 - z))
else if ((z <= 3.05d+71) .or. (.not. (z <= 1d+128))) then
tmp = t_1
else
tmp = x / (1.0d0 - z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a - t) / (y - b);
double tmp;
if (z <= -1.45e-11) {
tmp = t_1;
} else if (z <= 2e-67) {
tmp = x - ((z * (a - t)) / y);
} else if (z <= 3.5e-48) {
tmp = (x * (((t / x) + (y / z)) - (a / x))) / b;
} else if (z <= 850.0) {
tmp = ((x * y) + (z * (t - a))) / (y * (1.0 - z));
} else if ((z <= 3.05e+71) || !(z <= 1e+128)) {
tmp = t_1;
} else {
tmp = x / (1.0 - z);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a - t) / (y - b) tmp = 0 if z <= -1.45e-11: tmp = t_1 elif z <= 2e-67: tmp = x - ((z * (a - t)) / y) elif z <= 3.5e-48: tmp = (x * (((t / x) + (y / z)) - (a / x))) / b elif z <= 850.0: tmp = ((x * y) + (z * (t - a))) / (y * (1.0 - z)) elif (z <= 3.05e+71) or not (z <= 1e+128): tmp = t_1 else: tmp = x / (1.0 - z) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a - t) / Float64(y - b)) tmp = 0.0 if (z <= -1.45e-11) tmp = t_1; elseif (z <= 2e-67) tmp = Float64(x - Float64(Float64(z * Float64(a - t)) / y)); elseif (z <= 3.5e-48) tmp = Float64(Float64(x * Float64(Float64(Float64(t / x) + Float64(y / z)) - Float64(a / x))) / b); elseif (z <= 850.0) tmp = Float64(Float64(Float64(x * y) + Float64(z * Float64(t - a))) / Float64(y * Float64(1.0 - z))); elseif ((z <= 3.05e+71) || !(z <= 1e+128)) tmp = t_1; else tmp = Float64(x / Float64(1.0 - z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a - t) / (y - b); tmp = 0.0; if (z <= -1.45e-11) tmp = t_1; elseif (z <= 2e-67) tmp = x - ((z * (a - t)) / y); elseif (z <= 3.5e-48) tmp = (x * (((t / x) + (y / z)) - (a / x))) / b; elseif (z <= 850.0) tmp = ((x * y) + (z * (t - a))) / (y * (1.0 - z)); elseif ((z <= 3.05e+71) || ~((z <= 1e+128))) tmp = t_1; else tmp = x / (1.0 - z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.45e-11], t$95$1, If[LessEqual[z, 2e-67], N[(x - N[(N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.5e-48], N[(N[(x * N[(N[(N[(t / x), $MachinePrecision] + N[(y / z), $MachinePrecision]), $MachinePrecision] - N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[z, 850.0], N[(N[(N[(x * y), $MachinePrecision] + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, 3.05e+71], N[Not[LessEqual[z, 1e+128]], $MachinePrecision]], t$95$1, N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a - t}{y - b}\\
\mathbf{if}\;z \leq -1.45 \cdot 10^{-11}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-67}:\\
\;\;\;\;x - \frac{z \cdot \left(a - t\right)}{y}\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{-48}:\\
\;\;\;\;\frac{x \cdot \left(\left(\frac{t}{x} + \frac{y}{z}\right) - \frac{a}{x}\right)}{b}\\
\mathbf{elif}\;z \leq 850:\\
\;\;\;\;\frac{x \cdot y + z \cdot \left(t - a\right)}{y \cdot \left(1 - z\right)}\\
\mathbf{elif}\;z \leq 3.05 \cdot 10^{+71} \lor \neg \left(z \leq 10^{+128}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 - z}\\
\end{array}
\end{array}
if z < -1.45e-11 or 850 < z < 3.0500000000000002e71 or 1.0000000000000001e128 < z Initial program 34.0%
Taylor expanded in z around inf 76.2%
if -1.45e-11 < z < 1.99999999999999989e-67Initial program 91.6%
Taylor expanded in z around 0 67.2%
Taylor expanded in x around 0 75.1%
if 1.99999999999999989e-67 < z < 3.49999999999999991e-48Initial program 99.0%
Taylor expanded in x around inf 83.0%
Taylor expanded in b around inf 99.7%
if 3.49999999999999991e-48 < z < 850Initial program 99.4%
Taylor expanded in y around inf 69.8%
mul-1-neg69.8%
unsub-neg69.8%
Simplified69.8%
if 3.0500000000000002e71 < z < 1.0000000000000001e128Initial program 40.8%
Taylor expanded in y around inf 74.0%
mul-1-neg74.0%
unsub-neg74.0%
Simplified74.0%
Final simplification75.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- a t) (- y b))))
(if (<= z -2.5e-10)
t_1
(if (<= z 3.2e-66)
(- x (/ (* z (- a t)) y))
(if (<= z 5.3e-48)
(/ (* x (- (+ (/ t x) (/ y z)) (/ a x))) b)
(if (<= z 2.45e-8)
(/ (+ (* x y) (* z (- t a))) y)
(if (or (<= z 3.05e+71) (not (<= z 1e+128)))
t_1
(/ x (- 1.0 z)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a - t) / (y - b);
double tmp;
if (z <= -2.5e-10) {
tmp = t_1;
} else if (z <= 3.2e-66) {
tmp = x - ((z * (a - t)) / y);
} else if (z <= 5.3e-48) {
tmp = (x * (((t / x) + (y / z)) - (a / x))) / b;
} else if (z <= 2.45e-8) {
tmp = ((x * y) + (z * (t - a))) / y;
} else if ((z <= 3.05e+71) || !(z <= 1e+128)) {
tmp = t_1;
} else {
tmp = x / (1.0 - z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (a - t) / (y - b)
if (z <= (-2.5d-10)) then
tmp = t_1
else if (z <= 3.2d-66) then
tmp = x - ((z * (a - t)) / y)
else if (z <= 5.3d-48) then
tmp = (x * (((t / x) + (y / z)) - (a / x))) / b
else if (z <= 2.45d-8) then
tmp = ((x * y) + (z * (t - a))) / y
else if ((z <= 3.05d+71) .or. (.not. (z <= 1d+128))) then
tmp = t_1
else
tmp = x / (1.0d0 - z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a - t) / (y - b);
double tmp;
if (z <= -2.5e-10) {
tmp = t_1;
} else if (z <= 3.2e-66) {
tmp = x - ((z * (a - t)) / y);
} else if (z <= 5.3e-48) {
tmp = (x * (((t / x) + (y / z)) - (a / x))) / b;
} else if (z <= 2.45e-8) {
tmp = ((x * y) + (z * (t - a))) / y;
} else if ((z <= 3.05e+71) || !(z <= 1e+128)) {
tmp = t_1;
} else {
tmp = x / (1.0 - z);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a - t) / (y - b) tmp = 0 if z <= -2.5e-10: tmp = t_1 elif z <= 3.2e-66: tmp = x - ((z * (a - t)) / y) elif z <= 5.3e-48: tmp = (x * (((t / x) + (y / z)) - (a / x))) / b elif z <= 2.45e-8: tmp = ((x * y) + (z * (t - a))) / y elif (z <= 3.05e+71) or not (z <= 1e+128): tmp = t_1 else: tmp = x / (1.0 - z) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a - t) / Float64(y - b)) tmp = 0.0 if (z <= -2.5e-10) tmp = t_1; elseif (z <= 3.2e-66) tmp = Float64(x - Float64(Float64(z * Float64(a - t)) / y)); elseif (z <= 5.3e-48) tmp = Float64(Float64(x * Float64(Float64(Float64(t / x) + Float64(y / z)) - Float64(a / x))) / b); elseif (z <= 2.45e-8) tmp = Float64(Float64(Float64(x * y) + Float64(z * Float64(t - a))) / y); elseif ((z <= 3.05e+71) || !(z <= 1e+128)) tmp = t_1; else tmp = Float64(x / Float64(1.0 - z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a - t) / (y - b); tmp = 0.0; if (z <= -2.5e-10) tmp = t_1; elseif (z <= 3.2e-66) tmp = x - ((z * (a - t)) / y); elseif (z <= 5.3e-48) tmp = (x * (((t / x) + (y / z)) - (a / x))) / b; elseif (z <= 2.45e-8) tmp = ((x * y) + (z * (t - a))) / y; elseif ((z <= 3.05e+71) || ~((z <= 1e+128))) tmp = t_1; else tmp = x / (1.0 - z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.5e-10], t$95$1, If[LessEqual[z, 3.2e-66], N[(x - N[(N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.3e-48], N[(N[(x * N[(N[(N[(t / x), $MachinePrecision] + N[(y / z), $MachinePrecision]), $MachinePrecision] - N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[z, 2.45e-8], N[(N[(N[(x * y), $MachinePrecision] + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[Or[LessEqual[z, 3.05e+71], N[Not[LessEqual[z, 1e+128]], $MachinePrecision]], t$95$1, N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a - t}{y - b}\\
\mathbf{if}\;z \leq -2.5 \cdot 10^{-10}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{-66}:\\
\;\;\;\;x - \frac{z \cdot \left(a - t\right)}{y}\\
\mathbf{elif}\;z \leq 5.3 \cdot 10^{-48}:\\
\;\;\;\;\frac{x \cdot \left(\left(\frac{t}{x} + \frac{y}{z}\right) - \frac{a}{x}\right)}{b}\\
\mathbf{elif}\;z \leq 2.45 \cdot 10^{-8}:\\
\;\;\;\;\frac{x \cdot y + z \cdot \left(t - a\right)}{y}\\
\mathbf{elif}\;z \leq 3.05 \cdot 10^{+71} \lor \neg \left(z \leq 10^{+128}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 - z}\\
\end{array}
\end{array}
if z < -2.50000000000000016e-10 or 2.4500000000000001e-8 < z < 3.0500000000000002e71 or 1.0000000000000001e128 < z Initial program 35.2%
Taylor expanded in z around inf 75.7%
if -2.50000000000000016e-10 < z < 3.19999999999999982e-66Initial program 91.6%
Taylor expanded in z around 0 67.2%
Taylor expanded in x around 0 75.1%
if 3.19999999999999982e-66 < z < 5.3e-48Initial program 99.0%
Taylor expanded in x around inf 83.0%
Taylor expanded in b around inf 99.7%
if 5.3e-48 < z < 2.4500000000000001e-8Initial program 99.5%
Taylor expanded in z around 0 68.7%
if 3.0500000000000002e71 < z < 1.0000000000000001e128Initial program 40.8%
Taylor expanded in y around inf 74.0%
mul-1-neg74.0%
unsub-neg74.0%
Simplified74.0%
Final simplification75.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- a t) (- y b))))
(if (<= z -5.8e-12)
t_1
(if (<= z 2.1e-65)
(- x (/ (* z (- a t)) y))
(if (<= z 1.9e-48)
(* x (/ (+ (/ t x) (- (/ y z) (/ a x))) b))
(if (<= z 1.05e-8)
(/ (+ (* x y) (* z (- t a))) y)
(if (or (<= z 3.05e+71) (not (<= z 1e+128)))
t_1
(/ x (- 1.0 z)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a - t) / (y - b);
double tmp;
if (z <= -5.8e-12) {
tmp = t_1;
} else if (z <= 2.1e-65) {
tmp = x - ((z * (a - t)) / y);
} else if (z <= 1.9e-48) {
tmp = x * (((t / x) + ((y / z) - (a / x))) / b);
} else if (z <= 1.05e-8) {
tmp = ((x * y) + (z * (t - a))) / y;
} else if ((z <= 3.05e+71) || !(z <= 1e+128)) {
tmp = t_1;
} else {
tmp = x / (1.0 - z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (a - t) / (y - b)
if (z <= (-5.8d-12)) then
tmp = t_1
else if (z <= 2.1d-65) then
tmp = x - ((z * (a - t)) / y)
else if (z <= 1.9d-48) then
tmp = x * (((t / x) + ((y / z) - (a / x))) / b)
else if (z <= 1.05d-8) then
tmp = ((x * y) + (z * (t - a))) / y
else if ((z <= 3.05d+71) .or. (.not. (z <= 1d+128))) then
tmp = t_1
else
tmp = x / (1.0d0 - z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a - t) / (y - b);
double tmp;
if (z <= -5.8e-12) {
tmp = t_1;
} else if (z <= 2.1e-65) {
tmp = x - ((z * (a - t)) / y);
} else if (z <= 1.9e-48) {
tmp = x * (((t / x) + ((y / z) - (a / x))) / b);
} else if (z <= 1.05e-8) {
tmp = ((x * y) + (z * (t - a))) / y;
} else if ((z <= 3.05e+71) || !(z <= 1e+128)) {
tmp = t_1;
} else {
tmp = x / (1.0 - z);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a - t) / (y - b) tmp = 0 if z <= -5.8e-12: tmp = t_1 elif z <= 2.1e-65: tmp = x - ((z * (a - t)) / y) elif z <= 1.9e-48: tmp = x * (((t / x) + ((y / z) - (a / x))) / b) elif z <= 1.05e-8: tmp = ((x * y) + (z * (t - a))) / y elif (z <= 3.05e+71) or not (z <= 1e+128): tmp = t_1 else: tmp = x / (1.0 - z) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a - t) / Float64(y - b)) tmp = 0.0 if (z <= -5.8e-12) tmp = t_1; elseif (z <= 2.1e-65) tmp = Float64(x - Float64(Float64(z * Float64(a - t)) / y)); elseif (z <= 1.9e-48) tmp = Float64(x * Float64(Float64(Float64(t / x) + Float64(Float64(y / z) - Float64(a / x))) / b)); elseif (z <= 1.05e-8) tmp = Float64(Float64(Float64(x * y) + Float64(z * Float64(t - a))) / y); elseif ((z <= 3.05e+71) || !(z <= 1e+128)) tmp = t_1; else tmp = Float64(x / Float64(1.0 - z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a - t) / (y - b); tmp = 0.0; if (z <= -5.8e-12) tmp = t_1; elseif (z <= 2.1e-65) tmp = x - ((z * (a - t)) / y); elseif (z <= 1.9e-48) tmp = x * (((t / x) + ((y / z) - (a / x))) / b); elseif (z <= 1.05e-8) tmp = ((x * y) + (z * (t - a))) / y; elseif ((z <= 3.05e+71) || ~((z <= 1e+128))) tmp = t_1; else tmp = x / (1.0 - z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.8e-12], t$95$1, If[LessEqual[z, 2.1e-65], N[(x - N[(N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e-48], N[(x * N[(N[(N[(t / x), $MachinePrecision] + N[(N[(y / z), $MachinePrecision] - N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05e-8], N[(N[(N[(x * y), $MachinePrecision] + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[Or[LessEqual[z, 3.05e+71], N[Not[LessEqual[z, 1e+128]], $MachinePrecision]], t$95$1, N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a - t}{y - b}\\
\mathbf{if}\;z \leq -5.8 \cdot 10^{-12}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-65}:\\
\;\;\;\;x - \frac{z \cdot \left(a - t\right)}{y}\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{-48}:\\
\;\;\;\;x \cdot \frac{\frac{t}{x} + \left(\frac{y}{z} - \frac{a}{x}\right)}{b}\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{-8}:\\
\;\;\;\;\frac{x \cdot y + z \cdot \left(t - a\right)}{y}\\
\mathbf{elif}\;z \leq 3.05 \cdot 10^{+71} \lor \neg \left(z \leq 10^{+128}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 - z}\\
\end{array}
\end{array}
if z < -5.8000000000000003e-12 or 1.04999999999999997e-8 < z < 3.0500000000000002e71 or 1.0000000000000001e128 < z Initial program 35.2%
Taylor expanded in z around inf 75.7%
if -5.8000000000000003e-12 < z < 2.10000000000000003e-65Initial program 91.6%
Taylor expanded in z around 0 67.2%
Taylor expanded in x around 0 75.1%
if 2.10000000000000003e-65 < z < 1.90000000000000001e-48Initial program 99.0%
Taylor expanded in x around inf 83.0%
Taylor expanded in b around inf 99.7%
associate-/l*99.2%
associate--l+99.2%
Simplified99.2%
if 1.90000000000000001e-48 < z < 1.04999999999999997e-8Initial program 99.5%
Taylor expanded in z around 0 68.7%
if 3.0500000000000002e71 < z < 1.0000000000000001e128Initial program 40.8%
Taylor expanded in y around inf 74.0%
mul-1-neg74.0%
unsub-neg74.0%
Simplified74.0%
Final simplification75.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- a t) (- y b))) (t_2 (+ (* x y) (* z (- t a)))))
(if (<= z -8e-10)
t_1
(if (<= z 2.25e-65)
(- x (/ (* z (- a t)) y))
(if (<= z 2e-48)
(/ t_2 (* z b))
(if (<= z 5.1e-8)
(/ t_2 y)
(if (or (<= z 3.05e+71) (not (<= z 1e+128)))
t_1
(/ x (- 1.0 z)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a - t) / (y - b);
double t_2 = (x * y) + (z * (t - a));
double tmp;
if (z <= -8e-10) {
tmp = t_1;
} else if (z <= 2.25e-65) {
tmp = x - ((z * (a - t)) / y);
} else if (z <= 2e-48) {
tmp = t_2 / (z * b);
} else if (z <= 5.1e-8) {
tmp = t_2 / y;
} else if ((z <= 3.05e+71) || !(z <= 1e+128)) {
tmp = t_1;
} else {
tmp = x / (1.0 - z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (a - t) / (y - b)
t_2 = (x * y) + (z * (t - a))
if (z <= (-8d-10)) then
tmp = t_1
else if (z <= 2.25d-65) then
tmp = x - ((z * (a - t)) / y)
else if (z <= 2d-48) then
tmp = t_2 / (z * b)
else if (z <= 5.1d-8) then
tmp = t_2 / y
else if ((z <= 3.05d+71) .or. (.not. (z <= 1d+128))) then
tmp = t_1
else
tmp = x / (1.0d0 - z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a - t) / (y - b);
double t_2 = (x * y) + (z * (t - a));
double tmp;
if (z <= -8e-10) {
tmp = t_1;
} else if (z <= 2.25e-65) {
tmp = x - ((z * (a - t)) / y);
} else if (z <= 2e-48) {
tmp = t_2 / (z * b);
} else if (z <= 5.1e-8) {
tmp = t_2 / y;
} else if ((z <= 3.05e+71) || !(z <= 1e+128)) {
tmp = t_1;
} else {
tmp = x / (1.0 - z);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a - t) / (y - b) t_2 = (x * y) + (z * (t - a)) tmp = 0 if z <= -8e-10: tmp = t_1 elif z <= 2.25e-65: tmp = x - ((z * (a - t)) / y) elif z <= 2e-48: tmp = t_2 / (z * b) elif z <= 5.1e-8: tmp = t_2 / y elif (z <= 3.05e+71) or not (z <= 1e+128): tmp = t_1 else: tmp = x / (1.0 - z) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a - t) / Float64(y - b)) t_2 = Float64(Float64(x * y) + Float64(z * Float64(t - a))) tmp = 0.0 if (z <= -8e-10) tmp = t_1; elseif (z <= 2.25e-65) tmp = Float64(x - Float64(Float64(z * Float64(a - t)) / y)); elseif (z <= 2e-48) tmp = Float64(t_2 / Float64(z * b)); elseif (z <= 5.1e-8) tmp = Float64(t_2 / y); elseif ((z <= 3.05e+71) || !(z <= 1e+128)) tmp = t_1; else tmp = Float64(x / Float64(1.0 - z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a - t) / (y - b); t_2 = (x * y) + (z * (t - a)); tmp = 0.0; if (z <= -8e-10) tmp = t_1; elseif (z <= 2.25e-65) tmp = x - ((z * (a - t)) / y); elseif (z <= 2e-48) tmp = t_2 / (z * b); elseif (z <= 5.1e-8) tmp = t_2 / y; elseif ((z <= 3.05e+71) || ~((z <= 1e+128))) tmp = t_1; else tmp = x / (1.0 - z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8e-10], t$95$1, If[LessEqual[z, 2.25e-65], N[(x - N[(N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e-48], N[(t$95$2 / N[(z * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.1e-8], N[(t$95$2 / y), $MachinePrecision], If[Or[LessEqual[z, 3.05e+71], N[Not[LessEqual[z, 1e+128]], $MachinePrecision]], t$95$1, N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a - t}{y - b}\\
t_2 := x \cdot y + z \cdot \left(t - a\right)\\
\mathbf{if}\;z \leq -8 \cdot 10^{-10}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.25 \cdot 10^{-65}:\\
\;\;\;\;x - \frac{z \cdot \left(a - t\right)}{y}\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-48}:\\
\;\;\;\;\frac{t\_2}{z \cdot b}\\
\mathbf{elif}\;z \leq 5.1 \cdot 10^{-8}:\\
\;\;\;\;\frac{t\_2}{y}\\
\mathbf{elif}\;z \leq 3.05 \cdot 10^{+71} \lor \neg \left(z \leq 10^{+128}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 - z}\\
\end{array}
\end{array}
if z < -8.00000000000000029e-10 or 5.10000000000000001e-8 < z < 3.0500000000000002e71 or 1.0000000000000001e128 < z Initial program 35.2%
Taylor expanded in z around inf 75.7%
if -8.00000000000000029e-10 < z < 2.2499999999999999e-65Initial program 91.6%
Taylor expanded in z around 0 67.2%
Taylor expanded in x around 0 75.1%
if 2.2499999999999999e-65 < z < 1.9999999999999999e-48Initial program 99.0%
Taylor expanded in y around 0 99.0%
*-commutative99.0%
Simplified99.0%
if 1.9999999999999999e-48 < z < 5.10000000000000001e-8Initial program 99.5%
Taylor expanded in z around 0 68.7%
if 3.0500000000000002e71 < z < 1.0000000000000001e128Initial program 40.8%
Taylor expanded in y around inf 74.0%
mul-1-neg74.0%
unsub-neg74.0%
Simplified74.0%
Final simplification75.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- a t) (- y b))) (t_2 (+ y (* z (- b y)))))
(if (<= z -5.6e-10)
t_1
(if (<= z 6.7e-167)
(- x (/ (* z (- a t)) y))
(if (<= z 2.2e-39)
(/ (* z (- t a)) t_2)
(if (<= z 1.95e-5) (/ (* x y) t_2) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a - t) / (y - b);
double t_2 = y + (z * (b - y));
double tmp;
if (z <= -5.6e-10) {
tmp = t_1;
} else if (z <= 6.7e-167) {
tmp = x - ((z * (a - t)) / y);
} else if (z <= 2.2e-39) {
tmp = (z * (t - a)) / t_2;
} else if (z <= 1.95e-5) {
tmp = (x * y) / t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (a - t) / (y - b)
t_2 = y + (z * (b - y))
if (z <= (-5.6d-10)) then
tmp = t_1
else if (z <= 6.7d-167) then
tmp = x - ((z * (a - t)) / y)
else if (z <= 2.2d-39) then
tmp = (z * (t - a)) / t_2
else if (z <= 1.95d-5) then
tmp = (x * y) / t_2
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 b) {
double t_1 = (a - t) / (y - b);
double t_2 = y + (z * (b - y));
double tmp;
if (z <= -5.6e-10) {
tmp = t_1;
} else if (z <= 6.7e-167) {
tmp = x - ((z * (a - t)) / y);
} else if (z <= 2.2e-39) {
tmp = (z * (t - a)) / t_2;
} else if (z <= 1.95e-5) {
tmp = (x * y) / t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a - t) / (y - b) t_2 = y + (z * (b - y)) tmp = 0 if z <= -5.6e-10: tmp = t_1 elif z <= 6.7e-167: tmp = x - ((z * (a - t)) / y) elif z <= 2.2e-39: tmp = (z * (t - a)) / t_2 elif z <= 1.95e-5: tmp = (x * y) / t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a - t) / Float64(y - b)) t_2 = Float64(y + Float64(z * Float64(b - y))) tmp = 0.0 if (z <= -5.6e-10) tmp = t_1; elseif (z <= 6.7e-167) tmp = Float64(x - Float64(Float64(z * Float64(a - t)) / y)); elseif (z <= 2.2e-39) tmp = Float64(Float64(z * Float64(t - a)) / t_2); elseif (z <= 1.95e-5) tmp = Float64(Float64(x * y) / t_2); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a - t) / (y - b); t_2 = y + (z * (b - y)); tmp = 0.0; if (z <= -5.6e-10) tmp = t_1; elseif (z <= 6.7e-167) tmp = x - ((z * (a - t)) / y); elseif (z <= 2.2e-39) tmp = (z * (t - a)) / t_2; elseif (z <= 1.95e-5) tmp = (x * y) / t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.6e-10], t$95$1, If[LessEqual[z, 6.7e-167], N[(x - N[(N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e-39], N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], If[LessEqual[z, 1.95e-5], N[(N[(x * y), $MachinePrecision] / t$95$2), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a - t}{y - b}\\
t_2 := y + z \cdot \left(b - y\right)\\
\mathbf{if}\;z \leq -5.6 \cdot 10^{-10}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.7 \cdot 10^{-167}:\\
\;\;\;\;x - \frac{z \cdot \left(a - t\right)}{y}\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{-39}:\\
\;\;\;\;\frac{z \cdot \left(t - a\right)}{t\_2}\\
\mathbf{elif}\;z \leq 1.95 \cdot 10^{-5}:\\
\;\;\;\;\frac{x \cdot y}{t\_2}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.60000000000000031e-10 or 1.95e-5 < z Initial program 35.9%
Taylor expanded in z around inf 70.7%
if -5.60000000000000031e-10 < z < 6.70000000000000007e-167Initial program 90.1%
Taylor expanded in z around 0 68.0%
Taylor expanded in x around 0 77.5%
if 6.70000000000000007e-167 < z < 2.20000000000000001e-39Initial program 99.4%
Taylor expanded in x around 0 69.2%
if 2.20000000000000001e-39 < z < 1.95e-5Initial program 99.4%
Taylor expanded in x around inf 71.7%
*-commutative71.7%
Simplified71.7%
Final simplification73.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- a t) (- y b))))
(if (<= z -2.25e-10)
t_1
(if (<= z 2.4e-65)
(- x (/ (* z (- a t)) y))
(if (<= z 5e-50)
(/ (- t a) b)
(if (<= z 9.2e-5) (/ (* x y) (+ y (* z (- b y)))) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a - t) / (y - b);
double tmp;
if (z <= -2.25e-10) {
tmp = t_1;
} else if (z <= 2.4e-65) {
tmp = x - ((z * (a - t)) / y);
} else if (z <= 5e-50) {
tmp = (t - a) / b;
} else if (z <= 9.2e-5) {
tmp = (x * y) / (y + (z * (b - y)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (a - t) / (y - b)
if (z <= (-2.25d-10)) then
tmp = t_1
else if (z <= 2.4d-65) then
tmp = x - ((z * (a - t)) / y)
else if (z <= 5d-50) then
tmp = (t - a) / b
else if (z <= 9.2d-5) then
tmp = (x * y) / (y + (z * (b - y)))
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 b) {
double t_1 = (a - t) / (y - b);
double tmp;
if (z <= -2.25e-10) {
tmp = t_1;
} else if (z <= 2.4e-65) {
tmp = x - ((z * (a - t)) / y);
} else if (z <= 5e-50) {
tmp = (t - a) / b;
} else if (z <= 9.2e-5) {
tmp = (x * y) / (y + (z * (b - y)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a - t) / (y - b) tmp = 0 if z <= -2.25e-10: tmp = t_1 elif z <= 2.4e-65: tmp = x - ((z * (a - t)) / y) elif z <= 5e-50: tmp = (t - a) / b elif z <= 9.2e-5: tmp = (x * y) / (y + (z * (b - y))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a - t) / Float64(y - b)) tmp = 0.0 if (z <= -2.25e-10) tmp = t_1; elseif (z <= 2.4e-65) tmp = Float64(x - Float64(Float64(z * Float64(a - t)) / y)); elseif (z <= 5e-50) tmp = Float64(Float64(t - a) / b); elseif (z <= 9.2e-5) tmp = Float64(Float64(x * y) / Float64(y + Float64(z * Float64(b - y)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a - t) / (y - b); tmp = 0.0; if (z <= -2.25e-10) tmp = t_1; elseif (z <= 2.4e-65) tmp = x - ((z * (a - t)) / y); elseif (z <= 5e-50) tmp = (t - a) / b; elseif (z <= 9.2e-5) tmp = (x * y) / (y + (z * (b - y))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.25e-10], t$95$1, If[LessEqual[z, 2.4e-65], N[(x - N[(N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e-50], N[(N[(t - a), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[z, 9.2e-5], N[(N[(x * y), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a - t}{y - b}\\
\mathbf{if}\;z \leq -2.25 \cdot 10^{-10}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-65}:\\
\;\;\;\;x - \frac{z \cdot \left(a - t\right)}{y}\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-50}:\\
\;\;\;\;\frac{t - a}{b}\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{-5}:\\
\;\;\;\;\frac{x \cdot y}{y + z \cdot \left(b - y\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.25e-10 or 9.20000000000000001e-5 < z Initial program 35.9%
Taylor expanded in z around inf 70.7%
if -2.25e-10 < z < 2.4000000000000002e-65Initial program 91.6%
Taylor expanded in z around 0 67.2%
Taylor expanded in x around 0 75.1%
if 2.4000000000000002e-65 < z < 4.99999999999999968e-50Initial program 98.8%
Taylor expanded in y around 0 93.9%
if 4.99999999999999968e-50 < z < 9.20000000000000001e-5Initial program 99.5%
Taylor expanded in x around inf 68.5%
*-commutative68.5%
Simplified68.5%
Final simplification73.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- x (/ (* z (- a t)) y))) (t_2 (/ (- a t) (- y b))))
(if (<= z -9.2e-10)
t_2
(if (<= z 2.4e-65)
t_1
(if (<= z 1.85e-48) (/ (- t a) b) (if (<= z 4.9e-8) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x - ((z * (a - t)) / y);
double t_2 = (a - t) / (y - b);
double tmp;
if (z <= -9.2e-10) {
tmp = t_2;
} else if (z <= 2.4e-65) {
tmp = t_1;
} else if (z <= 1.85e-48) {
tmp = (t - a) / b;
} else if (z <= 4.9e-8) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x - ((z * (a - t)) / y)
t_2 = (a - t) / (y - b)
if (z <= (-9.2d-10)) then
tmp = t_2
else if (z <= 2.4d-65) then
tmp = t_1
else if (z <= 1.85d-48) then
tmp = (t - a) / b
else if (z <= 4.9d-8) 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 b) {
double t_1 = x - ((z * (a - t)) / y);
double t_2 = (a - t) / (y - b);
double tmp;
if (z <= -9.2e-10) {
tmp = t_2;
} else if (z <= 2.4e-65) {
tmp = t_1;
} else if (z <= 1.85e-48) {
tmp = (t - a) / b;
} else if (z <= 4.9e-8) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x - ((z * (a - t)) / y) t_2 = (a - t) / (y - b) tmp = 0 if z <= -9.2e-10: tmp = t_2 elif z <= 2.4e-65: tmp = t_1 elif z <= 1.85e-48: tmp = (t - a) / b elif z <= 4.9e-8: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x - Float64(Float64(z * Float64(a - t)) / y)) t_2 = Float64(Float64(a - t) / Float64(y - b)) tmp = 0.0 if (z <= -9.2e-10) tmp = t_2; elseif (z <= 2.4e-65) tmp = t_1; elseif (z <= 1.85e-48) tmp = Float64(Float64(t - a) / b); elseif (z <= 4.9e-8) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x - ((z * (a - t)) / y); t_2 = (a - t) / (y - b); tmp = 0.0; if (z <= -9.2e-10) tmp = t_2; elseif (z <= 2.4e-65) tmp = t_1; elseif (z <= 1.85e-48) tmp = (t - a) / b; elseif (z <= 4.9e-8) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x - N[(N[(z * N[(a - t), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9.2e-10], t$95$2, If[LessEqual[z, 2.4e-65], t$95$1, If[LessEqual[z, 1.85e-48], N[(N[(t - a), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[z, 4.9e-8], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{z \cdot \left(a - t\right)}{y}\\
t_2 := \frac{a - t}{y - b}\\
\mathbf{if}\;z \leq -9.2 \cdot 10^{-10}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{-48}:\\
\;\;\;\;\frac{t - a}{b}\\
\mathbf{elif}\;z \leq 4.9 \cdot 10^{-8}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -9.20000000000000028e-10 or 4.9000000000000002e-8 < z Initial program 35.9%
Taylor expanded in z around inf 70.7%
if -9.20000000000000028e-10 < z < 2.4000000000000002e-65 or 1.8499999999999999e-48 < z < 4.9000000000000002e-8Initial program 92.3%
Taylor expanded in z around 0 67.3%
Taylor expanded in x around 0 74.5%
if 2.4000000000000002e-65 < z < 1.8499999999999999e-48Initial program 99.0%
Taylor expanded in y around 0 79.8%
Final simplification72.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (- 1.0 z))))
(if (<= y -1.4e+88)
t_1
(if (<= y 1.5e-65)
(/ (- t a) b)
(if (or (<= y 6.3e+50) (not (<= y 1.2e+77))) t_1 (/ t (- b y)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (1.0 - z);
double tmp;
if (y <= -1.4e+88) {
tmp = t_1;
} else if (y <= 1.5e-65) {
tmp = (t - a) / b;
} else if ((y <= 6.3e+50) || !(y <= 1.2e+77)) {
tmp = t_1;
} else {
tmp = t / (b - y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (1.0d0 - z)
if (y <= (-1.4d+88)) then
tmp = t_1
else if (y <= 1.5d-65) then
tmp = (t - a) / b
else if ((y <= 6.3d+50) .or. (.not. (y <= 1.2d+77))) then
tmp = t_1
else
tmp = t / (b - y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (1.0 - z);
double tmp;
if (y <= -1.4e+88) {
tmp = t_1;
} else if (y <= 1.5e-65) {
tmp = (t - a) / b;
} else if ((y <= 6.3e+50) || !(y <= 1.2e+77)) {
tmp = t_1;
} else {
tmp = t / (b - y);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (1.0 - z) tmp = 0 if y <= -1.4e+88: tmp = t_1 elif y <= 1.5e-65: tmp = (t - a) / b elif (y <= 6.3e+50) or not (y <= 1.2e+77): tmp = t_1 else: tmp = t / (b - y) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(1.0 - z)) tmp = 0.0 if (y <= -1.4e+88) tmp = t_1; elseif (y <= 1.5e-65) tmp = Float64(Float64(t - a) / b); elseif ((y <= 6.3e+50) || !(y <= 1.2e+77)) tmp = t_1; else tmp = Float64(t / Float64(b - y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (1.0 - z); tmp = 0.0; if (y <= -1.4e+88) tmp = t_1; elseif (y <= 1.5e-65) tmp = (t - a) / b; elseif ((y <= 6.3e+50) || ~((y <= 1.2e+77))) tmp = t_1; else tmp = t / (b - y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.4e+88], t$95$1, If[LessEqual[y, 1.5e-65], N[(N[(t - a), $MachinePrecision] / b), $MachinePrecision], If[Or[LessEqual[y, 6.3e+50], N[Not[LessEqual[y, 1.2e+77]], $MachinePrecision]], t$95$1, N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{1 - z}\\
\mathbf{if}\;y \leq -1.4 \cdot 10^{+88}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{-65}:\\
\;\;\;\;\frac{t - a}{b}\\
\mathbf{elif}\;y \leq 6.3 \cdot 10^{+50} \lor \neg \left(y \leq 1.2 \cdot 10^{+77}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{b - y}\\
\end{array}
\end{array}
if y < -1.39999999999999994e88 or 1.49999999999999999e-65 < y < 6.29999999999999986e50 or 1.1999999999999999e77 < y Initial program 55.8%
Taylor expanded in y around inf 60.9%
mul-1-neg60.9%
unsub-neg60.9%
Simplified60.9%
if -1.39999999999999994e88 < y < 1.49999999999999999e-65Initial program 75.9%
Taylor expanded in y around 0 53.7%
if 6.29999999999999986e50 < y < 1.1999999999999999e77Initial program 50.6%
Taylor expanded in x around inf 38.3%
Taylor expanded in z around inf 76.0%
Taylor expanded in t around inf 70.0%
Final simplification57.6%
(FPCore (x y z t a b) :precision binary64 (if (<= z -1.65e+204) (/ a (- b)) (if (or (<= z -1.46e-11) (not (<= z 1.08e-7))) (/ t b) x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.65e+204) {
tmp = a / -b;
} else if ((z <= -1.46e-11) || !(z <= 1.08e-7)) {
tmp = t / b;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (z <= (-1.65d+204)) then
tmp = a / -b
else if ((z <= (-1.46d-11)) .or. (.not. (z <= 1.08d-7))) then
tmp = t / b
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.65e+204) {
tmp = a / -b;
} else if ((z <= -1.46e-11) || !(z <= 1.08e-7)) {
tmp = t / b;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1.65e+204: tmp = a / -b elif (z <= -1.46e-11) or not (z <= 1.08e-7): tmp = t / b else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.65e+204) tmp = Float64(a / Float64(-b)); elseif ((z <= -1.46e-11) || !(z <= 1.08e-7)) tmp = Float64(t / b); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1.65e+204) tmp = a / -b; elseif ((z <= -1.46e-11) || ~((z <= 1.08e-7))) tmp = t / b; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.65e+204], N[(a / (-b)), $MachinePrecision], If[Or[LessEqual[z, -1.46e-11], N[Not[LessEqual[z, 1.08e-7]], $MachinePrecision]], N[(t / b), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.65 \cdot 10^{+204}:\\
\;\;\;\;\frac{a}{-b}\\
\mathbf{elif}\;z \leq -1.46 \cdot 10^{-11} \lor \neg \left(z \leq 1.08 \cdot 10^{-7}\right):\\
\;\;\;\;\frac{t}{b}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.6499999999999999e204Initial program 19.8%
Taylor expanded in a around inf 7.6%
mul-1-neg7.6%
distribute-lft-neg-out7.6%
*-commutative7.6%
Simplified7.6%
Taylor expanded in y around 0 48.6%
associate-*r/48.6%
mul-1-neg48.6%
Simplified48.6%
if -1.6499999999999999e204 < z < -1.46e-11 or 1.08000000000000001e-7 < z Initial program 38.4%
Taylor expanded in x around inf 38.3%
Taylor expanded in z around inf 66.7%
Taylor expanded in b around -inf 38.0%
mul-1-neg38.0%
associate-/l*34.4%
distribute-lft-neg-in34.4%
mul-1-neg34.4%
unsub-neg34.4%
associate-*r/34.4%
neg-mul-134.4%
Simplified34.4%
Taylor expanded in t around inf 27.3%
if -1.46e-11 < z < 1.08000000000000001e-7Initial program 92.6%
Taylor expanded in z around 0 44.5%
Final simplification37.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -4.5e+89) (not (<= y 6.4e+139))) (/ x (- 1.0 z)) (/ (- a t) (- y b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -4.5e+89) || !(y <= 6.4e+139)) {
tmp = x / (1.0 - z);
} else {
tmp = (a - t) / (y - b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if ((y <= (-4.5d+89)) .or. (.not. (y <= 6.4d+139))) then
tmp = x / (1.0d0 - z)
else
tmp = (a - t) / (y - b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -4.5e+89) || !(y <= 6.4e+139)) {
tmp = x / (1.0 - z);
} else {
tmp = (a - t) / (y - b);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -4.5e+89) or not (y <= 6.4e+139): tmp = x / (1.0 - z) else: tmp = (a - t) / (y - b) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -4.5e+89) || !(y <= 6.4e+139)) tmp = Float64(x / Float64(1.0 - z)); else tmp = Float64(Float64(a - t) / Float64(y - b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -4.5e+89) || ~((y <= 6.4e+139))) tmp = x / (1.0 - z); else tmp = (a - t) / (y - b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -4.5e+89], N[Not[LessEqual[y, 6.4e+139]], $MachinePrecision]], N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision], N[(N[(a - t), $MachinePrecision] / N[(y - b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.5 \cdot 10^{+89} \lor \neg \left(y \leq 6.4 \cdot 10^{+139}\right):\\
\;\;\;\;\frac{x}{1 - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{a - t}{y - b}\\
\end{array}
\end{array}
if y < -4.5e89 or 6.4000000000000002e139 < y Initial program 49.5%
Taylor expanded in y around inf 71.3%
mul-1-neg71.3%
unsub-neg71.3%
Simplified71.3%
if -4.5e89 < y < 6.4000000000000002e139Initial program 73.1%
Taylor expanded in z around inf 56.5%
Final simplification61.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.18e+61) (not (<= t 6.5e+35))) (/ t (- b y)) (/ x (- 1.0 z))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.18e+61) || !(t <= 6.5e+35)) {
tmp = t / (b - y);
} else {
tmp = x / (1.0 - z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if ((t <= (-1.18d+61)) .or. (.not. (t <= 6.5d+35))) then
tmp = t / (b - y)
else
tmp = x / (1.0d0 - z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.18e+61) || !(t <= 6.5e+35)) {
tmp = t / (b - y);
} else {
tmp = x / (1.0 - z);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.18e+61) or not (t <= 6.5e+35): tmp = t / (b - y) else: tmp = x / (1.0 - z) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.18e+61) || !(t <= 6.5e+35)) tmp = Float64(t / Float64(b - y)); else tmp = Float64(x / Float64(1.0 - z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.18e+61) || ~((t <= 6.5e+35))) tmp = t / (b - y); else tmp = x / (1.0 - z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.18e+61], N[Not[LessEqual[t, 6.5e+35]], $MachinePrecision]], N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision], N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.18 \cdot 10^{+61} \lor \neg \left(t \leq 6.5 \cdot 10^{+35}\right):\\
\;\;\;\;\frac{t}{b - y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 - z}\\
\end{array}
\end{array}
if t < -1.18000000000000004e61 or 6.5000000000000003e35 < t Initial program 58.9%
Taylor expanded in x around inf 51.9%
Taylor expanded in z around inf 49.5%
Taylor expanded in t around inf 47.3%
if -1.18000000000000004e61 < t < 6.5000000000000003e35Initial program 69.8%
Taylor expanded in y around inf 49.3%
mul-1-neg49.3%
unsub-neg49.3%
Simplified49.3%
Final simplification48.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -2.05e-11) (not (<= z 4.3e-5))) (/ t (- b y)) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.05e-11) || !(z <= 4.3e-5)) {
tmp = t / (b - y);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if ((z <= (-2.05d-11)) .or. (.not. (z <= 4.3d-5))) then
tmp = t / (b - y)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.05e-11) || !(z <= 4.3e-5)) {
tmp = t / (b - y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -2.05e-11) or not (z <= 4.3e-5): tmp = t / (b - y) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -2.05e-11) || !(z <= 4.3e-5)) tmp = Float64(t / Float64(b - y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -2.05e-11) || ~((z <= 4.3e-5))) tmp = t / (b - y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2.05e-11], N[Not[LessEqual[z, 4.3e-5]], $MachinePrecision]], N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.05 \cdot 10^{-11} \lor \neg \left(z \leq 4.3 \cdot 10^{-5}\right):\\
\;\;\;\;\frac{t}{b - y}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -2.05e-11 or 4.3000000000000002e-5 < z Initial program 35.9%
Taylor expanded in x around inf 35.2%
Taylor expanded in z around inf 64.8%
Taylor expanded in t around inf 41.6%
if -2.05e-11 < z < 4.3000000000000002e-5Initial program 92.6%
Taylor expanded in z around 0 44.5%
Final simplification43.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.28e-11) (not (<= z 4e-8))) (/ t b) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.28e-11) || !(z <= 4e-8)) {
tmp = t / b;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if ((z <= (-1.28d-11)) .or. (.not. (z <= 4d-8))) then
tmp = t / b
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.28e-11) || !(z <= 4e-8)) {
tmp = t / b;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.28e-11) or not (z <= 4e-8): tmp = t / b else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.28e-11) || !(z <= 4e-8)) tmp = Float64(t / b); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.28e-11) || ~((z <= 4e-8))) tmp = t / b; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.28e-11], N[Not[LessEqual[z, 4e-8]], $MachinePrecision]], N[(t / b), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.28 \cdot 10^{-11} \lor \neg \left(z \leq 4 \cdot 10^{-8}\right):\\
\;\;\;\;\frac{t}{b}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.28e-11 or 4.0000000000000001e-8 < z Initial program 35.9%
Taylor expanded in x around inf 35.2%
Taylor expanded in z around inf 64.8%
Taylor expanded in b around -inf 40.3%
mul-1-neg40.3%
associate-/l*36.1%
distribute-lft-neg-in36.1%
mul-1-neg36.1%
unsub-neg36.1%
associate-*r/36.1%
neg-mul-136.1%
Simplified36.1%
Taylor expanded in t around inf 26.7%
if -1.28e-11 < z < 4.0000000000000001e-8Initial program 92.6%
Taylor expanded in z around 0 44.5%
Final simplification36.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -5.6e+24) (not (<= z 0.66))) (/ a y) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -5.6e+24) || !(z <= 0.66)) {
tmp = a / y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if ((z <= (-5.6d+24)) .or. (.not. (z <= 0.66d0))) then
tmp = a / y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -5.6e+24) || !(z <= 0.66)) {
tmp = a / y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -5.6e+24) or not (z <= 0.66): tmp = a / y else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -5.6e+24) || !(z <= 0.66)) tmp = Float64(a / y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -5.6e+24) || ~((z <= 0.66))) tmp = a / y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -5.6e+24], N[Not[LessEqual[z, 0.66]], $MachinePrecision]], N[(a / y), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.6 \cdot 10^{+24} \lor \neg \left(z \leq 0.66\right):\\
\;\;\;\;\frac{a}{y}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -5.6000000000000003e24 or 0.660000000000000031 < z Initial program 33.7%
Taylor expanded in y around inf 20.3%
mul-1-neg20.3%
unsub-neg20.3%
Simplified20.3%
Taylor expanded in z around inf 31.1%
associate-*r/31.1%
mul-1-neg31.1%
Simplified31.1%
Taylor expanded in t around 0 17.5%
if -5.6000000000000003e24 < z < 0.660000000000000031Initial program 91.6%
Taylor expanded in z around 0 42.7%
Final simplification31.4%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 65.6%
Taylor expanded in z around 0 25.0%
(FPCore (x y z t a b) :precision binary64 (- (/ (+ (* z t) (* y x)) (+ y (* z (- b y)))) (/ a (+ (- b y) (/ y z)))))
double code(double x, double y, double z, double t, double a, double b) {
return (((z * t) + (y * x)) / (y + (z * (b - y)))) - (a / ((b - y) + (y / z)));
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
code = (((z * t) + (y * x)) / (y + (z * (b - y)))) - (a / ((b - y) + (y / z)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (((z * t) + (y * x)) / (y + (z * (b - y)))) - (a / ((b - y) + (y / z)));
}
def code(x, y, z, t, a, b): return (((z * t) + (y * x)) / (y + (z * (b - y)))) - (a / ((b - y) + (y / z)))
function code(x, y, z, t, a, b) return Float64(Float64(Float64(Float64(z * t) + Float64(y * x)) / Float64(y + Float64(z * Float64(b - y)))) - Float64(a / Float64(Float64(b - y) + Float64(y / z)))) end
function tmp = code(x, y, z, t, a, b) tmp = (((z * t) + (y * x)) / (y + (z * (b - y)))) - (a / ((b - y) + (y / z))); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(N[(z * t), $MachinePrecision] + N[(y * x), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a / N[(N[(b - y), $MachinePrecision] + N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{z \cdot t + y \cdot x}{y + z \cdot \left(b - y\right)} - \frac{a}{\left(b - y\right) + \frac{y}{z}}
\end{array}
herbie shell --seed 2024087
(FPCore (x y z t a b)
:name "Development.Shake.Progress:decay from shake-0.15.5"
:precision binary64
:alt
(- (/ (+ (* z t) (* y x)) (+ y (* z (- b y)))) (/ a (+ (- b y) (/ y z))))
(/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))