Introduç˜ao `a´Algebra Linear com o gnu-Octave - Departamento de ...
Introduç˜ao `a´Algebra Linear com o gnu-Octave - Departamento de ...
Introduç˜ao `a´Algebra Linear com o gnu-Octave - Departamento de ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
2.1.<br />
NOTAÇÃO MATRICIAL 13<br />
ans =<br />
2<br />
3<br />
Consi<strong>de</strong>re agora a matriz B =<br />
> B=[1 2-i 3i; 0 sqrt(2) -1]<br />
B =<br />
[<br />
1 2 − i 3i<br />
√<br />
]:<br />
0 2 −1<br />
1.00000 + 0.00000i 2.00000 - 1.00000i 0.00000 + 3.00000i<br />
0.00000 + 0.00000i 1.41421 + 0.00000i -1.00000 + 0.00000i<br />
No <strong>Octave</strong>, todas as constantes numéricas são representadas no formato <strong>de</strong> vírgula flutuante<br />
<strong>com</strong> dupla precisão (as constantes <strong>com</strong>plexas são memorizadas <strong>com</strong>o pares <strong>de</strong> valores <strong>de</strong> vírgula<br />
flutuante <strong>de</strong> dupla precisão). O <strong>Octave</strong>, por <strong>de</strong>feito, apenas mostra uma parte do valor que<br />
armazenou.<br />
> format long<br />
> B=[1, 2-i, 3i; 0, sqrt(2), -1]<br />
B =<br />
Column 1:<br />
1.000000000000000 + 0.000000000000000i<br />
0.000000000000000 + 0.000000000000000i<br />
Column 2:<br />
2.000000000000000 - 1.000000000000000i<br />
1.414213562373095 + 0.000000000000000i<br />
Column 3:<br />
0.000000000000000 + 3.000000000000000i<br />
-1.000000000000000 + 0.000000000000000i<br />
> format<br />
> B<br />
B =<br />
1.00000 + 0.00000i 2.00000 - 1.00000i 0.00000 + 3.00000i<br />
0.00000 + 0.00000i 1.41421 + 0.00000i -1.00000 + 0.00000i