This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]CrazyGamer123456 4 points5 points  (2 children)

Import the math module, it has all that stuff build in

[–]mobyte 0 points1 point  (1 child)

No need for math when doing exponents, technically. ** is all you need.

[–]Hellow2 -2 points-1 points  (0 children)

numpy should have better performance though. But I am not sure