
(FPCore (x y z t a b c i) :precision binary64 (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i): return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i): return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ i (* y (+ (* y (+ (* y (+ y a)) b)) c))))
(t_2
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616))))
(if (<= (/ (+ t t_2) t_1) INFINITY)
(+ (/ t t_1) (/ 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 * ((y * ((y * (y + a)) + b)) + c));
double t_2 = y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616);
double tmp;
if (((t + t_2) / t_1) <= ((double) INFINITY)) {
tmp = (t / t_1) + (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 * ((y * ((y * (y + a)) + b)) + c));
double t_2 = y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616);
double tmp;
if (((t + t_2) / t_1) <= Double.POSITIVE_INFINITY) {
tmp = (t / t_1) + (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 * ((y * ((y * (y + a)) + b)) + c)) t_2 = y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616) tmp = 0 if ((t + t_2) / t_1) <= math.inf: tmp = (t / t_1) + (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(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c))) t_2 = Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616)) tmp = 0.0 if (Float64(Float64(t + t_2) / t_1) <= Inf) tmp = Float64(Float64(t / t_1) + 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 * ((y * ((y * (y + a)) + b)) + c)); t_2 = y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616); tmp = 0.0; if (((t + t_2) / t_1) <= Inf) tmp = (t / t_1) + (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[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(t + t$95$2), $MachinePrecision] / t$95$1), $MachinePrecision], Infinity], N[(N[(t / t$95$1), $MachinePrecision] + N[(t$95$2 / t$95$1), $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(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)\\
t_2 := y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right)\\
\mathbf{if}\;\frac{t + t\_2}{t\_1} \leq \infty:\\
\;\;\;\;\frac{t}{t\_1} + \frac{t\_2}{t\_1}\\
\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 94.9%
Taylor expanded in t around 0 94.9%
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 a around inf 0.0%
Taylor expanded in y around inf 69.9%
associate--l+69.9%
associate-/l*71.9%
Simplified71.9%
Final simplification86.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1
(/
(+
t
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616)))
(+ i (* y (+ (* y (+ (* y (+ y a)) b)) c))))))
(if (<= t_1 INFINITY) 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 = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = 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 = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = x + ((z / y) - (a * (x / y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (i + (y * ((y * ((y * (y + a)) + b)) + c))) tmp = 0 if t_1 <= math.inf: tmp = 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(Float64(t + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616))) / Float64(i + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)))) tmp = 0.0 if (t_1 <= Inf) tmp = 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 = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / (i + (y * ((y * ((y * (y + a)) + b)) + c))); tmp = 0.0; if (t_1 <= Inf) tmp = 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[(N[(t + N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right)}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\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 94.9%
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 a around inf 0.0%
Taylor expanded in y around inf 69.9%
associate--l+69.9%
associate-/l*71.9%
Simplified71.9%
Final simplification86.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* y (+ (* y (+ (* y (+ y a)) b)) c)))
(t_2 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -4.9e+63)
t_2
(if (<= y -0.0013)
(/
(+
t
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616)))
t_1)
(if (<= y 4e+64)
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ i t_1))
t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = y * ((y * ((y * (y + a)) + b)) + c);
double t_2 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -4.9e+63) {
tmp = t_2;
} else if (y <= -0.0013) {
tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / t_1;
} else if (y <= 4e+64) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((y * ((y * (y + a)) + b)) + c)
t_2 = x + ((z / y) - (a * (x / y)))
if (y <= (-4.9d+63)) then
tmp = t_2
else if (y <= (-0.0013d0)) then
tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705d0)) + 230661.510616d0))) / t_1
else if (y <= 4d+64) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (i + t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = y * ((y * ((y * (y + a)) + b)) + c);
double t_2 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -4.9e+63) {
tmp = t_2;
} else if (y <= -0.0013) {
tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / t_1;
} else if (y <= 4e+64) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = y * ((y * ((y * (y + a)) + b)) + c) t_2 = x + ((z / y) - (a * (x / y))) tmp = 0 if y <= -4.9e+63: tmp = t_2 elif y <= -0.0013: tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / t_1 elif y <= 4e+64: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)) t_2 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -4.9e+63) tmp = t_2; elseif (y <= -0.0013) tmp = Float64(Float64(t + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616))) / t_1); elseif (y <= 4e+64) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(i + t_1)); else tmp = t_2; 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); t_2 = x + ((z / y) - (a * (x / y))); tmp = 0.0; if (y <= -4.9e+63) tmp = t_2; elseif (y <= -0.0013) tmp = (t + (y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616))) / t_1; elseif (y <= 4e+64) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.9e+63], t$95$2, If[LessEqual[y, -0.0013], N[(N[(t + N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[y, 4e+64], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)\\
t_2 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -4.9 \cdot 10^{+63}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -0.0013:\\
\;\;\;\;\frac{t + y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right)}{t\_1}\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+64}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i + t\_1}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -4.8999999999999997e63 or 4.00000000000000009e64 < y Initial program 4.1%
Taylor expanded in a around inf 3.1%
Taylor expanded in y around inf 70.5%
associate--l+70.5%
associate-/l*72.4%
Simplified72.4%
if -4.8999999999999997e63 < y < -0.0012999999999999999Initial program 74.0%
Taylor expanded in i around 0 67.7%
if -0.0012999999999999999 < y < 4.00000000000000009e64Initial program 96.9%
Taylor expanded in x around 0 94.3%
Final simplification84.2%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.22e+67) (not (<= y 1.65e+64)))
(+ x (- (/ z y) (* a (/ x y))))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ i (* y (+ (* y (+ (* y (+ y a)) b)) c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.22e+67) || !(y <= 1.65e+64)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * ((y * ((y * (y + a)) + b)) + 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 <= (-1.22d+67)) .or. (.not. (y <= 1.65d+64))) then
tmp = x + ((z / y) - (a * (x / y)))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (i + (y * ((y * ((y * (y + a)) + b)) + 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 <= -1.22e+67) || !(y <= 1.65e+64)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.22e+67) or not (y <= 1.65e+64): tmp = x + ((z / y) - (a * (x / y))) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * ((y * ((y * (y + a)) + b)) + c))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.22e+67) || !(y <= 1.65e+64)) 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 * z)))))) / Float64(i + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.22e+67) || ~((y <= 1.65e+64))) tmp = x + ((z / y) - (a * (x / y))); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * ((y * ((y * (y + a)) + b)) + c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.22e+67], N[Not[LessEqual[y, 1.65e+64]], $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 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.22 \cdot 10^{+67} \lor \neg \left(y \leq 1.65 \cdot 10^{+64}\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 z\right)\right)}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\
\end{array}
\end{array}
if y < -1.22000000000000004e67 or 1.64999999999999994e64 < y Initial program 4.1%
Taylor expanded in a around inf 3.1%
Taylor expanded in y around inf 70.5%
associate--l+70.5%
associate-/l*72.4%
Simplified72.4%
if -1.22000000000000004e67 < y < 1.64999999999999994e64Initial program 94.7%
Taylor expanded in x around 0 89.1%
Final simplification82.6%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -7.5e+63) (not (<= y 3.15e+50)))
(+ x (- (/ z y) (* a (/ x y))))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ 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 <= -7.5e+63) || !(y <= 3.15e+50)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (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 <= (-7.5d+63)) .or. (.not. (y <= 3.15d+50))) then
tmp = x + ((z / y) - (a * (x / y)))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (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 <= -7.5e+63) || !(y <= 3.15e+50)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -7.5e+63) or not (y <= 3.15e+50): tmp = x + ((z / y) - (a * (x / y))) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * a)))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -7.5e+63) || !(y <= 3.15e+50)) 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 * z)))))) / 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 <= -7.5e+63) || ~((y <= 3.15e+50))) tmp = x + ((z / y) - (a * (x / y))); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (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, -7.5e+63], N[Not[LessEqual[y, 3.15e+50]], $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 * z), $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 -7.5 \cdot 10^{+63} \lor \neg \left(y \leq 3.15 \cdot 10^{+50}\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 z\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot a\right)\right)}\\
\end{array}
\end{array}
if y < -7.5000000000000005e63 or 3.14999999999999993e50 < y Initial program 4.9%
Taylor expanded in a around inf 4.0%
Taylor expanded in y around inf 68.7%
associate--l+68.7%
associate-/l*70.5%
Simplified70.5%
if -7.5000000000000005e63 < y < 3.14999999999999993e50Initial program 95.9%
Taylor expanded in x around 0 90.4%
Taylor expanded in y around 0 89.1%
*-commutative89.1%
Simplified89.1%
Final simplification81.6%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.85e+63) (not (<= y 6.1e+43)))
(+ x (- (/ z y) (* a (/ x y))))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ 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.85e+63) || !(y <= 6.1e+43)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (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.85d+63)) .or. (.not. (y <= 6.1d+43))) then
tmp = x + ((z / y) - (a * (x / y)))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (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.85e+63) || !(y <= 6.1e+43)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.85e+63) or not (y <= 6.1e+43): tmp = x + ((z / y) - (a * (x / y))) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.85e+63) || !(y <= 6.1e+43)) 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 * z)))))) / 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.85e+63) || ~((y <= 6.1e+43))) tmp = x + ((z / y) - (a * (x / y))); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.85e+63], N[Not[LessEqual[y, 6.1e+43]], $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 * z), $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.85 \cdot 10^{+63} \lor \neg \left(y \leq 6.1 \cdot 10^{+43}\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 z\right)\right)}{i + y \cdot \left(c + y \cdot b\right)}\\
\end{array}
\end{array}
if y < -1.84999999999999984e63 or 6.0999999999999998e43 < y Initial program 4.9%
Taylor expanded in a around inf 4.0%
Taylor expanded in y around inf 68.1%
associate--l+68.1%
associate-/l*69.9%
Simplified69.9%
if -1.84999999999999984e63 < y < 6.0999999999999998e43Initial program 96.5%
Taylor expanded in x around 0 91.0%
Taylor expanded in y around 0 85.2%
*-commutative85.2%
Simplified85.2%
Final simplification78.9%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -1.15e+28) (not (<= y 5e+45))) (+ x (- (/ z y) (* a (/ x y)))) (/ (+ t (* y 230661.510616)) (+ i (* y (+ (* y (+ (* y (+ y a)) b)) c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.15e+28) || !(y <= 5e+45)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + 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 <= (-1.15d+28)) .or. (.not. (y <= 5d+45))) then
tmp = x + ((z / y) - (a * (x / y)))
else
tmp = (t + (y * 230661.510616d0)) / (i + (y * ((y * ((y * (y + a)) + b)) + 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 <= -1.15e+28) || !(y <= 5e+45)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.15e+28) or not (y <= 5e+45): tmp = x + ((z / y) - (a * (x / y))) else: tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + c))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.15e+28) || !(y <= 5e+45)) 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(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.15e+28) || ~((y <= 5e+45))) tmp = x + ((z / y) - (a * (x / y))); else tmp = (t + (y * 230661.510616)) / (i + (y * ((y * ((y * (y + a)) + b)) + c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.15e+28], N[Not[LessEqual[y, 5e+45]], $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[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.15 \cdot 10^{+28} \lor \neg \left(y \leq 5 \cdot 10^{+45}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\
\end{array}
\end{array}
if y < -1.14999999999999992e28 or 5e45 < y Initial program 10.0%
Taylor expanded in a around inf 8.2%
Taylor expanded in y around inf 64.2%
associate--l+64.2%
associate-/l*65.9%
Simplified65.9%
if -1.14999999999999992e28 < y < 5e45Initial program 97.7%
Taylor expanded in y around 0 86.6%
*-commutative86.6%
Simplified86.6%
Final simplification77.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -2.5e+74)
t_1
(if (<= y -1.9e-77)
(/ (+ 27464.7644705 (+ (* y z) (* 230661.510616 (/ 1.0 y)))) b)
(if (<= y 7.5e+42)
(+ (* 230661.510616 (/ y i)) (/ t (+ i (* y c))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -2.5e+74) {
tmp = t_1;
} else if (y <= -1.9e-77) {
tmp = (27464.7644705 + ((y * z) + (230661.510616 * (1.0 / y)))) / b;
} else if (y <= 7.5e+42) {
tmp = (230661.510616 * (y / i)) + (t / (i + (y * c)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((z / y) - (a * (x / y)))
if (y <= (-2.5d+74)) then
tmp = t_1
else if (y <= (-1.9d-77)) then
tmp = (27464.7644705d0 + ((y * z) + (230661.510616d0 * (1.0d0 / y)))) / b
else if (y <= 7.5d+42) then
tmp = (230661.510616d0 * (y / i)) + (t / (i + (y * c)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -2.5e+74) {
tmp = t_1;
} else if (y <= -1.9e-77) {
tmp = (27464.7644705 + ((y * z) + (230661.510616 * (1.0 / y)))) / b;
} else if (y <= 7.5e+42) {
tmp = (230661.510616 * (y / i)) + (t / (i + (y * c)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z / y) - (a * (x / y))) tmp = 0 if y <= -2.5e+74: tmp = t_1 elif y <= -1.9e-77: tmp = (27464.7644705 + ((y * z) + (230661.510616 * (1.0 / y)))) / b elif y <= 7.5e+42: tmp = (230661.510616 * (y / i)) + (t / (i + (y * c))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -2.5e+74) tmp = t_1; elseif (y <= -1.9e-77) tmp = Float64(Float64(27464.7644705 + Float64(Float64(y * z) + Float64(230661.510616 * Float64(1.0 / y)))) / b); elseif (y <= 7.5e+42) tmp = Float64(Float64(230661.510616 * Float64(y / i)) + Float64(t / Float64(i + Float64(y * c)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x + ((z / y) - (a * (x / y))); tmp = 0.0; if (y <= -2.5e+74) tmp = t_1; elseif (y <= -1.9e-77) tmp = (27464.7644705 + ((y * z) + (230661.510616 * (1.0 / y)))) / b; elseif (y <= 7.5e+42) tmp = (230661.510616 * (y / i)) + (t / (i + (y * c))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.5e+74], t$95$1, If[LessEqual[y, -1.9e-77], N[(N[(27464.7644705 + N[(N[(y * z), $MachinePrecision] + N[(230661.510616 * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[y, 7.5e+42], N[(N[(230661.510616 * N[(y / i), $MachinePrecision]), $MachinePrecision] + N[(t / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -2.5 \cdot 10^{+74}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.9 \cdot 10^{-77}:\\
\;\;\;\;\frac{27464.7644705 + \left(y \cdot z + 230661.510616 \cdot \frac{1}{y}\right)}{b}\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{+42}:\\
\;\;\;\;230661.510616 \cdot \frac{y}{i} + \frac{t}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.49999999999999982e74 or 7.50000000000000041e42 < y Initial program 4.1%
Taylor expanded in a around inf 3.1%
Taylor expanded in y around inf 69.7%
associate--l+69.7%
associate-/l*71.6%
Simplified71.6%
if -2.49999999999999982e74 < y < -1.8999999999999999e-77Initial program 82.3%
Taylor expanded in x around 0 65.3%
Taylor expanded in t around inf 62.9%
Taylor expanded in b around inf 29.4%
Taylor expanded in t around 0 24.4%
if -1.8999999999999999e-77 < y < 7.50000000000000041e42Initial program 98.9%
Taylor expanded in t around 0 98.9%
Taylor expanded in y around 0 79.0%
Taylor expanded in y around 0 73.8%
Final simplification65.2%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -5e+27) (not (<= y 8.2e+46))) (+ x (- (/ z y) (* a (/ x y)))) (/ t (+ i (* y (+ (* y (+ (* y (+ y a)) b)) c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -5e+27) || !(y <= 8.2e+46)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = t / (i + (y * ((y * ((y * (y + a)) + b)) + 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 <= (-5d+27)) .or. (.not. (y <= 8.2d+46))) then
tmp = x + ((z / y) - (a * (x / y)))
else
tmp = t / (i + (y * ((y * ((y * (y + a)) + b)) + 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 <= -5e+27) || !(y <= 8.2e+46)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = t / (i + (y * ((y * ((y * (y + a)) + b)) + c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -5e+27) or not (y <= 8.2e+46): tmp = x + ((z / y) - (a * (x / y))) else: tmp = t / (i + (y * ((y * ((y * (y + a)) + b)) + c))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -5e+27) || !(y <= 8.2e+46)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); else tmp = Float64(t / Float64(i + Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(y + a)) + b)) + c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -5e+27) || ~((y <= 8.2e+46))) tmp = x + ((z / y) - (a * (x / y))); else tmp = t / (i + (y * ((y * ((y * (y + a)) + b)) + c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -5e+27], N[Not[LessEqual[y, 8.2e+46]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / N[(i + N[(y * N[(N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5 \cdot 10^{+27} \lor \neg \left(y \leq 8.2 \cdot 10^{+46}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(y \cdot \left(y \cdot \left(y + a\right) + b\right) + c\right)}\\
\end{array}
\end{array}
if y < -4.99999999999999979e27 or 8.19999999999999999e46 < y Initial program 10.0%
Taylor expanded in a around inf 8.2%
Taylor expanded in y around inf 64.2%
associate--l+64.2%
associate-/l*65.9%
Simplified65.9%
if -4.99999999999999979e27 < y < 8.19999999999999999e46Initial program 97.7%
Taylor expanded in t around inf 76.1%
Final simplification71.7%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -7e+28) (not (<= y 4.9e+45))) (+ x (- (/ z y) (* a (/ x y)))) (+ (/ t (+ i (* y (+ c (* y b))))) (* 230661.510616 (/ y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -7e+28) || !(y <= 4.9e+45)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t / (i + (y * (c + (y * b))))) + (230661.510616 * (y / 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 <= (-7d+28)) .or. (.not. (y <= 4.9d+45))) then
tmp = x + ((z / y) - (a * (x / y)))
else
tmp = (t / (i + (y * (c + (y * b))))) + (230661.510616d0 * (y / 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 <= -7e+28) || !(y <= 4.9e+45)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (t / (i + (y * (c + (y * b))))) + (230661.510616 * (y / i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -7e+28) or not (y <= 4.9e+45): tmp = x + ((z / y) - (a * (x / y))) else: tmp = (t / (i + (y * (c + (y * b))))) + (230661.510616 * (y / i)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -7e+28) || !(y <= 4.9e+45)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); else tmp = Float64(Float64(t / Float64(i + Float64(y * Float64(c + Float64(y * b))))) + Float64(230661.510616 * Float64(y / i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -7e+28) || ~((y <= 4.9e+45))) tmp = x + ((z / y) - (a * (x / y))); else tmp = (t / (i + (y * (c + (y * b))))) + (230661.510616 * (y / i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -7e+28], N[Not[LessEqual[y, 4.9e+45]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(230661.510616 * N[(y / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7 \cdot 10^{+28} \lor \neg \left(y \leq 4.9 \cdot 10^{+45}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(c + y \cdot b\right)} + 230661.510616 \cdot \frac{y}{i}\\
\end{array}
\end{array}
if y < -6.9999999999999999e28 or 4.9000000000000002e45 < y Initial program 10.0%
Taylor expanded in a around inf 8.3%
Taylor expanded in y around inf 64.8%
associate--l+64.8%
associate-/l*66.5%
Simplified66.5%
if -6.9999999999999999e28 < y < 4.9000000000000002e45Initial program 97.0%
Taylor expanded in t around 0 97.0%
Taylor expanded in y around 0 66.4%
Taylor expanded in y around 0 65.0%
Final simplification65.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -4e+27)
t_1
(if (<= y -2.3e-79)
(/ (/ (- t (* y -230661.510616)) y) c)
(if (<= y 3.2e+46) (+ (* 230661.510616 (/ y i)) (/ t i)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -4e+27) {
tmp = t_1;
} else if (y <= -2.3e-79) {
tmp = ((t - (y * -230661.510616)) / y) / c;
} else if (y <= 3.2e+46) {
tmp = (230661.510616 * (y / i)) + (t / i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((z / y) - (a * (x / y)))
if (y <= (-4d+27)) then
tmp = t_1
else if (y <= (-2.3d-79)) then
tmp = ((t - (y * (-230661.510616d0))) / y) / c
else if (y <= 3.2d+46) then
tmp = (230661.510616d0 * (y / i)) + (t / i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -4e+27) {
tmp = t_1;
} else if (y <= -2.3e-79) {
tmp = ((t - (y * -230661.510616)) / y) / c;
} else if (y <= 3.2e+46) {
tmp = (230661.510616 * (y / i)) + (t / i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z / y) - (a * (x / y))) tmp = 0 if y <= -4e+27: tmp = t_1 elif y <= -2.3e-79: tmp = ((t - (y * -230661.510616)) / y) / c elif y <= 3.2e+46: tmp = (230661.510616 * (y / i)) + (t / i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -4e+27) tmp = t_1; elseif (y <= -2.3e-79) tmp = Float64(Float64(Float64(t - Float64(y * -230661.510616)) / y) / c); elseif (y <= 3.2e+46) tmp = Float64(Float64(230661.510616 * Float64(y / i)) + Float64(t / i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x + ((z / y) - (a * (x / y))); tmp = 0.0; if (y <= -4e+27) tmp = t_1; elseif (y <= -2.3e-79) tmp = ((t - (y * -230661.510616)) / y) / c; elseif (y <= 3.2e+46) tmp = (230661.510616 * (y / i)) + (t / i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4e+27], t$95$1, If[LessEqual[y, -2.3e-79], N[(N[(N[(t - N[(y * -230661.510616), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[y, 3.2e+46], N[(N[(230661.510616 * N[(y / i), $MachinePrecision]), $MachinePrecision] + N[(t / i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -4 \cdot 10^{+27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.3 \cdot 10^{-79}:\\
\;\;\;\;\frac{\frac{t - y \cdot -230661.510616}{y}}{c}\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{+46}:\\
\;\;\;\;230661.510616 \cdot \frac{y}{i} + \frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.0000000000000001e27 or 3.1999999999999998e46 < y Initial program 10.0%
Taylor expanded in a around inf 8.2%
Taylor expanded in y around inf 64.2%
associate--l+64.2%
associate-/l*65.9%
Simplified65.9%
if -4.0000000000000001e27 < y < -2.30000000000000012e-79Initial program 95.8%
Taylor expanded in x around 0 84.7%
Taylor expanded in t around inf 84.9%
Taylor expanded in c around -inf 29.1%
mul-1-neg29.1%
mul-1-neg29.1%
Simplified29.1%
Taylor expanded in y around 0 23.8%
if -2.30000000000000012e-79 < y < 3.1999999999999998e46Initial program 98.1%
Taylor expanded in t around 0 98.1%
Taylor expanded in y around 0 78.1%
Taylor expanded in i around inf 66.8%
Final simplification61.7%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -3.5e+119)
x
(if (<= y -3e-7)
(/ (* y z) b)
(if (<= y 0.00085) (+ (* 230661.510616 (/ y i)) (/ t i)) x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -3.5e+119) {
tmp = x;
} else if (y <= -3e-7) {
tmp = (y * z) / b;
} else if (y <= 0.00085) {
tmp = (230661.510616 * (y / i)) + (t / i);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-3.5d+119)) then
tmp = x
else if (y <= (-3d-7)) then
tmp = (y * z) / b
else if (y <= 0.00085d0) then
tmp = (230661.510616d0 * (y / i)) + (t / i)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -3.5e+119) {
tmp = x;
} else if (y <= -3e-7) {
tmp = (y * z) / b;
} else if (y <= 0.00085) {
tmp = (230661.510616 * (y / i)) + (t / i);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -3.5e+119: tmp = x elif y <= -3e-7: tmp = (y * z) / b elif y <= 0.00085: tmp = (230661.510616 * (y / i)) + (t / i) else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -3.5e+119) tmp = x; elseif (y <= -3e-7) tmp = Float64(Float64(y * z) / b); elseif (y <= 0.00085) tmp = Float64(Float64(230661.510616 * Float64(y / i)) + Float64(t / i)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -3.5e+119) tmp = x; elseif (y <= -3e-7) tmp = (y * z) / b; elseif (y <= 0.00085) tmp = (230661.510616 * (y / i)) + (t / i); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -3.5e+119], x, If[LessEqual[y, -3e-7], N[(N[(y * z), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[y, 0.00085], N[(N[(230661.510616 * N[(y / i), $MachinePrecision]), $MachinePrecision] + N[(t / i), $MachinePrecision]), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.5 \cdot 10^{+119}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -3 \cdot 10^{-7}:\\
\;\;\;\;\frac{y \cdot z}{b}\\
\mathbf{elif}\;y \leq 0.00085:\\
\;\;\;\;230661.510616 \cdot \frac{y}{i} + \frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -3.5000000000000001e119 or 8.49999999999999953e-4 < y Initial program 10.2%
Taylor expanded in y around inf 57.1%
if -3.5000000000000001e119 < y < -2.9999999999999999e-7Initial program 46.9%
Taylor expanded in x around 0 26.3%
Taylor expanded in t around inf 22.9%
Taylor expanded in b around inf 23.6%
Taylor expanded in y around inf 22.1%
if -2.9999999999999999e-7 < y < 8.49999999999999953e-4Initial program 99.7%
Taylor expanded in t around 0 99.7%
Taylor expanded in y around 0 73.5%
Taylor expanded in i around inf 61.7%
Final simplification55.6%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -6e+28) (not (<= y 1.1e+43))) (+ x (- (/ z y) (* a (/ x y)))) (+ (* 230661.510616 (/ y i)) (/ 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 <= -6e+28) || !(y <= 1.1e+43)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (230661.510616 * (y / i)) + (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 <= (-6d+28)) .or. (.not. (y <= 1.1d+43))) then
tmp = x + ((z / y) - (a * (x / y)))
else
tmp = (230661.510616d0 * (y / i)) + (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 <= -6e+28) || !(y <= 1.1e+43)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (230661.510616 * (y / i)) + (t / (i + (y * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -6e+28) or not (y <= 1.1e+43): tmp = x + ((z / y) - (a * (x / y))) else: tmp = (230661.510616 * (y / i)) + (t / (i + (y * c))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -6e+28) || !(y <= 1.1e+43)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); else tmp = Float64(Float64(230661.510616 * Float64(y / i)) + 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 <= -6e+28) || ~((y <= 1.1e+43))) tmp = x + ((z / y) - (a * (x / y))); else tmp = (230661.510616 * (y / i)) + (t / (i + (y * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -6e+28], N[Not[LessEqual[y, 1.1e+43]], $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 / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6 \cdot 10^{+28} \lor \neg \left(y \leq 1.1 \cdot 10^{+43}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;230661.510616 \cdot \frac{y}{i} + \frac{t}{i + y \cdot c}\\
\end{array}
\end{array}
if y < -6.0000000000000002e28 or 1.1e43 < y Initial program 10.0%
Taylor expanded in a around inf 8.2%
Taylor expanded in y around inf 64.2%
associate--l+64.2%
associate-/l*65.9%
Simplified65.9%
if -6.0000000000000002e28 < y < 1.1e43Initial program 97.7%
Taylor expanded in t around 0 97.7%
Taylor expanded in y around 0 66.9%
Taylor expanded in y around 0 61.4%
Final simplification63.4%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -8.2e+27) (not (<= y 4.9e+45))) (+ x (- (/ z y) (* a (/ x y)))) (+ (* y (/ (+ 230661.510616 (* y 27464.7644705)) 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 <= -8.2e+27) || !(y <= 4.9e+45)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (y * ((230661.510616 + (y * 27464.7644705)) / 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 <= (-8.2d+27)) .or. (.not. (y <= 4.9d+45))) then
tmp = x + ((z / y) - (a * (x / y)))
else
tmp = (y * ((230661.510616d0 + (y * 27464.7644705d0)) / 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 <= -8.2e+27) || !(y <= 4.9e+45)) {
tmp = x + ((z / y) - (a * (x / y)));
} else {
tmp = (y * ((230661.510616 + (y * 27464.7644705)) / i)) + (t / i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -8.2e+27) or not (y <= 4.9e+45): tmp = x + ((z / y) - (a * (x / y))) else: tmp = (y * ((230661.510616 + (y * 27464.7644705)) / i)) + (t / i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -8.2e+27) || !(y <= 4.9e+45)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); else tmp = Float64(Float64(y * Float64(Float64(230661.510616 + Float64(y * 27464.7644705)) / 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 <= -8.2e+27) || ~((y <= 4.9e+45))) tmp = x + ((z / y) - (a * (x / y))); else tmp = (y * ((230661.510616 + (y * 27464.7644705)) / i)) + (t / i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -8.2e+27], N[Not[LessEqual[y, 4.9e+45]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision] + N[(t / i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.2 \cdot 10^{+27} \lor \neg \left(y \leq 4.9 \cdot 10^{+45}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{230661.510616 + y \cdot 27464.7644705}{i} + \frac{t}{i}\\
\end{array}
\end{array}
if y < -8.2000000000000005e27 or 4.9000000000000002e45 < y Initial program 10.0%
Taylor expanded in a around inf 8.2%
Taylor expanded in y around inf 64.2%
associate--l+64.2%
associate-/l*65.9%
Simplified65.9%
if -8.2000000000000005e27 < y < 4.9000000000000002e45Initial program 97.7%
Taylor expanded in y around 0 36.9%
Taylor expanded in i around inf 56.0%
Final simplification60.4%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -6.8e+16) (not (<= y 1.2e+46))) (+ 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 <= -6.8e+16) || !(y <= 1.2e+46)) {
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 <= (-6.8d+16)) .or. (.not. (y <= 1.2d+46))) 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 <= -6.8e+16) || !(y <= 1.2e+46)) {
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 <= -6.8e+16) or not (y <= 1.2e+46): 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 <= -6.8e+16) || !(y <= 1.2e+46)) 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 <= -6.8e+16) || ~((y <= 1.2e+46))) 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, -6.8e+16], N[Not[LessEqual[y, 1.2e+46]], $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 -6.8 \cdot 10^{+16} \lor \neg \left(y \leq 1.2 \cdot 10^{+46}\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 < -6.8e16 or 1.20000000000000004e46 < y Initial program 10.8%
Taylor expanded in a around inf 9.0%
Taylor expanded in y around inf 63.7%
associate--l+63.7%
associate-/l*65.3%
Simplified65.3%
if -6.8e16 < y < 1.20000000000000004e46Initial program 97.6%
Taylor expanded in t around 0 97.7%
Taylor expanded in y around 0 67.3%
Taylor expanded in i around inf 56.0%
Final simplification60.1%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -5e+21) (not (<= y 4.9e+45))) (- x (/ (- (* x a) z) 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 <= -5e+21) || !(y <= 4.9e+45)) {
tmp = x - (((x * a) - z) / 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 <= (-5d+21)) .or. (.not. (y <= 4.9d+45))) then
tmp = x - (((x * a) - z) / 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 <= -5e+21) || !(y <= 4.9e+45)) {
tmp = x - (((x * a) - z) / 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 <= -5e+21) or not (y <= 4.9e+45): tmp = x - (((x * a) - z) / 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 <= -5e+21) || !(y <= 4.9e+45)) tmp = Float64(x - Float64(Float64(Float64(x * a) - z) / 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 <= -5e+21) || ~((y <= 4.9e+45))) tmp = x - (((x * a) - z) / 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, -5e+21], N[Not[LessEqual[y, 4.9e+45]], $MachinePrecision]], N[(x - N[(N[(N[(x * a), $MachinePrecision] - z), $MachinePrecision] / y), $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 -5 \cdot 10^{+21} \lor \neg \left(y \leq 4.9 \cdot 10^{+45}\right):\\
\;\;\;\;x - \frac{x \cdot a - z}{y}\\
\mathbf{else}:\\
\;\;\;\;230661.510616 \cdot \frac{y}{i} + \frac{t}{i}\\
\end{array}
\end{array}
if y < -5e21 or 4.9000000000000002e45 < y Initial program 10.8%
Taylor expanded in y around inf 9.2%
Taylor expanded in y around -inf 63.7%
mul-1-neg63.7%
distribute-lft-out--63.7%
mul-1-neg63.7%
Simplified63.7%
if -5e21 < y < 4.9000000000000002e45Initial program 97.6%
Taylor expanded in t around 0 97.7%
Taylor expanded in y around 0 67.3%
Taylor expanded in i around inf 56.0%
Final simplification59.4%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -3.5e+119) x (if (<= y -2.6e-76) (/ (* y z) b) (if (<= y 1.5e+14) (/ t i) x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -3.5e+119) {
tmp = x;
} else if (y <= -2.6e-76) {
tmp = (y * z) / b;
} else if (y <= 1.5e+14) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-3.5d+119)) then
tmp = x
else if (y <= (-2.6d-76)) then
tmp = (y * z) / b
else if (y <= 1.5d+14) then
tmp = t / i
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -3.5e+119) {
tmp = x;
} else if (y <= -2.6e-76) {
tmp = (y * z) / b;
} else if (y <= 1.5e+14) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -3.5e+119: tmp = x elif y <= -2.6e-76: tmp = (y * z) / b elif y <= 1.5e+14: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -3.5e+119) tmp = x; elseif (y <= -2.6e-76) tmp = Float64(Float64(y * z) / b); elseif (y <= 1.5e+14) tmp = Float64(t / i); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -3.5e+119) tmp = x; elseif (y <= -2.6e-76) tmp = (y * z) / b; elseif (y <= 1.5e+14) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -3.5e+119], x, If[LessEqual[y, -2.6e-76], N[(N[(y * z), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[y, 1.5e+14], N[(t / i), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.5 \cdot 10^{+119}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -2.6 \cdot 10^{-76}:\\
\;\;\;\;\frac{y \cdot z}{b}\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{+14}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -3.5000000000000001e119 or 1.5e14 < y Initial program 6.4%
Taylor expanded in y around inf 59.4%
if -3.5000000000000001e119 < y < -2.6e-76Initial program 68.0%
Taylor expanded in x around 0 53.8%
Taylor expanded in t around inf 51.8%
Taylor expanded in b around inf 25.6%
Taylor expanded in y around inf 17.8%
if -2.6e-76 < y < 1.5e14Initial program 99.8%
Taylor expanded in y around 0 63.5%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -3.5e+119) x (if (<= y -2.6e-76) (* y (/ z b)) (if (<= y 9e+14) (/ t i) x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -3.5e+119) {
tmp = x;
} else if (y <= -2.6e-76) {
tmp = y * (z / b);
} else if (y <= 9e+14) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-3.5d+119)) then
tmp = x
else if (y <= (-2.6d-76)) then
tmp = y * (z / b)
else if (y <= 9d+14) then
tmp = t / i
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -3.5e+119) {
tmp = x;
} else if (y <= -2.6e-76) {
tmp = y * (z / b);
} else if (y <= 9e+14) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -3.5e+119: tmp = x elif y <= -2.6e-76: tmp = y * (z / b) elif y <= 9e+14: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -3.5e+119) tmp = x; elseif (y <= -2.6e-76) tmp = Float64(y * Float64(z / b)); elseif (y <= 9e+14) tmp = Float64(t / i); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -3.5e+119) tmp = x; elseif (y <= -2.6e-76) tmp = y * (z / b); elseif (y <= 9e+14) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -3.5e+119], x, If[LessEqual[y, -2.6e-76], N[(y * N[(z / b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9e+14], N[(t / i), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.5 \cdot 10^{+119}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -2.6 \cdot 10^{-76}:\\
\;\;\;\;y \cdot \frac{z}{b}\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+14}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -3.5000000000000001e119 or 9e14 < y Initial program 6.4%
Taylor expanded in y around inf 59.4%
if -3.5000000000000001e119 < y < -2.6e-76Initial program 68.0%
Taylor expanded in x around 0 53.8%
Taylor expanded in t around inf 51.8%
Taylor expanded in b around inf 25.6%
Taylor expanded in y around inf 17.8%
associate-/l*17.8%
Simplified17.8%
if -2.6e-76 < y < 9e14Initial program 99.8%
Taylor expanded in y around 0 63.5%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -4e+73) x (if (<= y 1000000000000.0) (/ 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 <= -4e+73) {
tmp = x;
} else if (y <= 1000000000000.0) {
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 <= (-4d+73)) then
tmp = x
else if (y <= 1000000000000.0d0) 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 <= -4e+73) {
tmp = x;
} else if (y <= 1000000000000.0) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -4e+73: tmp = x elif y <= 1000000000000.0: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -4e+73) tmp = x; elseif (y <= 1000000000000.0) 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 <= -4e+73) tmp = x; elseif (y <= 1000000000000.0) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -4e+73], x, If[LessEqual[y, 1000000000000.0], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4 \cdot 10^{+73}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1000000000000:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -3.99999999999999993e73 or 1e12 < y Initial program 6.8%
Taylor expanded in y around inf 55.0%
if -3.99999999999999993e73 < y < 1e12Initial program 95.8%
Taylor expanded in y around 0 49.7%
(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 59.3%
Taylor expanded in y around inf 24.6%
herbie shell --seed 2024137
(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)))