Closed
Description
Sage incorrectly computes:
var('n')
l = (3^n + (-2)^n) / (3^(n+1) + (-2)^(n+1))
l.limit(n=oo)
gives 0.
However,
var('n')
l = (3^n + (-2.0)^n) / (3^(n+1) + (-2)^(n+1))
l.limit(n=oo)
gives the correct result 1/3, and
var('n')
assume(n,'integer')
l = (3^n + (-2)^n) / (3^(n+1) + (-2)^(n+1))
l.limit(n=oo)
also does.
maxima also gives the value 0 to the corresponding limits, but changing (-2)^n by (-2.0)^n only produce meaningless results.
Depends on #13973
Component: symbolics
Keywords: symbolic, limit
Author: Peter Bruin
Branch/Commit: 5f3154b
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/13526