Graphics Reference
In-Depth Information
exercise A-10
Given the complex square matrix m of order 3, get your square, its square root and its exponential base 2 and -2.
é
23
456
789
i
i
i
ù
ê
ê
ú
ú
M
=
i
i
i
i
i
i
ë
û
>> M=[i 2*i 3*i; 4*i 5*i 6*i; 7*i 8*i 9*i]
M =
0.0000 + 1.0000i 0.0000 + 2.0000i 0.0000 + 3.0000i
0.0000 + 4.0000i 0.0000 + 5.0000i 0.0000 + 6.0000i
0.0000 + 7.0000i 0.0000 + 8.0000i 0.0000 + 9.0000 i
>> C=M^2
C =
-30 -36 - 42
-66 -81 - 96
-102 -126 - 150
>> D=M^(1/2)
D =
0.8570 - 0.2210i 0.5370 + 0.2445i 0.2169 + 0.7101i
0.7797 + 0.6607i 0.9011 + 0.8688i 1.0224 + 1.0769i
0.7024 + 1.5424i 1.2651 + 1.4930i 1.8279 + 1.4437i
>> 2^M
ans =
0.7020 - 0.6146i -0.1693 - 0.2723i -0.0407 + 0.0699i
-0.2320 - 0.3055i 0.7366 - 0.3220i -0.2947 - 0.3386i
-0.1661 + 0.0036i -0.3574 - 0.3717i 0.4513 - 0.7471i
>> (-2)^M
ans =
17.3946 - 16.8443i 4.3404 - 4.5696i -7.7139 + 7.7050i
1.5685 - 1.8595i 1.1826 - 0.5045i -1.2033 + 0.8506i
-13.2575 + 13.1252i -3.9751 + 3.5607i 6.3073 - 6.0038i
Search WWH ::




Custom Search