
(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 17 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 (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i)))
(if (<= y -6e+46)
(+ x (+ (/ z y) (/ (/ 27464.7644705 y) y)))
(if (<= y 1.65e+46)
(/
(+
(+
(* x (pow y 4.0))
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
t)
t_1)
(+ (/ t t_1) (- (+ x (/ z y)) (/ (* x a) y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double tmp;
if (y <= -6e+46) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 1.65e+46) {
tmp = (((x * pow(y, 4.0)) + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) + t) / t_1;
} else {
tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / 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) :: t_1
real(8) :: tmp
t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i
if (y <= (-6d+46)) then
tmp = x + ((z / y) + ((27464.7644705d0 / y) / y))
else if (y <= 1.65d+46) then
tmp = (((x * (y ** 4.0d0)) + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) + t) / t_1
else
tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double tmp;
if (y <= -6e+46) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 1.65e+46) {
tmp = (((x * Math.pow(y, 4.0)) + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) + t) / t_1;
} else {
tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i tmp = 0 if y <= -6e+46: tmp = x + ((z / y) + ((27464.7644705 / y) / y)) elif y <= 1.65e+46: tmp = (((x * math.pow(y, 4.0)) + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) + t) / t_1 else: tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i) tmp = 0.0 if (y <= -6e+46) tmp = Float64(x + Float64(Float64(z / y) + Float64(Float64(27464.7644705 / y) / y))); elseif (y <= 1.65e+46) tmp = Float64(Float64(Float64(Float64(x * (y ^ 4.0)) + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) + t) / t_1); else tmp = Float64(Float64(t / t_1) + Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i; tmp = 0.0; if (y <= -6e+46) tmp = x + ((z / y) + ((27464.7644705 / y) / y)); elseif (y <= 1.65e+46) tmp = (((x * (y ^ 4.0)) + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) + t) / t_1; else tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]}, If[LessEqual[y, -6e+46], N[(x + N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / y), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e+46], N[(N[(N[(N[(x * N[Power[y, 4.0], $MachinePrecision]), $MachinePrecision] + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] / t$95$1), $MachinePrecision], N[(N[(t / t$95$1), $MachinePrecision] + N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i\\
\mathbf{if}\;y \leq -6 \cdot 10^{+46}:\\
\;\;\;\;x + \left(\frac{z}{y} + \frac{\frac{27464.7644705}{y}}{y}\right)\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{+46}:\\
\;\;\;\;\frac{\left(x \cdot {y}^{4} + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)\right) + t}{t_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{t_1} + \left(\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\right)\\
\end{array}
\end{array}
if y < -6.00000000000000047e46Initial program 0.8%
Taylor expanded in y around inf 56.3%
associate--l+56.3%
+-commutative56.3%
associate-*r/56.3%
metadata-eval56.3%
unpow256.3%
unpow256.3%
unpow256.3%
Simplified56.3%
Taylor expanded in b around 0 62.4%
associate--l+62.4%
associate-*r/62.4%
metadata-eval62.4%
unpow262.4%
associate-/l*62.3%
associate--r+62.3%
associate-/l*62.4%
div-sub62.4%
associate-/l*64.5%
unpow264.5%
Simplified64.5%
Taylor expanded in a around 0 70.5%
+-commutative70.5%
associate-*r/70.5%
metadata-eval70.5%
unpow270.5%
associate-/r*70.5%
Simplified70.5%
if -6.00000000000000047e46 < y < 1.6499999999999999e46Initial program 96.7%
Taylor expanded in x around 0 96.8%
if 1.6499999999999999e46 < y Initial program 2.9%
Taylor expanded in t around 0 2.9%
Taylor expanded in y around inf 75.1%
Final simplification87.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i)))
(if (<= y -6e+46)
(+ x (+ (/ z y) (/ (/ 27464.7644705 y) y)))
(if (<= y 1.65e+46)
(/
(+
t
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
t_1)
(+ (/ t t_1) (- (+ x (/ z y)) (/ (* x a) y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double tmp;
if (y <= -6e+46) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 1.65e+46) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / t_1;
} else {
tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / 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) :: t_1
real(8) :: tmp
t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i
if (y <= (-6d+46)) then
tmp = x + ((z / y) + ((27464.7644705d0 / y) / y))
else if (y <= 1.65d+46) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / t_1
else
tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double tmp;
if (y <= -6e+46) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 1.65e+46) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / t_1;
} else {
tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i tmp = 0 if y <= -6e+46: tmp = x + ((z / y) + ((27464.7644705 / y) / y)) elif y <= 1.65e+46: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / t_1 else: tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i) tmp = 0.0 if (y <= -6e+46) tmp = Float64(x + Float64(Float64(z / y) + Float64(Float64(27464.7644705 / y) / y))); elseif (y <= 1.65e+46) 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 = Float64(Float64(t / t_1) + Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i; tmp = 0.0; if (y <= -6e+46) tmp = x + ((z / y) + ((27464.7644705 / y) / y)); elseif (y <= 1.65e+46) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / t_1; else tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]}, If[LessEqual[y, -6e+46], N[(x + N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / y), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e+46], 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], N[(N[(t / t$95$1), $MachinePrecision] + N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i\\
\mathbf{if}\;y \leq -6 \cdot 10^{+46}:\\
\;\;\;\;x + \left(\frac{z}{y} + \frac{\frac{27464.7644705}{y}}{y}\right)\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{+46}:\\
\;\;\;\;\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}:\\
\;\;\;\;\frac{t}{t_1} + \left(\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\right)\\
\end{array}
\end{array}
if y < -6.00000000000000047e46Initial program 0.8%
Taylor expanded in y around inf 56.3%
associate--l+56.3%
+-commutative56.3%
associate-*r/56.3%
metadata-eval56.3%
unpow256.3%
unpow256.3%
unpow256.3%
Simplified56.3%
Taylor expanded in b around 0 62.4%
associate--l+62.4%
associate-*r/62.4%
metadata-eval62.4%
unpow262.4%
associate-/l*62.3%
associate--r+62.3%
associate-/l*62.4%
div-sub62.4%
associate-/l*64.5%
unpow264.5%
Simplified64.5%
Taylor expanded in a around 0 70.5%
+-commutative70.5%
associate-*r/70.5%
metadata-eval70.5%
unpow270.5%
associate-/r*70.5%
Simplified70.5%
if -6.00000000000000047e46 < y < 1.6499999999999999e46Initial program 96.7%
if 1.6499999999999999e46 < y Initial program 2.9%
Taylor expanded in t around 0 2.9%
Taylor expanded in y around inf 75.1%
Final simplification87.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i)))
(if (<= y -2.35e+47)
(+ x (+ (/ z y) (/ (/ 27464.7644705 y) y)))
(if (<= y 3.8e+43)
(/
1.0
(/ t_1 (+ (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))) t)))
(+ (/ t t_1) (- (+ x (/ z y)) (/ (* x a) y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double tmp;
if (y <= -2.35e+47) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 3.8e+43) {
tmp = 1.0 / (t_1 / ((y * (230661.510616 + (y * (27464.7644705 + (y * z))))) + t));
} else {
tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / 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) :: t_1
real(8) :: tmp
t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i
if (y <= (-2.35d+47)) then
tmp = x + ((z / y) + ((27464.7644705d0 / y) / y))
else if (y <= 3.8d+43) then
tmp = 1.0d0 / (t_1 / ((y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z))))) + t))
else
tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double tmp;
if (y <= -2.35e+47) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 3.8e+43) {
tmp = 1.0 / (t_1 / ((y * (230661.510616 + (y * (27464.7644705 + (y * z))))) + t));
} else {
tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i tmp = 0 if y <= -2.35e+47: tmp = x + ((z / y) + ((27464.7644705 / y) / y)) elif y <= 3.8e+43: tmp = 1.0 / (t_1 / ((y * (230661.510616 + (y * (27464.7644705 + (y * z))))) + t)) else: tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i) tmp = 0.0 if (y <= -2.35e+47) tmp = Float64(x + Float64(Float64(z / y) + Float64(Float64(27464.7644705 / y) / y))); elseif (y <= 3.8e+43) tmp = Float64(1.0 / Float64(t_1 / Float64(Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z))))) + t))); else tmp = Float64(Float64(t / t_1) + Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i; tmp = 0.0; if (y <= -2.35e+47) tmp = x + ((z / y) + ((27464.7644705 / y) / y)); elseif (y <= 3.8e+43) tmp = 1.0 / (t_1 / ((y * (230661.510616 + (y * (27464.7644705 + (y * z))))) + t)); else tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]}, If[LessEqual[y, -2.35e+47], N[(x + N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / y), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.8e+43], N[(1.0 / N[(t$95$1 / N[(N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t / t$95$1), $MachinePrecision] + N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i\\
\mathbf{if}\;y \leq -2.35 \cdot 10^{+47}:\\
\;\;\;\;x + \left(\frac{z}{y} + \frac{\frac{27464.7644705}{y}}{y}\right)\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{+43}:\\
\;\;\;\;\frac{1}{\frac{t_1}{y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right) + t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{t_1} + \left(\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\right)\\
\end{array}
\end{array}
if y < -2.34999999999999982e47Initial program 0.8%
Taylor expanded in y around inf 57.4%
associate--l+57.4%
+-commutative57.4%
associate-*r/57.4%
metadata-eval57.4%
unpow257.4%
unpow257.4%
unpow257.4%
Simplified57.4%
Taylor expanded in b around 0 63.6%
associate--l+63.6%
associate-*r/63.6%
metadata-eval63.6%
unpow263.6%
associate-/l*63.5%
associate--r+63.5%
associate-/l*63.6%
div-sub63.6%
associate-/l*65.8%
unpow265.8%
Simplified65.8%
Taylor expanded in a around 0 71.9%
+-commutative71.9%
associate-*r/71.9%
metadata-eval71.9%
unpow271.9%
associate-/r*71.9%
Simplified71.9%
if -2.34999999999999982e47 < y < 3.80000000000000008e43Initial program 96.1%
clear-num95.9%
inv-pow95.9%
Applied egg-rr95.9%
unpow-195.9%
fma-udef95.9%
*-commutative95.9%
fma-def95.9%
Simplified95.9%
Taylor expanded in x around 0 91.2%
if 3.80000000000000008e43 < y Initial program 5.0%
Taylor expanded in t around 0 5.1%
Taylor expanded in y around inf 73.5%
Final simplification84.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i)))
(if (<= y -5.5e+46)
(+ x (+ (/ z y) (/ (/ 27464.7644705 y) y)))
(if (<= y 1.32e+46)
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* x (* y y)))))))
t_1)
(+ (/ t t_1) (- (+ x (/ z y)) (/ (* x a) y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double tmp;
if (y <= -5.5e+46) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 1.32e+46) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (x * (y * y))))))) / t_1;
} else {
tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / 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) :: t_1
real(8) :: tmp
t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i
if (y <= (-5.5d+46)) then
tmp = x + ((z / y) + ((27464.7644705d0 / y) / y))
else if (y <= 1.32d+46) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (x * (y * y))))))) / t_1
else
tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double tmp;
if (y <= -5.5e+46) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 1.32e+46) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (x * (y * y))))))) / t_1;
} else {
tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i tmp = 0 if y <= -5.5e+46: tmp = x + ((z / y) + ((27464.7644705 / y) / y)) elif y <= 1.32e+46: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (x * (y * y))))))) / t_1 else: tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i) tmp = 0.0 if (y <= -5.5e+46) tmp = Float64(x + Float64(Float64(z / y) + Float64(Float64(27464.7644705 / y) / y))); elseif (y <= 1.32e+46) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(x * Float64(y * y))))))) / t_1); else tmp = Float64(Float64(t / t_1) + Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i; tmp = 0.0; if (y <= -5.5e+46) tmp = x + ((z / y) + ((27464.7644705 / y) / y)); elseif (y <= 1.32e+46) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (x * (y * y))))))) / t_1; else tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]}, If[LessEqual[y, -5.5e+46], N[(x + N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / y), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.32e+46], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(x * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], N[(N[(t / t$95$1), $MachinePrecision] + N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{+46}:\\
\;\;\;\;x + \left(\frac{z}{y} + \frac{\frac{27464.7644705}{y}}{y}\right)\\
\mathbf{elif}\;y \leq 1.32 \cdot 10^{+46}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + x \cdot \left(y \cdot y\right)\right)\right)}{t_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{t_1} + \left(\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\right)\\
\end{array}
\end{array}
if y < -5.4999999999999998e46Initial program 0.8%
Taylor expanded in y around inf 56.3%
associate--l+56.3%
+-commutative56.3%
associate-*r/56.3%
metadata-eval56.3%
unpow256.3%
unpow256.3%
unpow256.3%
Simplified56.3%
Taylor expanded in b around 0 62.4%
associate--l+62.4%
associate-*r/62.4%
metadata-eval62.4%
unpow262.4%
associate-/l*62.3%
associate--r+62.3%
associate-/l*62.4%
div-sub62.4%
associate-/l*64.5%
unpow264.5%
Simplified64.5%
Taylor expanded in a around 0 70.5%
+-commutative70.5%
associate-*r/70.5%
metadata-eval70.5%
unpow270.5%
associate-/r*70.5%
Simplified70.5%
if -5.4999999999999998e46 < y < 1.32e46Initial program 96.7%
Taylor expanded in z around 0 92.2%
unpow292.2%
Simplified92.2%
if 1.32e46 < y Initial program 2.9%
Taylor expanded in t around 0 2.9%
Taylor expanded in y around inf 75.1%
Final simplification84.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i)))
(if (<= y -1.5e+47)
(+ x (+ (/ z y) (/ (/ 27464.7644705 y) y)))
(if (<= y 2.5e+38)
(/ (+ t (* y (+ 230661.510616 (* z (* y y))))) t_1)
(+ (/ t t_1) (- (+ x (/ z y)) (/ (* x a) y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double tmp;
if (y <= -1.5e+47) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 2.5e+38) {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / t_1;
} else {
tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / 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) :: t_1
real(8) :: tmp
t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i
if (y <= (-1.5d+47)) then
tmp = x + ((z / y) + ((27464.7644705d0 / y) / y))
else if (y <= 2.5d+38) then
tmp = (t + (y * (230661.510616d0 + (z * (y * y))))) / t_1
else
tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i;
double tmp;
if (y <= -1.5e+47) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 2.5e+38) {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / t_1;
} else {
tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i tmp = 0 if y <= -1.5e+47: tmp = x + ((z / y) + ((27464.7644705 / y) / y)) elif y <= 2.5e+38: tmp = (t + (y * (230661.510616 + (z * (y * y))))) / t_1 else: tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i) tmp = 0.0 if (y <= -1.5e+47) tmp = Float64(x + Float64(Float64(z / y) + Float64(Float64(27464.7644705 / y) / y))); elseif (y <= 2.5e+38) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(z * Float64(y * y))))) / t_1); else tmp = Float64(Float64(t / t_1) + Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (y * ((y * ((y * (y + a)) + b)) + c)) + i; tmp = 0.0; if (y <= -1.5e+47) tmp = x + ((z / y) + ((27464.7644705 / y) / y)); elseif (y <= 2.5e+38) tmp = (t + (y * (230661.510616 + (z * (y * y))))) / t_1; else tmp = (t / t_1) + ((x + (z / y)) - ((x * a) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]}, If[LessEqual[y, -1.5e+47], N[(x + N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / y), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.5e+38], N[(N[(t + N[(y * N[(230661.510616 + N[(z * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], N[(N[(t / t$95$1), $MachinePrecision] + N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i\\
\mathbf{if}\;y \leq -1.5 \cdot 10^{+47}:\\
\;\;\;\;x + \left(\frac{z}{y} + \frac{\frac{27464.7644705}{y}}{y}\right)\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{+38}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + z \cdot \left(y \cdot y\right)\right)}{t_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{t_1} + \left(\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\right)\\
\end{array}
\end{array}
if y < -1.5000000000000001e47Initial program 0.8%
Taylor expanded in y around inf 57.4%
associate--l+57.4%
+-commutative57.4%
associate-*r/57.4%
metadata-eval57.4%
unpow257.4%
unpow257.4%
unpow257.4%
Simplified57.4%
Taylor expanded in b around 0 63.6%
associate--l+63.6%
associate-*r/63.6%
metadata-eval63.6%
unpow263.6%
associate-/l*63.5%
associate--r+63.5%
associate-/l*63.6%
div-sub63.6%
associate-/l*65.8%
unpow265.8%
Simplified65.8%
Taylor expanded in a around 0 71.9%
+-commutative71.9%
associate-*r/71.9%
metadata-eval71.9%
unpow271.9%
associate-/r*71.9%
Simplified71.9%
if -1.5000000000000001e47 < y < 2.49999999999999985e38Initial program 96.1%
Taylor expanded in z around inf 89.4%
*-commutative89.4%
unpow289.4%
Simplified89.4%
if 2.49999999999999985e38 < y Initial program 5.0%
Taylor expanded in t around 0 5.1%
Taylor expanded in y around inf 73.5%
Final simplification83.2%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -3.8e+47)
(+ x (+ (/ z y) (/ (/ 27464.7644705 y) y)))
(if (<= y 1.5e+42)
(/
(+ t (* y (+ 230661.510616 (* z (* y y)))))
(+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))
(+ x (- (/ z y) (/ a (/ y 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+47) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 1.5e+42) {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = x + ((z / y) - (a / (y / 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+47)) then
tmp = x + ((z / y) + ((27464.7644705d0 / y) / y))
else if (y <= 1.5d+42) then
tmp = (t + (y * (230661.510616d0 + (z * (y * y))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)
else
tmp = x + ((z / y) - (a / (y / 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+47) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 1.5e+42) {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = x + ((z / y) - (a / (y / x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -3.8e+47: tmp = x + ((z / y) + ((27464.7644705 / y) / y)) elif y <= 1.5e+42: tmp = (t + (y * (230661.510616 + (z * (y * y))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) else: tmp = x + ((z / y) - (a / (y / x))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -3.8e+47) tmp = Float64(x + Float64(Float64(z / y) + Float64(Float64(27464.7644705 / y) / y))); elseif (y <= 1.5e+42) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(z * Float64(y * y))))) / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)); else tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -3.8e+47) tmp = x + ((z / y) + ((27464.7644705 / y) / y)); elseif (y <= 1.5e+42) tmp = (t + (y * (230661.510616 + (z * (y * y))))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i); else tmp = x + ((z / y) - (a / (y / x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -3.8e+47], N[(x + N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / y), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.5e+42], N[(N[(t + N[(y * N[(230661.510616 + N[(z * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.8 \cdot 10^{+47}:\\
\;\;\;\;x + \left(\frac{z}{y} + \frac{\frac{27464.7644705}{y}}{y}\right)\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{+42}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + z \cdot \left(y \cdot y\right)\right)}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\end{array}
\end{array}
if y < -3.8000000000000003e47Initial program 0.8%
Taylor expanded in y around inf 57.4%
associate--l+57.4%
+-commutative57.4%
associate-*r/57.4%
metadata-eval57.4%
unpow257.4%
unpow257.4%
unpow257.4%
Simplified57.4%
Taylor expanded in b around 0 63.6%
associate--l+63.6%
associate-*r/63.6%
metadata-eval63.6%
unpow263.6%
associate-/l*63.5%
associate--r+63.5%
associate-/l*63.6%
div-sub63.6%
associate-/l*65.8%
unpow265.8%
Simplified65.8%
Taylor expanded in a around 0 71.9%
+-commutative71.9%
associate-*r/71.9%
metadata-eval71.9%
unpow271.9%
associate-/r*71.9%
Simplified71.9%
if -3.8000000000000003e47 < y < 1.50000000000000014e42Initial program 96.1%
Taylor expanded in z around inf 89.4%
*-commutative89.4%
unpow289.4%
Simplified89.4%
if 1.50000000000000014e42 < y Initial program 5.0%
Taylor expanded in y around inf 71.4%
associate--l+71.4%
associate-/l*72.5%
Simplified72.5%
Final simplification83.0%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -1.56e+47)
(+ x (+ (/ z y) (/ (/ 27464.7644705 y) y)))
(if (<= y 7e+40)
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))
(+ x (- (/ z y) (/ a (/ y x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.56e+47) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 7e+40) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = x + ((z / y) - (a / (y / x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-1.56d+47)) then
tmp = x + ((z / y) + ((27464.7644705d0 / y) / y))
else if (y <= 7d+40) then
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)
else
tmp = x + ((z / y) - (a / (y / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.56e+47) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 7e+40) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = x + ((z / y) - (a / (y / x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.56e+47: tmp = x + ((z / y) + ((27464.7644705 / y) / y)) elif y <= 7e+40: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) else: tmp = x + ((z / y) - (a / (y / x))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.56e+47) tmp = Float64(x + Float64(Float64(z / y) + Float64(Float64(27464.7644705 / y) / y))); elseif (y <= 7e+40) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)); else tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -1.56e+47) tmp = x + ((z / y) + ((27464.7644705 / y) / y)); elseif (y <= 7e+40) tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i); else tmp = x + ((z / y) - (a / (y / x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.56e+47], N[(x + N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / y), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e+40], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.56 \cdot 10^{+47}:\\
\;\;\;\;x + \left(\frac{z}{y} + \frac{\frac{27464.7644705}{y}}{y}\right)\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+40}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\end{array}
\end{array}
if y < -1.55999999999999998e47Initial program 0.8%
Taylor expanded in y around inf 57.4%
associate--l+57.4%
+-commutative57.4%
associate-*r/57.4%
metadata-eval57.4%
unpow257.4%
unpow257.4%
unpow257.4%
Simplified57.4%
Taylor expanded in b around 0 63.6%
associate--l+63.6%
associate-*r/63.6%
metadata-eval63.6%
unpow263.6%
associate-/l*63.5%
associate--r+63.5%
associate-/l*63.6%
div-sub63.6%
associate-/l*65.8%
unpow265.8%
Simplified65.8%
Taylor expanded in a around 0 71.9%
+-commutative71.9%
associate-*r/71.9%
metadata-eval71.9%
unpow271.9%
associate-/r*71.9%
Simplified71.9%
if -1.55999999999999998e47 < y < 6.9999999999999998e40Initial program 96.1%
Taylor expanded in y around 0 87.3%
*-commutative87.3%
Simplified87.3%
if 6.9999999999999998e40 < y Initial program 5.0%
Taylor expanded in y around inf 71.4%
associate--l+71.4%
associate-/l*72.5%
Simplified72.5%
Final simplification81.7%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -6.2e+46)
(+ x (+ (/ z y) (/ (/ 27464.7644705 y) y)))
(if (<= y 1.85e+39)
(/ (+ t (* y 230661.510616)) (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))
(+ x (- (/ z y) (/ a (/ y x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -6.2e+46) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 1.85e+39) {
tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = x + ((z / y) - (a / (y / 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 <= (-6.2d+46)) then
tmp = x + ((z / y) + ((27464.7644705d0 / y) / y))
else if (y <= 1.85d+39) then
tmp = (t + (y * 230661.510616d0)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)
else
tmp = x + ((z / y) - (a / (y / 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 <= -6.2e+46) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 1.85e+39) {
tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = x + ((z / y) - (a / (y / x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -6.2e+46: tmp = x + ((z / y) + ((27464.7644705 / y) / y)) elif y <= 1.85e+39: tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) else: tmp = x + ((z / y) - (a / (y / x))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -6.2e+46) tmp = Float64(x + Float64(Float64(z / y) + Float64(Float64(27464.7644705 / y) / y))); elseif (y <= 1.85e+39) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)); else tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -6.2e+46) tmp = x + ((z / y) + ((27464.7644705 / y) / y)); elseif (y <= 1.85e+39) tmp = (t + (y * 230661.510616)) / ((y * ((y * ((y * (y + a)) + b)) + c)) + i); else tmp = x + ((z / y) - (a / (y / x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -6.2e+46], N[(x + N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / y), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.85e+39], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.2 \cdot 10^{+46}:\\
\;\;\;\;x + \left(\frac{z}{y} + \frac{\frac{27464.7644705}{y}}{y}\right)\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{+39}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\end{array}
\end{array}
if y < -6.1999999999999995e46Initial program 0.8%
Taylor expanded in y around inf 57.4%
associate--l+57.4%
+-commutative57.4%
associate-*r/57.4%
metadata-eval57.4%
unpow257.4%
unpow257.4%
unpow257.4%
Simplified57.4%
Taylor expanded in b around 0 63.6%
associate--l+63.6%
associate-*r/63.6%
metadata-eval63.6%
unpow263.6%
associate-/l*63.5%
associate--r+63.5%
associate-/l*63.6%
div-sub63.6%
associate-/l*65.8%
unpow265.8%
Simplified65.8%
Taylor expanded in a around 0 71.9%
+-commutative71.9%
associate-*r/71.9%
metadata-eval71.9%
unpow271.9%
associate-/r*71.9%
Simplified71.9%
if -6.1999999999999995e46 < y < 1.85000000000000006e39Initial program 96.1%
Taylor expanded in y around 0 85.2%
*-commutative85.2%
Simplified85.2%
if 1.85000000000000006e39 < y Initial program 5.0%
Taylor expanded in y around inf 71.4%
associate--l+71.4%
associate-/l*72.5%
Simplified72.5%
Final simplification80.4%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -1.9e+47)
(+ x (+ (/ z y) (/ (/ 27464.7644705 y) y)))
(if (<= y 2.05e+36)
(/ t (+ (* y (+ (* y (+ (* y (+ y a)) b)) c)) i))
(+ x (- (/ z y) (/ a (/ y x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.9e+47) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 2.05e+36) {
tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = x + ((z / y) - (a / (y / x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-1.9d+47)) then
tmp = x + ((z / y) + ((27464.7644705d0 / y) / y))
else if (y <= 2.05d+36) then
tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i)
else
tmp = x + ((z / y) - (a / (y / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.9e+47) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 2.05e+36) {
tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i);
} else {
tmp = x + ((z / y) - (a / (y / x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.9e+47: tmp = x + ((z / y) + ((27464.7644705 / y) / y)) elif y <= 2.05e+36: tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i) else: tmp = x + ((z / y) - (a / (y / x))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.9e+47) tmp = Float64(x + Float64(Float64(z / y) + Float64(Float64(27464.7644705 / y) / y))); elseif (y <= 2.05e+36) tmp = Float64(t / Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) + i)); else tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -1.9e+47) tmp = x + ((z / y) + ((27464.7644705 / y) / y)); elseif (y <= 2.05e+36) tmp = t / ((y * ((y * ((y * (y + a)) + b)) + c)) + i); else tmp = x + ((z / y) - (a / (y / x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.9e+47], N[(x + N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / y), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.05e+36], N[(t / N[(N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.9 \cdot 10^{+47}:\\
\;\;\;\;x + \left(\frac{z}{y} + \frac{\frac{27464.7644705}{y}}{y}\right)\\
\mathbf{elif}\;y \leq 2.05 \cdot 10^{+36}:\\
\;\;\;\;\frac{t}{y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right) + i}\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\end{array}
\end{array}
if y < -1.9000000000000002e47Initial program 0.8%
Taylor expanded in y around inf 57.4%
associate--l+57.4%
+-commutative57.4%
associate-*r/57.4%
metadata-eval57.4%
unpow257.4%
unpow257.4%
unpow257.4%
Simplified57.4%
Taylor expanded in b around 0 63.6%
associate--l+63.6%
associate-*r/63.6%
metadata-eval63.6%
unpow263.6%
associate-/l*63.5%
associate--r+63.5%
associate-/l*63.6%
div-sub63.6%
associate-/l*65.8%
unpow265.8%
Simplified65.8%
Taylor expanded in a around 0 71.9%
+-commutative71.9%
associate-*r/71.9%
metadata-eval71.9%
unpow271.9%
associate-/r*71.9%
Simplified71.9%
if -1.9000000000000002e47 < y < 2.05000000000000006e36Initial program 96.1%
Taylor expanded in t around inf 72.1%
if 2.05000000000000006e36 < y Initial program 5.0%
Taylor expanded in y around inf 71.4%
associate--l+71.4%
associate-/l*72.5%
Simplified72.5%
Final simplification72.1%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -6.2e+46) (+ x (+ (/ z y) (/ (/ 27464.7644705 y) y))) (if (<= y 1.9e+29) (/ t (+ i (* y c))) (+ x (- (/ z y) (/ a (/ y x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -6.2e+46) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 1.9e+29) {
tmp = t / (i + (y * c));
} else {
tmp = x + ((z / y) - (a / (y / 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 <= (-6.2d+46)) then
tmp = x + ((z / y) + ((27464.7644705d0 / y) / y))
else if (y <= 1.9d+29) then
tmp = t / (i + (y * c))
else
tmp = x + ((z / y) - (a / (y / 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 <= -6.2e+46) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 1.9e+29) {
tmp = t / (i + (y * c));
} else {
tmp = x + ((z / y) - (a / (y / x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -6.2e+46: tmp = x + ((z / y) + ((27464.7644705 / y) / y)) elif y <= 1.9e+29: tmp = t / (i + (y * c)) else: tmp = x + ((z / y) - (a / (y / x))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -6.2e+46) tmp = Float64(x + Float64(Float64(z / y) + Float64(Float64(27464.7644705 / y) / y))); elseif (y <= 1.9e+29) tmp = Float64(t / Float64(i + Float64(y * c))); else tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -6.2e+46) tmp = x + ((z / y) + ((27464.7644705 / y) / y)); elseif (y <= 1.9e+29) tmp = t / (i + (y * c)); else tmp = x + ((z / y) - (a / (y / x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -6.2e+46], N[(x + N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / y), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.9e+29], N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.2 \cdot 10^{+46}:\\
\;\;\;\;x + \left(\frac{z}{y} + \frac{\frac{27464.7644705}{y}}{y}\right)\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{+29}:\\
\;\;\;\;\frac{t}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\end{array}
\end{array}
if y < -6.1999999999999995e46Initial program 0.8%
Taylor expanded in y around inf 57.4%
associate--l+57.4%
+-commutative57.4%
associate-*r/57.4%
metadata-eval57.4%
unpow257.4%
unpow257.4%
unpow257.4%
Simplified57.4%
Taylor expanded in b around 0 63.6%
associate--l+63.6%
associate-*r/63.6%
metadata-eval63.6%
unpow263.6%
associate-/l*63.5%
associate--r+63.5%
associate-/l*63.6%
div-sub63.6%
associate-/l*65.8%
unpow265.8%
Simplified65.8%
Taylor expanded in a around 0 71.9%
+-commutative71.9%
associate-*r/71.9%
metadata-eval71.9%
unpow271.9%
associate-/r*71.9%
Simplified71.9%
if -6.1999999999999995e46 < y < 1.89999999999999985e29Initial program 96.1%
Taylor expanded in t around inf 72.1%
Taylor expanded in y around 0 64.1%
*-commutative64.1%
Simplified64.1%
if 1.89999999999999985e29 < y Initial program 5.0%
Taylor expanded in y around inf 71.4%
associate--l+71.4%
associate-/l*72.5%
Simplified72.5%
Final simplification67.1%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -6.2e+46)
(+ x (+ (/ z y) (/ (/ 27464.7644705 y) y)))
(if (<= y 2.1e+36)
(/ t (+ i (* y (+ c (* y b)))))
(+ x (- (/ z y) (/ a (/ y x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -6.2e+46) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 2.1e+36) {
tmp = t / (i + (y * (c + (y * b))));
} else {
tmp = x + ((z / y) - (a / (y / 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 <= (-6.2d+46)) then
tmp = x + ((z / y) + ((27464.7644705d0 / y) / y))
else if (y <= 2.1d+36) then
tmp = t / (i + (y * (c + (y * b))))
else
tmp = x + ((z / y) - (a / (y / 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 <= -6.2e+46) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 2.1e+36) {
tmp = t / (i + (y * (c + (y * b))));
} else {
tmp = x + ((z / y) - (a / (y / x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -6.2e+46: tmp = x + ((z / y) + ((27464.7644705 / y) / y)) elif y <= 2.1e+36: tmp = t / (i + (y * (c + (y * b)))) else: tmp = x + ((z / y) - (a / (y / x))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -6.2e+46) tmp = Float64(x + Float64(Float64(z / y) + Float64(Float64(27464.7644705 / y) / y))); elseif (y <= 2.1e+36) tmp = Float64(t / Float64(i + Float64(y * Float64(c + Float64(y * b))))); else tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -6.2e+46) tmp = x + ((z / y) + ((27464.7644705 / y) / y)); elseif (y <= 2.1e+36) tmp = t / (i + (y * (c + (y * b)))); else tmp = x + ((z / y) - (a / (y / x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -6.2e+46], N[(x + N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / y), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.1e+36], N[(t / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.2 \cdot 10^{+46}:\\
\;\;\;\;x + \left(\frac{z}{y} + \frac{\frac{27464.7644705}{y}}{y}\right)\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{+36}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\end{array}
\end{array}
if y < -6.1999999999999995e46Initial program 0.8%
Taylor expanded in y around inf 57.4%
associate--l+57.4%
+-commutative57.4%
associate-*r/57.4%
metadata-eval57.4%
unpow257.4%
unpow257.4%
unpow257.4%
Simplified57.4%
Taylor expanded in b around 0 63.6%
associate--l+63.6%
associate-*r/63.6%
metadata-eval63.6%
unpow263.6%
associate-/l*63.5%
associate--r+63.5%
associate-/l*63.6%
div-sub63.6%
associate-/l*65.8%
unpow265.8%
Simplified65.8%
Taylor expanded in a around 0 71.9%
+-commutative71.9%
associate-*r/71.9%
metadata-eval71.9%
unpow271.9%
associate-/r*71.9%
Simplified71.9%
if -6.1999999999999995e46 < y < 2.10000000000000004e36Initial program 96.1%
Taylor expanded in t around inf 72.1%
Taylor expanded in y around 0 69.9%
*-commutative69.9%
Simplified69.9%
if 2.10000000000000004e36 < y Initial program 5.0%
Taylor expanded in y around inf 71.4%
associate--l+71.4%
associate-/l*72.5%
Simplified72.5%
Final simplification70.7%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -6.2e+46) (not (<= y 1.2e+37))) (+ x (/ (- z (* x a)) y)) (/ t (+ 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 <= -6.2e+46) || !(y <= 1.2e+37)) {
tmp = x + ((z - (x * a)) / y);
} else {
tmp = t / (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 <= (-6.2d+46)) .or. (.not. (y <= 1.2d+37))) then
tmp = x + ((z - (x * a)) / y)
else
tmp = t / (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 <= -6.2e+46) || !(y <= 1.2e+37)) {
tmp = x + ((z - (x * a)) / y);
} else {
tmp = t / (i + (y * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -6.2e+46) or not (y <= 1.2e+37): tmp = x + ((z - (x * a)) / y) else: tmp = t / (i + (y * c)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -6.2e+46) || !(y <= 1.2e+37)) tmp = Float64(x + Float64(Float64(z - Float64(x * a)) / y)); else tmp = Float64(t / 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 <= -6.2e+46) || ~((y <= 1.2e+37))) tmp = x + ((z - (x * a)) / y); else tmp = t / (i + (y * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -6.2e+46], N[Not[LessEqual[y, 1.2e+37]], $MachinePrecision]], N[(x + N[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.2 \cdot 10^{+46} \lor \neg \left(y \leq 1.2 \cdot 10^{+37}\right):\\
\;\;\;\;x + \frac{z - x \cdot a}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i + y \cdot c}\\
\end{array}
\end{array}
if y < -6.1999999999999995e46 or 1.2e37 < y Initial program 2.8%
Taylor expanded in y around inf 57.9%
associate--l+57.9%
+-commutative57.9%
associate-*r/57.9%
metadata-eval57.9%
unpow257.9%
unpow257.9%
unpow257.9%
Simplified57.9%
Taylor expanded in y around inf 68.3%
if -6.1999999999999995e46 < y < 1.2e37Initial program 96.1%
Taylor expanded in t around inf 72.1%
Taylor expanded in y around 0 64.1%
*-commutative64.1%
Simplified64.1%
Final simplification65.7%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -6.4e+46) (+ x (+ (/ z y) (/ (/ 27464.7644705 y) y))) (if (<= y 5.2e+35) (/ t (+ i (* y c))) (+ x (/ (- z (* x a)) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -6.4e+46) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 5.2e+35) {
tmp = t / (i + (y * c));
} else {
tmp = x + ((z - (x * a)) / 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 <= (-6.4d+46)) then
tmp = x + ((z / y) + ((27464.7644705d0 / y) / y))
else if (y <= 5.2d+35) then
tmp = t / (i + (y * c))
else
tmp = x + ((z - (x * a)) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -6.4e+46) {
tmp = x + ((z / y) + ((27464.7644705 / y) / y));
} else if (y <= 5.2e+35) {
tmp = t / (i + (y * c));
} else {
tmp = x + ((z - (x * a)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -6.4e+46: tmp = x + ((z / y) + ((27464.7644705 / y) / y)) elif y <= 5.2e+35: tmp = t / (i + (y * c)) else: tmp = x + ((z - (x * a)) / y) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -6.4e+46) tmp = Float64(x + Float64(Float64(z / y) + Float64(Float64(27464.7644705 / y) / y))); elseif (y <= 5.2e+35) tmp = Float64(t / Float64(i + Float64(y * c))); else tmp = Float64(x + Float64(Float64(z - Float64(x * a)) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -6.4e+46) tmp = x + ((z / y) + ((27464.7644705 / y) / y)); elseif (y <= 5.2e+35) tmp = t / (i + (y * c)); else tmp = x + ((z - (x * a)) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -6.4e+46], N[(x + N[(N[(z / y), $MachinePrecision] + N[(N[(27464.7644705 / y), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.2e+35], N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.4 \cdot 10^{+46}:\\
\;\;\;\;x + \left(\frac{z}{y} + \frac{\frac{27464.7644705}{y}}{y}\right)\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{+35}:\\
\;\;\;\;\frac{t}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z - x \cdot a}{y}\\
\end{array}
\end{array}
if y < -6.3999999999999996e46Initial program 0.8%
Taylor expanded in y around inf 57.4%
associate--l+57.4%
+-commutative57.4%
associate-*r/57.4%
metadata-eval57.4%
unpow257.4%
unpow257.4%
unpow257.4%
Simplified57.4%
Taylor expanded in b around 0 63.6%
associate--l+63.6%
associate-*r/63.6%
metadata-eval63.6%
unpow263.6%
associate-/l*63.5%
associate--r+63.5%
associate-/l*63.6%
div-sub63.6%
associate-/l*65.8%
unpow265.8%
Simplified65.8%
Taylor expanded in a around 0 71.9%
+-commutative71.9%
associate-*r/71.9%
metadata-eval71.9%
unpow271.9%
associate-/r*71.9%
Simplified71.9%
if -6.3999999999999996e46 < y < 5.20000000000000013e35Initial program 96.1%
Taylor expanded in t around inf 72.1%
Taylor expanded in y around 0 64.1%
*-commutative64.1%
Simplified64.1%
if 5.20000000000000013e35 < y Initial program 5.0%
Taylor expanded in y around inf 58.5%
associate--l+58.5%
+-commutative58.5%
associate-*r/58.5%
metadata-eval58.5%
unpow258.5%
unpow258.5%
unpow258.5%
Simplified58.5%
Taylor expanded in y around inf 71.4%
Final simplification66.9%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -2.7e+87) x (if (<= y 5.1e-9) (/ t i) (- x (/ (* x a) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -2.7e+87) {
tmp = x;
} else if (y <= 5.1e-9) {
tmp = t / i;
} else {
tmp = x - ((x * a) / 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.7d+87)) then
tmp = x
else if (y <= 5.1d-9) then
tmp = t / i
else
tmp = x - ((x * a) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -2.7e+87) {
tmp = x;
} else if (y <= 5.1e-9) {
tmp = t / i;
} else {
tmp = x - ((x * a) / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -2.7e+87: tmp = x elif y <= 5.1e-9: tmp = t / i else: tmp = x - ((x * a) / y) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -2.7e+87) tmp = x; elseif (y <= 5.1e-9) tmp = Float64(t / i); else tmp = Float64(x - Float64(Float64(x * a) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -2.7e+87) tmp = x; elseif (y <= 5.1e-9) tmp = t / i; else tmp = x - ((x * a) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -2.7e+87], x, If[LessEqual[y, 5.1e-9], N[(t / i), $MachinePrecision], N[(x - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{+87}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 5.1 \cdot 10^{-9}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x \cdot a}{y}\\
\end{array}
\end{array}
if y < -2.70000000000000007e87Initial program 0.4%
Taylor expanded in y around inf 67.4%
if -2.70000000000000007e87 < y < 5.10000000000000017e-9Initial program 96.0%
Taylor expanded in y around 0 49.2%
if 5.10000000000000017e-9 < y Initial program 20.9%
Taylor expanded in x around inf 5.0%
Taylor expanded in y around inf 47.3%
mul-1-neg47.3%
unsub-neg47.3%
Simplified47.3%
Final simplification52.1%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -2.7e+87) x (if (<= y 5e+31) (/ t (+ i (* y c))) (- x (/ (* x a) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -2.7e+87) {
tmp = x;
} else if (y <= 5e+31) {
tmp = t / (i + (y * c));
} else {
tmp = x - ((x * a) / 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.7d+87)) then
tmp = x
else if (y <= 5d+31) then
tmp = t / (i + (y * c))
else
tmp = x - ((x * a) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -2.7e+87) {
tmp = x;
} else if (y <= 5e+31) {
tmp = t / (i + (y * c));
} else {
tmp = x - ((x * a) / y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -2.7e+87: tmp = x elif y <= 5e+31: tmp = t / (i + (y * c)) else: tmp = x - ((x * a) / y) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -2.7e+87) tmp = x; elseif (y <= 5e+31) tmp = Float64(t / Float64(i + Float64(y * c))); else tmp = Float64(x - Float64(Float64(x * a) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -2.7e+87) tmp = x; elseif (y <= 5e+31) tmp = t / (i + (y * c)); else tmp = x - ((x * a) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -2.7e+87], x, If[LessEqual[y, 5e+31], N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{+87}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 5 \cdot 10^{+31}:\\
\;\;\;\;\frac{t}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x \cdot a}{y}\\
\end{array}
\end{array}
if y < -2.70000000000000007e87Initial program 0.4%
Taylor expanded in y around inf 67.4%
if -2.70000000000000007e87 < y < 5.00000000000000027e31Initial program 93.9%
Taylor expanded in t around inf 70.5%
Taylor expanded in y around 0 62.7%
*-commutative62.7%
Simplified62.7%
if 5.00000000000000027e31 < y Initial program 5.0%
Taylor expanded in x around inf 1.2%
Taylor expanded in y around inf 60.8%
mul-1-neg60.8%
unsub-neg60.8%
Simplified60.8%
Final simplification63.2%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -2.7e+87) x (if (<= y 1.45e-35) (/ 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 <= -2.7e+87) {
tmp = x;
} else if (y <= 1.45e-35) {
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 <= (-2.7d+87)) then
tmp = x
else if (y <= 1.45d-35) 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 <= -2.7e+87) {
tmp = x;
} else if (y <= 1.45e-35) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -2.7e+87: tmp = x elif y <= 1.45e-35: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -2.7e+87) tmp = x; elseif (y <= 1.45e-35) 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 <= -2.7e+87) tmp = x; elseif (y <= 1.45e-35) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -2.7e+87], x, If[LessEqual[y, 1.45e-35], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{+87}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{-35}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -2.70000000000000007e87 or 1.4500000000000001e-35 < y Initial program 12.7%
Taylor expanded in y around inf 55.6%
if -2.70000000000000007e87 < y < 1.4500000000000001e-35Initial program 95.9%
Taylor expanded in y around 0 49.5%
Final simplification52.0%
(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 61.5%
Taylor expanded in y around inf 25.2%
Final simplification25.2%
herbie shell --seed 2023275
(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)))