
(FPCore (x y z t a b c i) :precision binary64 (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i): return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i): return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ 27464.7644705 (* x x)))
(t_2 (- (+ x (/ z y)) (/ (* x a) y)))
(t_3 (/ z (* x x)))
(t_4 (- (/ a x) t_3)))
(if (<= y -6e+192)
t_2
(if (<= y -9.2e+34)
(/
-1.0
(+
(/
(+
t_3
(-
(/
(+
(/
(+
(- (/ 230661.510616 (* x x)) (/ c x))
(+
(* z (/ (+ (/ b x) (- (* z (/ (- t_3 (/ a x)) x)) t_1)) x))
(/ (* t_4 27464.7644705) x)))
y)
(- (+ (* z (/ t_4 x)) t_1) (/ b x)))
y)
(/ a x)))
y)
(/ -1.0 x)))
(if (<= y 1.2e+43)
(/
(+
(*
y
(/
-1.0
(/
-1.0
(+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x)))))))))
t)
(+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))
(if (<= y 6.5e+164)
(/
-1.0
(+
(/
(+ t_3 (- (/ (- (+ t_1 (/ (* z t_4) x)) (/ b x)) y) (/ a x)))
y)
(/ -1.0 x)))
t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = 27464.7644705 / (x * x);
double t_2 = (x + (z / y)) - ((x * a) / y);
double t_3 = z / (x * x);
double t_4 = (a / x) - t_3;
double tmp;
if (y <= -6e+192) {
tmp = t_2;
} else if (y <= -9.2e+34) {
tmp = -1.0 / (((t_3 + (((((((230661.510616 / (x * x)) - (c / x)) + ((z * (((b / x) + ((z * ((t_3 - (a / x)) / x)) - t_1)) / x)) + ((t_4 * 27464.7644705) / x))) / y) + (((z * (t_4 / x)) + t_1) - (b / x))) / y) - (a / x))) / y) + (-1.0 / x));
} else if (y <= 1.2e+43) {
tmp = ((y * (-1.0 / (-1.0 / (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))))) + t) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else if (y <= 6.5e+164) {
tmp = -1.0 / (((t_3 + ((((t_1 + ((z * t_4) / x)) - (b / x)) / y) - (a / x))) / y) + (-1.0 / x));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = 27464.7644705d0 / (x * x)
t_2 = (x + (z / y)) - ((x * a) / y)
t_3 = z / (x * x)
t_4 = (a / x) - t_3
if (y <= (-6d+192)) then
tmp = t_2
else if (y <= (-9.2d+34)) then
tmp = (-1.0d0) / (((t_3 + (((((((230661.510616d0 / (x * x)) - (c / x)) + ((z * (((b / x) + ((z * ((t_3 - (a / x)) / x)) - t_1)) / x)) + ((t_4 * 27464.7644705d0) / x))) / y) + (((z * (t_4 / x)) + t_1) - (b / x))) / y) - (a / x))) / y) + ((-1.0d0) / x))
else if (y <= 1.2d+43) then
tmp = ((y * ((-1.0d0) / ((-1.0d0) / (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x))))))))) + t) / ((y * (c + (y * (b + (y * (y + a)))))) + i)
else if (y <= 6.5d+164) then
tmp = (-1.0d0) / (((t_3 + ((((t_1 + ((z * t_4) / x)) - (b / x)) / y) - (a / x))) / y) + ((-1.0d0) / x))
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 c, double i) {
double t_1 = 27464.7644705 / (x * x);
double t_2 = (x + (z / y)) - ((x * a) / y);
double t_3 = z / (x * x);
double t_4 = (a / x) - t_3;
double tmp;
if (y <= -6e+192) {
tmp = t_2;
} else if (y <= -9.2e+34) {
tmp = -1.0 / (((t_3 + (((((((230661.510616 / (x * x)) - (c / x)) + ((z * (((b / x) + ((z * ((t_3 - (a / x)) / x)) - t_1)) / x)) + ((t_4 * 27464.7644705) / x))) / y) + (((z * (t_4 / x)) + t_1) - (b / x))) / y) - (a / x))) / y) + (-1.0 / x));
} else if (y <= 1.2e+43) {
tmp = ((y * (-1.0 / (-1.0 / (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))))) + t) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else if (y <= 6.5e+164) {
tmp = -1.0 / (((t_3 + ((((t_1 + ((z * t_4) / x)) - (b / x)) / y) - (a / x))) / y) + (-1.0 / x));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = 27464.7644705 / (x * x) t_2 = (x + (z / y)) - ((x * a) / y) t_3 = z / (x * x) t_4 = (a / x) - t_3 tmp = 0 if y <= -6e+192: tmp = t_2 elif y <= -9.2e+34: tmp = -1.0 / (((t_3 + (((((((230661.510616 / (x * x)) - (c / x)) + ((z * (((b / x) + ((z * ((t_3 - (a / x)) / x)) - t_1)) / x)) + ((t_4 * 27464.7644705) / x))) / y) + (((z * (t_4 / x)) + t_1) - (b / x))) / y) - (a / x))) / y) + (-1.0 / x)) elif y <= 1.2e+43: tmp = ((y * (-1.0 / (-1.0 / (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))))) + t) / ((y * (c + (y * (b + (y * (y + a)))))) + i) elif y <= 6.5e+164: tmp = -1.0 / (((t_3 + ((((t_1 + ((z * t_4) / x)) - (b / x)) / y) - (a / x))) / y) + (-1.0 / x)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(27464.7644705 / Float64(x * x)) t_2 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) t_3 = Float64(z / Float64(x * x)) t_4 = Float64(Float64(a / x) - t_3) tmp = 0.0 if (y <= -6e+192) tmp = t_2; elseif (y <= -9.2e+34) tmp = Float64(-1.0 / Float64(Float64(Float64(t_3 + Float64(Float64(Float64(Float64(Float64(Float64(Float64(230661.510616 / Float64(x * x)) - Float64(c / x)) + Float64(Float64(z * Float64(Float64(Float64(b / x) + Float64(Float64(z * Float64(Float64(t_3 - Float64(a / x)) / x)) - t_1)) / x)) + Float64(Float64(t_4 * 27464.7644705) / x))) / y) + Float64(Float64(Float64(z * Float64(t_4 / x)) + t_1) - Float64(b / x))) / y) - Float64(a / x))) / y) + Float64(-1.0 / x))); elseif (y <= 1.2e+43) tmp = Float64(Float64(Float64(y * Float64(-1.0 / Float64(-1.0 / Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x))))))))) + t) / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); elseif (y <= 6.5e+164) tmp = Float64(-1.0 / Float64(Float64(Float64(t_3 + Float64(Float64(Float64(Float64(t_1 + Float64(Float64(z * t_4) / x)) - Float64(b / x)) / y) - Float64(a / x))) / y) + Float64(-1.0 / x))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = 27464.7644705 / (x * x); t_2 = (x + (z / y)) - ((x * a) / y); t_3 = z / (x * x); t_4 = (a / x) - t_3; tmp = 0.0; if (y <= -6e+192) tmp = t_2; elseif (y <= -9.2e+34) tmp = -1.0 / (((t_3 + (((((((230661.510616 / (x * x)) - (c / x)) + ((z * (((b / x) + ((z * ((t_3 - (a / x)) / x)) - t_1)) / x)) + ((t_4 * 27464.7644705) / x))) / y) + (((z * (t_4 / x)) + t_1) - (b / x))) / y) - (a / x))) / y) + (-1.0 / x)); elseif (y <= 1.2e+43) tmp = ((y * (-1.0 / (-1.0 / (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))))) + t) / ((y * (c + (y * (b + (y * (y + a)))))) + i); elseif (y <= 6.5e+164) tmp = -1.0 / (((t_3 + ((((t_1 + ((z * t_4) / x)) - (b / x)) / y) - (a / x))) / y) + (-1.0 / x)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(27464.7644705 / N[(x * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z / N[(x * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(a / x), $MachinePrecision] - t$95$3), $MachinePrecision]}, If[LessEqual[y, -6e+192], t$95$2, If[LessEqual[y, -9.2e+34], N[(-1.0 / N[(N[(N[(t$95$3 + N[(N[(N[(N[(N[(N[(N[(230661.510616 / N[(x * x), $MachinePrecision]), $MachinePrecision] - N[(c / x), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(N[(N[(b / x), $MachinePrecision] + N[(N[(z * N[(N[(t$95$3 - N[(a / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$4 * 27464.7644705), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + N[(N[(N[(z * N[(t$95$4 / x), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] - N[(b / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.2e+43], N[(N[(N[(y * N[(-1.0 / N[(-1.0 / N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.5e+164], N[(-1.0 / N[(N[(N[(t$95$3 + N[(N[(N[(N[(t$95$1 + N[(N[(z * t$95$4), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] - N[(b / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{27464.7644705}{x \cdot x}\\
t_2 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
t_3 := \frac{z}{x \cdot x}\\
t_4 := \frac{a}{x} - t\_3\\
\mathbf{if}\;y \leq -6 \cdot 10^{+192}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -9.2 \cdot 10^{+34}:\\
\;\;\;\;\frac{-1}{\frac{t\_3 + \left(\frac{\frac{\left(\frac{230661.510616}{x \cdot x} - \frac{c}{x}\right) + \left(z \cdot \frac{\frac{b}{x} + \left(z \cdot \frac{t\_3 - \frac{a}{x}}{x} - t\_1\right)}{x} + \frac{t\_4 \cdot 27464.7644705}{x}\right)}{y} + \left(\left(z \cdot \frac{t\_4}{x} + t\_1\right) - \frac{b}{x}\right)}{y} - \frac{a}{x}\right)}{y} + \frac{-1}{x}}\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{+43}:\\
\;\;\;\;\frac{y \cdot \frac{-1}{\frac{-1}{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)}} + t}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{+164}:\\
\;\;\;\;\frac{-1}{\frac{t\_3 + \left(\frac{\left(t\_1 + \frac{z \cdot t\_4}{x}\right) - \frac{b}{x}}{y} - \frac{a}{x}\right)}{y} + \frac{-1}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -6e192 or 6.5000000000000003e164 < y Initial program 0.0%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6492.4%
Simplified92.4%
if -6e192 < y < -9.1999999999999993e34Initial program 7.5%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr7.5%
*-commutativeN/A
remove-double-divN/A
associate-*l/N/A
clear-numN/A
/-lowering-/.f64N/A
*-lft-identityN/A
/-lowering-/.f64N/A
Applied egg-rr7.5%
Taylor expanded in y around -inf
Simplified76.5%
if -9.1999999999999993e34 < y < 1.20000000000000012e43Initial program 94.8%
flip-+N/A
clear-numN/A
/-lowering-/.f64N/A
clear-numN/A
flip-+N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
Applied egg-rr94.8%
if 1.20000000000000012e43 < y < 6.5000000000000003e164Initial program 3.9%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr3.9%
Taylor expanded in y around -inf
Simplified68.6%
Final simplification88.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ x (/ z y)) (/ (* x a) y)))
(t_2 (/ z (* x x)))
(t_3
(/
-1.0
(+
(/
(+
t_2
(-
(/
(-
(+ (/ 27464.7644705 (* x x)) (/ (* z (- (/ a x) t_2)) x))
(/ b x))
y)
(/ a x)))
y)
(/ -1.0 x)))))
(if (<= y -6e+192)
t_1
(if (<= y -1.22e+53)
t_3
(if (<= y 4.4e+42)
(/
(+
(*
y
(/
-1.0
(/
-1.0
(+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x)))))))))
t)
(+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))
(if (<= y 4.2e+166) t_3 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double t_2 = z / (x * x);
double t_3 = -1.0 / (((t_2 + (((((27464.7644705 / (x * x)) + ((z * ((a / x) - t_2)) / x)) - (b / x)) / y) - (a / x))) / y) + (-1.0 / x));
double tmp;
if (y <= -6e+192) {
tmp = t_1;
} else if (y <= -1.22e+53) {
tmp = t_3;
} else if (y <= 4.4e+42) {
tmp = ((y * (-1.0 / (-1.0 / (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))))) + t) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else if (y <= 4.2e+166) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (x + (z / y)) - ((x * a) / y)
t_2 = z / (x * x)
t_3 = (-1.0d0) / (((t_2 + (((((27464.7644705d0 / (x * x)) + ((z * ((a / x) - t_2)) / x)) - (b / x)) / y) - (a / x))) / y) + ((-1.0d0) / x))
if (y <= (-6d+192)) then
tmp = t_1
else if (y <= (-1.22d+53)) then
tmp = t_3
else if (y <= 4.4d+42) then
tmp = ((y * ((-1.0d0) / ((-1.0d0) / (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x))))))))) + t) / ((y * (c + (y * (b + (y * (y + a)))))) + i)
else if (y <= 4.2d+166) then
tmp = t_3
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 c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double t_2 = z / (x * x);
double t_3 = -1.0 / (((t_2 + (((((27464.7644705 / (x * x)) + ((z * ((a / x) - t_2)) / x)) - (b / x)) / y) - (a / x))) / y) + (-1.0 / x));
double tmp;
if (y <= -6e+192) {
tmp = t_1;
} else if (y <= -1.22e+53) {
tmp = t_3;
} else if (y <= 4.4e+42) {
tmp = ((y * (-1.0 / (-1.0 / (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))))) + t) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else if (y <= 4.2e+166) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x + (z / y)) - ((x * a) / y) t_2 = z / (x * x) t_3 = -1.0 / (((t_2 + (((((27464.7644705 / (x * x)) + ((z * ((a / x) - t_2)) / x)) - (b / x)) / y) - (a / x))) / y) + (-1.0 / x)) tmp = 0 if y <= -6e+192: tmp = t_1 elif y <= -1.22e+53: tmp = t_3 elif y <= 4.4e+42: tmp = ((y * (-1.0 / (-1.0 / (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))))) + t) / ((y * (c + (y * (b + (y * (y + a)))))) + i) elif y <= 4.2e+166: tmp = t_3 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) t_2 = Float64(z / Float64(x * x)) t_3 = Float64(-1.0 / Float64(Float64(Float64(t_2 + Float64(Float64(Float64(Float64(Float64(27464.7644705 / Float64(x * x)) + Float64(Float64(z * Float64(Float64(a / x) - t_2)) / x)) - Float64(b / x)) / y) - Float64(a / x))) / y) + Float64(-1.0 / x))) tmp = 0.0 if (y <= -6e+192) tmp = t_1; elseif (y <= -1.22e+53) tmp = t_3; elseif (y <= 4.4e+42) tmp = Float64(Float64(Float64(y * Float64(-1.0 / Float64(-1.0 / Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x))))))))) + t) / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); elseif (y <= 4.2e+166) tmp = t_3; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x + (z / y)) - ((x * a) / y); t_2 = z / (x * x); t_3 = -1.0 / (((t_2 + (((((27464.7644705 / (x * x)) + ((z * ((a / x) - t_2)) / x)) - (b / x)) / y) - (a / x))) / y) + (-1.0 / x)); tmp = 0.0; if (y <= -6e+192) tmp = t_1; elseif (y <= -1.22e+53) tmp = t_3; elseif (y <= 4.4e+42) tmp = ((y * (-1.0 / (-1.0 / (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))))) + t) / ((y * (c + (y * (b + (y * (y + a)))))) + i); elseif (y <= 4.2e+166) tmp = t_3; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z / N[(x * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(-1.0 / N[(N[(N[(t$95$2 + N[(N[(N[(N[(N[(27464.7644705 / N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(N[(a / x), $MachinePrecision] - t$95$2), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] - N[(b / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6e+192], t$95$1, If[LessEqual[y, -1.22e+53], t$95$3, If[LessEqual[y, 4.4e+42], N[(N[(N[(y * N[(-1.0 / N[(-1.0 / N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.2e+166], t$95$3, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
t_2 := \frac{z}{x \cdot x}\\
t_3 := \frac{-1}{\frac{t\_2 + \left(\frac{\left(\frac{27464.7644705}{x \cdot x} + \frac{z \cdot \left(\frac{a}{x} - t\_2\right)}{x}\right) - \frac{b}{x}}{y} - \frac{a}{x}\right)}{y} + \frac{-1}{x}}\\
\mathbf{if}\;y \leq -6 \cdot 10^{+192}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.22 \cdot 10^{+53}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{+42}:\\
\;\;\;\;\frac{y \cdot \frac{-1}{\frac{-1}{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)}} + t}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{+166}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -6e192 or 4.2000000000000001e166 < y Initial program 0.0%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6492.4%
Simplified92.4%
if -6e192 < y < -1.21999999999999999e53 or 4.4000000000000003e42 < y < 4.2000000000000001e166Initial program 4.0%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr4.0%
Taylor expanded in y around -inf
Simplified71.0%
if -1.21999999999999999e53 < y < 4.4000000000000003e42Initial program 94.2%
flip-+N/A
clear-numN/A
/-lowering-/.f64N/A
clear-numN/A
flip-+N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
Applied egg-rr94.2%
Final simplification87.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ x (/ z y)) (/ (* x a) y))))
(if (<= y -5.1e+61)
t_1
(if (<= y 9e+41)
(/
(+
(*
y
(/
-1.0
(/
-1.0
(+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x)))))))))
t)
(+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))
(if (<= y 1.2e+166)
(/ -1.0 (+ (/ (- (/ z (* x x)) (/ a x)) y) (/ -1.0 x)))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -5.1e+61) {
tmp = t_1;
} else if (y <= 9e+41) {
tmp = ((y * (-1.0 / (-1.0 / (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))))) + t) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else if (y <= 1.2e+166) {
tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (x + (z / y)) - ((x * a) / y)
if (y <= (-5.1d+61)) then
tmp = t_1
else if (y <= 9d+41) then
tmp = ((y * ((-1.0d0) / ((-1.0d0) / (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x))))))))) + t) / ((y * (c + (y * (b + (y * (y + a)))))) + i)
else if (y <= 1.2d+166) then
tmp = (-1.0d0) / ((((z / (x * x)) - (a / x)) / y) + ((-1.0d0) / 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 c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -5.1e+61) {
tmp = t_1;
} else if (y <= 9e+41) {
tmp = ((y * (-1.0 / (-1.0 / (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))))) + t) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else if (y <= 1.2e+166) {
tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x + (z / y)) - ((x * a) / y) tmp = 0 if y <= -5.1e+61: tmp = t_1 elif y <= 9e+41: tmp = ((y * (-1.0 / (-1.0 / (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))))) + t) / ((y * (c + (y * (b + (y * (y + a)))))) + i) elif y <= 1.2e+166: tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) tmp = 0.0 if (y <= -5.1e+61) tmp = t_1; elseif (y <= 9e+41) tmp = Float64(Float64(Float64(y * Float64(-1.0 / Float64(-1.0 / Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x))))))))) + t) / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); elseif (y <= 1.2e+166) tmp = Float64(-1.0 / Float64(Float64(Float64(Float64(z / Float64(x * x)) - Float64(a / x)) / y) + Float64(-1.0 / x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x + (z / y)) - ((x * a) / y); tmp = 0.0; if (y <= -5.1e+61) tmp = t_1; elseif (y <= 9e+41) tmp = ((y * (-1.0 / (-1.0 / (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))))) + t) / ((y * (c + (y * (b + (y * (y + a)))))) + i); elseif (y <= 1.2e+166) tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.1e+61], t$95$1, If[LessEqual[y, 9e+41], N[(N[(N[(y * N[(-1.0 / N[(-1.0 / N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.2e+166], N[(-1.0 / N[(N[(N[(N[(z / N[(x * x), $MachinePrecision]), $MachinePrecision] - N[(a / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{if}\;y \leq -5.1 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+41}:\\
\;\;\;\;\frac{y \cdot \frac{-1}{\frac{-1}{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)}} + t}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{+166}:\\
\;\;\;\;\frac{-1}{\frac{\frac{z}{x \cdot x} - \frac{a}{x}}{y} + \frac{-1}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.1000000000000001e61 or 1.19999999999999996e166 < y Initial program 1.6%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6478.2%
Simplified78.2%
if -5.1000000000000001e61 < y < 9.0000000000000002e41Initial program 94.2%
flip-+N/A
clear-numN/A
/-lowering-/.f64N/A
clear-numN/A
flip-+N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
Applied egg-rr94.2%
if 9.0000000000000002e41 < y < 1.19999999999999996e166Initial program 3.9%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr3.9%
Taylor expanded in y around -inf
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6467.5%
Simplified67.5%
Final simplification85.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ x (/ z y)) (/ (* x a) y))))
(if (<= y -3.6e+52)
t_1
(if (<= y 3.2e+43)
(/
(+
t
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
(+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))
(if (<= y 9.2e+166)
(/ -1.0 (+ (/ (- (/ z (* x x)) (/ a x)) y) (/ -1.0 x)))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -3.6e+52) {
tmp = t_1;
} else if (y <= 3.2e+43) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else if (y <= 9.2e+166) {
tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (x + (z / y)) - ((x * a) / y)
if (y <= (-3.6d+52)) then
tmp = t_1
else if (y <= 3.2d+43) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i)
else if (y <= 9.2d+166) then
tmp = (-1.0d0) / ((((z / (x * x)) - (a / x)) / y) + ((-1.0d0) / 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 c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -3.6e+52) {
tmp = t_1;
} else if (y <= 3.2e+43) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else if (y <= 9.2e+166) {
tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x + (z / y)) - ((x * a) / y) tmp = 0 if y <= -3.6e+52: tmp = t_1 elif y <= 3.2e+43: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i) elif y <= 9.2e+166: tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) tmp = 0.0 if (y <= -3.6e+52) tmp = t_1; elseif (y <= 3.2e+43) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))))) / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); elseif (y <= 9.2e+166) tmp = Float64(-1.0 / Float64(Float64(Float64(Float64(z / Float64(x * x)) - Float64(a / x)) / y) + Float64(-1.0 / x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x + (z / y)) - ((x * a) / y); tmp = 0.0; if (y <= -3.6e+52) tmp = t_1; elseif (y <= 3.2e+43) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i); elseif (y <= 9.2e+166) tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.6e+52], t$95$1, If[LessEqual[y, 3.2e+43], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.2e+166], N[(-1.0 / N[(N[(N[(N[(z / N[(x * x), $MachinePrecision]), $MachinePrecision] - N[(a / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{if}\;y \leq -3.6 \cdot 10^{+52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{+43}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\right)}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{+166}:\\
\;\;\;\;\frac{-1}{\frac{\frac{z}{x \cdot x} - \frac{a}{x}}{y} + \frac{-1}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.6e52 or 9.2000000000000003e166 < y Initial program 1.6%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6478.2%
Simplified78.2%
if -3.6e52 < y < 3.20000000000000014e43Initial program 94.2%
if 3.20000000000000014e43 < y < 9.2000000000000003e166Initial program 3.9%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr3.9%
Taylor expanded in y around -inf
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6467.5%
Simplified67.5%
Final simplification85.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ x (/ z y)) (/ (* x a) y))))
(if (<= y -7.6e+33)
t_1
(if (<= y 3e+37)
(/
-1.0
(/
(+ (* y (+ c (* y (+ b (* y (+ y a)))))) i)
(- (/ -1.0 (/ (/ 1.0 (+ 230661.510616 (* z (* y y)))) y)) t)))
(if (<= y 6.6e+165)
(/ -1.0 (+ (/ (- (/ z (* x x)) (/ a x)) y) (/ -1.0 x)))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -7.6e+33) {
tmp = t_1;
} else if (y <= 3e+37) {
tmp = -1.0 / (((y * (c + (y * (b + (y * (y + a)))))) + i) / ((-1.0 / ((1.0 / (230661.510616 + (z * (y * y)))) / y)) - t));
} else if (y <= 6.6e+165) {
tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (x + (z / y)) - ((x * a) / y)
if (y <= (-7.6d+33)) then
tmp = t_1
else if (y <= 3d+37) then
tmp = (-1.0d0) / (((y * (c + (y * (b + (y * (y + a)))))) + i) / (((-1.0d0) / ((1.0d0 / (230661.510616d0 + (z * (y * y)))) / y)) - t))
else if (y <= 6.6d+165) then
tmp = (-1.0d0) / ((((z / (x * x)) - (a / x)) / y) + ((-1.0d0) / 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 c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -7.6e+33) {
tmp = t_1;
} else if (y <= 3e+37) {
tmp = -1.0 / (((y * (c + (y * (b + (y * (y + a)))))) + i) / ((-1.0 / ((1.0 / (230661.510616 + (z * (y * y)))) / y)) - t));
} else if (y <= 6.6e+165) {
tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x + (z / y)) - ((x * a) / y) tmp = 0 if y <= -7.6e+33: tmp = t_1 elif y <= 3e+37: tmp = -1.0 / (((y * (c + (y * (b + (y * (y + a)))))) + i) / ((-1.0 / ((1.0 / (230661.510616 + (z * (y * y)))) / y)) - t)) elif y <= 6.6e+165: tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) tmp = 0.0 if (y <= -7.6e+33) tmp = t_1; elseif (y <= 3e+37) tmp = Float64(-1.0 / Float64(Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i) / Float64(Float64(-1.0 / Float64(Float64(1.0 / Float64(230661.510616 + Float64(z * Float64(y * y)))) / y)) - t))); elseif (y <= 6.6e+165) tmp = Float64(-1.0 / Float64(Float64(Float64(Float64(z / Float64(x * x)) - Float64(a / x)) / y) + Float64(-1.0 / x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x + (z / y)) - ((x * a) / y); tmp = 0.0; if (y <= -7.6e+33) tmp = t_1; elseif (y <= 3e+37) tmp = -1.0 / (((y * (c + (y * (b + (y * (y + a)))))) + i) / ((-1.0 / ((1.0 / (230661.510616 + (z * (y * y)))) / y)) - t)); elseif (y <= 6.6e+165) tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.6e+33], t$95$1, If[LessEqual[y, 3e+37], N[(-1.0 / N[(N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision] / N[(N[(-1.0 / N[(N[(1.0 / N[(230661.510616 + N[(z * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.6e+165], N[(-1.0 / N[(N[(N[(N[(z / N[(x * x), $MachinePrecision]), $MachinePrecision] - N[(a / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{if}\;y \leq -7.6 \cdot 10^{+33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3 \cdot 10^{+37}:\\
\;\;\;\;\frac{-1}{\frac{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}{\frac{-1}{\frac{\frac{1}{230661.510616 + z \cdot \left(y \cdot y\right)}}{y}} - t}}\\
\mathbf{elif}\;y \leq 6.6 \cdot 10^{+165}:\\
\;\;\;\;\frac{-1}{\frac{\frac{z}{x \cdot x} - \frac{a}{x}}{y} + \frac{-1}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -7.60000000000000005e33 or 6.5999999999999997e165 < y Initial program 5.3%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6478.1%
Simplified78.1%
if -7.60000000000000005e33 < y < 3.00000000000000022e37Initial program 95.4%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr95.2%
*-commutativeN/A
remove-double-divN/A
associate-*l/N/A
clear-numN/A
/-lowering-/.f64N/A
*-lft-identityN/A
/-lowering-/.f64N/A
Applied egg-rr95.2%
Taylor expanded in z around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6489.0%
Simplified89.0%
if 3.00000000000000022e37 < y < 6.5999999999999997e165Initial program 6.3%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr6.3%
Taylor expanded in y around -inf
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6464.4%
Simplified64.4%
Final simplification81.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ x (/ z y)) (/ (* x a) y)))
(t_2 (+ c (* y (+ b (* y (+ y a)))))))
(if (<= y -6.8e+30)
t_1
(if (<= y 1.1e-34)
(/ (+ t (* y 230661.510616)) (+ (* y t_2) i))
(if (<= y 4.2e+37)
(/ (/ (+ t (* z (* y (* y y)))) y) t_2)
(if (<= y 7e+164)
(/ -1.0 (+ (/ (- (/ z (* x x)) (/ a x)) y) (/ -1.0 x)))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double t_2 = c + (y * (b + (y * (y + a))));
double tmp;
if (y <= -6.8e+30) {
tmp = t_1;
} else if (y <= 1.1e-34) {
tmp = (t + (y * 230661.510616)) / ((y * t_2) + i);
} else if (y <= 4.2e+37) {
tmp = ((t + (z * (y * (y * y)))) / y) / t_2;
} else if (y <= 7e+164) {
tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x + (z / y)) - ((x * a) / y)
t_2 = c + (y * (b + (y * (y + a))))
if (y <= (-6.8d+30)) then
tmp = t_1
else if (y <= 1.1d-34) then
tmp = (t + (y * 230661.510616d0)) / ((y * t_2) + i)
else if (y <= 4.2d+37) then
tmp = ((t + (z * (y * (y * y)))) / y) / t_2
else if (y <= 7d+164) then
tmp = (-1.0d0) / ((((z / (x * x)) - (a / x)) / y) + ((-1.0d0) / 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 c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double t_2 = c + (y * (b + (y * (y + a))));
double tmp;
if (y <= -6.8e+30) {
tmp = t_1;
} else if (y <= 1.1e-34) {
tmp = (t + (y * 230661.510616)) / ((y * t_2) + i);
} else if (y <= 4.2e+37) {
tmp = ((t + (z * (y * (y * y)))) / y) / t_2;
} else if (y <= 7e+164) {
tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x + (z / y)) - ((x * a) / y) t_2 = c + (y * (b + (y * (y + a)))) tmp = 0 if y <= -6.8e+30: tmp = t_1 elif y <= 1.1e-34: tmp = (t + (y * 230661.510616)) / ((y * t_2) + i) elif y <= 4.2e+37: tmp = ((t + (z * (y * (y * y)))) / y) / t_2 elif y <= 7e+164: tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) t_2 = Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a))))) tmp = 0.0 if (y <= -6.8e+30) tmp = t_1; elseif (y <= 1.1e-34) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(Float64(y * t_2) + i)); elseif (y <= 4.2e+37) tmp = Float64(Float64(Float64(t + Float64(z * Float64(y * Float64(y * y)))) / y) / t_2); elseif (y <= 7e+164) tmp = Float64(-1.0 / Float64(Float64(Float64(Float64(z / Float64(x * x)) - Float64(a / x)) / y) + Float64(-1.0 / x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x + (z / y)) - ((x * a) / y); t_2 = c + (y * (b + (y * (y + a)))); tmp = 0.0; if (y <= -6.8e+30) tmp = t_1; elseif (y <= 1.1e-34) tmp = (t + (y * 230661.510616)) / ((y * t_2) + i); elseif (y <= 4.2e+37) tmp = ((t + (z * (y * (y * y)))) / y) / t_2; elseif (y <= 7e+164) tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.8e+30], t$95$1, If[LessEqual[y, 1.1e-34], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(N[(y * t$95$2), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.2e+37], N[(N[(N[(t + N[(z * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] / t$95$2), $MachinePrecision], If[LessEqual[y, 7e+164], N[(-1.0 / N[(N[(N[(N[(z / N[(x * x), $MachinePrecision]), $MachinePrecision] - N[(a / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
t_2 := c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\\
\mathbf{if}\;y \leq -6.8 \cdot 10^{+30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-34}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot t\_2 + i}\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{+37}:\\
\;\;\;\;\frac{\frac{t + z \cdot \left(y \cdot \left(y \cdot y\right)\right)}{y}}{t\_2}\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+164}:\\
\;\;\;\;\frac{-1}{\frac{\frac{z}{x \cdot x} - \frac{a}{x}}{y} + \frac{-1}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -6.8000000000000005e30 or 6.9999999999999995e164 < y Initial program 5.3%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6478.1%
Simplified78.1%
if -6.8000000000000005e30 < y < 1.0999999999999999e-34Initial program 97.3%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6489.4%
Simplified89.4%
if 1.0999999999999999e-34 < y < 4.2000000000000002e37Initial program 74.0%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6442.4%
Simplified42.4%
Taylor expanded in i around 0
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6454.7%
Simplified54.7%
if 4.2000000000000002e37 < y < 6.9999999999999995e164Initial program 6.3%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr6.3%
Taylor expanded in y around -inf
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6465.8%
Simplified65.8%
Final simplification80.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ x (/ z y)) (/ (* x a) y))))
(if (<= y -7.2e+33)
t_1
(if (<= y 8e+40)
(/
(+
t
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
(+ i (* y (+ c (* y b)))))
(if (<= y 1.06e+165)
(/ -1.0 (+ (/ (- (/ z (* x x)) (/ a x)) y) (/ -1.0 x)))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -7.2e+33) {
tmp = t_1;
} else if (y <= 8e+40) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * b))));
} else if (y <= 1.06e+165) {
tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (x + (z / y)) - ((x * a) / y)
if (y <= (-7.2d+33)) then
tmp = t_1
else if (y <= 8d+40) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * b))))
else if (y <= 1.06d+165) then
tmp = (-1.0d0) / ((((z / (x * x)) - (a / x)) / y) + ((-1.0d0) / 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 c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -7.2e+33) {
tmp = t_1;
} else if (y <= 8e+40) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * b))));
} else if (y <= 1.06e+165) {
tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x + (z / y)) - ((x * a) / y) tmp = 0 if y <= -7.2e+33: tmp = t_1 elif y <= 8e+40: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * b)))) elif y <= 1.06e+165: tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) tmp = 0.0 if (y <= -7.2e+33) tmp = t_1; elseif (y <= 8e+40) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))))) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); elseif (y <= 1.06e+165) tmp = Float64(-1.0 / Float64(Float64(Float64(Float64(z / Float64(x * x)) - Float64(a / x)) / y) + Float64(-1.0 / x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x + (z / y)) - ((x * a) / y); tmp = 0.0; if (y <= -7.2e+33) tmp = t_1; elseif (y <= 8e+40) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * b)))); elseif (y <= 1.06e+165) tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.2e+33], t$95$1, If[LessEqual[y, 8e+40], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.06e+165], N[(-1.0 / N[(N[(N[(N[(z / N[(x * x), $MachinePrecision]), $MachinePrecision] - N[(a / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{if}\;y \leq -7.2 \cdot 10^{+33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 8 \cdot 10^{+40}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\right)}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{elif}\;y \leq 1.06 \cdot 10^{+165}:\\
\;\;\;\;\frac{-1}{\frac{\frac{z}{x \cdot x} - \frac{a}{x}}{y} + \frac{-1}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -7.2000000000000005e33 or 1.0600000000000001e165 < y Initial program 5.3%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6478.1%
Simplified78.1%
if -7.2000000000000005e33 < y < 8.00000000000000024e40Initial program 94.7%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6487.6%
Simplified87.6%
if 8.00000000000000024e40 < y < 1.0600000000000001e165Initial program 3.9%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr3.9%
Taylor expanded in y around -inf
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6467.5%
Simplified67.5%
Final simplification81.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ x (/ z y)) (/ (* x a) y))))
(if (<= y -8.5e+32)
t_1
(if (<= y 7.8e+40)
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))
(if (<= y 4.8e+166)
(/ -1.0 (+ (/ (- (/ z (* x x)) (/ a x)) y) (/ -1.0 x)))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -8.5e+32) {
tmp = t_1;
} else if (y <= 7.8e+40) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else if (y <= 4.8e+166) {
tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (x + (z / y)) - ((x * a) / y)
if (y <= (-8.5d+32)) then
tmp = t_1
else if (y <= 7.8d+40) then
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / ((y * (c + (y * (b + (y * (y + a)))))) + i)
else if (y <= 4.8d+166) then
tmp = (-1.0d0) / ((((z / (x * x)) - (a / x)) / y) + ((-1.0d0) / 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 c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -8.5e+32) {
tmp = t_1;
} else if (y <= 7.8e+40) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else if (y <= 4.8e+166) {
tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x + (z / y)) - ((x * a) / y) tmp = 0 if y <= -8.5e+32: tmp = t_1 elif y <= 7.8e+40: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * (c + (y * (b + (y * (y + a)))))) + i) elif y <= 4.8e+166: tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) tmp = 0.0 if (y <= -8.5e+32) tmp = t_1; elseif (y <= 7.8e+40) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); elseif (y <= 4.8e+166) tmp = Float64(-1.0 / Float64(Float64(Float64(Float64(z / Float64(x * x)) - Float64(a / x)) / y) + Float64(-1.0 / x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x + (z / y)) - ((x * a) / y); tmp = 0.0; if (y <= -8.5e+32) tmp = t_1; elseif (y <= 7.8e+40) tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * (c + (y * (b + (y * (y + a)))))) + i); elseif (y <= 4.8e+166) tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -8.5e+32], t$95$1, If[LessEqual[y, 7.8e+40], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.8e+166], N[(-1.0 / N[(N[(N[(N[(z / N[(x * x), $MachinePrecision]), $MachinePrecision] - N[(a / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{if}\;y \leq -8.5 \cdot 10^{+32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.8 \cdot 10^{+40}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{+166}:\\
\;\;\;\;\frac{-1}{\frac{\frac{z}{x \cdot x} - \frac{a}{x}}{y} + \frac{-1}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -8.4999999999999998e32 or 4.79999999999999984e166 < y Initial program 5.3%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6478.1%
Simplified78.1%
if -8.4999999999999998e32 < y < 7.8000000000000002e40Initial program 94.7%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6482.9%
Simplified82.9%
if 7.8000000000000002e40 < y < 4.79999999999999984e166Initial program 3.9%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr3.9%
Taylor expanded in y around -inf
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6467.5%
Simplified67.5%
Final simplification79.1%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ x (/ z y)) (/ (* x a) y))))
(if (<= y -5.8e+33)
t_1
(if (<= y 2.35e+28)
(/ t (+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))
(if (<= y 8.5e+164)
(/ -1.0 (+ (/ -1.0 x) (- (/ z (* y (* x x))) (/ (/ a x) y))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -5.8e+33) {
tmp = t_1;
} else if (y <= 2.35e+28) {
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else if (y <= 8.5e+164) {
tmp = -1.0 / ((-1.0 / x) + ((z / (y * (x * x))) - ((a / x) / y)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (x + (z / y)) - ((x * a) / y)
if (y <= (-5.8d+33)) then
tmp = t_1
else if (y <= 2.35d+28) then
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i)
else if (y <= 8.5d+164) then
tmp = (-1.0d0) / (((-1.0d0) / x) + ((z / (y * (x * x))) - ((a / x) / 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 c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -5.8e+33) {
tmp = t_1;
} else if (y <= 2.35e+28) {
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else if (y <= 8.5e+164) {
tmp = -1.0 / ((-1.0 / x) + ((z / (y * (x * x))) - ((a / x) / y)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x + (z / y)) - ((x * a) / y) tmp = 0 if y <= -5.8e+33: tmp = t_1 elif y <= 2.35e+28: tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i) elif y <= 8.5e+164: tmp = -1.0 / ((-1.0 / x) + ((z / (y * (x * x))) - ((a / x) / y))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) tmp = 0.0 if (y <= -5.8e+33) tmp = t_1; elseif (y <= 2.35e+28) tmp = Float64(t / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); elseif (y <= 8.5e+164) tmp = Float64(-1.0 / Float64(Float64(-1.0 / x) + Float64(Float64(z / Float64(y * Float64(x * x))) - Float64(Float64(a / x) / y)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x + (z / y)) - ((x * a) / y); tmp = 0.0; if (y <= -5.8e+33) tmp = t_1; elseif (y <= 2.35e+28) tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i); elseif (y <= 8.5e+164) tmp = -1.0 / ((-1.0 / x) + ((z / (y * (x * x))) - ((a / x) / y))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.8e+33], t$95$1, If[LessEqual[y, 2.35e+28], N[(t / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.5e+164], N[(-1.0 / N[(N[(-1.0 / x), $MachinePrecision] + N[(N[(z / N[(y * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(a / x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{if}\;y \leq -5.8 \cdot 10^{+33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.35 \cdot 10^{+28}:\\
\;\;\;\;\frac{t}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{+164}:\\
\;\;\;\;\frac{-1}{\frac{-1}{x} + \left(\frac{z}{y \cdot \left(x \cdot x\right)} - \frac{\frac{a}{x}}{y}\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.80000000000000049e33 or 8.50000000000000027e164 < y Initial program 5.3%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6478.1%
Simplified78.1%
if -5.80000000000000049e33 < y < 2.34999999999999983e28Initial program 95.3%
Taylor expanded in y around 0
Simplified67.5%
if 2.34999999999999983e28 < y < 8.50000000000000027e164Initial program 8.5%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr8.6%
*-commutativeN/A
remove-double-divN/A
associate-*l/N/A
clear-numN/A
/-lowering-/.f64N/A
*-lft-identityN/A
/-lowering-/.f64N/A
Applied egg-rr8.6%
Taylor expanded in y around inf
associate--l+N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6462.9%
Simplified62.9%
Final simplification70.1%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ x (/ z y)) (/ (* x a) y))))
(if (<= y -1.7e+33)
t_1
(if (<= y 1.06e+40)
(/
(+ t (* y 230661.510616))
(+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))
(if (<= y 1.8e+167)
(/ -1.0 (+ (/ (- (/ z (* x x)) (/ a x)) y) (/ -1.0 x)))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -1.7e+33) {
tmp = t_1;
} else if (y <= 1.06e+40) {
tmp = (t + (y * 230661.510616)) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else if (y <= 1.8e+167) {
tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (x + (z / y)) - ((x * a) / y)
if (y <= (-1.7d+33)) then
tmp = t_1
else if (y <= 1.06d+40) then
tmp = (t + (y * 230661.510616d0)) / ((y * (c + (y * (b + (y * (y + a)))))) + i)
else if (y <= 1.8d+167) then
tmp = (-1.0d0) / ((((z / (x * x)) - (a / x)) / y) + ((-1.0d0) / 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 c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -1.7e+33) {
tmp = t_1;
} else if (y <= 1.06e+40) {
tmp = (t + (y * 230661.510616)) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else if (y <= 1.8e+167) {
tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x + (z / y)) - ((x * a) / y) tmp = 0 if y <= -1.7e+33: tmp = t_1 elif y <= 1.06e+40: tmp = (t + (y * 230661.510616)) / ((y * (c + (y * (b + (y * (y + a)))))) + i) elif y <= 1.8e+167: tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) tmp = 0.0 if (y <= -1.7e+33) tmp = t_1; elseif (y <= 1.06e+40) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); elseif (y <= 1.8e+167) tmp = Float64(-1.0 / Float64(Float64(Float64(Float64(z / Float64(x * x)) - Float64(a / x)) / y) + Float64(-1.0 / x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x + (z / y)) - ((x * a) / y); tmp = 0.0; if (y <= -1.7e+33) tmp = t_1; elseif (y <= 1.06e+40) tmp = (t + (y * 230661.510616)) / ((y * (c + (y * (b + (y * (y + a)))))) + i); elseif (y <= 1.8e+167) tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.7e+33], t$95$1, If[LessEqual[y, 1.06e+40], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.8e+167], N[(-1.0 / N[(N[(N[(N[(z / N[(x * x), $MachinePrecision]), $MachinePrecision] - N[(a / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{if}\;y \leq -1.7 \cdot 10^{+33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.06 \cdot 10^{+40}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{+167}:\\
\;\;\;\;\frac{-1}{\frac{\frac{z}{x \cdot x} - \frac{a}{x}}{y} + \frac{-1}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.7e33 or 1.80000000000000012e167 < y Initial program 5.3%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6478.1%
Simplified78.1%
if -1.7e33 < y < 1.05999999999999996e40Initial program 94.7%
Taylor expanded in y around 0
*-commutativeN/A
*-lowering-*.f6481.6%
Simplified81.6%
if 1.05999999999999996e40 < y < 1.80000000000000012e167Initial program 3.9%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr3.9%
Taylor expanded in y around -inf
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6467.5%
Simplified67.5%
Final simplification78.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ x (/ z y)) (/ (* x a) y))))
(if (<= y -9.5e+29)
t_1
(if (<= y 1.18e+24)
(/ t (+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))
(if (<= y 5.1e+166)
(/ -1.0 (+ (/ (- (/ z (* x x)) (/ a x)) y) (/ -1.0 x)))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -9.5e+29) {
tmp = t_1;
} else if (y <= 1.18e+24) {
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else if (y <= 5.1e+166) {
tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (x + (z / y)) - ((x * a) / y)
if (y <= (-9.5d+29)) then
tmp = t_1
else if (y <= 1.18d+24) then
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i)
else if (y <= 5.1d+166) then
tmp = (-1.0d0) / ((((z / (x * x)) - (a / x)) / y) + ((-1.0d0) / 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 c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -9.5e+29) {
tmp = t_1;
} else if (y <= 1.18e+24) {
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else if (y <= 5.1e+166) {
tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x + (z / y)) - ((x * a) / y) tmp = 0 if y <= -9.5e+29: tmp = t_1 elif y <= 1.18e+24: tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i) elif y <= 5.1e+166: tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) tmp = 0.0 if (y <= -9.5e+29) tmp = t_1; elseif (y <= 1.18e+24) tmp = Float64(t / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); elseif (y <= 5.1e+166) tmp = Float64(-1.0 / Float64(Float64(Float64(Float64(z / Float64(x * x)) - Float64(a / x)) / y) + Float64(-1.0 / x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x + (z / y)) - ((x * a) / y); tmp = 0.0; if (y <= -9.5e+29) tmp = t_1; elseif (y <= 1.18e+24) tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i); elseif (y <= 5.1e+166) tmp = -1.0 / ((((z / (x * x)) - (a / x)) / y) + (-1.0 / x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.5e+29], t$95$1, If[LessEqual[y, 1.18e+24], N[(t / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.1e+166], N[(-1.0 / N[(N[(N[(N[(z / N[(x * x), $MachinePrecision]), $MachinePrecision] - N[(a / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{if}\;y \leq -9.5 \cdot 10^{+29}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.18 \cdot 10^{+24}:\\
\;\;\;\;\frac{t}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\mathbf{elif}\;y \leq 5.1 \cdot 10^{+166}:\\
\;\;\;\;\frac{-1}{\frac{\frac{z}{x \cdot x} - \frac{a}{x}}{y} + \frac{-1}{x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -9.5000000000000003e29 or 5.1e166 < y Initial program 5.3%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6478.1%
Simplified78.1%
if -9.5000000000000003e29 < y < 1.17999999999999997e24Initial program 95.3%
Taylor expanded in y around 0
Simplified67.5%
if 1.17999999999999997e24 < y < 5.1e166Initial program 8.5%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr8.6%
Taylor expanded in y around -inf
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
distribute-lft-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6462.9%
Simplified62.9%
Final simplification70.1%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ x (/ z y)) (/ (* x a) y))))
(if (<= y -1.25e+33)
t_1
(if (<= y 5.6e+37)
(/ t (+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -1.25e+33) {
tmp = t_1;
} else if (y <= 5.6e+37) {
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (x + (z / y)) - ((x * a) / y)
if (y <= (-1.25d+33)) then
tmp = t_1
else if (y <= 5.6d+37) then
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i)
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 c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -1.25e+33) {
tmp = t_1;
} else if (y <= 5.6e+37) {
tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x + (z / y)) - ((x * a) / y) tmp = 0 if y <= -1.25e+33: tmp = t_1 elif y <= 5.6e+37: tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) tmp = 0.0 if (y <= -1.25e+33) tmp = t_1; elseif (y <= 5.6e+37) tmp = Float64(t / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x + (z / y)) - ((x * a) / y); tmp = 0.0; if (y <= -1.25e+33) tmp = t_1; elseif (y <= 5.6e+37) tmp = t / ((y * (c + (y * (b + (y * (y + a)))))) + i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.25e+33], t$95$1, If[LessEqual[y, 5.6e+37], N[(t / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{if}\;y \leq -1.25 \cdot 10^{+33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{+37}:\\
\;\;\;\;\frac{t}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.24999999999999993e33 or 5.5999999999999996e37 < y Initial program 5.6%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6466.4%
Simplified66.4%
if -1.24999999999999993e33 < y < 5.5999999999999996e37Initial program 94.7%
Taylor expanded in y around 0
Simplified66.6%
Final simplification66.5%
(FPCore (x y z t a b c i) :precision binary64 (let* ((t_1 (- (+ x (/ z y)) (/ (* x a) y)))) (if (<= y -1.36e+26) t_1 (if (<= y 8.5e+37) (/ t (+ i (* y c))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -1.36e+26) {
tmp = t_1;
} else if (y <= 8.5e+37) {
tmp = t / (i + (y * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (x + (z / y)) - ((x * a) / y)
if (y <= (-1.36d+26)) then
tmp = t_1
else if (y <= 8.5d+37) then
tmp = t / (i + (y * c))
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 c, double i) {
double t_1 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -1.36e+26) {
tmp = t_1;
} else if (y <= 8.5e+37) {
tmp = t / (i + (y * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x + (z / y)) - ((x * a) / y) tmp = 0 if y <= -1.36e+26: tmp = t_1 elif y <= 8.5e+37: tmp = t / (i + (y * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) tmp = 0.0 if (y <= -1.36e+26) tmp = t_1; elseif (y <= 8.5e+37) tmp = Float64(t / Float64(i + Float64(y * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x + (z / y)) - ((x * a) / y); tmp = 0.0; if (y <= -1.36e+26) tmp = t_1; elseif (y <= 8.5e+37) tmp = t / (i + (y * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.36e+26], t$95$1, If[LessEqual[y, 8.5e+37], N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{if}\;y \leq -1.36 \cdot 10^{+26}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{+37}:\\
\;\;\;\;\frac{t}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.35999999999999993e26 or 8.4999999999999999e37 < y Initial program 5.6%
Taylor expanded in y around inf
--lowering--.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
/-lowering-/.f64N/A
mul-1-negN/A
remove-double-negN/A
*-lowering-*.f6466.4%
Simplified66.4%
if -1.35999999999999993e26 < y < 8.4999999999999999e37Initial program 94.7%
Taylor expanded in y around 0
Simplified66.6%
Taylor expanded in y around 0
*-lowering-*.f6458.9%
Simplified58.9%
Final simplification62.4%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -3.5e+31) x (if (<= y 7.5e+32) (/ t (+ i (* y c))) x)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -3.5e+31) {
tmp = x;
} else if (y <= 7.5e+32) {
tmp = t / (i + (y * c));
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-3.5d+31)) then
tmp = x
else if (y <= 7.5d+32) then
tmp = t / (i + (y * c))
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 c, double i) {
double tmp;
if (y <= -3.5e+31) {
tmp = x;
} else if (y <= 7.5e+32) {
tmp = t / (i + (y * c));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -3.5e+31: tmp = x elif y <= 7.5e+32: tmp = t / (i + (y * c)) else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -3.5e+31) tmp = x; elseif (y <= 7.5e+32) tmp = Float64(t / Float64(i + Float64(y * c))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -3.5e+31) tmp = x; elseif (y <= 7.5e+32) tmp = t / (i + (y * c)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -3.5e+31], x, If[LessEqual[y, 7.5e+32], N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.5 \cdot 10^{+31}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{+32}:\\
\;\;\;\;\frac{t}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -3.5e31 or 7.49999999999999959e32 < y Initial program 5.6%
Taylor expanded in y around inf
Simplified53.8%
if -3.5e31 < y < 7.49999999999999959e32Initial program 95.4%
Taylor expanded in y around 0
Simplified67.0%
Taylor expanded in y around 0
*-lowering-*.f6459.3%
Simplified59.3%
Final simplification56.7%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -1.1e+30) x (if (<= y 1.4e-34) (/ t i) x)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.1e+30) {
tmp = x;
} else if (y <= 1.4e-34) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-1.1d+30)) then
tmp = x
else if (y <= 1.4d-34) then
tmp = t / i
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 c, double i) {
double tmp;
if (y <= -1.1e+30) {
tmp = x;
} else if (y <= 1.4e-34) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.1e+30: tmp = x elif y <= 1.4e-34: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.1e+30) tmp = x; elseif (y <= 1.4e-34) tmp = Float64(t / i); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -1.1e+30) tmp = x; elseif (y <= 1.4e-34) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.1e+30], x, If[LessEqual[y, 1.4e-34], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.1 \cdot 10^{+30}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{-34}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.1e30 or 1.39999999999999998e-34 < y Initial program 13.3%
Taylor expanded in y around inf
Simplified48.6%
if -1.1e30 < y < 1.39999999999999998e-34Initial program 97.3%
Taylor expanded in y around 0
/-lowering-/.f6451.3%
Simplified51.3%
(FPCore (x y z t a b c i) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return x;
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return x;
}
def code(x, y, z, t, a, b, c, i): return x
function code(x, y, z, t, a, b, c, i) return x end
function tmp = code(x, y, z, t, a, b, c, i) tmp = x; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 53.3%
Taylor expanded in y around inf
Simplified26.9%
herbie shell --seed 2024138
(FPCore (x y z t a b c i)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2"
:precision binary64
(/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))