Exercícios Aula de Calculo Numérico
Por: Nélio Junior • 4/5/2017 • Trabalho acadêmico • 697 Palavras (3 Páginas) • 187 Visualizações
>> A=[1 1 2; 2 -1 5; 3 2 -1]
A =
1 1 2
2 -1 5
3 2 -1
>> B=[6; 18; -2]
B =
6
18
-2
>> K=[A B]
K =
1 1 2 6
2 -1 5 18
3 2 -1 -2
>> SOLUCAO = rref(K)
SOLUCAO =
1 0 0 1
0 1 0 -1
0 0 1 3
>>
>> a = [1 1 2; 1 1 1; 1 -1 -1]
a =
1 1 2
1 1 1
1 -1 -1
>> b=[0 1 3]
b =
0 1 3
>> b=[0;1;3]
b =
0
1
3
>> k=[a b]
k =
1 1 2 0
1 1 1 1
1 -1 -1 3
>> resolucao = rref(k)
resolucao =
1 0 0 2
0 1 0 0
0 0 1 -1
>>
>> a = [1 -3 -1; 3 -1 1; -1 5 -3]
a =
1 -3 -1
3 -1 1
-1 5 -3
>> b=[0;0;0]
b =
0
0
0
>> k=[a b]
k =
1 -3 -1 0
3 -1 1 0
-1 5 -3 0
>> solucao = rref(k)
solucao =
1 0 0 0
0 1 0 0
0 0 1 0
>>
>> a
a =
2 -3
1 1
>> b= [-4;3]
...