first homework
This commit is contained in:
10
chapter-03/decidable/main.py
Normal file
10
chapter-03/decidable/main.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from decidable import REAL
|
||||
from gmpy2 import mpq
|
||||
|
||||
# Theorem 3.1 (5)
|
||||
|
||||
print(REAL.from_rational(mpq(1,3)).as_str(10))
|
||||
print(REAL.from_rational(mpq(41,5)).as_str(10))
|
||||
print(REAL.from_rational(mpq(1,5)).as_str(10))
|
||||
print(REAL.from_int(1).as_str(10))
|
||||
|
||||
Reference in New Issue
Block a user