
(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 (+ 1.0 (/ a y))))
(if (or (<= y -1.95e+26) (not (<= y 2.9e+54)))
(* x (+ (/ 1.0 t_1) (/ z (* x (* y (pow t_1 2.0))))))
(/
(fma (fma (fma (fma x y z) y 27464.7644705) y 230661.510616) y t)
(fma (fma (fma (+ 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) {
double t_1 = 1.0 + (a / y);
double tmp;
if ((y <= -1.95e+26) || !(y <= 2.9e+54)) {
tmp = x * ((1.0 / t_1) + (z / (x * (y * pow(t_1, 2.0)))));
} else {
tmp = fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma((y + a), y, b), y, c), y, i);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(1.0 + Float64(a / y)) tmp = 0.0 if ((y <= -1.95e+26) || !(y <= 2.9e+54)) tmp = Float64(x * Float64(Float64(1.0 / t_1) + Float64(z / Float64(x * Float64(y * (t_1 ^ 2.0)))))); else tmp = Float64(fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(Float64(y + a), y, b), y, c), y, i)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(1.0 + N[(a / y), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[y, -1.95e+26], N[Not[LessEqual[y, 2.9e+54]], $MachinePrecision]], N[(x * N[(N[(1.0 / t$95$1), $MachinePrecision] + N[(z / N[(x * N[(y * N[Power[t$95$1, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(N[(x * y + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(N[(N[(y + a), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 1 + \frac{a}{y}\\
\mathbf{if}\;y \leq -1.95 \cdot 10^{+26} \lor \neg \left(y \leq 2.9 \cdot 10^{+54}\right):\\
\;\;\;\;x \cdot \left(\frac{1}{t\_1} + \frac{z}{x \cdot \left(y \cdot {t\_1}^{2}\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y + a, y, b\right), y, c\right), y, i\right)}\\
\end{array}
\end{array}
if y < -1.95e26 or 2.8999999999999999e54 < y Initial program 0.7%
clear-num0.7%
inv-pow0.7%
Applied egg-rr0.7%
unpow-10.7%
fma-undefine0.7%
*-commutative0.7%
fma-define0.7%
Simplified0.7%
Taylor expanded in y around inf 53.1%
Taylor expanded in x around inf 81.6%
if -1.95e26 < y < 2.8999999999999999e54Initial program 96.3%
fma-define96.3%
fma-define96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
fma-define96.4%
Simplified96.4%
Final simplification89.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ 1.0 (/ a y))))
(if (or (<= y -1.95e+26) (not (<= y 6.2e+56)))
(* x (+ (/ 1.0 t_1) (/ z (* x (* y (pow t_1 2.0))))))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
(+ i (* y (+ c (* y (+ b (* y (+ y a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = 1.0 + (a / y);
double tmp;
if ((y <= -1.95e+26) || !(y <= 6.2e+56)) {
tmp = x * ((1.0 / t_1) + (z / (x * (y * pow(t_1, 2.0)))));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
}
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 = 1.0d0 + (a / y)
if ((y <= (-1.95d+26)) .or. (.not. (y <= 6.2d+56))) then
tmp = x * ((1.0d0 / t_1) + (z / (x * (y * (t_1 ** 2.0d0)))))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * (y + a)))))))
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 = 1.0 + (a / y);
double tmp;
if ((y <= -1.95e+26) || !(y <= 6.2e+56)) {
tmp = x * ((1.0 / t_1) + (z / (x * (y * Math.pow(t_1, 2.0)))));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = 1.0 + (a / y) tmp = 0 if (y <= -1.95e+26) or not (y <= 6.2e+56): tmp = x * ((1.0 / t_1) + (z / (x * (y * math.pow(t_1, 2.0))))) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * (y + a))))))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(1.0 + Float64(a / y)) tmp = 0.0 if ((y <= -1.95e+26) || !(y <= 6.2e+56)) tmp = Float64(x * Float64(Float64(1.0 / t_1) + Float64(z / Float64(x * Float64(y * (t_1 ^ 2.0)))))); else 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 * Float64(b + Float64(y * Float64(y + a)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = 1.0 + (a / y); tmp = 0.0; if ((y <= -1.95e+26) || ~((y <= 6.2e+56))) tmp = x * ((1.0 / t_1) + (z / (x * (y * (t_1 ^ 2.0))))); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * (y + a))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(1.0 + N[(a / y), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[y, -1.95e+26], N[Not[LessEqual[y, 6.2e+56]], $MachinePrecision]], N[(x * N[(N[(1.0 / t$95$1), $MachinePrecision] + N[(z / N[(x * N[(y * N[Power[t$95$1, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 1 + \frac{a}{y}\\
\mathbf{if}\;y \leq -1.95 \cdot 10^{+26} \lor \neg \left(y \leq 6.2 \cdot 10^{+56}\right):\\
\;\;\;\;x \cdot \left(\frac{1}{t\_1} + \frac{z}{x \cdot \left(y \cdot {t\_1}^{2}\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\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(b + y \cdot \left(y + a\right)\right)\right)}\\
\end{array}
\end{array}
if y < -1.95e26 or 6.20000000000000009e56 < y Initial program 0.7%
clear-num0.7%
inv-pow0.7%
Applied egg-rr0.7%
unpow-10.7%
fma-undefine0.7%
*-commutative0.7%
fma-define0.7%
Simplified0.7%
Taylor expanded in y around inf 53.1%
Taylor expanded in x around inf 81.6%
if -1.95e26 < y < 6.20000000000000009e56Initial program 96.3%
Final simplification89.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ i (* y (+ c (* y (+ b (* y (+ y a))))))))
(t_2 (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
(if (<= (/ (+ t (* y t_2)) t_1) INFINITY)
(* t (+ (/ 1.0 t_1) (* (/ y t) (/ t_2 t_1))))
(+ x (- (/ z y) (* a (/ x y)))))))
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 * (b + (y * (y + a))))));
double t_2 = 230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))));
double tmp;
if (((t + (y * t_2)) / t_1) <= ((double) INFINITY)) {
tmp = t * ((1.0 / t_1) + ((y / t) * (t_2 / t_1)));
} else {
tmp = x + ((z / y) - (a * (x / y)));
}
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 = i + (y * (c + (y * (b + (y * (y + a))))));
double t_2 = 230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))));
double tmp;
if (((t + (y * t_2)) / t_1) <= Double.POSITIVE_INFINITY) {
tmp = t * ((1.0 / t_1) + ((y / t) * (t_2 / t_1)));
} else {
tmp = x + ((z / y) - (a * (x / y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = i + (y * (c + (y * (b + (y * (y + a)))))) t_2 = 230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))) tmp = 0 if ((t + (y * t_2)) / t_1) <= math.inf: tmp = t * ((1.0 / t_1) + ((y / t) * (t_2 / t_1))) else: tmp = x + ((z / y) - (a * (x / y))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a))))))) t_2 = Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))) tmp = 0.0 if (Float64(Float64(t + Float64(y * t_2)) / t_1) <= Inf) tmp = Float64(t * Float64(Float64(1.0 / t_1) + Float64(Float64(y / t) * Float64(t_2 / t_1)))); else tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = i + (y * (c + (y * (b + (y * (y + a)))))); t_2 = 230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))); tmp = 0.0; if (((t + (y * t_2)) / t_1) <= Inf) tmp = t * ((1.0 / t_1) + ((y / t) * (t_2 / t_1))); else tmp = x + ((z / y) - (a * (x / y))); 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[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(t + N[(y * t$95$2), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], Infinity], N[(t * N[(N[(1.0 / t$95$1), $MachinePrecision] + N[(N[(y / t), $MachinePrecision] * N[(t$95$2 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right)\\
t_2 := 230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\\
\mathbf{if}\;\frac{t + y \cdot t\_2}{t\_1} \leq \infty:\\
\;\;\;\;t \cdot \left(\frac{1}{t\_1} + \frac{y}{t} \cdot \frac{t\_2}{t\_1}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0Initial program 87.7%
clear-num87.6%
inv-pow87.6%
Applied egg-rr87.6%
unpow-187.6%
fma-undefine87.6%
*-commutative87.6%
fma-define87.6%
Simplified87.6%
Taylor expanded in t around inf 82.2%
times-frac88.8%
Simplified88.8%
if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) 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 72.9%
associate--l+72.9%
associate-/l*77.4%
Simplified77.4%
Final simplification84.5%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -2e+60) (not (<= y 6.8e+69)))
(+ x (- (/ z y) (* a (/ x y))))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
(+ i (* y (+ c (* y (+ b (* y (+ y a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2e+60) || !(y <= 6.8e+69)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
}
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 <= (-2d+60)) .or. (.not. (y <= 6.8d+69))) then
tmp = x + ((z / y) - (a * (x / y)))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * (y + a)))))))
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 <= -2e+60) || !(y <= 6.8e+69)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2e+60) or not (y <= 6.8e+69): tmp = x + ((z / y) - (a * (x / y))) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * (y + a))))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2e+60) || !(y <= 6.8e+69)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); else 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 * Float64(b + Float64(y * Float64(y + a)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -2e+60) || ~((y <= 6.8e+69))) tmp = x + ((z / y) - (a * (x / y))); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * (y + a))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2e+60], N[Not[LessEqual[y, 6.8e+69]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{+60} \lor \neg \left(y \leq 6.8 \cdot 10^{+69}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\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(b + y \cdot \left(y + a\right)\right)\right)}\\
\end{array}
\end{array}
if y < -1.9999999999999999e60 or 6.79999999999999973e69 < y Initial program 0.4%
Taylor expanded in y around inf 74.0%
associate--l+74.0%
associate-/l*78.3%
Simplified78.3%
if -1.9999999999999999e60 < y < 6.79999999999999973e69Initial program 90.3%
Final simplification85.5%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.75e+54) (not (<= y 3.6e+68)))
(+ x (- (/ z y) (* a (/ x y))))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
(+ i (* y (+ c (* y (+ b (* y a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.75e+54) || !(y <= 3.6e+68)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * a))))));
}
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.75d+54)) .or. (.not. (y <= 3.6d+68))) then
tmp = x + ((z / y) - (a * (x / y)))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * a))))))
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.75e+54) || !(y <= 3.6e+68)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.75e+54) or not (y <= 3.6e+68): tmp = x + ((z / y) - (a * (x / y))) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * a)))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.75e+54) || !(y <= 3.6e+68)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); else 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 * Float64(b + Float64(y * a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.75e+54) || ~((y <= 3.6e+68))) tmp = x + ((z / y) - (a * (x / y))); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.75e+54], N[Not[LessEqual[y, 3.6e+68]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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[(b + N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.75 \cdot 10^{+54} \lor \neg \left(y \leq 3.6 \cdot 10^{+68}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\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(b + y \cdot a\right)\right)}\\
\end{array}
\end{array}
if y < -1.7500000000000001e54 or 3.5999999999999999e68 < y Initial program 0.4%
Taylor expanded in y around inf 74.0%
associate--l+74.0%
associate-/l*78.3%
Simplified78.3%
if -1.7500000000000001e54 < y < 3.5999999999999999e68Initial program 90.3%
Taylor expanded in y around 0 89.7%
*-commutative89.7%
Simplified89.7%
Final simplification85.2%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.9e+56) (not (<= y 1.52e+69)))
(+ x (- (/ z y) (* a (/ x y))))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
(+ 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 <= -1.9e+56) || !(y <= 1.52e+69)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (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 <= (-1.9d+56)) .or. (.not. (y <= 1.52d+69))) then
tmp = x + ((z / y) - (a * (x / y)))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / (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 <= -1.9e+56) || !(y <= 1.52e+69)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.9e+56) or not (y <= 1.52e+69): tmp = x + ((z / y) - (a * (x / y))) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.9e+56) || !(y <= 1.52e+69)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); else 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))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.9e+56) || ~((y <= 1.52e+69))) tmp = x + ((z / y) - (a * (x / y))); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.9e+56], N[Not[LessEqual[y, 1.52e+69]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.9 \cdot 10^{+56} \lor \neg \left(y \leq 1.52 \cdot 10^{+69}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\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)}\\
\end{array}
\end{array}
if y < -1.89999999999999998e56 or 1.52e69 < y Initial program 0.4%
Taylor expanded in y around inf 74.0%
associate--l+74.0%
associate-/l*78.3%
Simplified78.3%
if -1.89999999999999998e56 < y < 1.52e69Initial program 90.3%
Taylor expanded in y around 0 89.7%
*-commutative89.7%
Simplified89.7%
Taylor expanded in a around 0 86.6%
Final simplification83.3%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -4.2e+53) (not (<= y 2.6e+40))) (+ x (- (/ z y) (* a (/ x y)))) (/ (+ 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 <= -4.2e+53) || !(y <= 2.6e+40)) {
tmp = x + ((z / y) - (a * (x / y)));
} 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 <= (-4.2d+53)) .or. (.not. (y <= 2.6d+40))) then
tmp = x + ((z / y) - (a * (x / y)))
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 <= -4.2e+53) || !(y <= 2.6e+40)) {
tmp = x + ((z / y) - (a * (x / y)));
} 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 <= -4.2e+53) or not (y <= 2.6e+40): tmp = x + ((z / y) - (a * (x / y))) 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 <= -4.2e+53) || !(y <= 2.6e+40)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); 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 <= -4.2e+53) || ~((y <= 2.6e+40))) tmp = x + ((z / y) - (a * (x / y))); 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, -4.2e+53], N[Not[LessEqual[y, 2.6e+40]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $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 -4.2 \cdot 10^{+53} \lor \neg \left(y \leq 2.6 \cdot 10^{+40}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\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 < -4.2000000000000004e53 or 2.6000000000000001e40 < y Initial program 3.2%
Taylor expanded in y around inf 67.3%
associate--l+67.3%
associate-/l*71.1%
Simplified71.1%
if -4.2000000000000004e53 < y < 2.6000000000000001e40Initial program 95.7%
Taylor expanded in z around inf 87.5%
unpow287.5%
Applied egg-rr87.5%
Taylor expanded in y around 0 85.4%
Final simplification79.0%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -2.8e+53) (not (<= y 3.6e+68))) (+ x (- (/ z y) (* a (/ x y)))) (/ (+ t (* y 230661.510616)) (+ i (* y (+ c (* y (+ b (* y a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.8e+53) || !(y <= 3.6e+68)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * a))))));
}
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.8d+53)) .or. (.not. (y <= 3.6d+68))) then
tmp = x + ((z / y) - (a * (x / y)))
else
tmp = (t + (y * 230661.510616d0)) / (i + (y * (c + (y * (b + (y * a))))))
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.8e+53) || !(y <= 3.6e+68)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2.8e+53) or not (y <= 3.6e+68): tmp = x + ((z / y) - (a * (x / y))) else: tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * a)))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2.8e+53) || !(y <= 3.6e+68)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -2.8e+53) || ~((y <= 3.6e+68))) tmp = x + ((z / y) - (a * (x / y))); else tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.8e+53], N[Not[LessEqual[y, 3.6e+68]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $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 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.8 \cdot 10^{+53} \lor \neg \left(y \leq 3.6 \cdot 10^{+68}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot \left(b + y \cdot a\right)\right)}\\
\end{array}
\end{array}
if y < -2.8e53 or 3.5999999999999999e68 < y Initial program 0.4%
Taylor expanded in y around inf 74.0%
associate--l+74.0%
associate-/l*78.3%
Simplified78.3%
if -2.8e53 < y < 3.5999999999999999e68Initial program 90.3%
Taylor expanded in y around 0 89.7%
*-commutative89.7%
Simplified89.7%
Taylor expanded in y around 0 74.7%
*-commutative74.7%
Simplified74.7%
Final simplification76.1%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -2.4e+53) (not (<= y 1.9e+40))) (+ x (- (/ z y) (* a (/ x y)))) (/ (+ t (* y 230661.510616)) (+ 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.4e+53) || !(y <= 1.9e+40)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * 230661.510616)) / (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.4d+53)) .or. (.not. (y <= 1.9d+40))) then
tmp = x + ((z / y) - (a * (x / y)))
else
tmp = (t + (y * 230661.510616d0)) / (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.4e+53) || !(y <= 1.9e+40)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2.4e+53) or not (y <= 1.9e+40): tmp = x + ((z / y) - (a * (x / y))) else: tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2.4e+53) || !(y <= 1.9e+40)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / 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.4e+53) || ~((y <= 1.9e+40))) tmp = x + ((z / y) - (a * (x / y))); else tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.4e+53], N[Not[LessEqual[y, 1.9e+40]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $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.4 \cdot 10^{+53} \lor \neg \left(y \leq 1.9 \cdot 10^{+40}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot b\right)}\\
\end{array}
\end{array}
if y < -2.4e53 or 1.90000000000000002e40 < y Initial program 3.2%
Taylor expanded in y around inf 67.3%
associate--l+67.3%
associate-/l*71.1%
Simplified71.1%
if -2.4e53 < y < 1.90000000000000002e40Initial program 95.7%
Taylor expanded in y around 0 95.7%
*-commutative95.7%
Simplified95.7%
Taylor expanded in y around 0 79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in y around 0 77.9%
Final simplification74.9%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -2.4e+53) (not (<= y 2e+37))) (+ x (- (/ z y) (* a (/ x y)))) (/ (+ 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.4e+53) || !(y <= 2e+37)) {
tmp = x + ((z / y) - (a * (x / y)));
} 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.4d+53)) .or. (.not. (y <= 2d+37))) then
tmp = x + ((z / y) - (a * (x / y)))
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.4e+53) || !(y <= 2e+37)) {
tmp = x + ((z / y) - (a * (x / y)));
} 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.4e+53) or not (y <= 2e+37): tmp = x + ((z / y) - (a * (x / y))) 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.4e+53) || !(y <= 2e+37)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); 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.4e+53) || ~((y <= 2e+37))) tmp = x + ((z / y) - (a * (x / y))); 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.4e+53], N[Not[LessEqual[y, 2e+37]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $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.4 \cdot 10^{+53} \lor \neg \left(y \leq 2 \cdot 10^{+37}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot c}\\
\end{array}
\end{array}
if y < -2.4e53 or 1.99999999999999991e37 < y Initial program 4.1%
Taylor expanded in y around inf 66.8%
associate--l+66.8%
associate-/l*70.6%
Simplified70.6%
if -2.4e53 < y < 1.99999999999999991e37Initial program 95.6%
Taylor expanded in y around 0 95.6%
*-commutative95.6%
Simplified95.6%
Taylor expanded in y around 0 79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in y around 0 74.2%
Final simplification72.6%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -1.65e-9) (not (<= y 2.4e+32))) (+ x (- (/ z y) (* a (/ x y)))) (+ (* 230661.510616 (/ y i)) (/ t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.65e-9) || !(y <= 2.4e+32)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (230661.510616 * (y / i)) + (t / i);
}
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.65d-9)) .or. (.not. (y <= 2.4d+32))) then
tmp = x + ((z / y) - (a * (x / y)))
else
tmp = (230661.510616d0 * (y / i)) + (t / i)
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.65e-9) || !(y <= 2.4e+32)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (230661.510616 * (y / i)) + (t / i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.65e-9) or not (y <= 2.4e+32): tmp = x + ((z / y) - (a * (x / y))) else: tmp = (230661.510616 * (y / i)) + (t / i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.65e-9) || !(y <= 2.4e+32)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); else tmp = Float64(Float64(230661.510616 * Float64(y / i)) + Float64(t / i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.65e-9) || ~((y <= 2.4e+32))) tmp = x + ((z / y) - (a * (x / y))); else tmp = (230661.510616 * (y / i)) + (t / i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.65e-9], N[Not[LessEqual[y, 2.4e+32]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(230661.510616 * N[(y / i), $MachinePrecision]), $MachinePrecision] + N[(t / i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.65 \cdot 10^{-9} \lor \neg \left(y \leq 2.4 \cdot 10^{+32}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;230661.510616 \cdot \frac{y}{i} + \frac{t}{i}\\
\end{array}
\end{array}
if y < -1.65000000000000009e-9 or 2.39999999999999991e32 < y Initial program 9.3%
Taylor expanded in y around inf 60.3%
associate--l+60.3%
associate-/l*63.8%
Simplified63.8%
if -1.65000000000000009e-9 < y < 2.39999999999999991e32Initial program 99.7%
Taylor expanded in z around inf 92.9%
Taylor expanded in i around inf 69.4%
Taylor expanded in y around 0 66.2%
Final simplification65.0%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -27500000.0) (not (<= y 7e+28))) (/ x (+ 1.0 (/ a y))) (+ (* 230661.510616 (/ y i)) (/ t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -27500000.0) || !(y <= 7e+28)) {
tmp = x / (1.0 + (a / y));
} else {
tmp = (230661.510616 * (y / i)) + (t / i);
}
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 <= (-27500000.0d0)) .or. (.not. (y <= 7d+28))) then
tmp = x / (1.0d0 + (a / y))
else
tmp = (230661.510616d0 * (y / i)) + (t / i)
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 <= -27500000.0) || !(y <= 7e+28)) {
tmp = x / (1.0 + (a / y));
} else {
tmp = (230661.510616 * (y / i)) + (t / i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -27500000.0) or not (y <= 7e+28): tmp = x / (1.0 + (a / y)) else: tmp = (230661.510616 * (y / i)) + (t / i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -27500000.0) || !(y <= 7e+28)) tmp = Float64(x / Float64(1.0 + Float64(a / y))); else tmp = Float64(Float64(230661.510616 * Float64(y / i)) + Float64(t / i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -27500000.0) || ~((y <= 7e+28))) tmp = x / (1.0 + (a / y)); else tmp = (230661.510616 * (y / i)) + (t / i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -27500000.0], N[Not[LessEqual[y, 7e+28]], $MachinePrecision]], N[(x / N[(1.0 + N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(230661.510616 * N[(y / i), $MachinePrecision]), $MachinePrecision] + N[(t / i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -27500000 \lor \neg \left(y \leq 7 \cdot 10^{+28}\right):\\
\;\;\;\;\frac{x}{1 + \frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;230661.510616 \cdot \frac{y}{i} + \frac{t}{i}\\
\end{array}
\end{array}
if y < -2.75e7 or 6.9999999999999999e28 < y Initial program 7.1%
clear-num7.1%
inv-pow7.1%
Applied egg-rr7.1%
unpow-17.1%
fma-undefine7.1%
*-commutative7.1%
fma-define7.1%
Simplified7.1%
Taylor expanded in y around inf 49.5%
Taylor expanded in x around inf 62.8%
if -2.75e7 < y < 6.9999999999999999e28Initial program 99.7%
Taylor expanded in z around inf 92.3%
Taylor expanded in i around inf 67.9%
Taylor expanded in y around 0 64.7%
Final simplification63.8%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -68000000.0) (not (<= y 2.5e+25))) (/ x (+ 1.0 (/ a y))) (/ (+ t (* y 230661.510616)) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -68000000.0) || !(y <= 2.5e+25)) {
tmp = x / (1.0 + (a / y));
} else {
tmp = (t + (y * 230661.510616)) / i;
}
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 <= (-68000000.0d0)) .or. (.not. (y <= 2.5d+25))) then
tmp = x / (1.0d0 + (a / y))
else
tmp = (t + (y * 230661.510616d0)) / i
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 <= -68000000.0) || !(y <= 2.5e+25)) {
tmp = x / (1.0 + (a / y));
} else {
tmp = (t + (y * 230661.510616)) / i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -68000000.0) or not (y <= 2.5e+25): tmp = x / (1.0 + (a / y)) else: tmp = (t + (y * 230661.510616)) / i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -68000000.0) || !(y <= 2.5e+25)) tmp = Float64(x / Float64(1.0 + Float64(a / y))); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -68000000.0) || ~((y <= 2.5e+25))) tmp = x / (1.0 + (a / y)); else tmp = (t + (y * 230661.510616)) / i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -68000000.0], N[Not[LessEqual[y, 2.5e+25]], $MachinePrecision]], N[(x / N[(1.0 + N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -68000000 \lor \neg \left(y \leq 2.5 \cdot 10^{+25}\right):\\
\;\;\;\;\frac{x}{1 + \frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\end{array}
\end{array}
if y < -6.8e7 or 2.50000000000000012e25 < y Initial program 7.1%
clear-num7.1%
inv-pow7.1%
Applied egg-rr7.1%
unpow-17.1%
fma-undefine7.1%
*-commutative7.1%
fma-define7.1%
Simplified7.1%
Taylor expanded in y around inf 49.5%
Taylor expanded in x around inf 62.8%
if -6.8e7 < y < 2.50000000000000012e25Initial program 99.7%
Taylor expanded in z around inf 92.3%
Taylor expanded in i around inf 67.9%
Taylor expanded in y around 0 64.7%
Final simplification63.8%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -650000.0) (not (<= y 1.85e+25))) (/ x (+ 1.0 (/ a y))) (/ t i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -650000.0) || !(y <= 1.85e+25)) {
tmp = x / (1.0 + (a / y));
} else {
tmp = t / i;
}
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 <= (-650000.0d0)) .or. (.not. (y <= 1.85d+25))) then
tmp = x / (1.0d0 + (a / y))
else
tmp = t / i
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 <= -650000.0) || !(y <= 1.85e+25)) {
tmp = x / (1.0 + (a / y));
} else {
tmp = t / i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -650000.0) or not (y <= 1.85e+25): tmp = x / (1.0 + (a / y)) else: tmp = t / i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -650000.0) || !(y <= 1.85e+25)) tmp = Float64(x / Float64(1.0 + Float64(a / y))); else tmp = Float64(t / i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -650000.0) || ~((y <= 1.85e+25))) tmp = x / (1.0 + (a / y)); else tmp = t / i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -650000.0], N[Not[LessEqual[y, 1.85e+25]], $MachinePrecision]], N[(x / N[(1.0 + N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -650000 \lor \neg \left(y \leq 1.85 \cdot 10^{+25}\right):\\
\;\;\;\;\frac{x}{1 + \frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i}\\
\end{array}
\end{array}
if y < -6.5e5 or 1.8499999999999999e25 < y Initial program 7.1%
clear-num7.1%
inv-pow7.1%
Applied egg-rr7.1%
unpow-17.1%
fma-undefine7.1%
*-commutative7.1%
fma-define7.1%
Simplified7.1%
Taylor expanded in y around inf 49.5%
Taylor expanded in x around inf 62.8%
if -6.5e5 < y < 1.8499999999999999e25Initial program 99.7%
Taylor expanded in y around 0 56.7%
Final simplification59.7%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -5.4e+39) x (if (<= y 3.5e+39) (/ 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 <= -5.4e+39) {
tmp = x;
} else if (y <= 3.5e+39) {
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 <= (-5.4d+39)) then
tmp = x
else if (y <= 3.5d+39) 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 <= -5.4e+39) {
tmp = x;
} else if (y <= 3.5e+39) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -5.4e+39: tmp = x elif y <= 3.5e+39: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -5.4e+39) tmp = x; elseif (y <= 3.5e+39) 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 <= -5.4e+39) tmp = x; elseif (y <= 3.5e+39) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -5.4e+39], x, If[LessEqual[y, 3.5e+39], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.4 \cdot 10^{+39}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{+39}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -5.40000000000000007e39 or 3.5000000000000002e39 < y Initial program 3.3%
Taylor expanded in y around inf 56.9%
if -5.40000000000000007e39 < y < 3.5000000000000002e39Initial program 97.0%
Taylor expanded in y around 0 53.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 54.5%
Taylor expanded in y around inf 27.6%
herbie shell --seed 2024135
(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)))