M=ones(10,10)*8-3*eye(10,10);
det(M), inv(M),

v=%e^[0:99];
u=(1/%pi)^[0:99];
u*v'

A=[%T %T %T %T %F %F %F %F];
B=[%T %T %F %F %T %T %F %F];
C=[%T %F %T %F %T %F %T %F];
~(A&B)
A|B
~((A==B)|(A==C))
(~(A==B))&(~(A==C))

s=0
for n=1:150 
    s=s+n/(2^(n-1))
end

clf
x = [-1:0.01:4]';
y = x^2+1;
z = -x+5;
plot(x,[y, z],'LineWidth',3)
xgrid
xlabel('$x$')
ylabel('$x^2+1$, $-x+5$')
title('$\mbox{Wykres }x^2+1\mbox{ oraz }-x+5$')
legend('$x^2+1$','$-x+5$',2)


