Metodos

You might also like

Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 2

1(a).

>> A=[1 2 3;1 -2 4; 0 -2 1]

A=

1 2 3

1 -2 4

0 -2 1

>> Aum=[2;7;3]

>> inv(A)

ans =

-3.0000 4.0000 -7.0000

0.5000 -0.5000 0.5000

1.0000 -1.0000 2.0000

>> inv(A)*Aum

ans =

-1

1
1(b).

a=

1 2 3 2

1 -2 4 7

0 -2 1 3

>> R=rref(a)

R=

1 0 0 1

0 1 0 -1

0 0 1 1

>>

2.

clc;

clear;

f = input('Ingrese el valor :');

a=1;

b=2;

x = f^(a/b);

fprintf('La raiz del valor ingresadon es : %f \n', x);

You might also like