
(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 20 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 (+ y (* z (- b y))))
(t_2 (/ (+ (* z (- t a)) (* x y)) t_1))
(t_3 (/ (- t a) (- b y)))
(t_4 (/ t_3 x)))
(if (<= t_2 (- INFINITY))
(* x (+ (/ y t_1) t_4))
(if (<= t_2 -2e-236)
t_2
(if (<= t_2 0.0)
t_3
(if (<= t_2 1e+291) t_2 (* x (+ t_4 (/ -1.0 (+ z -1.0))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (z * (b - y));
double t_2 = ((z * (t - a)) + (x * y)) / t_1;
double t_3 = (t - a) / (b - y);
double t_4 = t_3 / x;
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = x * ((y / t_1) + t_4);
} else if (t_2 <= -2e-236) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = t_3;
} else if (t_2 <= 1e+291) {
tmp = t_2;
} else {
tmp = x * (t_4 + (-1.0 / (z + -1.0)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (z * (b - y));
double t_2 = ((z * (t - a)) + (x * y)) / t_1;
double t_3 = (t - a) / (b - y);
double t_4 = t_3 / x;
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = x * ((y / t_1) + t_4);
} else if (t_2 <= -2e-236) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = t_3;
} else if (t_2 <= 1e+291) {
tmp = t_2;
} else {
tmp = x * (t_4 + (-1.0 / (z + -1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y + (z * (b - y)) t_2 = ((z * (t - a)) + (x * y)) / t_1 t_3 = (t - a) / (b - y) t_4 = t_3 / x tmp = 0 if t_2 <= -math.inf: tmp = x * ((y / t_1) + t_4) elif t_2 <= -2e-236: tmp = t_2 elif t_2 <= 0.0: tmp = t_3 elif t_2 <= 1e+291: tmp = t_2 else: tmp = x * (t_4 + (-1.0 / (z + -1.0))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y + Float64(z * Float64(b - y))) t_2 = Float64(Float64(Float64(z * Float64(t - a)) + Float64(x * y)) / t_1) t_3 = Float64(Float64(t - a) / Float64(b - y)) t_4 = Float64(t_3 / x) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(x * Float64(Float64(y / t_1) + t_4)); elseif (t_2 <= -2e-236) tmp = t_2; elseif (t_2 <= 0.0) tmp = t_3; elseif (t_2 <= 1e+291) tmp = t_2; else tmp = Float64(x * Float64(t_4 + Float64(-1.0 / Float64(z + -1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y + (z * (b - y)); t_2 = ((z * (t - a)) + (x * y)) / t_1; t_3 = (t - a) / (b - y); t_4 = t_3 / x; tmp = 0.0; if (t_2 <= -Inf) tmp = x * ((y / t_1) + t_4); elseif (t_2 <= -2e-236) tmp = t_2; elseif (t_2 <= 0.0) tmp = t_3; elseif (t_2 <= 1e+291) tmp = t_2; else tmp = x * (t_4 + (-1.0 / (z + -1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 / x), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(x * N[(N[(y / t$95$1), $MachinePrecision] + t$95$4), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, -2e-236], t$95$2, If[LessEqual[t$95$2, 0.0], t$95$3, If[LessEqual[t$95$2, 1e+291], t$95$2, N[(x * N[(t$95$4 + N[(-1.0 / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + z \cdot \left(b - y\right)\\
t_2 := \frac{z \cdot \left(t - a\right) + x \cdot y}{t\_1}\\
t_3 := \frac{t - a}{b - y}\\
t_4 := \frac{t\_3}{x}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;x \cdot \left(\frac{y}{t\_1} + t\_4\right)\\
\mathbf{elif}\;t\_2 \leq -2 \cdot 10^{-236}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_2 \leq 10^{+291}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(t\_4 + \frac{-1}{z + -1}\right)\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -inf.0Initial program 12.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6462.1%
Simplified62.1%
times-fracN/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-rgt-identityN/A
associate-/r/N/A
+-lowering-+.f64N/A
associate-/r/N/A
/-rgt-identityN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6493.0%
Applied egg-rr93.0%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6493.2%
Simplified93.2%
if -inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -2.0000000000000001e-236 or 0.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 9.9999999999999996e290Initial program 99.6%
if -2.0000000000000001e-236 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 0.0Initial program 16.6%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6488.8%
Simplified88.8%
if 9.9999999999999996e290 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) Initial program 18.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6436.5%
Simplified36.5%
times-fracN/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-rgt-identityN/A
associate-/r/N/A
+-lowering-+.f64N/A
associate-/r/N/A
/-rgt-identityN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6454.8%
Applied egg-rr54.8%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6487.8%
Simplified87.8%
Taylor expanded in y around inf
/-lowering-/.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6492.3%
Simplified92.3%
Final simplification96.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ y (* z (- b y))))
(t_2 (/ (- t a) (- b y)))
(t_3 (/ (+ (* z (- t a)) (* x y)) t_1)))
(if (<= t_3 (- INFINITY))
(* x (+ (/ y t_1) (/ (/ (- t a) x) (- b y))))
(if (<= t_3 -2e-236)
t_3
(if (<= t_3 0.0)
t_2
(if (<= t_3 1e+291) t_3 (* x (+ (/ t_2 x) (/ -1.0 (+ z -1.0))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (z * (b - y));
double t_2 = (t - a) / (b - y);
double t_3 = ((z * (t - a)) + (x * y)) / t_1;
double tmp;
if (t_3 <= -((double) INFINITY)) {
tmp = x * ((y / t_1) + (((t - a) / x) / (b - y)));
} else if (t_3 <= -2e-236) {
tmp = t_3;
} else if (t_3 <= 0.0) {
tmp = t_2;
} else if (t_3 <= 1e+291) {
tmp = t_3;
} else {
tmp = x * ((t_2 / x) + (-1.0 / (z + -1.0)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (z * (b - y));
double t_2 = (t - a) / (b - y);
double t_3 = ((z * (t - a)) + (x * y)) / t_1;
double tmp;
if (t_3 <= -Double.POSITIVE_INFINITY) {
tmp = x * ((y / t_1) + (((t - a) / x) / (b - y)));
} else if (t_3 <= -2e-236) {
tmp = t_3;
} else if (t_3 <= 0.0) {
tmp = t_2;
} else if (t_3 <= 1e+291) {
tmp = t_3;
} else {
tmp = x * ((t_2 / x) + (-1.0 / (z + -1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y + (z * (b - y)) t_2 = (t - a) / (b - y) t_3 = ((z * (t - a)) + (x * y)) / t_1 tmp = 0 if t_3 <= -math.inf: tmp = x * ((y / t_1) + (((t - a) / x) / (b - y))) elif t_3 <= -2e-236: tmp = t_3 elif t_3 <= 0.0: tmp = t_2 elif t_3 <= 1e+291: tmp = t_3 else: tmp = x * ((t_2 / x) + (-1.0 / (z + -1.0))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y + Float64(z * Float64(b - y))) t_2 = Float64(Float64(t - a) / Float64(b - y)) t_3 = Float64(Float64(Float64(z * Float64(t - a)) + Float64(x * y)) / t_1) tmp = 0.0 if (t_3 <= Float64(-Inf)) tmp = Float64(x * Float64(Float64(y / t_1) + Float64(Float64(Float64(t - a) / x) / Float64(b - y)))); elseif (t_3 <= -2e-236) tmp = t_3; elseif (t_3 <= 0.0) tmp = t_2; elseif (t_3 <= 1e+291) tmp = t_3; else tmp = Float64(x * Float64(Float64(t_2 / x) + Float64(-1.0 / Float64(z + -1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y + (z * (b - y)); t_2 = (t - a) / (b - y); t_3 = ((z * (t - a)) + (x * y)) / t_1; tmp = 0.0; if (t_3 <= -Inf) tmp = x * ((y / t_1) + (((t - a) / x) / (b - y))); elseif (t_3 <= -2e-236) tmp = t_3; elseif (t_3 <= 0.0) tmp = t_2; elseif (t_3 <= 1e+291) tmp = t_3; else tmp = x * ((t_2 / x) + (-1.0 / (z + -1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, If[LessEqual[t$95$3, (-Infinity)], N[(x * N[(N[(y / t$95$1), $MachinePrecision] + N[(N[(N[(t - a), $MachinePrecision] / x), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, -2e-236], t$95$3, If[LessEqual[t$95$3, 0.0], t$95$2, If[LessEqual[t$95$3, 1e+291], t$95$3, N[(x * N[(N[(t$95$2 / x), $MachinePrecision] + N[(-1.0 / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + z \cdot \left(b - y\right)\\
t_2 := \frac{t - a}{b - y}\\
t_3 := \frac{z \cdot \left(t - a\right) + x \cdot y}{t\_1}\\
\mathbf{if}\;t\_3 \leq -\infty:\\
\;\;\;\;x \cdot \left(\frac{y}{t\_1} + \frac{\frac{t - a}{x}}{b - y}\right)\\
\mathbf{elif}\;t\_3 \leq -2 \cdot 10^{-236}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_3 \leq 0:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_3 \leq 10^{+291}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{t\_2}{x} + \frac{-1}{z + -1}\right)\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -inf.0Initial program 12.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6462.1%
Simplified62.1%
times-fracN/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-rgt-identityN/A
associate-/r/N/A
+-lowering-+.f64N/A
associate-/r/N/A
/-rgt-identityN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6493.0%
Applied egg-rr93.0%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6493.2%
Simplified93.2%
associate-/l/N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6486.3%
Applied egg-rr86.3%
if -inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -2.0000000000000001e-236 or 0.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 9.9999999999999996e290Initial program 99.6%
if -2.0000000000000001e-236 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 0.0Initial program 16.6%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6488.8%
Simplified88.8%
if 9.9999999999999996e290 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) Initial program 18.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6436.5%
Simplified36.5%
times-fracN/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-rgt-identityN/A
associate-/r/N/A
+-lowering-+.f64N/A
associate-/r/N/A
/-rgt-identityN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6454.8%
Applied egg-rr54.8%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6487.8%
Simplified87.8%
Taylor expanded in y around inf
/-lowering-/.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6492.3%
Simplified92.3%
Final simplification95.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y)))
(t_2 (/ (+ (* z (- t a)) (* x y)) (+ y (* z (- b y)))))
(t_3 (* x (+ (/ t_1 x) (/ -1.0 (+ z -1.0))))))
(if (<= t_2 (- INFINITY))
t_3
(if (<= t_2 -2e-236)
t_2
(if (<= t_2 0.0) t_1 (if (<= t_2 1e+291) t_2 t_3))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double t_2 = ((z * (t - a)) + (x * y)) / (y + (z * (b - y)));
double t_3 = x * ((t_1 / x) + (-1.0 / (z + -1.0)));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_3;
} else if (t_2 <= -2e-236) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = t_1;
} else if (t_2 <= 1e+291) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double t_2 = ((z * (t - a)) + (x * y)) / (y + (z * (b - y)));
double t_3 = x * ((t_1 / x) + (-1.0 / (z + -1.0)));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_3;
} else if (t_2 <= -2e-236) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = t_1;
} else if (t_2 <= 1e+291) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) t_2 = ((z * (t - a)) + (x * y)) / (y + (z * (b - y))) t_3 = x * ((t_1 / x) + (-1.0 / (z + -1.0))) tmp = 0 if t_2 <= -math.inf: tmp = t_3 elif t_2 <= -2e-236: tmp = t_2 elif t_2 <= 0.0: tmp = t_1 elif t_2 <= 1e+291: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / Float64(b - y)) t_2 = Float64(Float64(Float64(z * Float64(t - a)) + Float64(x * y)) / Float64(y + Float64(z * Float64(b - y)))) t_3 = Float64(x * Float64(Float64(t_1 / x) + Float64(-1.0 / Float64(z + -1.0)))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_3; elseif (t_2 <= -2e-236) tmp = t_2; elseif (t_2 <= 0.0) tmp = t_1; elseif (t_2 <= 1e+291) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / (b - y); t_2 = ((z * (t - a)) + (x * y)) / (y + (z * (b - y))); t_3 = x * ((t_1 / x) + (-1.0 / (z + -1.0))); tmp = 0.0; if (t_2 <= -Inf) tmp = t_3; elseif (t_2 <= -2e-236) tmp = t_2; elseif (t_2 <= 0.0) tmp = t_1; elseif (t_2 <= 1e+291) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(t$95$1 / x), $MachinePrecision] + N[(-1.0 / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$3, If[LessEqual[t$95$2, -2e-236], t$95$2, If[LessEqual[t$95$2, 0.0], t$95$1, If[LessEqual[t$95$2, 1e+291], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
t_2 := \frac{z \cdot \left(t - a\right) + x \cdot y}{y + z \cdot \left(b - y\right)}\\
t_3 := x \cdot \left(\frac{t\_1}{x} + \frac{-1}{z + -1}\right)\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_2 \leq -2 \cdot 10^{-236}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 10^{+291}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -inf.0 or 9.9999999999999996e290 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) Initial program 16.3%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6445.0%
Simplified45.0%
times-fracN/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-rgt-identityN/A
associate-/r/N/A
+-lowering-+.f64N/A
associate-/r/N/A
/-rgt-identityN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6467.5%
Applied egg-rr67.5%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6489.6%
Simplified89.6%
Taylor expanded in y around inf
/-lowering-/.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6489.3%
Simplified89.3%
if -inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -2.0000000000000001e-236 or 0.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 9.9999999999999996e290Initial program 99.6%
if -2.0000000000000001e-236 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 0.0Initial program 16.6%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6488.8%
Simplified88.8%
Final simplification94.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y)))
(t_2 (* x (+ (/ t_1 x) (/ -1.0 (+ z -1.0))))))
(if (<= z -5.3e-20)
t_2
(if (<= z 3.35e-77)
(+ x (* t (+ (/ z y) (/ (* z (- x (/ a y))) t))))
(if (<= z 4.6e-5)
(/ (* z (- t a)) (+ y (* z (- b y))))
(if (<= z 6.8e+99) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double t_2 = x * ((t_1 / x) + (-1.0 / (z + -1.0)));
double tmp;
if (z <= -5.3e-20) {
tmp = t_2;
} else if (z <= 3.35e-77) {
tmp = x + (t * ((z / y) + ((z * (x - (a / y))) / t)));
} else if (z <= 4.6e-5) {
tmp = (z * (t - a)) / (y + (z * (b - y)));
} else if (z <= 6.8e+99) {
tmp = 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 = (t - a) / (b - y)
t_2 = x * ((t_1 / x) + ((-1.0d0) / (z + (-1.0d0))))
if (z <= (-5.3d-20)) then
tmp = t_2
else if (z <= 3.35d-77) then
tmp = x + (t * ((z / y) + ((z * (x - (a / y))) / t)))
else if (z <= 4.6d-5) then
tmp = (z * (t - a)) / (y + (z * (b - y)))
else if (z <= 6.8d+99) then
tmp = 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 = (t - a) / (b - y);
double t_2 = x * ((t_1 / x) + (-1.0 / (z + -1.0)));
double tmp;
if (z <= -5.3e-20) {
tmp = t_2;
} else if (z <= 3.35e-77) {
tmp = x + (t * ((z / y) + ((z * (x - (a / y))) / t)));
} else if (z <= 4.6e-5) {
tmp = (z * (t - a)) / (y + (z * (b - y)));
} else if (z <= 6.8e+99) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) t_2 = x * ((t_1 / x) + (-1.0 / (z + -1.0))) tmp = 0 if z <= -5.3e-20: tmp = t_2 elif z <= 3.35e-77: tmp = x + (t * ((z / y) + ((z * (x - (a / y))) / t))) elif z <= 4.6e-5: tmp = (z * (t - a)) / (y + (z * (b - y))) elif z <= 6.8e+99: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / Float64(b - y)) t_2 = Float64(x * Float64(Float64(t_1 / x) + Float64(-1.0 / Float64(z + -1.0)))) tmp = 0.0 if (z <= -5.3e-20) tmp = t_2; elseif (z <= 3.35e-77) tmp = Float64(x + Float64(t * Float64(Float64(z / y) + Float64(Float64(z * Float64(x - Float64(a / y))) / t)))); elseif (z <= 4.6e-5) tmp = Float64(Float64(z * Float64(t - a)) / Float64(y + Float64(z * Float64(b - y)))); elseif (z <= 6.8e+99) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / (b - y); t_2 = x * ((t_1 / x) + (-1.0 / (z + -1.0))); tmp = 0.0; if (z <= -5.3e-20) tmp = t_2; elseif (z <= 3.35e-77) tmp = x + (t * ((z / y) + ((z * (x - (a / y))) / t))); elseif (z <= 4.6e-5) tmp = (z * (t - a)) / (y + (z * (b - y))); elseif (z <= 6.8e+99) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(t$95$1 / x), $MachinePrecision] + N[(-1.0 / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.3e-20], t$95$2, If[LessEqual[z, 3.35e-77], N[(x + N[(t * N[(N[(z / y), $MachinePrecision] + N[(N[(z * N[(x - N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.6e-5], N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.8e+99], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
t_2 := x \cdot \left(\frac{t\_1}{x} + \frac{-1}{z + -1}\right)\\
\mathbf{if}\;z \leq -5.3 \cdot 10^{-20}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 3.35 \cdot 10^{-77}:\\
\;\;\;\;x + t \cdot \left(\frac{z}{y} + \frac{z \cdot \left(x - \frac{a}{y}\right)}{t}\right)\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{-5}:\\
\;\;\;\;\frac{z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+99}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.3000000000000002e-20 or 4.6e-5 < z < 6.79999999999999968e99Initial program 42.5%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6446.3%
Simplified46.3%
times-fracN/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-rgt-identityN/A
associate-/r/N/A
+-lowering-+.f64N/A
associate-/r/N/A
/-rgt-identityN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6463.3%
Applied egg-rr63.3%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6487.8%
Simplified87.8%
Taylor expanded in y around inf
/-lowering-/.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6482.2%
Simplified82.2%
if -5.3000000000000002e-20 < z < 3.3499999999999999e-77Initial program 83.4%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-rgt-identityN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6462.8%
Simplified62.8%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
neg-lowering-neg.f6470.1%
Simplified70.1%
Taylor expanded in t around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6473.0%
Simplified73.0%
if 3.3499999999999999e-77 < z < 4.6e-5Initial program 99.7%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6481.6%
Simplified81.6%
if 6.79999999999999968e99 < z Initial program 40.7%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6487.6%
Simplified87.6%
Final simplification79.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) b)))
(if (<= z -5.2e+226)
(/ t (- b y))
(if (<= z -7.2e+128)
(/ (- a t) y)
(if (<= z -0.44)
t_1
(if (<= z -1.02e-131)
(+ x (* z (/ t y)))
(if (<= z 4.2e-24) (- x (/ (* z a) y)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / b;
double tmp;
if (z <= -5.2e+226) {
tmp = t / (b - y);
} else if (z <= -7.2e+128) {
tmp = (a - t) / y;
} else if (z <= -0.44) {
tmp = t_1;
} else if (z <= -1.02e-131) {
tmp = x + (z * (t / y));
} else if (z <= 4.2e-24) {
tmp = x - ((z * a) / 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 = (t - a) / b
if (z <= (-5.2d+226)) then
tmp = t / (b - y)
else if (z <= (-7.2d+128)) then
tmp = (a - t) / y
else if (z <= (-0.44d0)) then
tmp = t_1
else if (z <= (-1.02d-131)) then
tmp = x + (z * (t / y))
else if (z <= 4.2d-24) then
tmp = x - ((z * a) / 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 = (t - a) / b;
double tmp;
if (z <= -5.2e+226) {
tmp = t / (b - y);
} else if (z <= -7.2e+128) {
tmp = (a - t) / y;
} else if (z <= -0.44) {
tmp = t_1;
} else if (z <= -1.02e-131) {
tmp = x + (z * (t / y));
} else if (z <= 4.2e-24) {
tmp = x - ((z * a) / y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / b tmp = 0 if z <= -5.2e+226: tmp = t / (b - y) elif z <= -7.2e+128: tmp = (a - t) / y elif z <= -0.44: tmp = t_1 elif z <= -1.02e-131: tmp = x + (z * (t / y)) elif z <= 4.2e-24: tmp = x - ((z * a) / y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / b) tmp = 0.0 if (z <= -5.2e+226) tmp = Float64(t / Float64(b - y)); elseif (z <= -7.2e+128) tmp = Float64(Float64(a - t) / y); elseif (z <= -0.44) tmp = t_1; elseif (z <= -1.02e-131) tmp = Float64(x + Float64(z * Float64(t / y))); elseif (z <= 4.2e-24) tmp = Float64(x - Float64(Float64(z * a) / y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / b; tmp = 0.0; if (z <= -5.2e+226) tmp = t / (b - y); elseif (z <= -7.2e+128) tmp = (a - t) / y; elseif (z <= -0.44) tmp = t_1; elseif (z <= -1.02e-131) tmp = x + (z * (t / y)); elseif (z <= 4.2e-24) tmp = x - ((z * a) / y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / b), $MachinePrecision]}, If[LessEqual[z, -5.2e+226], N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7.2e+128], N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[z, -0.44], t$95$1, If[LessEqual[z, -1.02e-131], N[(x + N[(z * N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e-24], N[(x - N[(N[(z * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b}\\
\mathbf{if}\;z \leq -5.2 \cdot 10^{+226}:\\
\;\;\;\;\frac{t}{b - y}\\
\mathbf{elif}\;z \leq -7.2 \cdot 10^{+128}:\\
\;\;\;\;\frac{a - t}{y}\\
\mathbf{elif}\;z \leq -0.44:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.02 \cdot 10^{-131}:\\
\;\;\;\;x + z \cdot \frac{t}{y}\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{-24}:\\
\;\;\;\;x - \frac{z \cdot a}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.2000000000000005e226Initial program 20.1%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f649.3%
Simplified9.3%
times-fracN/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-rgt-identityN/A
associate-/r/N/A
+-lowering-+.f64N/A
associate-/r/N/A
/-rgt-identityN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6426.3%
Applied egg-rr26.3%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6489.9%
Simplified89.9%
Taylor expanded in t around inf
/-lowering-/.f64N/A
--lowering--.f6464.9%
Simplified64.9%
if -5.2000000000000005e226 < z < -7.20000000000000054e128Initial program 15.7%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-rgt-identityN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f649.4%
Simplified9.4%
Taylor expanded in z around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
--lowering--.f6468.3%
Simplified68.3%
if -7.20000000000000054e128 < z < -0.440000000000000002 or 4.1999999999999999e-24 < z Initial program 50.3%
Taylor expanded in y around 0
/-lowering-/.f64N/A
--lowering--.f6448.2%
Simplified48.2%
if -0.440000000000000002 < z < -1.02000000000000001e-131Initial program 77.9%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-rgt-identityN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6459.5%
Simplified59.5%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
neg-lowering-neg.f6474.4%
Simplified74.4%
Taylor expanded in t around inf
/-lowering-/.f6472.3%
Simplified72.3%
if -1.02000000000000001e-131 < z < 4.1999999999999999e-24Initial program 86.8%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-rgt-identityN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6463.5%
Simplified63.5%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
neg-lowering-neg.f6466.4%
Simplified66.4%
Taylor expanded in a around inf
associate-*r/N/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f6462.0%
Simplified62.0%
Taylor expanded in x around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6466.0%
Simplified66.0%
Final simplification59.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y)))
(t_2 (* x (+ (/ t_1 x) (/ -1.0 (+ z -1.0))))))
(if (<= z -5e-8)
t_2
(if (<= z 1.5e-5)
(+ x (* z (+ (/ t y) (- x (/ a y)))))
(if (<= z 7e+99) t_2 t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double t_2 = x * ((t_1 / x) + (-1.0 / (z + -1.0)));
double tmp;
if (z <= -5e-8) {
tmp = t_2;
} else if (z <= 1.5e-5) {
tmp = x + (z * ((t / y) + (x - (a / y))));
} else if (z <= 7e+99) {
tmp = 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 = (t - a) / (b - y)
t_2 = x * ((t_1 / x) + ((-1.0d0) / (z + (-1.0d0))))
if (z <= (-5d-8)) then
tmp = t_2
else if (z <= 1.5d-5) then
tmp = x + (z * ((t / y) + (x - (a / y))))
else if (z <= 7d+99) then
tmp = 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 = (t - a) / (b - y);
double t_2 = x * ((t_1 / x) + (-1.0 / (z + -1.0)));
double tmp;
if (z <= -5e-8) {
tmp = t_2;
} else if (z <= 1.5e-5) {
tmp = x + (z * ((t / y) + (x - (a / y))));
} else if (z <= 7e+99) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) t_2 = x * ((t_1 / x) + (-1.0 / (z + -1.0))) tmp = 0 if z <= -5e-8: tmp = t_2 elif z <= 1.5e-5: tmp = x + (z * ((t / y) + (x - (a / y)))) elif z <= 7e+99: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / Float64(b - y)) t_2 = Float64(x * Float64(Float64(t_1 / x) + Float64(-1.0 / Float64(z + -1.0)))) tmp = 0.0 if (z <= -5e-8) tmp = t_2; elseif (z <= 1.5e-5) tmp = Float64(x + Float64(z * Float64(Float64(t / y) + Float64(x - Float64(a / y))))); elseif (z <= 7e+99) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / (b - y); t_2 = x * ((t_1 / x) + (-1.0 / (z + -1.0))); tmp = 0.0; if (z <= -5e-8) tmp = t_2; elseif (z <= 1.5e-5) tmp = x + (z * ((t / y) + (x - (a / y)))); elseif (z <= 7e+99) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(t$95$1 / x), $MachinePrecision] + N[(-1.0 / N[(z + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5e-8], t$95$2, If[LessEqual[z, 1.5e-5], N[(x + N[(z * N[(N[(t / y), $MachinePrecision] + N[(x - N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7e+99], t$95$2, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
t_2 := x \cdot \left(\frac{t\_1}{x} + \frac{-1}{z + -1}\right)\\
\mathbf{if}\;z \leq -5 \cdot 10^{-8}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{-5}:\\
\;\;\;\;x + z \cdot \left(\frac{t}{y} + \left(x - \frac{a}{y}\right)\right)\\
\mathbf{elif}\;z \leq 7 \cdot 10^{+99}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.9999999999999998e-8 or 1.50000000000000004e-5 < z < 6.9999999999999995e99Initial program 41.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6445.0%
Simplified45.0%
times-fracN/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-rgt-identityN/A
associate-/r/N/A
+-lowering-+.f64N/A
associate-/r/N/A
/-rgt-identityN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6461.7%
Applied egg-rr61.7%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6487.3%
Simplified87.3%
Taylor expanded in y around inf
/-lowering-/.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6483.5%
Simplified83.5%
if -4.9999999999999998e-8 < z < 1.50000000000000004e-5Initial program 85.3%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-rgt-identityN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6461.9%
Simplified61.9%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
neg-lowering-neg.f6468.1%
Simplified68.1%
if 6.9999999999999995e99 < z Initial program 40.7%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6487.6%
Simplified87.6%
Final simplification76.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ y (* z (- b y)))) (t_2 (/ (- t a) (- b y))))
(if (<= z -3.2e+14)
t_2
(if (<= z 4e-77)
(+ x (* z (+ (/ t y) (- x (/ a y)))))
(if (<= z 0.0027)
(/ (* z (- t a)) t_1)
(if (<= z 6.5e+32) (/ x (/ t_1 y)) t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (z * (b - y));
double t_2 = (t - a) / (b - y);
double tmp;
if (z <= -3.2e+14) {
tmp = t_2;
} else if (z <= 4e-77) {
tmp = x + (z * ((t / y) + (x - (a / y))));
} else if (z <= 0.0027) {
tmp = (z * (t - a)) / t_1;
} else if (z <= 6.5e+32) {
tmp = x / (t_1 / y);
} 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 = y + (z * (b - y))
t_2 = (t - a) / (b - y)
if (z <= (-3.2d+14)) then
tmp = t_2
else if (z <= 4d-77) then
tmp = x + (z * ((t / y) + (x - (a / y))))
else if (z <= 0.0027d0) then
tmp = (z * (t - a)) / t_1
else if (z <= 6.5d+32) then
tmp = x / (t_1 / y)
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 = y + (z * (b - y));
double t_2 = (t - a) / (b - y);
double tmp;
if (z <= -3.2e+14) {
tmp = t_2;
} else if (z <= 4e-77) {
tmp = x + (z * ((t / y) + (x - (a / y))));
} else if (z <= 0.0027) {
tmp = (z * (t - a)) / t_1;
} else if (z <= 6.5e+32) {
tmp = x / (t_1 / y);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y + (z * (b - y)) t_2 = (t - a) / (b - y) tmp = 0 if z <= -3.2e+14: tmp = t_2 elif z <= 4e-77: tmp = x + (z * ((t / y) + (x - (a / y)))) elif z <= 0.0027: tmp = (z * (t - a)) / t_1 elif z <= 6.5e+32: tmp = x / (t_1 / y) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y + Float64(z * Float64(b - y))) t_2 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -3.2e+14) tmp = t_2; elseif (z <= 4e-77) tmp = Float64(x + Float64(z * Float64(Float64(t / y) + Float64(x - Float64(a / y))))); elseif (z <= 0.0027) tmp = Float64(Float64(z * Float64(t - a)) / t_1); elseif (z <= 6.5e+32) tmp = Float64(x / Float64(t_1 / y)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y + (z * (b - y)); t_2 = (t - a) / (b - y); tmp = 0.0; if (z <= -3.2e+14) tmp = t_2; elseif (z <= 4e-77) tmp = x + (z * ((t / y) + (x - (a / y)))); elseif (z <= 0.0027) tmp = (z * (t - a)) / t_1; elseif (z <= 6.5e+32) tmp = x / (t_1 / y); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.2e+14], t$95$2, If[LessEqual[z, 4e-77], N[(x + N[(z * N[(N[(t / y), $MachinePrecision] + N[(x - N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.0027], N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[z, 6.5e+32], N[(x / N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + z \cdot \left(b - y\right)\\
t_2 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -3.2 \cdot 10^{+14}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-77}:\\
\;\;\;\;x + z \cdot \left(\frac{t}{y} + \left(x - \frac{a}{y}\right)\right)\\
\mathbf{elif}\;z \leq 0.0027:\\
\;\;\;\;\frac{z \cdot \left(t - a\right)}{t\_1}\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{+32}:\\
\;\;\;\;\frac{x}{\frac{t\_1}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -3.2e14 or 6.4999999999999994e32 < z Initial program 35.7%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6482.0%
Simplified82.0%
if -3.2e14 < z < 3.9999999999999997e-77Initial program 83.8%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-rgt-identityN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6462.4%
Simplified62.4%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
neg-lowering-neg.f6468.3%
Simplified68.3%
if 3.9999999999999997e-77 < z < 0.0027000000000000001Initial program 99.6%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6482.6%
Simplified82.6%
if 0.0027000000000000001 < z < 6.4999999999999994e32Initial program 65.0%
Taylor expanded in x around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6443.6%
Simplified43.6%
*-commutativeN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-rgt-identityN/A
associate-/r/N/A
+-lowering-+.f64N/A
associate-/r/N/A
/-rgt-identityN/A
*-lowering-*.f64N/A
--lowering--.f6478.0%
Applied egg-rr78.0%
Final simplification75.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ y (* z (- b y))))
(t_2 (/ x (/ t_1 y)))
(t_3 (/ (- t a) (- b y))))
(if (<= z -166000000000.0)
t_3
(if (<= z 7.2e-88)
t_2
(if (<= z 0.0006) (/ (* z (- t a)) t_1) (if (<= z 3.7e+32) t_2 t_3))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (z * (b - y));
double t_2 = x / (t_1 / y);
double t_3 = (t - a) / (b - y);
double tmp;
if (z <= -166000000000.0) {
tmp = t_3;
} else if (z <= 7.2e-88) {
tmp = t_2;
} else if (z <= 0.0006) {
tmp = (z * (t - a)) / t_1;
} else if (z <= 3.7e+32) {
tmp = t_2;
} 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 = y + (z * (b - y))
t_2 = x / (t_1 / y)
t_3 = (t - a) / (b - y)
if (z <= (-166000000000.0d0)) then
tmp = t_3
else if (z <= 7.2d-88) then
tmp = t_2
else if (z <= 0.0006d0) then
tmp = (z * (t - a)) / t_1
else if (z <= 3.7d+32) then
tmp = t_2
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 = y + (z * (b - y));
double t_2 = x / (t_1 / y);
double t_3 = (t - a) / (b - y);
double tmp;
if (z <= -166000000000.0) {
tmp = t_3;
} else if (z <= 7.2e-88) {
tmp = t_2;
} else if (z <= 0.0006) {
tmp = (z * (t - a)) / t_1;
} else if (z <= 3.7e+32) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y + (z * (b - y)) t_2 = x / (t_1 / y) t_3 = (t - a) / (b - y) tmp = 0 if z <= -166000000000.0: tmp = t_3 elif z <= 7.2e-88: tmp = t_2 elif z <= 0.0006: tmp = (z * (t - a)) / t_1 elif z <= 3.7e+32: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y + Float64(z * Float64(b - y))) t_2 = Float64(x / Float64(t_1 / y)) t_3 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -166000000000.0) tmp = t_3; elseif (z <= 7.2e-88) tmp = t_2; elseif (z <= 0.0006) tmp = Float64(Float64(z * Float64(t - a)) / t_1); elseif (z <= 3.7e+32) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y + (z * (b - y)); t_2 = x / (t_1 / y); t_3 = (t - a) / (b - y); tmp = 0.0; if (z <= -166000000000.0) tmp = t_3; elseif (z <= 7.2e-88) tmp = t_2; elseif (z <= 0.0006) tmp = (z * (t - a)) / t_1; elseif (z <= 3.7e+32) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -166000000000.0], t$95$3, If[LessEqual[z, 7.2e-88], t$95$2, If[LessEqual[z, 0.0006], N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[z, 3.7e+32], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + z \cdot \left(b - y\right)\\
t_2 := \frac{x}{\frac{t\_1}{y}}\\
t_3 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -166000000000:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{-88}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 0.0006:\\
\;\;\;\;\frac{z \cdot \left(t - a\right)}{t\_1}\\
\mathbf{elif}\;z \leq 3.7 \cdot 10^{+32}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -1.66e11 or 3.7e32 < z Initial program 36.2%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6482.1%
Simplified82.1%
if -1.66e11 < z < 7.1999999999999999e-88 or 5.99999999999999947e-4 < z < 3.7e32Initial program 81.6%
Taylor expanded in x around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6449.2%
Simplified49.2%
*-commutativeN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-rgt-identityN/A
associate-/r/N/A
+-lowering-+.f64N/A
associate-/r/N/A
/-rgt-identityN/A
*-lowering-*.f64N/A
--lowering--.f6467.4%
Applied egg-rr67.4%
if 7.1999999999999999e-88 < z < 5.99999999999999947e-4Initial program 99.6%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6480.9%
Simplified80.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (/ (+ y (* z (- b y))) y))) (t_2 (/ (- t a) (- b y))))
(if (<= z -23000000000.0)
t_2
(if (<= z 2.1e-220)
t_1
(if (<= z 5.2e-6)
(/ (+ (* z (- t a)) (* x y)) y)
(if (<= z 3.7e+32) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / ((y + (z * (b - y))) / y);
double t_2 = (t - a) / (b - y);
double tmp;
if (z <= -23000000000.0) {
tmp = t_2;
} else if (z <= 2.1e-220) {
tmp = t_1;
} else if (z <= 5.2e-6) {
tmp = ((z * (t - a)) + (x * y)) / y;
} else if (z <= 3.7e+32) {
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 / ((y + (z * (b - y))) / y)
t_2 = (t - a) / (b - y)
if (z <= (-23000000000.0d0)) then
tmp = t_2
else if (z <= 2.1d-220) then
tmp = t_1
else if (z <= 5.2d-6) then
tmp = ((z * (t - a)) + (x * y)) / y
else if (z <= 3.7d+32) 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 / ((y + (z * (b - y))) / y);
double t_2 = (t - a) / (b - y);
double tmp;
if (z <= -23000000000.0) {
tmp = t_2;
} else if (z <= 2.1e-220) {
tmp = t_1;
} else if (z <= 5.2e-6) {
tmp = ((z * (t - a)) + (x * y)) / y;
} else if (z <= 3.7e+32) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / ((y + (z * (b - y))) / y) t_2 = (t - a) / (b - y) tmp = 0 if z <= -23000000000.0: tmp = t_2 elif z <= 2.1e-220: tmp = t_1 elif z <= 5.2e-6: tmp = ((z * (t - a)) + (x * y)) / y elif z <= 3.7e+32: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(Float64(y + Float64(z * Float64(b - y))) / y)) t_2 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -23000000000.0) tmp = t_2; elseif (z <= 2.1e-220) tmp = t_1; elseif (z <= 5.2e-6) tmp = Float64(Float64(Float64(z * Float64(t - a)) + Float64(x * y)) / y); elseif (z <= 3.7e+32) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / ((y + (z * (b - y))) / y); t_2 = (t - a) / (b - y); tmp = 0.0; if (z <= -23000000000.0) tmp = t_2; elseif (z <= 2.1e-220) tmp = t_1; elseif (z <= 5.2e-6) tmp = ((z * (t - a)) + (x * y)) / y; elseif (z <= 3.7e+32) 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[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -23000000000.0], t$95$2, If[LessEqual[z, 2.1e-220], t$95$1, If[LessEqual[z, 5.2e-6], N[(N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[z, 3.7e+32], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\frac{y + z \cdot \left(b - y\right)}{y}}\\
t_2 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -23000000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-220}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-6}:\\
\;\;\;\;\frac{z \cdot \left(t - a\right) + x \cdot y}{y}\\
\mathbf{elif}\;z \leq 3.7 \cdot 10^{+32}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -2.3e10 or 3.7e32 < z Initial program 36.2%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6482.1%
Simplified82.1%
if -2.3e10 < z < 2.09999999999999993e-220 or 5.20000000000000019e-6 < z < 3.7e32Initial program 79.5%
Taylor expanded in x around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6450.2%
Simplified50.2%
*-commutativeN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-rgt-identityN/A
associate-/r/N/A
+-lowering-+.f64N/A
associate-/r/N/A
/-rgt-identityN/A
*-lowering-*.f64N/A
--lowering--.f6470.4%
Applied egg-rr70.4%
if 2.09999999999999993e-220 < z < 5.20000000000000019e-6Initial program 93.7%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-rgt-identityN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6465.0%
Simplified65.0%
Taylor expanded in z around 0
Simplified63.3%
Final simplification74.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -0.44)
t_1
(if (<= z -1.15e-132)
(+ x (* z (/ t y)))
(if (<= z 7.5e-24) (- x (/ (* z a) y)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -0.44) {
tmp = t_1;
} else if (z <= -1.15e-132) {
tmp = x + (z * (t / y));
} else if (z <= 7.5e-24) {
tmp = x - ((z * a) / 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 = (t - a) / (b - y)
if (z <= (-0.44d0)) then
tmp = t_1
else if (z <= (-1.15d-132)) then
tmp = x + (z * (t / y))
else if (z <= 7.5d-24) then
tmp = x - ((z * a) / 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 = (t - a) / (b - y);
double tmp;
if (z <= -0.44) {
tmp = t_1;
} else if (z <= -1.15e-132) {
tmp = x + (z * (t / y));
} else if (z <= 7.5e-24) {
tmp = x - ((z * a) / y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) tmp = 0 if z <= -0.44: tmp = t_1 elif z <= -1.15e-132: tmp = x + (z * (t / y)) elif z <= 7.5e-24: tmp = x - ((z * a) / y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -0.44) tmp = t_1; elseif (z <= -1.15e-132) tmp = Float64(x + Float64(z * Float64(t / y))); elseif (z <= 7.5e-24) tmp = Float64(x - Float64(Float64(z * a) / y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / (b - y); tmp = 0.0; if (z <= -0.44) tmp = t_1; elseif (z <= -1.15e-132) tmp = x + (z * (t / y)); elseif (z <= 7.5e-24) tmp = x - ((z * a) / y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -0.44], t$95$1, If[LessEqual[z, -1.15e-132], N[(x + N[(z * N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.5e-24], N[(x - N[(N[(z * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -0.44:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{-132}:\\
\;\;\;\;x + z \cdot \frac{t}{y}\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{-24}:\\
\;\;\;\;x - \frac{z \cdot a}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -0.440000000000000002 or 7.50000000000000007e-24 < z Initial program 42.3%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6474.6%
Simplified74.6%
if -0.440000000000000002 < z < -1.15000000000000002e-132Initial program 77.9%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-rgt-identityN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6459.5%
Simplified59.5%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
neg-lowering-neg.f6474.4%
Simplified74.4%
Taylor expanded in t around inf
/-lowering-/.f6472.3%
Simplified72.3%
if -1.15000000000000002e-132 < z < 7.50000000000000007e-24Initial program 86.8%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-rgt-identityN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6463.5%
Simplified63.5%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
neg-lowering-neg.f6466.4%
Simplified66.4%
Taylor expanded in a around inf
associate-*r/N/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f6462.0%
Simplified62.0%
Taylor expanded in x around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6466.0%
Simplified66.0%
Final simplification71.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -82000000000.0)
t_1
(if (<= z 8.8e+33) (/ x (/ (+ y (* z (- b y))) y)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -82000000000.0) {
tmp = t_1;
} else if (z <= 8.8e+33) {
tmp = x / ((y + (z * (b - y))) / 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 = (t - a) / (b - y)
if (z <= (-82000000000.0d0)) then
tmp = t_1
else if (z <= 8.8d+33) then
tmp = x / ((y + (z * (b - y))) / 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 = (t - a) / (b - y);
double tmp;
if (z <= -82000000000.0) {
tmp = t_1;
} else if (z <= 8.8e+33) {
tmp = x / ((y + (z * (b - y))) / y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) tmp = 0 if z <= -82000000000.0: tmp = t_1 elif z <= 8.8e+33: tmp = x / ((y + (z * (b - y))) / y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -82000000000.0) tmp = t_1; elseif (z <= 8.8e+33) tmp = Float64(x / Float64(Float64(y + Float64(z * Float64(b - y))) / y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / (b - y); tmp = 0.0; if (z <= -82000000000.0) tmp = t_1; elseif (z <= 8.8e+33) tmp = x / ((y + (z * (b - y))) / y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -82000000000.0], t$95$1, If[LessEqual[z, 8.8e+33], N[(x / N[(N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -82000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 8.8 \cdot 10^{+33}:\\
\;\;\;\;\frac{x}{\frac{y + z \cdot \left(b - y\right)}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -8.2e10 or 8.79999999999999975e33 < z Initial program 36.2%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6482.1%
Simplified82.1%
if -8.2e10 < z < 8.79999999999999975e33Initial program 84.2%
Taylor expanded in x around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6444.9%
Simplified44.9%
*-commutativeN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-rgt-identityN/A
associate-/r/N/A
+-lowering-+.f64N/A
associate-/r/N/A
/-rgt-identityN/A
*-lowering-*.f64N/A
--lowering--.f6460.4%
Applied egg-rr60.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ a (- 0.0 b))))
(if (<= z -1.9e+172)
(/ a y)
(if (<= z -0.094) t_1 (if (<= z 1.8e-31) (* x (+ z 1.0)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a / (0.0 - b);
double tmp;
if (z <= -1.9e+172) {
tmp = a / y;
} else if (z <= -0.094) {
tmp = t_1;
} else if (z <= 1.8e-31) {
tmp = x * (z + 1.0);
} 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 / (0.0d0 - b)
if (z <= (-1.9d+172)) then
tmp = a / y
else if (z <= (-0.094d0)) then
tmp = t_1
else if (z <= 1.8d-31) then
tmp = x * (z + 1.0d0)
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 / (0.0 - b);
double tmp;
if (z <= -1.9e+172) {
tmp = a / y;
} else if (z <= -0.094) {
tmp = t_1;
} else if (z <= 1.8e-31) {
tmp = x * (z + 1.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a / (0.0 - b) tmp = 0 if z <= -1.9e+172: tmp = a / y elif z <= -0.094: tmp = t_1 elif z <= 1.8e-31: tmp = x * (z + 1.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a / Float64(0.0 - b)) tmp = 0.0 if (z <= -1.9e+172) tmp = Float64(a / y); elseif (z <= -0.094) tmp = t_1; elseif (z <= 1.8e-31) tmp = Float64(x * Float64(z + 1.0)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a / (0.0 - b); tmp = 0.0; if (z <= -1.9e+172) tmp = a / y; elseif (z <= -0.094) tmp = t_1; elseif (z <= 1.8e-31) tmp = x * (z + 1.0); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a / N[(0.0 - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.9e+172], N[(a / y), $MachinePrecision], If[LessEqual[z, -0.094], t$95$1, If[LessEqual[z, 1.8e-31], N[(x * N[(z + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a}{0 - b}\\
\mathbf{if}\;z \leq -1.9 \cdot 10^{+172}:\\
\;\;\;\;\frac{a}{y}\\
\mathbf{elif}\;z \leq -0.094:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{-31}:\\
\;\;\;\;x \cdot \left(z + 1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.89999999999999985e172Initial program 17.4%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-rgt-identityN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6414.0%
Simplified14.0%
Taylor expanded in z around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
--lowering--.f6451.5%
Simplified51.5%
Taylor expanded in t around 0
/-lowering-/.f6435.1%
Simplified35.1%
if -1.89999999999999985e172 < z < -0.094 or 1.80000000000000002e-31 < z Initial program 49.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6451.9%
Simplified51.9%
Taylor expanded in y around 0
*-lowering-*.f64N/A
div-subN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f6440.3%
Simplified40.3%
Taylor expanded in t around 0
associate-*r/N/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f6431.4%
Simplified31.4%
if -0.094 < z < 1.80000000000000002e-31Initial program 84.6%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-rgt-identityN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6462.0%
Simplified62.0%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
neg-lowering-neg.f6468.2%
Simplified68.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f6453.5%
Simplified53.5%
Final simplification42.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ a (- 0.0 b))))
(if (<= z -7.8e+179)
(/ a y)
(if (<= z -0.09) t_1 (if (<= z 2.8e-29) x t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a / (0.0 - b);
double tmp;
if (z <= -7.8e+179) {
tmp = a / y;
} else if (z <= -0.09) {
tmp = t_1;
} else if (z <= 2.8e-29) {
tmp = x;
} 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 / (0.0d0 - b)
if (z <= (-7.8d+179)) then
tmp = a / y
else if (z <= (-0.09d0)) then
tmp = t_1
else if (z <= 2.8d-29) then
tmp = x
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 / (0.0 - b);
double tmp;
if (z <= -7.8e+179) {
tmp = a / y;
} else if (z <= -0.09) {
tmp = t_1;
} else if (z <= 2.8e-29) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a / (0.0 - b) tmp = 0 if z <= -7.8e+179: tmp = a / y elif z <= -0.09: tmp = t_1 elif z <= 2.8e-29: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a / Float64(0.0 - b)) tmp = 0.0 if (z <= -7.8e+179) tmp = Float64(a / y); elseif (z <= -0.09) tmp = t_1; elseif (z <= 2.8e-29) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a / (0.0 - b); tmp = 0.0; if (z <= -7.8e+179) tmp = a / y; elseif (z <= -0.09) tmp = t_1; elseif (z <= 2.8e-29) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a / N[(0.0 - b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.8e+179], N[(a / y), $MachinePrecision], If[LessEqual[z, -0.09], t$95$1, If[LessEqual[z, 2.8e-29], x, t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a}{0 - b}\\
\mathbf{if}\;z \leq -7.8 \cdot 10^{+179}:\\
\;\;\;\;\frac{a}{y}\\
\mathbf{elif}\;z \leq -0.09:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-29}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -7.79999999999999947e179Initial program 17.4%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-rgt-identityN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6414.0%
Simplified14.0%
Taylor expanded in z around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
--lowering--.f6451.5%
Simplified51.5%
Taylor expanded in t around 0
/-lowering-/.f6435.1%
Simplified35.1%
if -7.79999999999999947e179 < z < -0.089999999999999997 or 2.8000000000000002e-29 < z Initial program 49.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6451.9%
Simplified51.9%
Taylor expanded in y around 0
*-lowering-*.f64N/A
div-subN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f6440.3%
Simplified40.3%
Taylor expanded in t around 0
associate-*r/N/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f6431.4%
Simplified31.4%
if -0.089999999999999997 < z < 2.8000000000000002e-29Initial program 84.6%
Taylor expanded in z around 0
Simplified53.1%
Final simplification41.8%
(FPCore (x y z t a b) :precision binary64 (if (<= z -0.32) (/ a y) (if (<= z 195000000000.0) x (if (<= z 6.8e+99) (/ t (- 0.0 y)) (/ t b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.32) {
tmp = a / y;
} else if (z <= 195000000000.0) {
tmp = x;
} else if (z <= 6.8e+99) {
tmp = t / (0.0 - y);
} else {
tmp = t / 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 (z <= (-0.32d0)) then
tmp = a / y
else if (z <= 195000000000.0d0) then
tmp = x
else if (z <= 6.8d+99) then
tmp = t / (0.0d0 - y)
else
tmp = t / 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 (z <= -0.32) {
tmp = a / y;
} else if (z <= 195000000000.0) {
tmp = x;
} else if (z <= 6.8e+99) {
tmp = t / (0.0 - y);
} else {
tmp = t / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -0.32: tmp = a / y elif z <= 195000000000.0: tmp = x elif z <= 6.8e+99: tmp = t / (0.0 - y) else: tmp = t / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.32) tmp = Float64(a / y); elseif (z <= 195000000000.0) tmp = x; elseif (z <= 6.8e+99) tmp = Float64(t / Float64(0.0 - y)); else tmp = Float64(t / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -0.32) tmp = a / y; elseif (z <= 195000000000.0) tmp = x; elseif (z <= 6.8e+99) tmp = t / (0.0 - y); else tmp = t / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.32], N[(a / y), $MachinePrecision], If[LessEqual[z, 195000000000.0], x, If[LessEqual[z, 6.8e+99], N[(t / N[(0.0 - y), $MachinePrecision]), $MachinePrecision], N[(t / b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.32:\\
\;\;\;\;\frac{a}{y}\\
\mathbf{elif}\;z \leq 195000000000:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+99}:\\
\;\;\;\;\frac{t}{0 - y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{b}\\
\end{array}
\end{array}
if z < -0.320000000000000007Initial program 35.4%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-rgt-identityN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6420.8%
Simplified20.8%
Taylor expanded in z around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
--lowering--.f6438.4%
Simplified38.4%
Taylor expanded in t around 0
/-lowering-/.f6426.4%
Simplified26.4%
if -0.320000000000000007 < z < 1.95e11Initial program 84.6%
Taylor expanded in z around 0
Simplified48.7%
if 1.95e11 < z < 6.79999999999999968e99Initial program 46.2%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-rgt-identityN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6426.5%
Simplified26.5%
Taylor expanded in z around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
--lowering--.f6433.2%
Simplified33.2%
Taylor expanded in t around inf
/-lowering-/.f6432.4%
Simplified32.4%
if 6.79999999999999968e99 < z Initial program 40.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6433.0%
Simplified33.0%
Taylor expanded in y around 0
*-lowering-*.f64N/A
div-subN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f6449.9%
Simplified49.9%
Taylor expanded in t around inf
/-lowering-/.f6431.6%
Simplified31.6%
Final simplification39.1%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ x (- 1.0 z)))) (if (<= y -9.2e+68) t_1 (if (<= y 7.4e+46) (/ (- t a) b) t_1))))
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 <= -9.2e+68) {
tmp = t_1;
} else if (y <= 7.4e+46) {
tmp = (t - a) / b;
} 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 = x / (1.0d0 - z)
if (y <= (-9.2d+68)) then
tmp = t_1
else if (y <= 7.4d+46) then
tmp = (t - a) / b
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 = x / (1.0 - z);
double tmp;
if (y <= -9.2e+68) {
tmp = t_1;
} else if (y <= 7.4e+46) {
tmp = (t - a) / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (1.0 - z) tmp = 0 if y <= -9.2e+68: tmp = t_1 elif y <= 7.4e+46: tmp = (t - a) / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(1.0 - z)) tmp = 0.0 if (y <= -9.2e+68) tmp = t_1; elseif (y <= 7.4e+46) tmp = Float64(Float64(t - a) / b); else tmp = t_1; 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 <= -9.2e+68) tmp = t_1; elseif (y <= 7.4e+46) tmp = (t - a) / b; else tmp = t_1; 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, -9.2e+68], t$95$1, If[LessEqual[y, 7.4e+46], N[(N[(t - a), $MachinePrecision] / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{1 - z}\\
\mathbf{if}\;y \leq -9.2 \cdot 10^{+68}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.4 \cdot 10^{+46}:\\
\;\;\;\;\frac{t - a}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -9.1999999999999999e68 or 7.3999999999999998e46 < y Initial program 51.2%
Taylor expanded in y around inf
/-lowering-/.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6457.6%
Simplified57.6%
if -9.1999999999999999e68 < y < 7.3999999999999998e46Initial program 71.8%
Taylor expanded in y around 0
/-lowering-/.f64N/A
--lowering--.f6450.6%
Simplified50.6%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ t (- b y)))) (if (<= z -5.5e+47) t_1 (if (<= z 6.8e+27) (/ x (- 1.0 z)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t / (b - y);
double tmp;
if (z <= -5.5e+47) {
tmp = t_1;
} else if (z <= 6.8e+27) {
tmp = x / (1.0 - 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 = t / (b - y)
if (z <= (-5.5d+47)) then
tmp = t_1
else if (z <= 6.8d+27) then
tmp = x / (1.0d0 - 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 = t / (b - y);
double tmp;
if (z <= -5.5e+47) {
tmp = t_1;
} else if (z <= 6.8e+27) {
tmp = x / (1.0 - z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t / (b - y) tmp = 0 if z <= -5.5e+47: tmp = t_1 elif z <= 6.8e+27: tmp = x / (1.0 - z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t / Float64(b - y)) tmp = 0.0 if (z <= -5.5e+47) tmp = t_1; elseif (z <= 6.8e+27) tmp = Float64(x / Float64(1.0 - z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = t / (b - y); tmp = 0.0; if (z <= -5.5e+47) tmp = t_1; elseif (z <= 6.8e+27) tmp = x / (1.0 - z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.5e+47], t$95$1, If[LessEqual[z, 6.8e+27], N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{b - y}\\
\mathbf{if}\;z \leq -5.5 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+27}:\\
\;\;\;\;\frac{x}{1 - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.4999999999999998e47 or 6.8e27 < z Initial program 36.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6433.5%
Simplified33.5%
times-fracN/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-rgt-identityN/A
associate-/r/N/A
+-lowering-+.f64N/A
associate-/r/N/A
/-rgt-identityN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6451.9%
Applied egg-rr51.9%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6486.2%
Simplified86.2%
Taylor expanded in t around inf
/-lowering-/.f64N/A
--lowering--.f6442.0%
Simplified42.0%
if -5.4999999999999998e47 < z < 6.8e27Initial program 84.2%
Taylor expanded in y around inf
/-lowering-/.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6450.6%
Simplified50.6%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ t (- b y)))) (if (<= z -0.106) t_1 (if (<= z 1.95e-64) (* x (+ z 1.0)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t / (b - y);
double tmp;
if (z <= -0.106) {
tmp = t_1;
} else if (z <= 1.95e-64) {
tmp = x * (z + 1.0);
} 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 = t / (b - y)
if (z <= (-0.106d0)) then
tmp = t_1
else if (z <= 1.95d-64) then
tmp = x * (z + 1.0d0)
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 = t / (b - y);
double tmp;
if (z <= -0.106) {
tmp = t_1;
} else if (z <= 1.95e-64) {
tmp = x * (z + 1.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t / (b - y) tmp = 0 if z <= -0.106: tmp = t_1 elif z <= 1.95e-64: tmp = x * (z + 1.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t / Float64(b - y)) tmp = 0.0 if (z <= -0.106) tmp = t_1; elseif (z <= 1.95e-64) tmp = Float64(x * Float64(z + 1.0)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = t / (b - y); tmp = 0.0; if (z <= -0.106) tmp = t_1; elseif (z <= 1.95e-64) tmp = x * (z + 1.0); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -0.106], t$95$1, If[LessEqual[z, 1.95e-64], N[(x * N[(z + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{b - y}\\
\mathbf{if}\;z \leq -0.106:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.95 \cdot 10^{-64}:\\
\;\;\;\;x \cdot \left(z + 1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -0.105999999999999997 or 1.9499999999999998e-64 < z Initial program 45.8%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6445.6%
Simplified45.6%
times-fracN/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-rgt-identityN/A
associate-/r/N/A
+-lowering-+.f64N/A
associate-/r/N/A
/-rgt-identityN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6460.5%
Applied egg-rr60.5%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6484.1%
Simplified84.1%
Taylor expanded in t around inf
/-lowering-/.f64N/A
--lowering--.f6437.9%
Simplified37.9%
if -0.105999999999999997 < z < 1.9499999999999998e-64Initial program 83.7%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-rgt-identityN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6462.9%
Simplified62.9%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
neg-lowering-neg.f6469.6%
Simplified69.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f6454.1%
Simplified54.1%
(FPCore (x y z t a b) :precision binary64 (if (<= z -0.42) (/ a y) (if (<= z 1.2e-76) x (/ t b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.42) {
tmp = a / y;
} else if (z <= 1.2e-76) {
tmp = x;
} else {
tmp = t / 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 (z <= (-0.42d0)) then
tmp = a / y
else if (z <= 1.2d-76) then
tmp = x
else
tmp = t / 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 (z <= -0.42) {
tmp = a / y;
} else if (z <= 1.2e-76) {
tmp = x;
} else {
tmp = t / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -0.42: tmp = a / y elif z <= 1.2e-76: tmp = x else: tmp = t / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.42) tmp = Float64(a / y); elseif (z <= 1.2e-76) tmp = x; else tmp = Float64(t / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -0.42) tmp = a / y; elseif (z <= 1.2e-76) tmp = x; else tmp = t / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.42], N[(a / y), $MachinePrecision], If[LessEqual[z, 1.2e-76], x, N[(t / b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.42:\\
\;\;\;\;\frac{a}{y}\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{-76}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{b}\\
\end{array}
\end{array}
if z < -0.419999999999999984Initial program 35.4%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-rgt-identityN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6420.8%
Simplified20.8%
Taylor expanded in z around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
--lowering--.f6438.4%
Simplified38.4%
Taylor expanded in t around 0
/-lowering-/.f6426.4%
Simplified26.4%
if -0.419999999999999984 < z < 1.20000000000000007e-76Initial program 83.6%
Taylor expanded in z around 0
Simplified54.1%
if 1.20000000000000007e-76 < z Initial program 53.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6455.7%
Simplified55.7%
Taylor expanded in y around 0
*-lowering-*.f64N/A
div-subN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f6436.4%
Simplified36.4%
Taylor expanded in t around inf
/-lowering-/.f6422.3%
Simplified22.3%
(FPCore (x y z t a b) :precision binary64 (if (<= z -0.165) (/ a y) (if (<= z 135000000000.0) x (/ a y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.165) {
tmp = a / y;
} else if (z <= 135000000000.0) {
tmp = x;
} else {
tmp = a / 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) :: tmp
if (z <= (-0.165d0)) then
tmp = a / y
else if (z <= 135000000000.0d0) then
tmp = x
else
tmp = a / y
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 <= -0.165) {
tmp = a / y;
} else if (z <= 135000000000.0) {
tmp = x;
} else {
tmp = a / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -0.165: tmp = a / y elif z <= 135000000000.0: tmp = x else: tmp = a / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.165) tmp = Float64(a / y); elseif (z <= 135000000000.0) tmp = x; else tmp = Float64(a / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -0.165) tmp = a / y; elseif (z <= 135000000000.0) tmp = x; else tmp = a / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.165], N[(a / y), $MachinePrecision], If[LessEqual[z, 135000000000.0], x, N[(a / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.165:\\
\;\;\;\;\frac{a}{y}\\
\mathbf{elif}\;z \leq 135000000000:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{a}{y}\\
\end{array}
\end{array}
if z < -0.165000000000000008 or 1.35e11 < z Initial program 39.2%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-rgt-identityN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6422.8%
Simplified22.8%
Taylor expanded in z around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
--lowering--.f6435.4%
Simplified35.4%
Taylor expanded in t around 0
/-lowering-/.f6420.3%
Simplified20.3%
if -0.165000000000000008 < z < 1.35e11Initial program 84.6%
Taylor expanded in z around 0
Simplified48.7%
(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 62.2%
Taylor expanded in z around 0
Simplified26.5%
(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 2024140
(FPCore (x y z t a b)
:name "Development.Shake.Progress:decay from shake-0.15.5"
:precision binary64
:alt
(! :herbie-platform default (- (/ (+ (* z t) (* y x)) (+ y (* z (- b y)))) (/ a (+ (- b y) (/ y z)))))
(/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))