Prześlij pliki do 'zajęcia 12'

zadania
This commit is contained in:
Izabela Kosmala 2018-01-12 23:42:12 +00:00
parent c150aaac6d
commit b83869b9f4

34
zajęcia 12/octave.txt Normal file
View File

@ -0,0 +1,34 @@
zad.1
A=[2 -2 1 -1; -1 4 -5 3; 1 1 -1 1; -4 2 1 -2];
f=[7 1 4 6];
u=A/f'
zad.2
c=[1 0 -21 20];
roots(c)
zad. 3
x=-4:0.05:4;
y=x.^2-2*x+3;
plot(x,y,"-g")
x=-2*pi:0.035:2*pi;
y=cos(2*x);
plot(x,y,".r")
x=-4*pi:0.05:4*pi;
y=sin(1/x);
plot(x,y,"b",'LineWidth',0.25)
x=-3:0.1:3;
y=-3:0.1:3;
[X,Y]=meshgrid(x,y);
mesh(X,Y,X.^2+Y.^2)
x=-3:0.1:3;
y=-3:0.1:3;
[X,Y]=meshgrid(x,y);
mesh(X,Y,X.^2-Y.^2+2*X*Y.^2+1)