Re: [Tutor] square root
"adam urbas" <[EMAIL PROTECTED]> wrote > Hi all,I was just wondering how I would go about > performing a square root thing, for my radiacir.py program. There is a sqrt function in the math module. import math print math.sqrt(9) Math has a lot of other common mathematical functions in it too - logs, trigonometry etc Or you can use the builtin pow() function to raise the value to the power 0.5 print pow(9,0.5) or use exponentiation: print 9 ** 0.5 HTH, -- Alan Gauld Author of the Learn to Program web site http://www.freenetpages.co.uk/hp/alan.gauld ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] square root
Hello, I have not seen your radiacir.py programme so I am not sure what you want, but for square root, try this http://mail.python.org/pipermail/tutor/2001-February/003411.html HTH adam urbas wrote: > Hi all, > > I was just wondering how I would go about performing a square root > thing, for my radiacir.py program. > > > Create the ultimate e-mail address book. Import your contacts to Windows > Live Hotmail. Try it! > > > > > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor -- Norman ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] square root
Check out the math module. On 28/05/07, adam urbas <[EMAIL PROTECTED]> wrote: > > Hi all, > > I was just wondering how I would go about performing a square root thing, > for my radiacir.py program. > > > Create the ultimate e-mail address book. Import your contacts to Windows > Live Hotmail. Try it! > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] square root
Hi all,I was just wondering how I would go about performing a square root thing, for my radiacir.py program. _ Change is good. See what’s different about Windows Live Hotmail. www.windowslive-hotmail.com/learnmore/default.html?locale=en-us&ocid=TXT_TAGLM_HMWL_reten_changegood_0507___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor