Вы находитесь на странице: 1из 2

'@question 1';

A=[3 1 -1 1 2; 2 1 0 5 1; 1 3 1 2 1; 0 1 0 0 1; 5 1 2 1 2];
B=[4 1 0 0 1; 1 1 -1 0 1; 0 0 0 1 -1; 2 1 2 3 4; 2 2 0 0 1];

fprintf('Áns(1);')

transpose(A*B)
det(transpose(A-B))
inv(A)+inv(B)

'@question 2';
a=[3 4 5];
b=[-2 3 1];
c=[6 8 10];
fprintf('Áns(2);')
cross(a,b)
5*b+4*c
2*c+3*b-a

'@question 1';

fprintf('Áns(1);')
syms x(t)
dsolve('Dx=6*t^5*x^2')
dsolve('Dx=6*t^5*x^2','x(1)=-1')

Áns(1);
ans =

19 21 13 3 27
9 10 8 3 11
1 9 1 -1 1
2 15 7 0 5
11 24 12 2 10

ans =

75

ans =

0.6156 -0.1773 0.2330 -0.7150 -0.0814


-0.0874 -0.3217 0.6748 -0.5070 0.5734
-0.5392 -0.7757 -0.3144 0.5297 0.7058
-0.1553 0.5255 0.5250 0.2133 -0.2038
-0.2762 0.5035 -0.9476 1.5979 -0.0280

Áns(2);
ans =

1
-11 -13 17

ans =

14 47 45

ans =

3 21 18

Áns(1);
ans =

0
-1/(t^6 + C4)

ans =

-1/t^6

Published with MATLAB® R2015a