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

Closed
opened this Issue Nov 1, 2015 · 3 comments

Projects
None yet
3 participants
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 
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

 Correct Pow.as_numer_denom for cases where base=1, 1/d or n/1 
Fixes sympy/sympy#10095
 cbc8d7b 

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

 Correct Pow.as_numer_denom for cases where base=1, 1/d or n/1 
Fixes sympy/sympy#10095
 c51c1b8 
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

 Correct Pow.as_numer_denom for cases where base=1, 1/d or n/1 
Fixes sympy/sympy#10095
 2208f00 

### mohamedotnet commented Mar 21, 2017 • edited

 >>> 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.

Closed

### 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'.
 86c469a 

Merged

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

 Fix test case for sympy#10095 
Fixed test case for sympy#10095.
 71782a0 

### ylemkimon referenced this issue Sep 9, 2017

Open

#### Improve simplification #13288

 Merge pull request #13131 from ylemkimon/powsimp_float_base 
Fix powsimp issues #9183, #10095, and KeyError
 4e46c79