first homework

This commit is contained in:
Jan-Niclas Loosen
2025-04-18 20:28:21 +02:00
parent 26118be87f
commit 17875d57cb
5 changed files with 66 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ from dedekint import REAL
# mpq for rational numbers
from gmpy2 import mpq
# Theorem 3.1 (4)
def sqrt_two(q):
if q <= 0 or q * q < 2: return True