In [1]:
import decimal
In [2]:
decimal.Context()
Out[2]:
5000兆円欲しい
In [3]:
want = decimal.Decimal(5000 * 10 ** 12)
In [4]:
want
Out[4]:
不要かもだけど
In [5]:
one = decimal.Decimal('1')
In [6]:
one
Out[6]:
In [7]:
e = (one + one / want) ** want
In [8]:
e
Out[8]:
In [9]:
import math
In [10]:
math.e
Out[10]:
うーん、まあまあか
In [11]:
double_want = 5000 * 10 ** 12
In [12]:
e = (1 + 1 / double_want) ** double_want
In [13]:
e
Out[13]:
ダメダメですね