16z

1714 days 전, rladydwns1997 작성

var('n') sum((n^2)/(n^3+1),n,1,oo) 
       
#0: simplify_sum(expr='sum(n^2/(n^3+1),n,1,inf))
Traceback (click to the left of this block for traceback)
...
ValueError: Sum is divergent.
#0: simplify_sum(expr='sum(n^2/(n^3+1),n,1,inf))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_3.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("dmFyKCduJykKc3VtKChuXjIpLyhuXjMrMSksbiwxLG9vKQ=="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmp8uVfPr/___code___.py", line 4, in <module>
    exec compile(u'sum((n**_sage_const_2 )/(n**_sage_const_3 +_sage_const_1 ),n,_sage_const_1 ,oo)
  File "", line 1, in <module>
    
  File "/usr/local/sage-5.12/local/lib/python2.7/site-packages/sage/misc/functional.py", line 654, in symbolic_sum
    return expression.sum(*args, **kwds)
  File "expression.pyx", line 9700, in sage.symbolic.expression.Expression.sum (sage/symbolic/expression.cpp:40331)
  File "/usr/local/sage-5.12/local/lib/python2.7/site-packages/sage/calculus/calculus.py", line 584, in symbolic_sum
    return maxima.sr_sum(expression,v,a,b)
  File "/usr/local/sage-5.12/local/lib/python2.7/site-packages/sage/interfaces/maxima_lib.py", line 788, in sr_sum
    raise ValueError, "Sum is divergent."
ValueError: Sum is divergent.