0

How to write √ of any quantity in python?

9th May 2019, 3:54 PM
Neha Sharma
Neha Sharma - avatar
2 Answers
+ 1
Hi. I am thinking of numpy in this case. https://docs.scipy.org/doc/numpy/reference/generated/numpy.sqrt.html If you consider other than square you might want to use numpy's power https://docs.scipy.org/doc/numpy/reference/generated/numpy.power.html
9th May 2019, 4:30 PM
ChrA
ChrA - avatar
+ 1
Are we talking simple roots? 4**(1/2) == 2 27**(1/3) == 3
9th May 2019, 6:10 PM
HonFu
HonFu - avatar