P. 1
Operasi Bilangan Kompleks Menggunakan Command Window

# Operasi Bilangan Kompleks Menggunakan Command Window

|Views: 13|Likes:

See more
See less

04/09/2014

pdf

text

original

# Mathlab Editor

z1=3+9i
z2=9+2i
z1+z2
z1 - z2
z1*z2
z1 / z2
z ǀ
1
, z ǀ ǀ
2
, z ǀ ǀ
1
+ z
2
, z ǀ ǀ
1
- z
2
, z ǀ ǀ
1
*z
2
, z ǀ ǀ
1
/ z
2
ǀ
mag_z1=abs(z1+z2)
deg_z1=angle(z1+z2)*180/pi
mag_z2=abs(z1-z2)
deg_z2=angle(z1-z2)*180/pi
real (z1+z2)
real (z1-z2)
real (z1*z2)
real (z1/z2)
imag(z1+z2)
imag(z1-z2)
imag(z1*z2)
imag(z1/z2)
figure
pl!("0,(z1+z2)#)
!i!le(\$%uan_2&39_'rg1(png\$)
a)is("0 12 0 11#)
*label(\$ima+iner\$)
)label(\$real\$)
grid n
figure
pl!("0,(z1-z2)#)
!i!le(\$%uan_2&39_'rg2(png\$)
a)is(" 0 -& 0 ,#)
*label(\$ima+iner\$)
)label(\$real\$)
grid n
figure
pl!("0,(z1*z2)#)
!i!le(\$%uan_2&39_'rg3(png\$)
a)is(" 0 9 0 8,#)
*label(\$ima+iner\$)
)label(\$real\$)
grid n
figure
pl!("0,(z1/z2)#)
!i!le(\$%uan_2&39_'rg-(png\$)
a)is(" 0 0(. 0 0(8#)
*label(\$ima+iner\$)
)label(\$real\$)
grid n
operasi bilangan kompleks menggunakan command window
// z1=3+9i
z1 =
3(0000 + 9(0000i
// z2=9+2i
z2 =
9(0000 + 2(0000i
a)
// z1+z2
ans =
12(0000 +11(0000i
b)
// z1 - z2
ans =
-&(0000 + ,(0000i
c)
// z1*z2
ans =
9(0000 +8,(0000i
d)
// z1 / z2
ans =
0(.29- + 0(882-i
e)
// z1 ǀ ǀ
z1 =
3(0000 + 9(0000i
// z2 ǀ ǀ
z2 =
9(0000 + 2(0000i
// z1 + z2 ǀ ǀ
ans =
12(0000 +11(0000i
// z1 - z2 ǀ ǀ
ans =
-&(0000 + ,(0000i
// z1*z2 ǀ ǀ
ans =
9(0000 +8,(0000i
// z1 / z2 ǀ ǀ
ans =
0(.29- + 0(882-i
f)
// mag_z1=abs(z1+z2)
mag_z1 =
1&(2,88
// deg_z1=angle(z1+z2)*180/pi
deg_z1 =
-2(.10-
// mag_z2=abs(z1-z2)
mag_z2 =
9(219.
// deg_z2=angle(z1-z2)*180/pi
deg_z2 =
130(&013
g)
// real (z1+z2)
ans =
12
// real (z1-z2)
ans =
-&
// real (z1*z2)
ans =
9
// real (z1/z2)
ans =
0(.29-
h)
// imag(z1+z2)
ans =
11
// imag(z1-z2)
ans =
,
// imag(z1*z2)
ans =
8,
// imag(z1/z2)
ans =
0(882-
i)
Diagram Argand z ǀ
1
+ z
2
ǀ
// figure
// pl!("0,(z1+z2)#)
// !i!le(\$%uan_2&39_'rg1(png\$)
// a)is("0 12 0 11#)
// *label(\$ima+iner\$)
// )label(\$real\$)
// grid n
Diagram Argand z ǀ
1
- z
2
ǀ
// figure
// pl!("0,(z1-z2)#)
// !i!le(\$%uan_2&39_'rg2(png\$)
// a)is(" 0 -& 0 ,#)
// *label(\$ima+iner\$)
// )label(\$real\$)
// grid n
Diagram Argand z ǀ
1
z
2
ǀ
// figure
// pl!("0,(z1*z2)#)
// !i!le(\$%uan_2&39_'rg3(png\$)
// a)is(" 0 9 0 8,#)
// *label(\$ima+iner\$)
// )label(\$real\$)
// grid n
Diagram Argand z ǀ
1
! z
2
ǀ
// figure
// pl!("0,(z1/z2)#)
// !i!le(\$%uan_2&39_'rg-(png\$)
// a)is(" 0 0(. 0 0(8#)
// *label(\$ima+iner\$)
// )label(\$real\$)
// grid n

8]) ylabel('imajiner') xlabel('real') grid on .png') axis([ 0 -6 0 7]) ylabel('imajiner') xlabel('real') grid on figure plot([0.png') axis([ 0 0.png') axis([ 0 9 0 87]) ylabel('imajiner') xlabel('real') grid on figure plot([0.5 0 0.(z1*z2)]) title('Juan_2639_Arg3.(z1/z2)]) title('Juan_2639_Arg4.title('Juan_2639_Arg2.

scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->