|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
square root function
how can i use a sqare root function on python. Like if i wanted so square root a number or a variable.
because in C++ it's sqrt(number) including the math.h header. I don't know much about python. Just started today so please be very basic. |
|
#2
|
|||
|
|||
|
Use the math package:
Python 2.1.3 (#1, Apr 20 2002, 10:14:34) ... >>> import math >>> math.sqrt(2) 1.4142135623730951 --parker |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > square root function |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|