
(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 20 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 (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))
(t_2 (/ t t_1))
(t_3 (+ (/ z y) (- x (/ a (/ y x)))))
(t_4 (* (* x x) (* y y))))
(if (<= y -6.5e+137)
t_3
(if (<= y -2.7e+27)
(+
t_2
(/
y
(+
(/ y x)
(- (+ (/ a x) (/ b (* y x))) (/ 27464.7644705 (* y (* x x)))))))
(if (<= y 4.4e+54)
(+
t_2
(/
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x)))))))
t_1))
(if (<= y 7e+116)
(+
t_2
(/
y
(+
(/ y x)
(-
(+
(/ (/ c (* y y)) x)
(+ (/ a x) (/ (- (/ b x) (/ 27464.7644705 (* x x))) y)))
(+ (/ (* a 27464.7644705) t_4) (/ 230661.510616 t_4))))))
t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = t / t_1;
double t_3 = (z / y) + (x - (a / (y / x)));
double t_4 = (x * x) * (y * y);
double tmp;
if (y <= -6.5e+137) {
tmp = t_3;
} else if (y <= -2.7e+27) {
tmp = t_2 + (y / ((y / x) + (((a / x) + (b / (y * x))) - (27464.7644705 / (y * (x * x))))));
} else if (y <= 4.4e+54) {
tmp = t_2 + ((y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))) / t_1);
} else if (y <= 7e+116) {
tmp = t_2 + (y / ((y / x) + ((((c / (y * y)) / x) + ((a / x) + (((b / x) - (27464.7644705 / (x * x))) / y))) - (((a * 27464.7644705) / t_4) + (230661.510616 / t_4)))));
} else {
tmp = t_3;
}
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 = i + (y * (c + (y * ((y * (y + a)) + b))))
t_2 = t / t_1
t_3 = (z / y) + (x - (a / (y / x)))
t_4 = (x * x) * (y * y)
if (y <= (-6.5d+137)) then
tmp = t_3
else if (y <= (-2.7d+27)) then
tmp = t_2 + (y / ((y / x) + (((a / x) + (b / (y * x))) - (27464.7644705d0 / (y * (x * x))))))
else if (y <= 4.4d+54) then
tmp = t_2 + ((y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x))))))) / t_1)
else if (y <= 7d+116) then
tmp = t_2 + (y / ((y / x) + ((((c / (y * y)) / x) + ((a / x) + (((b / x) - (27464.7644705d0 / (x * x))) / y))) - (((a * 27464.7644705d0) / t_4) + (230661.510616d0 / t_4)))))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = t / t_1;
double t_3 = (z / y) + (x - (a / (y / x)));
double t_4 = (x * x) * (y * y);
double tmp;
if (y <= -6.5e+137) {
tmp = t_3;
} else if (y <= -2.7e+27) {
tmp = t_2 + (y / ((y / x) + (((a / x) + (b / (y * x))) - (27464.7644705 / (y * (x * x))))));
} else if (y <= 4.4e+54) {
tmp = t_2 + ((y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))) / t_1);
} else if (y <= 7e+116) {
tmp = t_2 + (y / ((y / x) + ((((c / (y * y)) / x) + ((a / x) + (((b / x) - (27464.7644705 / (x * x))) / y))) - (((a * 27464.7644705) / t_4) + (230661.510616 / t_4)))));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))) t_2 = t / t_1 t_3 = (z / y) + (x - (a / (y / x))) t_4 = (x * x) * (y * y) tmp = 0 if y <= -6.5e+137: tmp = t_3 elif y <= -2.7e+27: tmp = t_2 + (y / ((y / x) + (((a / x) + (b / (y * x))) - (27464.7644705 / (y * (x * x)))))) elif y <= 4.4e+54: tmp = t_2 + ((y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))) / t_1) elif y <= 7e+116: tmp = t_2 + (y / ((y / x) + ((((c / (y * y)) / x) + ((a / x) + (((b / x) - (27464.7644705 / (x * x))) / y))) - (((a * 27464.7644705) / t_4) + (230661.510616 / t_4))))) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))) t_2 = Float64(t / t_1) t_3 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) t_4 = Float64(Float64(x * x) * Float64(y * y)) tmp = 0.0 if (y <= -6.5e+137) tmp = t_3; elseif (y <= -2.7e+27) tmp = Float64(t_2 + Float64(y / Float64(Float64(y / x) + Float64(Float64(Float64(a / x) + Float64(b / Float64(y * x))) - Float64(27464.7644705 / Float64(y * Float64(x * x))))))); elseif (y <= 4.4e+54) tmp = Float64(t_2 + Float64(Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x))))))) / t_1)); elseif (y <= 7e+116) tmp = Float64(t_2 + Float64(y / Float64(Float64(y / x) + Float64(Float64(Float64(Float64(c / Float64(y * y)) / x) + Float64(Float64(a / x) + Float64(Float64(Float64(b / x) - Float64(27464.7644705 / Float64(x * x))) / y))) - Float64(Float64(Float64(a * 27464.7644705) / t_4) + Float64(230661.510616 / t_4)))))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))); t_2 = t / t_1; t_3 = (z / y) + (x - (a / (y / x))); t_4 = (x * x) * (y * y); tmp = 0.0; if (y <= -6.5e+137) tmp = t_3; elseif (y <= -2.7e+27) tmp = t_2 + (y / ((y / x) + (((a / x) + (b / (y * x))) - (27464.7644705 / (y * (x * x)))))); elseif (y <= 4.4e+54) tmp = t_2 + ((y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))) / t_1); elseif (y <= 7e+116) tmp = t_2 + (y / ((y / x) + ((((c / (y * y)) / x) + ((a / x) + (((b / x) - (27464.7644705 / (x * x))) / y))) - (((a * 27464.7644705) / t_4) + (230661.510616 / t_4))))); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x * x), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.5e+137], t$95$3, If[LessEqual[y, -2.7e+27], N[(t$95$2 + N[(y / N[(N[(y / x), $MachinePrecision] + N[(N[(N[(a / x), $MachinePrecision] + N[(b / N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27464.7644705 / N[(y * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.4e+54], N[(t$95$2 + N[(N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e+116], N[(t$95$2 + N[(y / N[(N[(y / x), $MachinePrecision] + N[(N[(N[(N[(c / N[(y * y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(N[(a / x), $MachinePrecision] + N[(N[(N[(b / x), $MachinePrecision] - N[(27464.7644705 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(a * 27464.7644705), $MachinePrecision] / t$95$4), $MachinePrecision] + N[(230661.510616 / t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)\\
t_2 := \frac{t}{t_1}\\
t_3 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
t_4 := \left(x \cdot x\right) \cdot \left(y \cdot y\right)\\
\mathbf{if}\;y \leq -6.5 \cdot 10^{+137}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -2.7 \cdot 10^{+27}:\\
\;\;\;\;t_2 + \frac{y}{\frac{y}{x} + \left(\left(\frac{a}{x} + \frac{b}{y \cdot x}\right) - \frac{27464.7644705}{y \cdot \left(x \cdot x\right)}\right)}\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{+54}:\\
\;\;\;\;t_2 + \frac{y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\right)}{t_1}\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+116}:\\
\;\;\;\;t_2 + \frac{y}{\frac{y}{x} + \left(\left(\frac{\frac{c}{y \cdot y}}{x} + \left(\frac{a}{x} + \frac{\frac{b}{x} - \frac{27464.7644705}{x \cdot x}}{y}\right)\right) - \left(\frac{a \cdot 27464.7644705}{t_4} + \frac{230661.510616}{t_4}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -6.5000000000000002e137 or 6.99999999999999993e116 < y Initial program 0.0%
Taylor expanded in y around inf 78.6%
associate--l+78.6%
associate-/l*81.6%
Simplified81.6%
if -6.5000000000000002e137 < y < -2.6999999999999997e27Initial program 10.3%
Taylor expanded in t around inf 10.3%
Taylor expanded in z around 0 10.6%
*-commutative10.6%
associate-/l*15.9%
fma-def15.9%
+-commutative15.9%
*-commutative15.9%
fma-udef15.9%
fma-def15.9%
*-commutative15.9%
unpow215.9%
Simplified15.9%
Taylor expanded in y around inf 64.6%
associate--l+64.6%
+-commutative64.6%
associate-*r/64.6%
metadata-eval64.6%
unpow264.6%
Simplified64.6%
if -2.6999999999999997e27 < y < 4.3999999999999998e54Initial program 96.5%
Taylor expanded in t around inf 96.5%
if 4.3999999999999998e54 < y < 6.99999999999999993e116Initial program 1.5%
Taylor expanded in t around inf 1.5%
Taylor expanded in z around 0 1.7%
*-commutative1.7%
associate-/l*1.9%
fma-def1.9%
+-commutative1.9%
*-commutative1.9%
fma-udef1.9%
fma-def1.9%
*-commutative1.9%
unpow21.9%
Simplified1.9%
Taylor expanded in y around -inf 71.9%
associate--l+71.9%
Simplified78.9%
Final simplification88.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1
(/
(+
t
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
(+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))))
(if (<= t_1 INFINITY) t_1 (+ (/ z y) (- x (/ a (/ y x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (z / y) + (x - (a / (y / x)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (z / y) + (x - (a / (y / x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * ((y * (y + a)) + b))))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (z / y) + (x - (a / (y / x))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = 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 * Float64(Float64(y * Float64(y + a)) + b)))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * ((y * (y + a)) + b))))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (z / y) + (x - (a / (y / x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = 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 * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \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 \left(y \cdot \left(y + a\right) + b\right)\right)}\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) 54929528941/2000000) y) 28832688827/125000) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0Initial program 92.0%
if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) 54929528941/2000000) y) 28832688827/125000) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) Initial program 0.0%
Taylor expanded in y around inf 65.8%
associate--l+65.8%
associate-/l*68.0%
Simplified68.0%
Final simplification83.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))
(t_2 (/ t t_1))
(t_3 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -6.5e+138)
t_3
(if (<= y -7.5e+28)
(+
t_2
(/
y
(+
(/ y x)
(- (+ (/ a x) (/ b (* y x))) (/ 27464.7644705 (* y (* x x)))))))
(if (<= y 9e+53)
(+
t_2
(/
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x)))))))
t_1))
t_3)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = t / t_1;
double t_3 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -6.5e+138) {
tmp = t_3;
} else if (y <= -7.5e+28) {
tmp = t_2 + (y / ((y / x) + (((a / x) + (b / (y * x))) - (27464.7644705 / (y * (x * x))))));
} else if (y <= 9e+53) {
tmp = t_2 + ((y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))) / t_1);
} else {
tmp = t_3;
}
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 = i + (y * (c + (y * ((y * (y + a)) + b))))
t_2 = t / t_1
t_3 = (z / y) + (x - (a / (y / x)))
if (y <= (-6.5d+138)) then
tmp = t_3
else if (y <= (-7.5d+28)) then
tmp = t_2 + (y / ((y / x) + (((a / x) + (b / (y * x))) - (27464.7644705d0 / (y * (x * x))))))
else if (y <= 9d+53) then
tmp = t_2 + ((y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x))))))) / t_1)
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = t / t_1;
double t_3 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -6.5e+138) {
tmp = t_3;
} else if (y <= -7.5e+28) {
tmp = t_2 + (y / ((y / x) + (((a / x) + (b / (y * x))) - (27464.7644705 / (y * (x * x))))));
} else if (y <= 9e+53) {
tmp = t_2 + ((y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))) / t_1);
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))) t_2 = t / t_1 t_3 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -6.5e+138: tmp = t_3 elif y <= -7.5e+28: tmp = t_2 + (y / ((y / x) + (((a / x) + (b / (y * x))) - (27464.7644705 / (y * (x * x)))))) elif y <= 9e+53: tmp = t_2 + ((y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))) / t_1) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))) t_2 = Float64(t / t_1) t_3 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -6.5e+138) tmp = t_3; elseif (y <= -7.5e+28) tmp = Float64(t_2 + Float64(y / Float64(Float64(y / x) + Float64(Float64(Float64(a / x) + Float64(b / Float64(y * x))) - Float64(27464.7644705 / Float64(y * Float64(x * x))))))); elseif (y <= 9e+53) tmp = Float64(t_2 + Float64(Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x))))))) / t_1)); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))); t_2 = t / t_1; t_3 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -6.5e+138) tmp = t_3; elseif (y <= -7.5e+28) tmp = t_2 + (y / ((y / x) + (((a / x) + (b / (y * x))) - (27464.7644705 / (y * (x * x)))))); elseif (y <= 9e+53) tmp = t_2 + ((y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))) / t_1); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.5e+138], t$95$3, If[LessEqual[y, -7.5e+28], N[(t$95$2 + N[(y / N[(N[(y / x), $MachinePrecision] + N[(N[(N[(a / x), $MachinePrecision] + N[(b / N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27464.7644705 / N[(y * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9e+53], N[(t$95$2 + N[(N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)\\
t_2 := \frac{t}{t_1}\\
t_3 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -6.5 \cdot 10^{+138}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{+28}:\\
\;\;\;\;t_2 + \frac{y}{\frac{y}{x} + \left(\left(\frac{a}{x} + \frac{b}{y \cdot x}\right) - \frac{27464.7644705}{y \cdot \left(x \cdot x\right)}\right)}\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+53}:\\
\;\;\;\;t_2 + \frac{y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\right)}{t_1}\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -6.50000000000000054e138 or 9.0000000000000004e53 < y Initial program 1.5%
Taylor expanded in y around inf 71.2%
associate--l+71.2%
associate-/l*73.7%
Simplified73.7%
if -6.50000000000000054e138 < y < -7.4999999999999998e28Initial program 10.3%
Taylor expanded in t around inf 10.3%
Taylor expanded in z around 0 10.6%
*-commutative10.6%
associate-/l*15.9%
fma-def15.9%
+-commutative15.9%
*-commutative15.9%
fma-udef15.9%
fma-def15.9%
*-commutative15.9%
unpow215.9%
Simplified15.9%
Taylor expanded in y around inf 64.6%
associate--l+64.6%
+-commutative64.6%
associate-*r/64.6%
metadata-eval64.6%
unpow264.6%
Simplified64.6%
if -7.4999999999999998e28 < y < 9.0000000000000004e53Initial program 97.1%
Taylor expanded in t around inf 97.1%
Final simplification86.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))
(t_2 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -1.9e+138)
t_2
(if (<= y -1.6e+28)
(+
(/ t t_1)
(/
y
(+
(/ y x)
(- (+ (/ a x) (/ b (* y x))) (/ 27464.7644705 (* y (* x x)))))))
(if (<= y 9e+53)
(/
(+
t
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
t_1)
t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -1.9e+138) {
tmp = t_2;
} else if (y <= -1.6e+28) {
tmp = (t / t_1) + (y / ((y / x) + (((a / x) + (b / (y * x))) - (27464.7644705 / (y * (x * x))))));
} else if (y <= 9e+53) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / t_1;
} 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) :: tmp
t_1 = i + (y * (c + (y * ((y * (y + a)) + b))))
t_2 = (z / y) + (x - (a / (y / x)))
if (y <= (-1.9d+138)) then
tmp = t_2
else if (y <= (-1.6d+28)) then
tmp = (t / t_1) + (y / ((y / x) + (((a / x) + (b / (y * x))) - (27464.7644705d0 / (y * (x * x))))))
else if (y <= 9d+53) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / 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 c, double i) {
double t_1 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -1.9e+138) {
tmp = t_2;
} else if (y <= -1.6e+28) {
tmp = (t / t_1) + (y / ((y / x) + (((a / x) + (b / (y * x))) - (27464.7644705 / (y * (x * x))))));
} else if (y <= 9e+53) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))) t_2 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -1.9e+138: tmp = t_2 elif y <= -1.6e+28: tmp = (t / t_1) + (y / ((y / x) + (((a / x) + (b / (y * x))) - (27464.7644705 / (y * (x * x)))))) elif y <= 9e+53: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))) t_2 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -1.9e+138) tmp = t_2; elseif (y <= -1.6e+28) tmp = Float64(Float64(t / t_1) + Float64(y / Float64(Float64(y / x) + Float64(Float64(Float64(a / x) + Float64(b / Float64(y * x))) - Float64(27464.7644705 / Float64(y * Float64(x * x))))))); elseif (y <= 9e+53) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))))) / t_1); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))); t_2 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -1.9e+138) tmp = t_2; elseif (y <= -1.6e+28) tmp = (t / t_1) + (y / ((y / x) + (((a / x) + (b / (y * x))) - (27464.7644705 / (y * (x * x)))))); elseif (y <= 9e+53) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.9e+138], t$95$2, If[LessEqual[y, -1.6e+28], N[(N[(t / t$95$1), $MachinePrecision] + N[(y / N[(N[(y / x), $MachinePrecision] + N[(N[(N[(a / x), $MachinePrecision] + N[(b / N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(27464.7644705 / N[(y * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9e+53], 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] / t$95$1), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)\\
t_2 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -1.9 \cdot 10^{+138}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.6 \cdot 10^{+28}:\\
\;\;\;\;\frac{t}{t_1} + \frac{y}{\frac{y}{x} + \left(\left(\frac{a}{x} + \frac{b}{y \cdot x}\right) - \frac{27464.7644705}{y \cdot \left(x \cdot x\right)}\right)}\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+53}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\right)}{t_1}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -1.90000000000000006e138 or 9.0000000000000004e53 < y Initial program 1.5%
Taylor expanded in y around inf 71.2%
associate--l+71.2%
associate-/l*73.7%
Simplified73.7%
if -1.90000000000000006e138 < y < -1.6e28Initial program 10.3%
Taylor expanded in t around inf 10.3%
Taylor expanded in z around 0 10.6%
*-commutative10.6%
associate-/l*15.9%
fma-def15.9%
+-commutative15.9%
*-commutative15.9%
fma-udef15.9%
fma-def15.9%
*-commutative15.9%
unpow215.9%
Simplified15.9%
Taylor expanded in y around inf 64.6%
associate--l+64.6%
+-commutative64.6%
associate-*r/64.6%
metadata-eval64.6%
unpow264.6%
Simplified64.6%
if -1.6e28 < y < 9.0000000000000004e53Initial program 97.1%
Final simplification86.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))
(t_2 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -4.2e+138)
t_2
(if (<= y -5.2e+28)
(+
(/ t t_1)
(/
y
(+ (/ y x) (+ (/ a x) (/ (- (/ b x) (/ 27464.7644705 (* x x))) y)))))
(if (<= y 3.6e+53)
(/
(+
t
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
t_1)
t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -4.2e+138) {
tmp = t_2;
} else if (y <= -5.2e+28) {
tmp = (t / t_1) + (y / ((y / x) + ((a / x) + (((b / x) - (27464.7644705 / (x * x))) / y))));
} else if (y <= 3.6e+53) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / t_1;
} 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) :: tmp
t_1 = i + (y * (c + (y * ((y * (y + a)) + b))))
t_2 = (z / y) + (x - (a / (y / x)))
if (y <= (-4.2d+138)) then
tmp = t_2
else if (y <= (-5.2d+28)) then
tmp = (t / t_1) + (y / ((y / x) + ((a / x) + (((b / x) - (27464.7644705d0 / (x * x))) / y))))
else if (y <= 3.6d+53) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / 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 c, double i) {
double t_1 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -4.2e+138) {
tmp = t_2;
} else if (y <= -5.2e+28) {
tmp = (t / t_1) + (y / ((y / x) + ((a / x) + (((b / x) - (27464.7644705 / (x * x))) / y))));
} else if (y <= 3.6e+53) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))) t_2 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -4.2e+138: tmp = t_2 elif y <= -5.2e+28: tmp = (t / t_1) + (y / ((y / x) + ((a / x) + (((b / x) - (27464.7644705 / (x * x))) / y)))) elif y <= 3.6e+53: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))) t_2 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -4.2e+138) tmp = t_2; elseif (y <= -5.2e+28) tmp = Float64(Float64(t / t_1) + Float64(y / Float64(Float64(y / x) + Float64(Float64(a / x) + Float64(Float64(Float64(b / x) - Float64(27464.7644705 / Float64(x * x))) / y))))); elseif (y <= 3.6e+53) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))))) / t_1); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))); t_2 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -4.2e+138) tmp = t_2; elseif (y <= -5.2e+28) tmp = (t / t_1) + (y / ((y / x) + ((a / x) + (((b / x) - (27464.7644705 / (x * x))) / y)))); elseif (y <= 3.6e+53) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.2e+138], t$95$2, If[LessEqual[y, -5.2e+28], N[(N[(t / t$95$1), $MachinePrecision] + N[(y / N[(N[(y / x), $MachinePrecision] + N[(N[(a / x), $MachinePrecision] + N[(N[(N[(b / x), $MachinePrecision] - N[(27464.7644705 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.6e+53], 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] / t$95$1), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)\\
t_2 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -4.2 \cdot 10^{+138}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -5.2 \cdot 10^{+28}:\\
\;\;\;\;\frac{t}{t_1} + \frac{y}{\frac{y}{x} + \left(\frac{a}{x} + \frac{\frac{b}{x} - \frac{27464.7644705}{x \cdot x}}{y}\right)}\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{+53}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\right)}{t_1}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -4.20000000000000014e138 or 3.6e53 < y Initial program 1.5%
Taylor expanded in y around inf 71.2%
associate--l+71.2%
associate-/l*73.7%
Simplified73.7%
if -4.20000000000000014e138 < y < -5.2000000000000004e28Initial program 10.3%
Taylor expanded in t around inf 10.3%
Taylor expanded in z around 0 10.6%
*-commutative10.6%
associate-/l*15.9%
fma-def15.9%
+-commutative15.9%
*-commutative15.9%
fma-udef15.9%
fma-def15.9%
*-commutative15.9%
unpow215.9%
Simplified15.9%
Taylor expanded in y around -inf 64.5%
mul-1-neg64.5%
unsub-neg64.5%
mul-1-neg64.5%
unsub-neg64.5%
associate-*r/64.5%
metadata-eval64.5%
unpow264.5%
Simplified64.5%
if -5.2000000000000004e28 < y < 3.6e53Initial program 97.1%
Final simplification86.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))
(t_2 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -7e+138)
t_2
(if (<= y -4400000000.0)
(+ (/ t t_1) (/ y (+ (/ y x) (/ a x))))
(if (<= y 6e+19)
(/ (+ t (* y (+ 230661.510616 (* z (* y y))))) t_1)
t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -7e+138) {
tmp = t_2;
} else if (y <= -4400000000.0) {
tmp = (t / t_1) + (y / ((y / x) + (a / x)));
} else if (y <= 6e+19) {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / t_1;
} 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) :: tmp
t_1 = i + (y * (c + (y * ((y * (y + a)) + b))))
t_2 = (z / y) + (x - (a / (y / x)))
if (y <= (-7d+138)) then
tmp = t_2
else if (y <= (-4400000000.0d0)) then
tmp = (t / t_1) + (y / ((y / x) + (a / x)))
else if (y <= 6d+19) then
tmp = (t + (y * (230661.510616d0 + (z * (y * y))))) / 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 c, double i) {
double t_1 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -7e+138) {
tmp = t_2;
} else if (y <= -4400000000.0) {
tmp = (t / t_1) + (y / ((y / x) + (a / x)));
} else if (y <= 6e+19) {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))) t_2 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -7e+138: tmp = t_2 elif y <= -4400000000.0: tmp = (t / t_1) + (y / ((y / x) + (a / x))) elif y <= 6e+19: tmp = (t + (y * (230661.510616 + (z * (y * y))))) / t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))) t_2 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -7e+138) tmp = t_2; elseif (y <= -4400000000.0) tmp = Float64(Float64(t / t_1) + Float64(y / Float64(Float64(y / x) + Float64(a / x)))); elseif (y <= 6e+19) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(z * Float64(y * y))))) / t_1); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))); t_2 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -7e+138) tmp = t_2; elseif (y <= -4400000000.0) tmp = (t / t_1) + (y / ((y / x) + (a / x))); elseif (y <= 6e+19) tmp = (t + (y * (230661.510616 + (z * (y * y))))) / t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7e+138], t$95$2, If[LessEqual[y, -4400000000.0], N[(N[(t / t$95$1), $MachinePrecision] + N[(y / N[(N[(y / x), $MachinePrecision] + N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e+19], N[(N[(t + N[(y * N[(230661.510616 + N[(z * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)\\
t_2 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -7 \cdot 10^{+138}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -4400000000:\\
\;\;\;\;\frac{t}{t_1} + \frac{y}{\frac{y}{x} + \frac{a}{x}}\\
\mathbf{elif}\;y \leq 6 \cdot 10^{+19}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + z \cdot \left(y \cdot y\right)\right)}{t_1}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -6.9999999999999996e138 or 6e19 < y Initial program 8.0%
Taylor expanded in y around inf 69.2%
associate--l+69.2%
associate-/l*71.4%
Simplified71.4%
if -6.9999999999999996e138 < y < -4.4e9Initial program 22.4%
Taylor expanded in t around inf 22.4%
Taylor expanded in z around 0 22.7%
*-commutative22.7%
associate-/l*27.0%
fma-def27.0%
+-commutative27.0%
*-commutative27.0%
fma-udef27.0%
fma-def27.0%
*-commutative27.0%
unpow227.0%
Simplified27.0%
Taylor expanded in y around inf 47.8%
if -4.4e9 < y < 6e19Initial program 99.0%
Taylor expanded in z around inf 94.9%
*-commutative94.9%
unpow294.9%
Simplified94.9%
Final simplification81.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -6e+137)
t_1
(if (<= y -5e+31)
(+
(/ t (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))
(/ y (+ (/ y x) (/ a x))))
(if (<= y 7.2e+19)
(/
(+
t
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
(+ i (* y (+ c (* y b)))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -6e+137) {
tmp = t_1;
} else if (y <= -5e+31) {
tmp = (t / (i + (y * (c + (y * ((y * (y + a)) + b)))))) + (y / ((y / x) + (a / x)));
} else if (y <= 7.2e+19) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * b))));
} 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 = (z / y) + (x - (a / (y / x)))
if (y <= (-6d+137)) then
tmp = t_1
else if (y <= (-5d+31)) then
tmp = (t / (i + (y * (c + (y * ((y * (y + a)) + b)))))) + (y / ((y / x) + (a / x)))
else if (y <= 7.2d+19) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * 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 c, double i) {
double t_1 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -6e+137) {
tmp = t_1;
} else if (y <= -5e+31) {
tmp = (t / (i + (y * (c + (y * ((y * (y + a)) + b)))))) + (y / ((y / x) + (a / x)));
} else if (y <= 7.2e+19) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * b))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -6e+137: tmp = t_1 elif y <= -5e+31: tmp = (t / (i + (y * (c + (y * ((y * (y + a)) + b)))))) + (y / ((y / x) + (a / x))) elif y <= 7.2e+19: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * b)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -6e+137) tmp = t_1; elseif (y <= -5e+31) tmp = Float64(Float64(t / Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))))) + Float64(y / Float64(Float64(y / x) + Float64(a / x)))); elseif (y <= 7.2e+19) 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))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -6e+137) tmp = t_1; elseif (y <= -5e+31) tmp = (t / (i + (y * (c + (y * ((y * (y + a)) + b)))))) + (y / ((y / x) + (a / x))); elseif (y <= 7.2e+19) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * b)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6e+137], t$95$1, If[LessEqual[y, -5e+31], N[(N[(t / N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(N[(y / x), $MachinePrecision] + N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.2e+19], 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], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -6 \cdot 10^{+137}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -5 \cdot 10^{+31}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)} + \frac{y}{\frac{y}{x} + \frac{a}{x}}\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{+19}:\\
\;\;\;\;\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{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -6.0000000000000002e137 or 7.2e19 < y Initial program 8.0%
Taylor expanded in y around inf 69.2%
associate--l+69.2%
associate-/l*71.4%
Simplified71.4%
if -6.0000000000000002e137 < y < -5.00000000000000027e31Initial program 5.9%
Taylor expanded in t around inf 5.9%
Taylor expanded in z around 0 6.2%
*-commutative6.2%
associate-/l*12.4%
fma-def12.4%
+-commutative12.4%
*-commutative12.4%
fma-udef12.4%
fma-def12.4%
*-commutative12.4%
unpow212.4%
Simplified12.4%
Taylor expanded in y around inf 59.7%
if -5.00000000000000027e31 < y < 7.2e19Initial program 96.4%
Taylor expanded in y around 0 92.5%
Final simplification82.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -1.35e+138)
t_1
(if (<= y -112000000000.0)
(+
(/ t (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))
(/ y (+ (/ y x) (/ a x))))
(if (<= y 7.2e+19)
(/
(+ t (* y (+ 230661.510616 (* z (* y y)))))
(+ i (* y (+ c (* y b)))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -1.35e+138) {
tmp = t_1;
} else if (y <= -112000000000.0) {
tmp = (t / (i + (y * (c + (y * ((y * (y + a)) + b)))))) + (y / ((y / x) + (a / x)));
} else if (y <= 7.2e+19) {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * b))));
} 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 = (z / y) + (x - (a / (y / x)))
if (y <= (-1.35d+138)) then
tmp = t_1
else if (y <= (-112000000000.0d0)) then
tmp = (t / (i + (y * (c + (y * ((y * (y + a)) + b)))))) + (y / ((y / x) + (a / x)))
else if (y <= 7.2d+19) then
tmp = (t + (y * (230661.510616d0 + (z * (y * y))))) / (i + (y * (c + (y * 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 c, double i) {
double t_1 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -1.35e+138) {
tmp = t_1;
} else if (y <= -112000000000.0) {
tmp = (t / (i + (y * (c + (y * ((y * (y + a)) + b)))))) + (y / ((y / x) + (a / x)));
} else if (y <= 7.2e+19) {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * b))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -1.35e+138: tmp = t_1 elif y <= -112000000000.0: tmp = (t / (i + (y * (c + (y * ((y * (y + a)) + b)))))) + (y / ((y / x) + (a / x))) elif y <= 7.2e+19: tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * b)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -1.35e+138) tmp = t_1; elseif (y <= -112000000000.0) tmp = Float64(Float64(t / Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))))) + Float64(y / Float64(Float64(y / x) + Float64(a / x)))); elseif (y <= 7.2e+19) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(z * Float64(y * y))))) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -1.35e+138) tmp = t_1; elseif (y <= -112000000000.0) tmp = (t / (i + (y * (c + (y * ((y * (y + a)) + b)))))) + (y / ((y / x) + (a / x))); elseif (y <= 7.2e+19) tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * b)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.35e+138], t$95$1, If[LessEqual[y, -112000000000.0], N[(N[(t / N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(N[(y / x), $MachinePrecision] + N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.2e+19], N[(N[(t + N[(y * N[(230661.510616 + N[(z * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -1.35 \cdot 10^{+138}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -112000000000:\\
\;\;\;\;\frac{t}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)} + \frac{y}{\frac{y}{x} + \frac{a}{x}}\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{+19}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + z \cdot \left(y \cdot y\right)\right)}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.35000000000000004e138 or 7.2e19 < y Initial program 8.0%
Taylor expanded in y around inf 69.2%
associate--l+69.2%
associate-/l*71.4%
Simplified71.4%
if -1.35000000000000004e138 < y < -1.12e11Initial program 22.4%
Taylor expanded in t around inf 22.4%
Taylor expanded in z around 0 22.7%
*-commutative22.7%
associate-/l*27.0%
fma-def27.0%
+-commutative27.0%
*-commutative27.0%
fma-udef27.0%
fma-def27.0%
*-commutative27.0%
unpow227.0%
Simplified27.0%
Taylor expanded in y around inf 47.8%
if -1.12e11 < y < 7.2e19Initial program 99.0%
Taylor expanded in z around inf 94.9%
*-commutative94.9%
unpow294.9%
Simplified94.9%
Taylor expanded in y around 0 92.6%
Final simplification80.2%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -2.45e+76) (not (<= y 7.2e+19))) (+ (/ z y) (- x (/ a (/ y x)))) (/ (+ t (* y 230661.510616)) (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.45e+76) || !(y <= 7.2e+19)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
}
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 <= (-2.45d+76)) .or. (.not. (y <= 7.2d+19))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = (t + (y * 230661.510616d0)) / (i + (y * (c + (y * ((y * (y + a)) + b)))))
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 <= -2.45e+76) || !(y <= 7.2e+19)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2.45e+76) or not (y <= 7.2e+19): tmp = (z / y) + (x - (a / (y / x))) else: tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * ((y * (y + a)) + b))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2.45e+76) || !(y <= 7.2e+19)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -2.45e+76) || ~((y <= 7.2e+19))) tmp = (z / y) + (x - (a / (y / x))); else tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * ((y * (y + a)) + b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.45e+76], N[Not[LessEqual[y, 7.2e+19]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.45 \cdot 10^{+76} \lor \neg \left(y \leq 7.2 \cdot 10^{+19}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\
\end{array}
\end{array}
if y < -2.45000000000000013e76 or 7.2e19 < y Initial program 7.1%
Taylor expanded in y around inf 65.8%
associate--l+65.8%
associate-/l*67.8%
Simplified67.8%
if -2.45000000000000013e76 < y < 7.2e19Initial program 92.1%
Taylor expanded in y around 0 79.8%
*-commutative79.8%
Simplified79.8%
Final simplification75.0%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -2.25e+76) (not (<= y 1.35e+18))) (+ (/ z y) (- x (/ a (/ y x)))) (/ (+ t (* y (+ 230661.510616 (* z (* y y))))) (+ i (* y (+ c (* y b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.25e+76) || !(y <= 1.35e+18)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * b))));
}
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 <= (-2.25d+76)) .or. (.not. (y <= 1.35d+18))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = (t + (y * (230661.510616d0 + (z * (y * y))))) / (i + (y * (c + (y * b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.25e+76) || !(y <= 1.35e+18)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2.25e+76) or not (y <= 1.35e+18): tmp = (z / y) + (x - (a / (y / x))) else: tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2.25e+76) || !(y <= 1.35e+18)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(z * Float64(y * y))))) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -2.25e+76) || ~((y <= 1.35e+18))) tmp = (z / y) + (x - (a / (y / x))); else tmp = (t + (y * (230661.510616 + (z * (y * y))))) / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.25e+76], N[Not[LessEqual[y, 1.35e+18]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(z * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.25 \cdot 10^{+76} \lor \neg \left(y \leq 1.35 \cdot 10^{+18}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + z \cdot \left(y \cdot y\right)\right)}{i + y \cdot \left(c + y \cdot b\right)}\\
\end{array}
\end{array}
if y < -2.2499999999999999e76 or 1.35e18 < y Initial program 7.1%
Taylor expanded in y around inf 65.8%
associate--l+65.8%
associate-/l*67.8%
Simplified67.8%
if -2.2499999999999999e76 < y < 1.35e18Initial program 92.1%
Taylor expanded in z around inf 85.5%
*-commutative85.5%
unpow285.5%
Simplified85.5%
Taylor expanded in y around 0 83.4%
Final simplification77.2%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -2.25e+76) (not (<= y 2.3e+19))) (+ (/ z y) (- x (/ a (/ y x)))) (/ (+ t (* y 230661.510616)) (+ i (* y (+ c (* y (+ b (* y y)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.25e+76) || !(y <= 2.3e+19)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * y))))));
}
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 <= (-2.25d+76)) .or. (.not. (y <= 2.3d+19))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = (t + (y * 230661.510616d0)) / (i + (y * (c + (y * (b + (y * y))))))
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 <= -2.25e+76) || !(y <= 2.3e+19)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * y))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2.25e+76) or not (y <= 2.3e+19): tmp = (z / y) + (x - (a / (y / x))) else: tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * y)))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2.25e+76) || !(y <= 2.3e+19)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * y))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -2.25e+76) || ~((y <= 2.3e+19))) tmp = (z / y) + (x - (a / (y / x))); else tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * y)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.25e+76], N[Not[LessEqual[y, 2.3e+19]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(b + N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.25 \cdot 10^{+76} \lor \neg \left(y \leq 2.3 \cdot 10^{+19}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot \left(b + y \cdot y\right)\right)}\\
\end{array}
\end{array}
if y < -2.2499999999999999e76 or 2.3e19 < y Initial program 7.1%
Taylor expanded in y around inf 65.8%
associate--l+65.8%
associate-/l*67.8%
Simplified67.8%
if -2.2499999999999999e76 < y < 2.3e19Initial program 92.1%
Taylor expanded in y around 0 79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in a around 0 77.9%
*-commutative77.9%
+-commutative77.9%
unpow277.9%
Simplified77.9%
Final simplification73.9%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -2.25e+76) (not (<= y 6.5e+19)))
(+ (/ z y) (- x (/ a (/ y x))))
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ i (* y (+ c (* y b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.25e+76) || !(y <= 6.5e+19)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b))));
}
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 <= (-2.25d+76)) .or. (.not. (y <= 6.5d+19))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (i + (y * (c + (y * b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.25e+76) || !(y <= 6.5e+19)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2.25e+76) or not (y <= 6.5e+19): tmp = (z / y) + (x - (a / (y / x))) else: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2.25e+76) || !(y <= 6.5e+19)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -2.25e+76) || ~((y <= 6.5e+19))) tmp = (z / y) + (x - (a / (y / x))); else tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.25e+76], N[Not[LessEqual[y, 6.5e+19]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.25 \cdot 10^{+76} \lor \neg \left(y \leq 6.5 \cdot 10^{+19}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot \left(c + y \cdot b\right)}\\
\end{array}
\end{array}
if y < -2.2499999999999999e76 or 6.5e19 < y Initial program 7.1%
Taylor expanded in y around inf 65.8%
associate--l+65.8%
associate-/l*67.8%
Simplified67.8%
if -2.2499999999999999e76 < y < 6.5e19Initial program 92.1%
Taylor expanded in y around 0 88.4%
Taylor expanded in y around 0 78.9%
*-commutative78.9%
Simplified78.9%
Final simplification74.5%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -2.25e+76) (not (<= y 4e+19))) (+ (/ z y) (- x (/ a (/ y x)))) (/ (+ t (* y 230661.510616)) (+ i (* y (+ c (* a (* y y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.25e+76) || !(y <= 4e+19)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (a * (y * y)))));
}
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 <= (-2.25d+76)) .or. (.not. (y <= 4d+19))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = (t + (y * 230661.510616d0)) / (i + (y * (c + (a * (y * y)))))
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 <= -2.25e+76) || !(y <= 4e+19)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (a * (y * y)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2.25e+76) or not (y <= 4e+19): tmp = (z / y) + (x - (a / (y / x))) else: tmp = (t + (y * 230661.510616)) / (i + (y * (c + (a * (y * y))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2.25e+76) || !(y <= 4e+19)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(c + Float64(a * Float64(y * y)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -2.25e+76) || ~((y <= 4e+19))) tmp = (z / y) + (x - (a / (y / x))); else tmp = (t + (y * 230661.510616)) / (i + (y * (c + (a * (y * y))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.25e+76], N[Not[LessEqual[y, 4e+19]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(a * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.25 \cdot 10^{+76} \lor \neg \left(y \leq 4 \cdot 10^{+19}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + a \cdot \left(y \cdot y\right)\right)}\\
\end{array}
\end{array}
if y < -2.2499999999999999e76 or 4e19 < y Initial program 7.1%
Taylor expanded in y around inf 65.8%
associate--l+65.8%
associate-/l*67.8%
Simplified67.8%
if -2.2499999999999999e76 < y < 4e19Initial program 92.1%
Taylor expanded in y around 0 79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in a around inf 73.1%
*-commutative73.1%
unpow273.1%
Simplified73.1%
Final simplification71.0%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ t (* y 230661.510616))) (t_2 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -3.6e+27)
t_2
(if (<= y 1e-128) (/ t_1 i) (if (<= y 2.1e+18) (/ t_1 (* y c)) t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = t + (y * 230661.510616);
double t_2 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -3.6e+27) {
tmp = t_2;
} else if (y <= 1e-128) {
tmp = t_1 / i;
} else if (y <= 2.1e+18) {
tmp = t_1 / (y * c);
} 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) :: tmp
t_1 = t + (y * 230661.510616d0)
t_2 = (z / y) + (x - (a / (y / x)))
if (y <= (-3.6d+27)) then
tmp = t_2
else if (y <= 1d-128) then
tmp = t_1 / i
else if (y <= 2.1d+18) then
tmp = t_1 / (y * c)
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 = t + (y * 230661.510616);
double t_2 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -3.6e+27) {
tmp = t_2;
} else if (y <= 1e-128) {
tmp = t_1 / i;
} else if (y <= 2.1e+18) {
tmp = t_1 / (y * c);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = t + (y * 230661.510616) t_2 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -3.6e+27: tmp = t_2 elif y <= 1e-128: tmp = t_1 / i elif y <= 2.1e+18: tmp = t_1 / (y * c) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(t + Float64(y * 230661.510616)) t_2 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -3.6e+27) tmp = t_2; elseif (y <= 1e-128) tmp = Float64(t_1 / i); elseif (y <= 2.1e+18) tmp = Float64(t_1 / Float64(y * c)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = t + (y * 230661.510616); t_2 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -3.6e+27) tmp = t_2; elseif (y <= 1e-128) tmp = t_1 / i; elseif (y <= 2.1e+18) tmp = t_1 / (y * c); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.6e+27], t$95$2, If[LessEqual[y, 1e-128], N[(t$95$1 / i), $MachinePrecision], If[LessEqual[y, 2.1e+18], N[(t$95$1 / N[(y * c), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + y \cdot 230661.510616\\
t_2 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -3.6 \cdot 10^{+27}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 10^{-128}:\\
\;\;\;\;\frac{t_1}{i}\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{+18}:\\
\;\;\;\;\frac{t_1}{y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -3.59999999999999983e27 or 2.1e18 < y Initial program 8.4%
Taylor expanded in y around inf 59.8%
associate--l+59.8%
associate-/l*61.6%
Simplified61.6%
if -3.59999999999999983e27 < y < 1.00000000000000005e-128Initial program 97.0%
Taylor expanded in y around 0 89.6%
*-commutative89.6%
Simplified89.6%
Taylor expanded in i around inf 66.1%
if 1.00000000000000005e-128 < y < 2.1e18Initial program 99.3%
Taylor expanded in y around 0 72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in c around inf 36.6%
Final simplification59.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ t (* y 230661.510616))))
(if (<= y -6.8e+27)
x
(if (<= y 1.55e-128) (/ t_1 i) (if (<= y 1.06e+18) (/ t_1 (* y c)) x)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = t + (y * 230661.510616);
double tmp;
if (y <= -6.8e+27) {
tmp = x;
} else if (y <= 1.55e-128) {
tmp = t_1 / i;
} else if (y <= 1.06e+18) {
tmp = t_1 / (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) :: t_1
real(8) :: tmp
t_1 = t + (y * 230661.510616d0)
if (y <= (-6.8d+27)) then
tmp = x
else if (y <= 1.55d-128) then
tmp = t_1 / i
else if (y <= 1.06d+18) then
tmp = t_1 / (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 t_1 = t + (y * 230661.510616);
double tmp;
if (y <= -6.8e+27) {
tmp = x;
} else if (y <= 1.55e-128) {
tmp = t_1 / i;
} else if (y <= 1.06e+18) {
tmp = t_1 / (y * c);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = t + (y * 230661.510616) tmp = 0 if y <= -6.8e+27: tmp = x elif y <= 1.55e-128: tmp = t_1 / i elif y <= 1.06e+18: tmp = t_1 / (y * c) else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(t + Float64(y * 230661.510616)) tmp = 0.0 if (y <= -6.8e+27) tmp = x; elseif (y <= 1.55e-128) tmp = Float64(t_1 / i); elseif (y <= 1.06e+18) tmp = Float64(t_1 / Float64(y * c)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = t + (y * 230661.510616); tmp = 0.0; if (y <= -6.8e+27) tmp = x; elseif (y <= 1.55e-128) tmp = t_1 / i; elseif (y <= 1.06e+18) tmp = t_1 / (y * c); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.8e+27], x, If[LessEqual[y, 1.55e-128], N[(t$95$1 / i), $MachinePrecision], If[LessEqual[y, 1.06e+18], N[(t$95$1 / N[(y * c), $MachinePrecision]), $MachinePrecision], x]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + y \cdot 230661.510616\\
\mathbf{if}\;y \leq -6.8 \cdot 10^{+27}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{-128}:\\
\;\;\;\;\frac{t_1}{i}\\
\mathbf{elif}\;y \leq 1.06 \cdot 10^{+18}:\\
\;\;\;\;\frac{t_1}{y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -6.8e27 or 1.06e18 < y Initial program 8.4%
Taylor expanded in y around inf 50.4%
if -6.8e27 < y < 1.55000000000000001e-128Initial program 97.0%
Taylor expanded in y around 0 89.6%
*-commutative89.6%
Simplified89.6%
Taylor expanded in i around inf 66.1%
if 1.55000000000000001e-128 < y < 1.06e18Initial program 99.3%
Taylor expanded in y around 0 72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in c around inf 36.6%
Final simplification54.7%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -2.25e+76) (not (<= y 1e+19))) (+ (/ z y) (- x (/ a (/ y x)))) (/ t (+ i (* y (+ c (* y b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.25e+76) || !(y <= 1e+19)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = t / (i + (y * (c + (y * b))));
}
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 <= (-2.25d+76)) .or. (.not. (y <= 1d+19))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = t / (i + (y * (c + (y * b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.25e+76) || !(y <= 1e+19)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = t / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2.25e+76) or not (y <= 1e+19): tmp = (z / y) + (x - (a / (y / x))) else: tmp = t / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2.25e+76) || !(y <= 1e+19)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(t / Float64(i + Float64(y * Float64(c + Float64(y * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -2.25e+76) || ~((y <= 1e+19))) tmp = (z / y) + (x - (a / (y / x))); else tmp = t / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.25e+76], N[Not[LessEqual[y, 1e+19]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.25 \cdot 10^{+76} \lor \neg \left(y \leq 10^{+19}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(c + y \cdot b\right)}\\
\end{array}
\end{array}
if y < -2.2499999999999999e76 or 1e19 < y Initial program 7.1%
Taylor expanded in y around inf 65.8%
associate--l+65.8%
associate-/l*67.8%
Simplified67.8%
if -2.2499999999999999e76 < y < 1e19Initial program 92.1%
Taylor expanded in y around 0 88.4%
Taylor expanded in t around inf 65.5%
Final simplification66.4%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -2.25e+76) (not (<= y 5.8e+15))) (+ (/ z y) (- x (/ a (/ y x)))) (/ (+ t (* y 230661.510616)) (+ i (* y c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.25e+76) || !(y <= 5.8e+15)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * c));
}
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 <= (-2.25d+76)) .or. (.not. (y <= 5.8d+15))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = (t + (y * 230661.510616d0)) / (i + (y * c))
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 <= -2.25e+76) || !(y <= 5.8e+15)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2.25e+76) or not (y <= 5.8e+15): tmp = (z / y) + (x - (a / (y / x))) else: tmp = (t + (y * 230661.510616)) / (i + (y * c)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2.25e+76) || !(y <= 5.8e+15)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -2.25e+76) || ~((y <= 5.8e+15))) tmp = (z / y) + (x - (a / (y / x))); else tmp = (t + (y * 230661.510616)) / (i + (y * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.25e+76], N[Not[LessEqual[y, 5.8e+15]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.25 \cdot 10^{+76} \lor \neg \left(y \leq 5.8 \cdot 10^{+15}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot c}\\
\end{array}
\end{array}
if y < -2.2499999999999999e76 or 5.8e15 < y Initial program 7.1%
Taylor expanded in y around inf 65.8%
associate--l+65.8%
associate-/l*67.8%
Simplified67.8%
if -2.2499999999999999e76 < y < 5.8e15Initial program 92.1%
Taylor expanded in y around 0 79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in y around 0 71.2%
*-commutative71.2%
Simplified71.2%
Final simplification69.8%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -3.55e+25) x (if (<= y 5.5e-20) (/ (+ t (* y 230661.510616)) i) x)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -3.55e+25) {
tmp = x;
} else if (y <= 5.5e-20) {
tmp = (t + (y * 230661.510616)) / 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 <= (-3.55d+25)) then
tmp = x
else if (y <= 5.5d-20) then
tmp = (t + (y * 230661.510616d0)) / 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 <= -3.55e+25) {
tmp = x;
} else if (y <= 5.5e-20) {
tmp = (t + (y * 230661.510616)) / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -3.55e+25: tmp = x elif y <= 5.5e-20: tmp = (t + (y * 230661.510616)) / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -3.55e+25) tmp = x; elseif (y <= 5.5e-20) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / 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 <= -3.55e+25) tmp = x; elseif (y <= 5.5e-20) tmp = (t + (y * 230661.510616)) / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -3.55e+25], x, If[LessEqual[y, 5.5e-20], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.55 \cdot 10^{+25}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-20}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -3.5500000000000001e25 or 5.4999999999999996e-20 < y Initial program 17.2%
Taylor expanded in y around inf 45.9%
if -3.5500000000000001e25 < y < 5.4999999999999996e-20Initial program 97.5%
Taylor expanded in y around 0 87.1%
*-commutative87.1%
Simplified87.1%
Taylor expanded in i around inf 57.7%
Final simplification52.0%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -3.8e+22) x (if (<= y 5.5e-20) (/ 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 <= -3.8e+22) {
tmp = x;
} else if (y <= 5.5e-20) {
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 <= (-3.8d+22)) then
tmp = x
else if (y <= 5.5d-20) 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 <= -3.8e+22) {
tmp = x;
} else if (y <= 5.5e-20) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -3.8e+22: tmp = x elif y <= 5.5e-20: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -3.8e+22) tmp = x; elseif (y <= 5.5e-20) 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 <= -3.8e+22) tmp = x; elseif (y <= 5.5e-20) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -3.8e+22], x, If[LessEqual[y, 5.5e-20], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.8 \cdot 10^{+22}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-20}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -3.8000000000000004e22 or 5.4999999999999996e-20 < y Initial program 17.8%
Taylor expanded in y around inf 45.6%
if -3.8000000000000004e22 < y < 5.4999999999999996e-20Initial program 97.5%
Taylor expanded in y around 0 52.2%
Final simplification48.9%
(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 58.2%
Taylor expanded in y around inf 24.0%
Final simplification24.0%
herbie shell --seed 2023196
(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)))