0
Please how do you find the cube root of numbers using python
Cube root
7 Answers
+ 3
number = int(input())
print(number**(1/3))
Basically raising a number to 1/3 will return its cube root
+ 2
Quadri Lasisi
By the way, that 4.9999 is because Floating point arithmetic has built-in problems as it's based on a binary approximation of numbers.
Explained here:
https://docs.python.org/3/tutorial/floatingpoint.html
+ 1
Search it in pandas
A lib for Maths in python
+ 1
Thanks so much, you were right
+ 1
You are right, Cyan
0
Thanks
0
I tried this, it gives me decimal numbers. It says cube root of 125 is 4.9999999999999999999999