What is the correct way to write 1/2i in Matlab?

  • Thread starter Thread starter danik_ejik
  • Start date Start date
  • Tags Tags
    Inverse Matrix
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
danik_ejik
Messages
18
Reaction score
0
I don't understand what am I doing wrong!?
please help:

gif.latex?A=\begin{pmatrix}%201%20&%201\\%20i%20&%20-i%20\end{pmatrix}.gif


I need to find the inverse of A,
so
gif.gif

and
2i%20\end{pmatrix}.gif


but Matlab returns me
2i%20\end{pmatrix}.gif
 
Last edited:
Physics news on Phys.org
danik_ejik said:
2i%20\end{pmatrix}.gif

Look more closely. Are you sure it's not this?

2)i%20\end{pmatrix}.gif
 
no, I'm not sure...
but what am I doing wrong ?
 
When you write 1/2i the reader doesn't know whether you mean (1/2)i or 1/(2i). Be more specific by using parentheses in these situations.

As for your problem, for which matrix [tex]A^{-1}[/tex] above do you find that [tex]AA^{-1} =1[/tex]? That is the inverse. We can't tell because we don't know what you mean by 1/2i.