Created
March 8, 2018 09:12
-
-
Save dimnikolos/3bbf24f6dfc3b05421c52c574ced5e6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
def einaiTetragwnos(x): | |
if math.sqrt(x) == int(math.sqrt(x)): | |
return(True) | |
else: | |
return(False) | |
for a in range(-3,3): | |
for b in range(-3,3): | |
for g in range(-3,3): | |
ar = g**2-a*b*g | |
if ar > 0 and einaiTetragwnos(ar): | |
if (a!=0 and b!=0 and g!=0): | |
print("α=",a,",β=",b,"γ=",g) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment