I just came across an issue that I can't quite explain:
> num = [1,2,3,4,5]
[ 1, 2, 3, 4, 5 ]
> num[0]
1
> num[0] ^ 2
3
> num[0] * num[0]
1
What is going on here?? what if I needed to take my array number to a larger power this would get quite verbose. Why won't the ^
work?? obviously 1^2 != 3
Thanks for any help