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
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 A^{-1} above do you find that AA^{-1} =1? That is the inverse. We can't tell because we don't know what you mean by 1/2i.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...

Similar threads

Replies
3
Views
1K
Replies
10
Views
1K
Replies
2
Views
856
Replies
3
Views
2K
Replies
4
Views
2K
Replies
12
Views
3K
Back
Top