Python——数列1/2,2/3,3/4,···,n/(n+1)···的一般项为Xn=n/(n+1),当n—>∞时,判断数列{Xn}是否收敛
没注释的源代码
from sympy import *
n = symbols('n')
s = n/(n+1)
print('数列的极限为:',limit(s,n,oo))
没注释的源代码
from sympy import *
n = symbols('n')
s = n/(n+1)
print('数列的极限为:',limit(s,n,oo))