# Untitled

a guest
Dec 22nd, 2020
25
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. ---------------------------------------------------------------------------
2. KeyboardInterrupt Traceback (most recent call last)
3. <ipython-input-47-fefb5a1b3c31> in <module>
4. ----> 1 integrand = sp.Integral(integrand,(x,-oo,oo)).doit()
5. 2 display(integrand)
6.
7. ~\.conda\envs\py37\lib\site-packages\sympy\integrals\integrals.py in doit(self, **hints)
8. 591 antideriv = None
9. 592 else:
10. --> 593 antideriv = self._eval_integral(
11. 594 function, xab[0], **eval_kwargs)
12. 595 if antideriv is None and meijerg is True:
13.
14. ~\.conda\envs\py37\lib\site-packages\sympy\integrals\integrals.py in _eval_integral(self, f, x, meijerg, risch, manual, heurisch, conds)
15. 1053 try:
16. 1054 if conds == 'piecewise':
17. -> 1055 h = heurisch_wrapper(g, x, hints=[])
18. 1056 else:
19. 1057 h = heurisch_(g, x, hints=[])
20.
21. ~\.conda\envs\py37\lib\site-packages\sympy\integrals\heurisch.py in heurisch_wrapper(f, x, rewrite, hints, mappings, retries, degree_offset, unnecessary_permutations, _try_heurisch)
22. 134 return f*x
23. 135
24. --> 136 res = heurisch(f, x, rewrite, hints, mappings, retries, degree_offset,
25. 137 unnecessary_permutations, _try_heurisch)
26. 138 if not isinstance(res, Basic):
27.
28. ~\.conda\envs\py37\lib\site-packages\sympy\integrals\heurisch.py in heurisch(f, x, rewrite, hints, mappings, retries, degree_offset, unnecessary_permutations, _try_heurisch)
29. 724 solution = _integrate()
30. 725 else:
31. --> 726 solution = _integrate()
32. 727
33. 728 if solution is not None:
34.
35. ~\.conda\envs\py37\lib\site-packages\sympy\integrals\heurisch.py in _integrate(field)
36. 698
37. 699 try:
38. --> 700 find_non_syms(raw_numer)
39. 701 except PolynomialError:
40. 702 return None
41.
42. ~\.conda\envs\py37\lib\site-packages\sympy\integrals\heurisch.py in find_non_syms(expr)
44. 692 elif expr.is_Add or expr.is_Mul or expr.is_Pow:
45. --> 693 list(map(find_non_syms, expr.args))
46. 694 else:
47. 695 # TODO: Non-polynomial expression. This should have been
48.
49. ~\.conda\envs\py37\lib\site-packages\sympy\integrals\heurisch.py in find_non_syms(expr)
51. 692 elif expr.is_Add or expr.is_Mul or expr.is_Pow:
52. --> 693 list(map(find_non_syms, expr.args))
53. 694 else:
54. 695 # TODO: Non-polynomial expression. This should have been
55.
56. ~\.conda\envs\py37\lib\site-packages\sympy\integrals\heurisch.py in find_non_syms(expr)
58. 692 elif expr.is_Add or expr.is_Mul or expr.is_Pow:
59. --> 693 list(map(find_non_syms, expr.args))
60. 694 else:
61. 695 # TODO: Non-polynomial expression. This should have been
62.
63. ~\.conda\envs\py37\lib\site-packages\sympy\integrals\heurisch.py in find_non_syms(expr)
65. 692 elif expr.is_Add or expr.is_Mul or expr.is_Pow:
66. --> 693 list(map(find_non_syms, expr.args))
67. 694 else:
68. 695 # TODO: Non-polynomial expression. This should have been
69.
70. ~\.conda\envs\py37\lib\site-packages\sympy\integrals\heurisch.py in find_non_syms(expr)
72. 692 elif expr.is_Add or expr.is_Mul or expr.is_Pow:
73. --> 693 list(map(find_non_syms, expr.args))
74. 694 else:
75. 695 # TODO: Non-polynomial expression. This should have been
76.
77. ~\.conda\envs\py37\lib\site-packages\sympy\integrals\heurisch.py in find_non_syms(expr)
79. 692 elif expr.is_Add or expr.is_Mul or expr.is_Pow:
80. --> 693 list(map(find_non_syms, expr.args))
81. 694 else:
82. 695 # TODO: Non-polynomial expression. This should have been
83.
84. ~\.conda\envs\py37\lib\site-packages\sympy\integrals\heurisch.py in find_non_syms(expr)
86. 692 elif expr.is_Add or expr.is_Mul or expr.is_Pow:
87. --> 693 list(map(find_non_syms, expr.args))
88. 694 else:
89. 695 # TODO: Non-polynomial expression. This should have been
90.
91. ~\.conda\envs\py37\lib\site-packages\sympy\integrals\heurisch.py in find_non_syms(expr)
92. 688 elif expr in syms:
93. 689 pass # ignore variables
94. --> 690 elif not expr.has(*syms):
96. 692 elif expr.is_Add or expr.is_Mul or expr.is_Pow:
97.
98. ~\.conda\envs\py37\lib\site-packages\sympy\core\cache.py in wrapper(*args, **kwargs)
99. 70 def wrapper(*args, **kwargs):
100. 71 try:
101. ---> 72 retval = cfunc(*args, **kwargs)
102. 73 except TypeError:
103. 74 retval = func(*args, **kwargs)
104.
105. ~\.conda\envs\py37\lib\site-packages\sympy\core\basic.py in has(self, *patterns)
106. 1208
107. 1209 """
108. -> 1210 return any(self._has(pattern) for pattern in patterns)
109. 1211
110. 1212 def _has(self, pattern):
111.
112. ~\.conda\envs\py37\lib\site-packages\sympy\core\basic.py in <genexpr>(.0)
113. 1208
114. 1209 """
115. -> 1210 return any(self._has(pattern) for pattern in patterns)
116. 1211
117. 1212 def _has(self, pattern):
118.
119. ~\.conda\envs\py37\lib\site-packages\sympy\core\basic.py in _has(self, pattern)
120. 1225 _has_matcher = getattr(pattern, '_has_matcher', None)
121. 1226 if _has_matcher is not None:
122. -> 1227 match = _has_matcher()
123. 1228 return any(match(arg) for arg in preorder_traversal(self))
124. 1229 else:
125.
126. ~\.conda\envs\py37\lib\site-packages\sympy\core\basic.py in _has_matcher(self)
127. 1232 def _has_matcher(self):
128. 1233 """Helper for .has()"""
129. -> 1234 return lambda other: self == other
130. 1235
131. 1236 def replace(self, query, value, map=False, simultaneous=True, exact=None):
132.
133. KeyboardInterrupt: