I have tried
(a[i])^2
and alternatively
(a^2)[i]
Apparently both seem to work, but I was wondering what was the right way to do it? This might sound like a silly question (apologies if it is). But I am doing some tedious calculations and I don't want a silly mistake to carry forward.
Thanks in advance.
a[i] = 2
compare what(a[i])^2
evaluates versus what(a^2)[i]
evaluates. $\endgroup$