% SL6:
A = [-1 1; 1 -2]
B = [1 2 3; 4 5 6; 7 8 9]

% SL7:
a = 1
b = 5;

a = 1, b = 5
a = 1; b = 5;

c = [1 0 0]
d = [0; 0; 1]

% SL12:
a3 = -2/4
a4 = -0.5
a5 = -.5

3*5*6
a1 = 15
a2 = 10;
a2/a3
a2/a3*a4
a2/(a3*a4)

% SL15:
a = 3.24; alpha = pi/7;
a*(sin(alpha)^2 + cos(alpha)^2 - 1)

a = 14; b = 28;
(log10(a) + log10(b)) - log10(a*b)

T = [1/2 1/3 1/4 1/5; 6 7 8 9; 0.2 0.3 0.4 0.5];
sum(T,2)

% SL16:
u = [1 2 3]; v = [3 2 1];
u*transpose(v), transpose(v)*u
v'*u, u'*v
dot(u,v), cross(u,v)

% SL17:
r = 1 + 10*rand(1)
round(r)
ceil(r)
floor(r)
fix(r)
fix(1e2*r)/1e2
rem(r,0.1)

% SL19:
T = 10 + 4*randn(7,7);
trace(T)

U = [1 2 17/81; 0 2 0; 0 -2 -1];
det(U)

A = [1 2 3; 4 5 6;7 8 1]; 
b = [6 15 16]';
x = inv(A)*b;

% or
x = A \ b;