Created
December 7, 2011 09:09
-
-
Save bicepjai/1442095 to your computer and use it in GitHub Desktop.
bothaiyanaar theorem
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
#! /usr/bin/python | |
import math | |
def pytha(a,b): | |
return math.sqrt(pow(a,2) + pow(b,2)) | |
def botha(a,b): | |
return (float(a) - float(a/8) + float(b/2)) | |
ranges = 101 | |
for i in xrange(1,ranges): | |
for j in xrange(1,ranges): | |
if (pytha(i,j) == botha(i,j)): | |
print "[",i,j,"]", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment