
(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 18 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
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ i (* y (+ c (* y (+ b (* y (+ y a)))))))))
(t_2 (+ x (- (/ z y) (/ a (/ y x))))))
(if (<= y -6.7e+24)
t_2
(if (<= y 4.8e-53)
t_1
(if (<= y 0.018)
(/
(+
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616))
t)
(+ i (* y (+ c (* y b)))))
(if (<= y 1.2e+52) 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 = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
double t_2 = x + ((z / y) - (a / (y / x)));
double tmp;
if (y <= -6.7e+24) {
tmp = t_2;
} else if (y <= 4.8e-53) {
tmp = t_1;
} else if (y <= 0.018) {
tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * b))));
} else if (y <= 1.2e+52) {
tmp = 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 = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (i + (y * (c + (y * (b + (y * (y + a)))))))
t_2 = x + ((z / y) - (a / (y / x)))
if (y <= (-6.7d+24)) then
tmp = t_2
else if (y <= 4.8d-53) then
tmp = t_1
else if (y <= 0.018d0) then
tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705d0)) + 230661.510616d0)) + t) / (i + (y * (c + (y * b))))
else if (y <= 1.2d+52) then
tmp = 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 = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
double t_2 = x + ((z / y) - (a / (y / x)));
double tmp;
if (y <= -6.7e+24) {
tmp = t_2;
} else if (y <= 4.8e-53) {
tmp = t_1;
} else if (y <= 0.018) {
tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * b))));
} else if (y <= 1.2e+52) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * (y + a))))))) t_2 = x + ((z / y) - (a / (y / x))) tmp = 0 if y <= -6.7e+24: tmp = t_2 elif y <= 4.8e-53: tmp = t_1 elif y <= 0.018: tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * b)))) elif y <= 1.2e+52: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))))) t_2 = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -6.7e+24) tmp = t_2; elseif (y <= 4.8e-53) tmp = t_1; elseif (y <= 0.018) tmp = Float64(Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); elseif (y <= 1.2e+52) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * (y + a))))))); t_2 = x + ((z / y) - (a / (y / x))); tmp = 0.0; if (y <= -6.7e+24) tmp = t_2; elseif (y <= 4.8e-53) tmp = t_1; elseif (y <= 0.018) tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * b)))); elseif (y <= 1.2e+52) tmp = 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[(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 * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.7e+24], t$95$2, If[LessEqual[y, 4.8e-53], t$95$1, If[LessEqual[y, 0.018], N[(N[(N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.2e+52], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \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 \left(y + a\right)\right)\right)}\\
t_2 := x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -6.7 \cdot 10^{+24}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-53}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 0.018:\\
\;\;\;\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{+52}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -6.6999999999999999e24 or 1.2e52 < y Initial program 0.5%
Taylor expanded in y around inf 72.6%
associate--l+72.6%
associate-/l*73.6%
Simplified73.6%
if -6.6999999999999999e24 < y < 4.80000000000000015e-53 or 0.0179999999999999986 < y < 1.2e52Initial program 96.8%
Taylor expanded in x around 0 94.9%
if 4.80000000000000015e-53 < y < 0.0179999999999999986Initial program 99.3%
Taylor expanded in y around 0 99.3%
*-commutative99.3%
Simplified99.3%
Final simplification85.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1
(/
(+
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616))
t)
(+ i (* y (+ c (* y (+ b (* y (+ y a))))))))))
(if (<= t_1 2e+303) t_1 (+ 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 t_1 = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * (b + (y * (y + a)))))));
double tmp;
if (t_1 <= 2e+303) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705d0)) + 230661.510616d0)) + t) / (i + (y * (c + (y * (b + (y * (y + a)))))))
if (t_1 <= 2d+303) then
tmp = t_1
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 t_1 = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * (b + (y * (y + a)))))));
double tmp;
if (t_1 <= 2e+303) {
tmp = t_1;
} else {
tmp = x + ((z / y) - (a / (y / x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * (b + (y * (y + a))))))) tmp = 0 if t_1 <= 2e+303: tmp = t_1 else: tmp = x + ((z / y) - (a / (y / x))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))))) tmp = 0.0 if (t_1 <= 2e+303) tmp = t_1; 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) t_1 = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * (b + (y * (y + a))))))); tmp = 0.0; if (t_1 <= 2e+303) tmp = t_1; else tmp = x + ((z / y) - (a / (y / x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 2e+303], t$95$1, N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right)}\\
\mathbf{if}\;t_1 \leq 2 \cdot 10^{+303}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) 54929528941/2000000) y) 28832688827/125000) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 2e303Initial program 93.9%
if 2e303 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) 54929528941/2000000) y) 28832688827/125000) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) Initial program 1.3%
Taylor expanded in y around inf 73.4%
associate--l+73.4%
associate-/l*74.4%
Simplified74.4%
Final simplification85.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (/ a (/ y x))))))
(if (<= y -6.7e+24)
t_1
(if (<= y -4.1e-26)
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(* y (+ c (* y (+ b (* y (+ y a)))))))
(if (<= y 1.22e+40)
(/
(+
(* y (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616))
t)
(+ i (* y (+ c (* y b)))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z / y) - (a / (y / x)));
double tmp;
if (y <= -6.7e+24) {
tmp = t_1;
} else if (y <= -4.1e-26) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (y * (c + (y * (b + (y * (y + a))))));
} else if (y <= 1.22e+40) {
tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * b))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((z / y) - (a / (y / x)))
if (y <= (-6.7d+24)) then
tmp = t_1
else if (y <= (-4.1d-26)) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (y * (c + (y * (b + (y * (y + a))))))
else if (y <= 1.22d+40) then
tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705d0)) + 230661.510616d0)) + t) / (i + (y * (c + (y * b))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z / y) - (a / (y / x)));
double tmp;
if (y <= -6.7e+24) {
tmp = t_1;
} else if (y <= -4.1e-26) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (y * (c + (y * (b + (y * (y + a))))));
} else if (y <= 1.22e+40) {
tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * b))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z / y) - (a / (y / x))) tmp = 0 if y <= -6.7e+24: tmp = t_1 elif y <= -4.1e-26: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (y * (c + (y * (b + (y * (y + a)))))) elif y <= 1.22e+40: tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * b)))) 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(y / x)))) tmp = 0.0 if (y <= -6.7e+24) tmp = t_1; elseif (y <= -4.1e-26) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a))))))); elseif (y <= 1.22e+40) tmp = Float64(Float64(Float64(y * Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x + ((z / y) - (a / (y / x))); tmp = 0.0; if (y <= -6.7e+24) tmp = t_1; elseif (y <= -4.1e-26) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (y * (c + (y * (b + (y * (y + a)))))); elseif (y <= 1.22e+40) tmp = ((y * ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616)) + t) / (i + (y * (c + (y * b)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.7e+24], t$95$1, If[LessEqual[y, -4.1e-26], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.22e+40], N[(N[(N[(y * N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -6.7 \cdot 10^{+24}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -4.1 \cdot 10^{-26}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right)}\\
\mathbf{elif}\;y \leq 1.22 \cdot 10^{+40}:\\
\;\;\;\;\frac{y \cdot \left(y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616\right) + t}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -6.6999999999999999e24 or 1.22000000000000004e40 < y Initial program 2.3%
Taylor expanded in y around inf 72.3%
associate--l+72.3%
associate-/l*73.2%
Simplified73.2%
if -6.6999999999999999e24 < y < -4.0999999999999999e-26Initial program 90.1%
Taylor expanded in x around 0 90.1%
Taylor expanded in i around 0 90.1%
if -4.0999999999999999e-26 < y < 1.22000000000000004e40Initial program 97.4%
Taylor expanded in y around 0 93.4%
*-commutative93.4%
Simplified93.4%
Final simplification84.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z)))))))
(t_2 (+ x (- (/ z y) (/ a (/ y x))))))
(if (<= y -6.7e+24)
t_2
(if (<= y -6.2e-29)
(/ t_1 (* y (+ c (* y (+ b (* y (+ y a)))))))
(if (<= y 9e+39) (/ t_1 (+ i (* y (+ c (* y b))))) t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))));
double t_2 = x + ((z / y) - (a / (y / x)));
double tmp;
if (y <= -6.7e+24) {
tmp = t_2;
} else if (y <= -6.2e-29) {
tmp = t_1 / (y * (c + (y * (b + (y * (y + a))))));
} else if (y <= 9e+39) {
tmp = t_1 / (i + (y * (c + (y * b))));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))
t_2 = x + ((z / y) - (a / (y / x)))
if (y <= (-6.7d+24)) then
tmp = t_2
else if (y <= (-6.2d-29)) then
tmp = t_1 / (y * (c + (y * (b + (y * (y + a))))))
else if (y <= 9d+39) then
tmp = t_1 / (i + (y * (c + (y * b))))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))));
double t_2 = x + ((z / y) - (a / (y / x)));
double tmp;
if (y <= -6.7e+24) {
tmp = t_2;
} else if (y <= -6.2e-29) {
tmp = t_1 / (y * (c + (y * (b + (y * (y + a))))));
} else if (y <= 9e+39) {
tmp = t_1 / (i + (y * (c + (y * b))));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = t + (y * (230661.510616 + (y * (27464.7644705 + (y * z))))) t_2 = x + ((z / y) - (a / (y / x))) tmp = 0 if y <= -6.7e+24: tmp = t_2 elif y <= -6.2e-29: tmp = t_1 / (y * (c + (y * (b + (y * (y + a)))))) elif y <= 9e+39: tmp = t_1 / (i + (y * (c + (y * b)))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) t_2 = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -6.7e+24) tmp = t_2; elseif (y <= -6.2e-29) tmp = Float64(t_1 / Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a))))))); elseif (y <= 9e+39) tmp = Float64(t_1 / Float64(i + Float64(y * Float64(c + Float64(y * b))))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = t + (y * (230661.510616 + (y * (27464.7644705 + (y * z))))); t_2 = x + ((z / y) - (a / (y / x))); tmp = 0.0; if (y <= -6.7e+24) tmp = t_2; elseif (y <= -6.2e-29) tmp = t_1 / (y * (c + (y * (b + (y * (y + a)))))); elseif (y <= 9e+39) tmp = t_1 / (i + (y * (c + (y * b)))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.7e+24], t$95$2, If[LessEqual[y, -6.2e-29], N[(t$95$1 / N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9e+39], N[(t$95$1 / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)\\
t_2 := x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -6.7 \cdot 10^{+24}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -6.2 \cdot 10^{-29}:\\
\;\;\;\;\frac{t_1}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right)}\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+39}:\\
\;\;\;\;\frac{t_1}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -6.6999999999999999e24 or 8.99999999999999991e39 < y Initial program 2.3%
Taylor expanded in y around inf 72.3%
associate--l+72.3%
associate-/l*73.2%
Simplified73.2%
if -6.6999999999999999e24 < y < -6.20000000000000052e-29Initial program 90.1%
Taylor expanded in x around 0 90.1%
Taylor expanded in i around 0 90.1%
if -6.20000000000000052e-29 < y < 8.99999999999999991e39Initial program 97.4%
Taylor expanded in y around 0 93.4%
*-commutative93.4%
Simplified93.4%
Taylor expanded in x around 0 88.4%
Final simplification81.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1
(/
(+ t (* y 230661.510616))
(+ i (* y (+ c (* y (+ b (* y (+ y a)))))))))
(t_2 (+ x (- (/ z y) (/ a (/ y x))))))
(if (<= y -5.5e+24)
t_2
(if (<= y 4.5e-43)
t_1
(if (<= y 2600000000.0)
(/
(+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616)
(+ c (* y b)))
(if (<= y 7.8e+41) 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 = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * (y + a)))))));
double t_2 = x + ((z / y) - (a / (y / x)));
double tmp;
if (y <= -5.5e+24) {
tmp = t_2;
} else if (y <= 4.5e-43) {
tmp = t_1;
} else if (y <= 2600000000.0) {
tmp = ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616) / (c + (y * b));
} else if (y <= 7.8e+41) {
tmp = 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 = (t + (y * 230661.510616d0)) / (i + (y * (c + (y * (b + (y * (y + a)))))))
t_2 = x + ((z / y) - (a / (y / x)))
if (y <= (-5.5d+24)) then
tmp = t_2
else if (y <= 4.5d-43) then
tmp = t_1
else if (y <= 2600000000.0d0) then
tmp = ((y * ((y * ((x * y) + z)) + 27464.7644705d0)) + 230661.510616d0) / (c + (y * b))
else if (y <= 7.8d+41) then
tmp = 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 = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * (y + a)))))));
double t_2 = x + ((z / y) - (a / (y / x)));
double tmp;
if (y <= -5.5e+24) {
tmp = t_2;
} else if (y <= 4.5e-43) {
tmp = t_1;
} else if (y <= 2600000000.0) {
tmp = ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616) / (c + (y * b));
} else if (y <= 7.8e+41) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * (y + a))))))) t_2 = x + ((z / y) - (a / (y / x))) tmp = 0 if y <= -5.5e+24: tmp = t_2 elif y <= 4.5e-43: tmp = t_1 elif y <= 2600000000.0: tmp = ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616) / (c + (y * b)) elif y <= 7.8e+41: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))))) t_2 = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -5.5e+24) tmp = t_2; elseif (y <= 4.5e-43) tmp = t_1; elseif (y <= 2600000000.0) tmp = Float64(Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616) / Float64(c + Float64(y * b))); elseif (y <= 7.8e+41) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * (y + a))))))); t_2 = x + ((z / y) - (a / (y / x))); tmp = 0.0; if (y <= -5.5e+24) tmp = t_2; elseif (y <= 4.5e-43) tmp = t_1; elseif (y <= 2600000000.0) tmp = ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616) / (c + (y * b)); elseif (y <= 7.8e+41) tmp = 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[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.5e+24], t$95$2, If[LessEqual[y, 4.5e-43], t$95$1, If[LessEqual[y, 2600000000.0], N[(N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision] / N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.8e+41], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right)}\\
t_2 := x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{+24}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{-43}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2600000000:\\
\;\;\;\;\frac{y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616}{c + y \cdot b}\\
\mathbf{elif}\;y \leq 7.8 \cdot 10^{+41}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -5.5000000000000002e24 or 7.7999999999999994e41 < y Initial program 2.3%
Taylor expanded in y around inf 72.3%
associate--l+72.3%
associate-/l*73.2%
Simplified73.2%
if -5.5000000000000002e24 < y < 4.50000000000000025e-43 or 2.6e9 < y < 7.7999999999999994e41Initial program 96.7%
Taylor expanded in y around 0 87.3%
*-commutative81.9%
Simplified87.3%
if 4.50000000000000025e-43 < y < 2.6e9Initial program 99.3%
Taylor expanded in y around 0 99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in i around 0 83.1%
Taylor expanded in t around 0 65.8%
Final simplification80.2%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.6e+24) (not (<= y 1.85e+43)))
(+ x (- (/ z y) (/ a (/ y x))))
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ i (* y (+ c (* y (+ b (* y (+ y a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.6e+24) || !(y <= 1.85e+43)) {
tmp = x + ((z / y) - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-1.6d+24)) .or. (.not. (y <= 1.85d+43))) then
tmp = x + ((z / y) - (a / (y / x)))
else
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (i + (y * (c + (y * (b + (y * (y + a)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.6e+24) || !(y <= 1.85e+43)) {
tmp = x + ((z / y) - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.6e+24) or not (y <= 1.85e+43): tmp = x + ((z / y) - (a / (y / x))) else: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * (b + (y * (y + a))))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.6e+24) || !(y <= 1.85e+43)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.6e+24) || ~((y <= 1.85e+43))) tmp = x + ((z / y) - (a / (y / x))); else tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * (b + (y * (y + a))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.6e+24], N[Not[LessEqual[y, 1.85e+43]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.6 \cdot 10^{+24} \lor \neg \left(y \leq 1.85 \cdot 10^{+43}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right)}\\
\end{array}
\end{array}
if y < -1.5999999999999999e24 or 1.85e43 < y Initial program 2.3%
Taylor expanded in y around inf 72.3%
associate--l+72.3%
associate-/l*73.2%
Simplified73.2%
if -1.5999999999999999e24 < y < 1.85e43Initial program 96.9%
Taylor expanded in y around 0 84.8%
*-commutative78.6%
Simplified84.8%
Final simplification79.8%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -2.05e+22) (not (<= y 4.8e+38)))
(+ x (- (/ z y) (/ a (/ y x))))
(/
(+ 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 <= -2.05e+22) || !(y <= 4.8e+38)) {
tmp = x + ((z / y) - (a / (y / x)));
} 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 <= (-2.05d+22)) .or. (.not. (y <= 4.8d+38))) then
tmp = x + ((z / y) - (a / (y / x)))
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 <= -2.05e+22) || !(y <= 4.8e+38)) {
tmp = x + ((z / y) - (a / (y / x)));
} 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 <= -2.05e+22) or not (y <= 4.8e+38): tmp = x + ((z / y) - (a / (y / x))) 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 <= -2.05e+22) || !(y <= 4.8e+38)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); 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 <= -2.05e+22) || ~((y <= 4.8e+38))) tmp = x + ((z / y) - (a / (y / x))); 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, -2.05e+22], N[Not[LessEqual[y, 4.8e+38]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $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 -2.05 \cdot 10^{+22} \lor \neg \left(y \leq 4.8 \cdot 10^{+38}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\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 < -2.0499999999999999e22 or 4.80000000000000035e38 < y Initial program 2.3%
Taylor expanded in y around inf 72.3%
associate--l+72.3%
associate-/l*73.2%
Simplified73.2%
if -2.0499999999999999e22 < y < 4.80000000000000035e38Initial program 96.9%
Taylor expanded in y around 0 89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in x around 0 84.7%
Final simplification79.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (/ a (/ y x))))) (t_2 (+ c (* y b))))
(if (<= y -1.05e+24)
t_1
(if (<= y 4.2e-54)
(/ (+ t (* y 230661.510616)) (+ i (* y t_2)))
(if (<= y 12000000000.0)
(/ (+ (* y (+ (* y (+ (* x y) z)) 27464.7644705)) 230661.510616) t_2)
(if (<= y 1.65e+41)
(/ t (+ i (* y (+ c (* y (+ b (* y (+ y a))))))))
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 / (y / x)));
double t_2 = c + (y * b);
double tmp;
if (y <= -1.05e+24) {
tmp = t_1;
} else if (y <= 4.2e-54) {
tmp = (t + (y * 230661.510616)) / (i + (y * t_2));
} else if (y <= 12000000000.0) {
tmp = ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616) / t_2;
} else if (y <= 1.65e+41) {
tmp = t / (i + (y * (c + (y * (b + (y * (y + a)))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + ((z / y) - (a / (y / x)))
t_2 = c + (y * b)
if (y <= (-1.05d+24)) then
tmp = t_1
else if (y <= 4.2d-54) then
tmp = (t + (y * 230661.510616d0)) / (i + (y * t_2))
else if (y <= 12000000000.0d0) then
tmp = ((y * ((y * ((x * y) + z)) + 27464.7644705d0)) + 230661.510616d0) / t_2
else if (y <= 1.65d+41) then
tmp = t / (i + (y * (c + (y * (b + (y * (y + a)))))))
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 / (y / x)));
double t_2 = c + (y * b);
double tmp;
if (y <= -1.05e+24) {
tmp = t_1;
} else if (y <= 4.2e-54) {
tmp = (t + (y * 230661.510616)) / (i + (y * t_2));
} else if (y <= 12000000000.0) {
tmp = ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616) / t_2;
} else if (y <= 1.65e+41) {
tmp = t / (i + (y * (c + (y * (b + (y * (y + a)))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z / y) - (a / (y / x))) t_2 = c + (y * b) tmp = 0 if y <= -1.05e+24: tmp = t_1 elif y <= 4.2e-54: tmp = (t + (y * 230661.510616)) / (i + (y * t_2)) elif y <= 12000000000.0: tmp = ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616) / t_2 elif y <= 1.65e+41: tmp = t / (i + (y * (c + (y * (b + (y * (y + a))))))) 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(y / x)))) t_2 = Float64(c + Float64(y * b)) tmp = 0.0 if (y <= -1.05e+24) tmp = t_1; elseif (y <= 4.2e-54) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * t_2))); elseif (y <= 12000000000.0) tmp = Float64(Float64(Float64(y * Float64(Float64(y * Float64(Float64(x * y) + z)) + 27464.7644705)) + 230661.510616) / t_2); elseif (y <= 1.65e+41) tmp = Float64(t / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))))); 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 / (y / x))); t_2 = c + (y * b); tmp = 0.0; if (y <= -1.05e+24) tmp = t_1; elseif (y <= 4.2e-54) tmp = (t + (y * 230661.510616)) / (i + (y * t_2)); elseif (y <= 12000000000.0) tmp = ((y * ((y * ((x * y) + z)) + 27464.7644705)) + 230661.510616) / t_2; elseif (y <= 1.65e+41) tmp = t / (i + (y * (c + (y * (b + (y * (y + a))))))); 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[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.05e+24], t$95$1, If[LessEqual[y, 4.2e-54], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 12000000000.0], N[(N[(N[(y * N[(N[(y * N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision] + 230661.510616), $MachinePrecision] / t$95$2), $MachinePrecision], If[LessEqual[y, 1.65e+41], N[(t / N[(i + N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
t_2 := c + y \cdot b\\
\mathbf{if}\;y \leq -1.05 \cdot 10^{+24}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-54}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot t_2}\\
\mathbf{elif}\;y \leq 12000000000:\\
\;\;\;\;\frac{y \cdot \left(y \cdot \left(x \cdot y + z\right) + 27464.7644705\right) + 230661.510616}{t_2}\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{+41}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.0500000000000001e24 or 1.65e41 < y Initial program 2.3%
Taylor expanded in y around inf 72.3%
associate--l+72.3%
associate-/l*73.2%
Simplified73.2%
if -1.0500000000000001e24 < y < 4.2e-54Initial program 98.9%
Taylor expanded in y around 0 93.3%
*-commutative93.3%
Simplified93.3%
Taylor expanded in y around 0 86.9%
*-commutative86.9%
Simplified86.9%
if 4.2e-54 < y < 1.2e10Initial program 99.2%
Taylor expanded in y around 0 91.7%
*-commutative91.7%
Simplified91.7%
Taylor expanded in i around 0 70.7%
Taylor expanded in t around 0 56.7%
if 1.2e10 < y < 1.65e41Initial program 58.5%
Taylor expanded in t around inf 44.2%
Final simplification78.2%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -5.8e+24) (not (<= y 5.6e+40)))
(+ x (- (/ z y) (/ a (/ y x))))
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ i (* y (+ c (* y b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -5.8e+24) || !(y <= 5.6e+40)) {
tmp = x + ((z / y) - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-5.8d+24)) .or. (.not. (y <= 5.6d+40))) then
tmp = x + ((z / y) - (a / (y / x)))
else
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (i + (y * (c + (y * b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -5.8e+24) || !(y <= 5.6e+40)) {
tmp = x + ((z / y) - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -5.8e+24) or not (y <= 5.6e+40): tmp = x + ((z / y) - (a / (y / x))) else: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -5.8e+24) || !(y <= 5.6e+40)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -5.8e+24) || ~((y <= 5.6e+40))) tmp = x + ((z / y) - (a / (y / x))); else tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -5.8e+24], N[Not[LessEqual[y, 5.6e+40]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.8 \cdot 10^{+24} \lor \neg \left(y \leq 5.6 \cdot 10^{+40}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot \left(c + y \cdot b\right)}\\
\end{array}
\end{array}
if y < -5.79999999999999958e24 or 5.6000000000000003e40 < y Initial program 2.3%
Taylor expanded in y around inf 72.3%
associate--l+72.3%
associate-/l*73.2%
Simplified73.2%
if -5.79999999999999958e24 < y < 5.6000000000000003e40Initial program 96.9%
Taylor expanded in y around 0 89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in y around 0 78.6%
*-commutative78.6%
Simplified78.6%
Final simplification76.2%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -1.12e+24) (not (<= y 2.75e+38))) (+ x (- (/ z y) (/ a (/ y x)))) (/ (+ t (* y 230661.510616)) (+ i (* y (+ c (* y b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.12e+24) || !(y <= 2.75e+38)) {
tmp = x + ((z / y) - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-1.12d+24)) .or. (.not. (y <= 2.75d+38))) then
tmp = x + ((z / y) - (a / (y / x)))
else
tmp = (t + (y * 230661.510616d0)) / (i + (y * (c + (y * b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.12e+24) || !(y <= 2.75e+38)) {
tmp = x + ((z / y) - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.12e+24) or not (y <= 2.75e+38): tmp = x + ((z / y) - (a / (y / x))) else: tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.12e+24) || !(y <= 2.75e+38)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.12e+24) || ~((y <= 2.75e+38))) tmp = x + ((z / y) - (a / (y / x))); else tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.12e+24], N[Not[LessEqual[y, 2.75e+38]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.12 \cdot 10^{+24} \lor \neg \left(y \leq 2.75 \cdot 10^{+38}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot b\right)}\\
\end{array}
\end{array}
if y < -1.12e24 or 2.7500000000000002e38 < y Initial program 2.3%
Taylor expanded in y around inf 72.3%
associate--l+72.3%
associate-/l*73.2%
Simplified73.2%
if -1.12e24 < y < 2.7500000000000002e38Initial program 96.9%
Taylor expanded in y around 0 89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in y around 0 77.7%
*-commutative77.7%
Simplified77.7%
Final simplification75.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (/ a (/ y x))))))
(if (<= y -3.5e+60)
t_1
(if (<= y 9e-145)
(/ (+ t (* y 230661.510616)) i)
(if (<= y 1.55e+38) (/ t (* y (+ c (* y b)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z / y) - (a / (y / x)));
double tmp;
if (y <= -3.5e+60) {
tmp = t_1;
} else if (y <= 9e-145) {
tmp = (t + (y * 230661.510616)) / i;
} else if (y <= 1.55e+38) {
tmp = t / (y * (c + (y * b)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((z / y) - (a / (y / x)))
if (y <= (-3.5d+60)) then
tmp = t_1
else if (y <= 9d-145) then
tmp = (t + (y * 230661.510616d0)) / i
else if (y <= 1.55d+38) then
tmp = t / (y * (c + (y * b)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z / y) - (a / (y / x)));
double tmp;
if (y <= -3.5e+60) {
tmp = t_1;
} else if (y <= 9e-145) {
tmp = (t + (y * 230661.510616)) / i;
} else if (y <= 1.55e+38) {
tmp = t / (y * (c + (y * b)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z / y) - (a / (y / x))) tmp = 0 if y <= -3.5e+60: tmp = t_1 elif y <= 9e-145: tmp = (t + (y * 230661.510616)) / i elif y <= 1.55e+38: tmp = t / (y * (c + (y * b))) 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(y / x)))) tmp = 0.0 if (y <= -3.5e+60) tmp = t_1; elseif (y <= 9e-145) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / i); elseif (y <= 1.55e+38) tmp = Float64(t / Float64(y * Float64(c + Float64(y * b)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x + ((z / y) - (a / (y / x))); tmp = 0.0; if (y <= -3.5e+60) tmp = t_1; elseif (y <= 9e-145) tmp = (t + (y * 230661.510616)) / i; elseif (y <= 1.55e+38) tmp = t / (y * (c + (y * b))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.5e+60], t$95$1, If[LessEqual[y, 9e-145], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], If[LessEqual[y, 1.55e+38], N[(t / N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -3.5 \cdot 10^{+60}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-145}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{+38}:\\
\;\;\;\;\frac{t}{y \cdot \left(c + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -3.5000000000000002e60 or 1.55000000000000009e38 < y Initial program 2.2%
Taylor expanded in y around inf 74.8%
associate--l+74.8%
associate-/l*75.8%
Simplified75.8%
if -3.5000000000000002e60 < y < 9.0000000000000001e-145Initial program 95.3%
Taylor expanded in i around inf 60.3%
+-commutative60.3%
+-commutative60.3%
+-commutative60.3%
+-commutative60.3%
fma-udef60.3%
fma-def60.3%
fma-def60.3%
fma-def60.3%
fma-udef60.3%
*-commutative60.3%
fma-def60.3%
Simplified60.3%
Taylor expanded in y around 0 57.6%
*-commutative57.6%
Simplified57.6%
if 9.0000000000000001e-145 < y < 1.55000000000000009e38Initial program 92.1%
Taylor expanded in y around 0 80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in i around 0 61.0%
Taylor expanded in t around inf 34.9%
Final simplification61.7%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -1.6e+60)
x
(if (<= y 6.5e-145)
(/ (+ t (* y 230661.510616)) i)
(if (<= y 4.1e+40) (/ t (* y (+ c (* y b)))) (- x (/ 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.6e+60) {
tmp = x;
} else if (y <= 6.5e-145) {
tmp = (t + (y * 230661.510616)) / i;
} else if (y <= 4.1e+40) {
tmp = t / (y * (c + (y * b)));
} else {
tmp = x - (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.6d+60)) then
tmp = x
else if (y <= 6.5d-145) then
tmp = (t + (y * 230661.510616d0)) / i
else if (y <= 4.1d+40) then
tmp = t / (y * (c + (y * b)))
else
tmp = x - (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.6e+60) {
tmp = x;
} else if (y <= 6.5e-145) {
tmp = (t + (y * 230661.510616)) / i;
} else if (y <= 4.1e+40) {
tmp = t / (y * (c + (y * b)));
} else {
tmp = x - (a / (y / x));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.6e+60: tmp = x elif y <= 6.5e-145: tmp = (t + (y * 230661.510616)) / i elif y <= 4.1e+40: tmp = t / (y * (c + (y * b))) else: tmp = x - (a / (y / x)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.6e+60) tmp = x; elseif (y <= 6.5e-145) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / i); elseif (y <= 4.1e+40) tmp = Float64(t / Float64(y * Float64(c + Float64(y * b)))); else tmp = Float64(x - 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.6e+60) tmp = x; elseif (y <= 6.5e-145) tmp = (t + (y * 230661.510616)) / i; elseif (y <= 4.1e+40) tmp = t / (y * (c + (y * b))); else tmp = x - (a / (y / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.6e+60], x, If[LessEqual[y, 6.5e-145], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], If[LessEqual[y, 4.1e+40], N[(t / N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.6 \cdot 10^{+60}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{-145}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\mathbf{elif}\;y \leq 4.1 \cdot 10^{+40}:\\
\;\;\;\;\frac{t}{y \cdot \left(c + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{a}{\frac{y}{x}}\\
\end{array}
\end{array}
if y < -1.59999999999999995e60Initial program 0.5%
Taylor expanded in y around inf 61.0%
if -1.59999999999999995e60 < y < 6.5000000000000002e-145Initial program 95.3%
Taylor expanded in i around inf 60.3%
+-commutative60.3%
+-commutative60.3%
+-commutative60.3%
+-commutative60.3%
fma-udef60.3%
fma-def60.3%
fma-def60.3%
fma-def60.3%
fma-udef60.3%
*-commutative60.3%
fma-def60.3%
Simplified60.3%
Taylor expanded in y around 0 57.6%
*-commutative57.6%
Simplified57.6%
if 6.5000000000000002e-145 < y < 4.1000000000000002e40Initial program 92.1%
Taylor expanded in y around 0 80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in i around 0 61.0%
Taylor expanded in t around inf 34.9%
if 4.1000000000000002e40 < y Initial program 3.9%
Taylor expanded in z around 0 0.7%
Taylor expanded in y around inf 65.0%
mul-1-neg65.0%
unsub-neg65.0%
associate-/l*65.1%
Simplified65.1%
Final simplification56.4%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -8.2e+21) (not (<= y 3.35e+38))) (+ x (- (/ z y) (/ a (/ y x)))) (/ t (+ i (* y (+ c (* y b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -8.2e+21) || !(y <= 3.35e+38)) {
tmp = x + ((z / y) - (a / (y / x)));
} else {
tmp = t / (i + (y * (c + (y * b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-8.2d+21)) .or. (.not. (y <= 3.35d+38))) then
tmp = x + ((z / y) - (a / (y / x)))
else
tmp = t / (i + (y * (c + (y * b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -8.2e+21) || !(y <= 3.35e+38)) {
tmp = x + ((z / y) - (a / (y / x)));
} else {
tmp = t / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -8.2e+21) or not (y <= 3.35e+38): tmp = x + ((z / y) - (a / (y / x))) else: tmp = t / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -8.2e+21) || !(y <= 3.35e+38)) tmp = Float64(x + Float64(Float64(z / y) - Float64(a / Float64(y / x)))); else tmp = Float64(t / Float64(i + Float64(y * Float64(c + Float64(y * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -8.2e+21) || ~((y <= 3.35e+38))) tmp = x + ((z / y) - (a / (y / x))); else tmp = t / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -8.2e+21], N[Not[LessEqual[y, 3.35e+38]], $MachinePrecision]], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.2 \cdot 10^{+21} \lor \neg \left(y \leq 3.35 \cdot 10^{+38}\right):\\
\;\;\;\;x + \left(\frac{z}{y} - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(c + y \cdot b\right)}\\
\end{array}
\end{array}
if y < -8.2e21 or 3.35000000000000012e38 < y Initial program 2.3%
Taylor expanded in y around inf 72.3%
associate--l+72.3%
associate-/l*73.2%
Simplified73.2%
if -8.2e21 < y < 3.35000000000000012e38Initial program 96.9%
Taylor expanded in y around 0 89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in t around inf 65.7%
Final simplification69.0%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -1.6e+60)
x
(if (<= y 1.3e-149)
(/ t i)
(if (<= y 1.25e+34) (/ t (* y c)) (- x (/ 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.6e+60) {
tmp = x;
} else if (y <= 1.3e-149) {
tmp = t / i;
} else if (y <= 1.25e+34) {
tmp = t / (y * c);
} else {
tmp = x - (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.6d+60)) then
tmp = x
else if (y <= 1.3d-149) then
tmp = t / i
else if (y <= 1.25d+34) then
tmp = t / (y * c)
else
tmp = x - (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.6e+60) {
tmp = x;
} else if (y <= 1.3e-149) {
tmp = t / i;
} else if (y <= 1.25e+34) {
tmp = t / (y * c);
} else {
tmp = x - (a / (y / x));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.6e+60: tmp = x elif y <= 1.3e-149: tmp = t / i elif y <= 1.25e+34: tmp = t / (y * c) else: tmp = x - (a / (y / x)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.6e+60) tmp = x; elseif (y <= 1.3e-149) tmp = Float64(t / i); elseif (y <= 1.25e+34) tmp = Float64(t / Float64(y * c)); else tmp = Float64(x - 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.6e+60) tmp = x; elseif (y <= 1.3e-149) tmp = t / i; elseif (y <= 1.25e+34) tmp = t / (y * c); else tmp = x - (a / (y / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.6e+60], x, If[LessEqual[y, 1.3e-149], N[(t / i), $MachinePrecision], If[LessEqual[y, 1.25e+34], N[(t / N[(y * c), $MachinePrecision]), $MachinePrecision], N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.6 \cdot 10^{+60}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{-149}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{+34}:\\
\;\;\;\;\frac{t}{y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{a}{\frac{y}{x}}\\
\end{array}
\end{array}
if y < -1.59999999999999995e60Initial program 0.5%
Taylor expanded in y around inf 61.0%
if -1.59999999999999995e60 < y < 1.29999999999999999e-149Initial program 95.3%
Taylor expanded in y around 0 52.2%
if 1.29999999999999999e-149 < y < 1.25e34Initial program 94.3%
Taylor expanded in y around 0 82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in i around 0 60.2%
Taylor expanded in y around 0 28.6%
*-commutative28.6%
Simplified28.6%
if 1.25e34 < y Initial program 5.6%
Taylor expanded in z around 0 2.5%
Taylor expanded in y around inf 63.2%
mul-1-neg63.2%
unsub-neg63.2%
associate-/l*63.2%
Simplified63.2%
Final simplification52.9%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -1.6e+60)
x
(if (<= y 9e-145)
(/ (+ t (* y 230661.510616)) i)
(if (<= y 4.4e+27) (/ t (* y c)) (- x (/ 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.6e+60) {
tmp = x;
} else if (y <= 9e-145) {
tmp = (t + (y * 230661.510616)) / i;
} else if (y <= 4.4e+27) {
tmp = t / (y * c);
} else {
tmp = x - (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.6d+60)) then
tmp = x
else if (y <= 9d-145) then
tmp = (t + (y * 230661.510616d0)) / i
else if (y <= 4.4d+27) then
tmp = t / (y * c)
else
tmp = x - (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.6e+60) {
tmp = x;
} else if (y <= 9e-145) {
tmp = (t + (y * 230661.510616)) / i;
} else if (y <= 4.4e+27) {
tmp = t / (y * c);
} else {
tmp = x - (a / (y / x));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.6e+60: tmp = x elif y <= 9e-145: tmp = (t + (y * 230661.510616)) / i elif y <= 4.4e+27: tmp = t / (y * c) else: tmp = x - (a / (y / x)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.6e+60) tmp = x; elseif (y <= 9e-145) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / i); elseif (y <= 4.4e+27) tmp = Float64(t / Float64(y * c)); else tmp = Float64(x - 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.6e+60) tmp = x; elseif (y <= 9e-145) tmp = (t + (y * 230661.510616)) / i; elseif (y <= 4.4e+27) tmp = t / (y * c); else tmp = x - (a / (y / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.6e+60], x, If[LessEqual[y, 9e-145], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], If[LessEqual[y, 4.4e+27], N[(t / N[(y * c), $MachinePrecision]), $MachinePrecision], N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.6 \cdot 10^{+60}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-145}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{+27}:\\
\;\;\;\;\frac{t}{y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{a}{\frac{y}{x}}\\
\end{array}
\end{array}
if y < -1.59999999999999995e60Initial program 0.5%
Taylor expanded in y around inf 61.0%
if -1.59999999999999995e60 < y < 9.0000000000000001e-145Initial program 95.3%
Taylor expanded in i around inf 60.3%
+-commutative60.3%
+-commutative60.3%
+-commutative60.3%
+-commutative60.3%
fma-udef60.3%
fma-def60.3%
fma-def60.3%
fma-def60.3%
fma-udef60.3%
*-commutative60.3%
fma-def60.3%
Simplified60.3%
Taylor expanded in y around 0 57.6%
*-commutative57.6%
Simplified57.6%
if 9.0000000000000001e-145 < y < 4.3999999999999997e27Initial program 94.2%
Taylor expanded in y around 0 81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in i around 0 61.6%
Taylor expanded in y around 0 29.1%
*-commutative29.1%
Simplified29.1%
if 4.3999999999999997e27 < y Initial program 5.6%
Taylor expanded in z around 0 2.5%
Taylor expanded in y around inf 63.2%
mul-1-neg63.2%
unsub-neg63.2%
associate-/l*63.2%
Simplified63.2%
Final simplification55.3%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -1.6e+60) x (if (<= y 5.2e-149) (/ t i) (if (<= y 95000.0) (/ t (* y c)) x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.6e+60) {
tmp = x;
} else if (y <= 5.2e-149) {
tmp = t / i;
} else if (y <= 95000.0) {
tmp = t / (y * c);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-1.6d+60)) then
tmp = x
else if (y <= 5.2d-149) then
tmp = t / i
else if (y <= 95000.0d0) then
tmp = t / (y * c)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.6e+60) {
tmp = x;
} else if (y <= 5.2e-149) {
tmp = t / i;
} else if (y <= 95000.0) {
tmp = t / (y * c);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.6e+60: tmp = x elif y <= 5.2e-149: tmp = t / i elif y <= 95000.0: tmp = t / (y * c) else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.6e+60) tmp = x; elseif (y <= 5.2e-149) tmp = Float64(t / i); elseif (y <= 95000.0) tmp = Float64(t / Float64(y * c)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -1.6e+60) tmp = x; elseif (y <= 5.2e-149) tmp = t / i; elseif (y <= 95000.0) tmp = t / (y * c); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.6e+60], x, If[LessEqual[y, 5.2e-149], N[(t / i), $MachinePrecision], If[LessEqual[y, 95000.0], N[(t / N[(y * c), $MachinePrecision]), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.6 \cdot 10^{+60}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{-149}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{elif}\;y \leq 95000:\\
\;\;\;\;\frac{t}{y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.59999999999999995e60 or 95000 < y Initial program 6.4%
Taylor expanded in y around inf 59.0%
if -1.59999999999999995e60 < y < 5.19999999999999998e-149Initial program 95.3%
Taylor expanded in y around 0 52.2%
if 5.19999999999999998e-149 < y < 95000Initial program 99.3%
Taylor expanded in y around 0 93.5%
*-commutative93.5%
Simplified93.5%
Taylor expanded in i around 0 67.7%
Taylor expanded in y around 0 33.0%
*-commutative33.0%
Simplified33.0%
Final simplification52.8%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -1.65e+60) x (if (<= y 2.2e-11) (/ t i) x)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.65e+60) {
tmp = x;
} else if (y <= 2.2e-11) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-1.65d+60)) then
tmp = x
else if (y <= 2.2d-11) then
tmp = t / i
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.65e+60) {
tmp = x;
} else if (y <= 2.2e-11) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.65e+60: tmp = x elif y <= 2.2e-11: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.65e+60) tmp = x; elseif (y <= 2.2e-11) tmp = Float64(t / i); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -1.65e+60) tmp = x; elseif (y <= 2.2e-11) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.65e+60], x, If[LessEqual[y, 2.2e-11], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.65 \cdot 10^{+60}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-11}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.6499999999999999e60 or 2.2000000000000002e-11 < y Initial program 8.8%
Taylor expanded in y around inf 57.6%
if -1.6499999999999999e60 < y < 2.2000000000000002e-11Initial program 96.2%
Taylor expanded in y around 0 44.3%
Final simplification50.5%
(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 55.5%
Taylor expanded in y around inf 28.5%
Final simplification28.5%
herbie shell --seed 2023333
(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)))