| 
 | 
 
 
 楼主 |
发表于 2020-10-18 11:19:41
|
显示全部楼层
 
 
 
 
那这个收敛的呢?还是一样报错,求一些例子 
>>> >>> from sympy import * 
>>> n = Symbol('n') 
>>> f =((-1)**n)*(1/n) 
>>> print(limit(f,n,oo)) 
Traceback (most recent call last): 
  File "<pyshell#3>", line 1, in <module> 
    print(limit(f,n,oo)) 
  File "D:\Python38\lib\site-packages\sympy\series\limits.py", line 70, in limit 
    return Limit(e, z, z0, dir).doit(deep=False) 
  File "D:\Python38\lib\site-packages\sympy\series\limits.py", line 260, in doit 
    r = gruntz(e, z, z0, dir) 
  File "D:\Python38\lib\site-packages\sympy\series\gruntz.py", line 669, in gruntz 
    r = limitinf(e0, z) 
  File "D:\Python38\lib\site-packages\sympy\core\cache.py", line 94, in wrapper 
    retval = cfunc(*args, **kwargs) 
  File "D:\Python38\lib\site-packages\sympy\series\gruntz.py", line 433, in limitinf 
    c0, e0 = mrv_leadterm(e, x) 
  File "D:\Python38\lib\site-packages\sympy\core\cache.py", line 94, in wrapper 
    retval = cfunc(*args, **kwargs) 
  File "D:\Python38\lib\site-packages\sympy\series\gruntz.py", line 521, in mrv_leadterm 
    f, logw = rewrite(exps, Omega, x, w) 
  File "D:\Python38\lib\site-packages\sympy\series\gruntz.py", line 593, in rewrite 
    raise NotImplementedError('Result depends on the sign of %s' % sig) 
NotImplementedError: Result depends on the sign of I |   
 
 
 
 |