November 15th, 2012, 12:21 PM
Calculating a square root using exponentiation (**)
This is really a math question rather than a Python question, and I feel very dense for not being able to figure it out. I'm reading a book on Python and it introduces the math library as a source of useful functions, like sqrt. Then it says, as an aside, "We could have taken the square root using exponentiation **. (Can you see how?)"
Unfortunately, I can't see how. Can anyone help me?
November 15th, 2012, 12:30 PM
Kinda basic math.
>>> import math
Comments on this post
My armada: Debian GNU/Linux 8 (desktop, home laptop, work laptop), Raspbian GNU/Linux 8 (nameserver), Ubuntu 14.04.3 LTS (HTPC), PC-BSD 10.2 (testbed), Android 4.2.1 (tablet)
November 15th, 2012, 01:31 PM
Thanks, SuperOscar. Boy do I feel stupid.
Originally Posted by SuperOscar