New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify((1/(2*E))**oo) returns `nan` #10095

Closed
gxyd opened this Issue Nov 1, 2015 · 3 comments

Comments

Projects
None yet
3 participants
@gxyd
Copy link
Member

gxyd commented Nov 1, 2015

>>> (1/(2*E))**oo
(1/(2*E))**oo
>>> simplify((1/(2*E))**oo)
nan
>>> powsimp((1/(2*E))**oo)
(1/(2*E))**oo
@leosartaj

This comment has been minimized.

Copy link
Member

leosartaj commented Nov 1, 2015

This works,

>>> limit((1/(2*E))**x, x, oo)
0

skirpichev added a commit to diofant/diofant that referenced this issue Dec 24, 2015

skirpichev added a commit to diofant/diofant that referenced this issue Dec 26, 2015

@gxyd

This comment has been minimized.

Copy link
Member

gxyd commented Jan 3, 2016

@asmeurer was the automatic simplification of 1/(2*E)**oo is not done. Is that so because that makes the core slow? Or is that a bug?

skirpichev added a commit to diofant/diofant that referenced this issue Jan 7, 2016

@gxyd gxyd added bug core labels Jan 22, 2017

@mohamedotnet

This comment has been minimized.

Copy link

mohamedotnet commented Mar 21, 2017

>>> from sympy import *
>>> (1/(2*E))**oo
(exp(-1)/2)**oo
>>> simplify((exp(-1)/2)**oo)
nan

So, I don't think that it is a bug.. Perhaps you should calculate the limit instead.

ylemkimon pushed a commit to ylemkimon/sympy that referenced this issue Aug 15, 2017

Add tests for sympy#9183 and sympy#10095
Added tests for sympy#9183 and sympy#10095 fixed by 'Fix Pow.as_numer_denom() when
exp is infinite' and 'Fix powsimp raising ValueError when base is
float'.

ylemkimon pushed a commit to ylemkimon/sympy that referenced this issue Aug 16, 2017

@ylemkimon ylemkimon referenced this issue Sep 9, 2017

Open

Improve simplification #13288

13 of 21 tasks complete

@smichr smichr closed this in #13131 Sep 9, 2017

smichr added a commit that referenced this issue Sep 9, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment