1

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.

Alexey Popkov
  • 61,809
  • 7
  • 149
  • 368
S. Khan
  • 79
  • 5

1 Answers1

2

The universal answer for such kind of questions is to compare FullForms of the expessions. You will see their actual internal structure in a readable and (usually) easy-to-interpret form.

Recommended reading:

Alexey Popkov
  • 61,809
  • 7
  • 149
  • 368