Skip to content

Instantly share code, notes, and snippets.

@utsengar
Forked from bicepjai/bothaiyanaar.py
Created December 7, 2011 09:13
Show Gist options
  • Save utsengar/1442105 to your computer and use it in GitHub Desktop.
Save utsengar/1442105 to your computer and use it in GitHub Desktop.
bothaiyanaar theorem
#! /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