- 1
what is the function code for this?
√(2^(2)+3^(2))
3 Antworten
+ 2
also, taking the square root is pretty much like raising to the power 0.5, so you can do that. There is less precision, but it doesn't require an import...
+ 3
import math;
math.sqrt(2**2 + 3**2)
You can also do math.pow(x, y) for exponents. (x^y)
0
wow I never knew that thank you so much