+ 6

How to take square root of numbers in python?

Please Suggest any way to take square root of numbers in python?

27th Feb 2017, 4:11 PM
🔭 GP 🔭
🔭 GP 🔭 - avatar
23 Respuestas
+ 7
>>> print(2**.5) 1.4142135623730951 Everything seems to be working...
28th Feb 2017, 8:01 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 8
x = float(math.sqrt(s(s-a)(s-b)(s-c))) cant this work?
27th Feb 2017, 4:48 PM
🔭 GP 🔭
🔭 GP 🔭 - avatar
+ 8
its just showing - Typerror: 'float' object is not callable
27th Feb 2017, 4:53 PM
🔭 GP 🔭
🔭 GP 🔭 - avatar
27th Feb 2017, 4:54 PM
🔭 GP 🔭
🔭 GP 🔭 - avatar
+ 8
can u gibe me an example
27th Feb 2017, 4:58 PM
🔭 GP 🔭
🔭 GP 🔭 - avatar
+ 8
Thank you very Much😊😊😊😇
27th Feb 2017, 5:05 PM
🔭 GP 🔭
🔭 GP 🔭 - avatar
+ 8
Well I am Have you cleared it? If yes , can you give some tips...
27th Feb 2017, 5:07 PM
🔭 GP 🔭
🔭 GP 🔭 - avatar
+ 8
Oh yes! SoloLearn is my practice book.. Byw what was your rank?
27th Feb 2017, 5:11 PM
🔭 GP 🔭
🔭 GP 🔭 - avatar
+ 8
👍👍👍 When did you give it?
27th Feb 2017, 5:17 PM
🔭 GP 🔭
🔭 GP 🔭 - avatar
+ 8
Sounds Cool😎😎😎
27th Feb 2017, 5:29 PM
🔭 GP 🔭
🔭 GP 🔭 - avatar
+ 8
@Kuba_Siekierzynski But it's still not working(x**0.5)
28th Feb 2017, 7:57 AM
🔭 GP 🔭
🔭 GP 🔭 - avatar
+ 8
I actually forgot to mention the brackets. It's working.Thank you🙂☺☺
28th Feb 2017, 8:04 AM
🔭 GP 🔭
🔭 GP 🔭 - avatar
+ 5
x**0.5 gives a square root of x and does not require importing the math module.
27th Feb 2017, 6:26 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
math.sqrt (n)
27th Feb 2017, 4:47 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
+ 1
it should work. post your code link if facing problem. it is triangle ▲ value na?
27th Feb 2017, 4:51 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
+ 1
use multiplication sign
27th Feb 2017, 4:58 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
+ 1
it is working. ..write s*(s-a)* ...like this
27th Feb 2017, 5:00 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
27th Feb 2017, 5:03 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
+ 1
its ok. btw are you preparing for JEE? this formula remind me of my preparation days.
27th Feb 2017, 5:07 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
+ 1
hey! in exam hall...you won't get compiler so practice to do manually. and if you are in preparation this year..I suggest you to concentrate on that only
27th Feb 2017, 5:09 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar