June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -0,0 +1,11 @@
|
|||
from decimal import Decimal
|
||||
from fractions import Fraction
|
||||
from itertools import product
|
||||
|
||||
zeroes = [0, 0.0, 0j, Decimal(0), Fraction(0, 1), -0.0, -0.0j, Decimal(-0.0)]
|
||||
for i, j in product(zeroes, repeat=2):
|
||||
try:
|
||||
ans = i**j
|
||||
except:
|
||||
ans = '<Exception raised>'
|
||||
print(f'{i!r:>15} ** {j!r:<15} = {ans!r}')
|
||||
Loading…
Add table
Add a link
Reference in a new issue