+ 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 Answers
+ 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