+ 2
Help with Exponentiation (Python 3)
Ok, so I’ve only just started to get into coding but there’s one thing that confuses me. *2 = Multiplying by 2 **2 = To the power of 2 That part makes sense, I don’t understand the ** (1/2), does that basically mean the square root, if so does ** (1/3) result in the cube root? Any help would be great, just picked Computer Science for my GCSEs and I’m trying to really get a grasp of coding.
2 Réponses
+ 1
y=x**(1/n) is such y**n=x so yes
+ 1
This is not really coding, this is mathematical notations. Applies for any language having a.power operator (some low level languages dont)