<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1226" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#fffff0>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hello there,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Python is really an excellent programming language,
in terms of mathematical calculations. I have had a first hand experience of the
power of python while using the Mayalib source code for python to calculate
mayan dates.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>However, i am currently experiencing some problems
in writing my own program as i am not a language programmer.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I need to make calculations using very large
numbers, unfortunately, i am getting a "ZeroDivisionError: float division"
error.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can you please help me out?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>What follows is my program. Its simple and brief,
yet it is actually calculating one of the best proven theories in science -
special relativity.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT size=2>
<P>import cmath</P>
<P> </P>
<P>a = 186282.397</P>
<P>b = 1609.344</P>
<P>c = 365.2421987817</P>
<P>d = 99.9999999999999999995</P>
<P>e = (d*a)/100</P>
<P>beta = ((e*b)**2) / ((a*b)**2)</P>
<P>gamma = 1/math.sqrt(1-beta)</P>
<P>ty = 100000</P>
<P>td = ty*c</P>
<P>print</P>
<P>print "speed of light =",a,"mps"</P>
<P>print "1 mile =",b,"metres"</P>
<P>print "1 year =",c,"days"</P>
<P>print</P>
<P>print "% of c =",d,"%"</P>
<P>print "gamma =",gamma</P>
<P>print</P>
<P>print "normal time = ",ty,"years"</P>
<P>print " ",td,"days"</P>
<P>print</P>
<P>print "time dilation =",ty/round(gamma),"yrs"</P>
<P>print " ",td/gamma,"days"</P>
<P><FONT face=Arial>Thanking you</FONT></P>
<P><FONT face=Arial>Vickram</FONT></P></FONT></DIV></FONT></DIV></BODY></HTML>