8000 simple incorrect limit · Issue #13526 · sagemath/sage · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
simple incorrect limit #13526
Closed
Closed
@sagetrac-pang

Description

@sagetrac-pang

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0