

echo on
disp("Solutions of the lab 1 - intro - problems");

%Problem
%Compute a discrete max norm of (sin(x))^2 on [0,1] (on 10000 points) 
x=linspace(0,1,10000);y=sin(x);
norm(y.*y,"inf")

%Create a text file with any 3x3 matrix in a proper octave format and load it to octave.
load matB.txt %must be created in an text editor!!!
B=matB

%Problem 
%plot of th graph of sin(x) on [0,4]
x=linspace(0,4,2560);
plot(x,sin(x));

