simple question is there an operator for the root as for the power there's the "* *".
I tried to search but I couldn't find it, so I don't think there is, but if for any reason I didn't saw but it exist can someone please tell? thx
simple question is there an operator for the root as for the power there's the "* *".
I tried to search but I couldn't find it, so I don't think there is, but if for any reason I didn't saw but it exist can someone please tell? thx
The root is just the power of the inverse, so you can also do:
n ** (1 / x)
Or use Math.pow
:
Math.pow(n, 1 / x)
Use Math.sqrt()
. There is no operator for it, but instead a function exists.