Vous êtes sur la page 1sur 14

Asignacion 1 CODIGO

>> A=[10 -4 2;-13 5 12;0 12 7]

A=

10 -4 2

-13 5 12

0 12 7

>> B= [1 0 0;0 1 0;0 0 1]

B=

1 0 0

0 1 0

0 0 1

>> C=[1 1 2;4 -3 0;5 3 0]

C=

1 1 2

4 -3 0

5 3 0

>> D=[2 2 2;3 3 4;3 4 4]

D=

2 2 2

3 3 4
3 4 4

>> %Transpuesta de cada matriz

>> A'

ans =

10 -13 0

-4 5 12

2 12 7

>> B'

ans =

1 0 0

0 1 0

0 0 1

>> C'

ans =

1 4 5

1 -3 3

2 0 0

>> D'

ans =
2 3 3

2 3 4

2 4 4

>> %Determinante de cada matriz

>> det(A)

ans =

-1766

>> det(B)

ans =

>> det(C)

ans =

54

>> det(D)

ans =

-2.0000

>> %Suma A+B

>> A+B
ans =

11 -4 2

-13 6 12

0 12 8

>> B+C

ans =

2 1 2

4 -2 0

5 3 1

>> C+D

ans =

3 3 4

7 0 4

8 7 4

>> A+D

ans =

12 -2 4

-10 8 16

3 16 11
>> %Multiplicacion

>> A*B

ans =

10 -4 2

-13 5 12

0 12 7

>> B*D

ans =

2 2 2

3 3 4

3 4 4

>> C*A

ans =

-3 25 28

79 -31 -28

11 -5 46

>> %SISTEMAS DE ECUACIONES

>> E=[3 2 1;5 3 4;1 1 -1]

E=

3 2 1
5 3 4

1 1 -1

>> G=[1; 2; 1;]

G=

>> F=E\G

F=

-4.0000

6.0000

1.0000

>> H=[2 -1 2;3 2 -1;4 3 -3]

H=

2 -1 2

3 2 -1

4 3 -3

>> J=[6;4;1]

J=
6

>> I=H\J

I=

>> %GRUPO: SOLIS JASSIEL / TEWANI YASH

>>

ASIGNACION 2:

>> a=1+2i

a=

1.0000 + 2.0000i

>> conj(a)

ans =

1.0000 - 2.0000i

>> b=3+4i

b=
3.0000 + 4.0000i

>> conj(a)

ans =

1.0000 - 2.0000i

>> c=5-7i

c=

5.0000 - 7.0000i

>> conj(c)

ans =

5.0000 + 7.0000i

>> d=4-2i

d=

4.0000 - 2.0000i

>> conj(d)

ans =
4.0000 + 2.0000i

>> %Magnitud y argumento de a

>> r=real(a);

>> i=imag(a);

>> [x,y]=cart2pol(r,i)

x=

1.1071

y=

2.2361

>> %Magnitud y argumento de b

>> r=real(b);

>> i=imag(b);

>> [x,y]=cart2pol(r,i)

x=

0.9273

y=

>> %Magnitud y argumento de c


>> r=real(c);

>> i=imag(c);

>> [x,y]=cart2pol(r,i)

x=

-0.9505

y=

8.6023

>> %Magnitud y argumento de d

>> r=real(d);

>> i=imag(d);

>> [x,y]=cart2pol(r,i)

x=

-0.4636

y=

4.4721

>> %Segunda parte

>> a+b+c-d

ans =
5.0000 + 1.0000i

>> %Segunda parte

>> z=a+b+c-d

z=

5.0000 + 1.0000i

>> r=real(z);

>> i=imag(z);

>> [x,y]=cart2pol(r,i)

x=

0.1974

y=

5.0990

>> %Segunda parte:Problema 2

>> (a*conj(c))+(1/c)

ans =

-8.9324 +17.0946i

>> %Segunda parte:Problema 2


>> z=(a*conj(c))+(1/c)

z=

-8.9324 +17.0946i

>> r=real(z);

>> i=imag(z);

>> [x,y]=cart2pol(r,i)

x=

2.0523

y=

19.2877

>> %Segunda parte:Problema 3

>> z=(b/d)+(a/b)

z=

0.6400 + 1.1800i

>> r=real(z);

>> i=imag(z);

>> [x,y]=cart2pol(r,i)

x=
1.0738

y=

1.3424

>> %Problema 4

>> z=(conj(a)+c)*d*(1/conj(b))

z=

8.4000 - 4.8000i

>> r=real(z);

>> i=imag(z);

>> [x,y]=cart2pol(r,i)

x=

-0.5191

y=

9.6747

>> %Problema 5

>> z=(b*conj(b))+(a/c)+(c*d)
z=

30.8784 -37.7703i

>> r=real(z);

>> i=imag(z);

>> [x,y]=cart2pol(r,i)

x=

-0.8855

y=

48.7859

>>

Vous aimerez peut-être aussi