Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Exercice 1

a=-3
b=0
c=3
x=(b/2)*sqrt(c^2-(b/2.5)^2)
y=exp(2-sqrt(b^3-a^-1))
x=3
Z=abs(2*x^5-3)/sqrt(4*x^2+log(6*x))

EXERCICE 2

k=9:-2:1
b=[1 4.5 3 1]*(2*eye(4))
c=b-[0 9 5 0]
a=b-[1 5 3 -1]
S=[k(5) k(1) (k(5)-1) (k(5)+1);a;b;c]
(diag(S))'+[0 5 0 0]

EXERCICE 3

x=[1 7 8 12 15 6 11 9 18 16 10 13 19]
length(x)
sum(x)
mean(x)
std(x)
dx=diff(x)
dx=x(2:end)-x(1:end-1)

EXERCICE 5
V1=[10 13 25 17 1]
V2=[1 130 125 117 2]
V3=[15 31 15 63 3 ]
V4=[11 20 30 40 4]
V5=[2 25 310 140 5]
mat=[V1;V2;V3;V4;V5];
S=sum(mat(:,5));
P=prod(mat(:,5));
M=mean(mat(:,5));
mat(1,:)=V2;
mat(4,:)=V2;
mat(2,:)=[ ];
mat(:,3)=[];
V4(3)=[];
V4(4)=[];
mini_mat = mat([2:4],[2:4])
deter = det(mini_mat);
I=inv(mini_mat);
b= V5'.*[1;2;3];
x1=inv(mini_mat)*b;
x2=mini_mat\b;
disp([x1,x2])

ENSEIGNANT
EXERCICE 1

u1=[1;2;3]
u2=[-5;2;1]
u3=[-1;-3;7]
A=[2 3 4;7 6 5;2 8 7]
u1'*u2
u1+3*u2-u3/5
A*u1
norm(u1,2)
norm(u2,1)
norm(u3,inf)
size(A)
size(A,2)
det(A)
inv(A)
x=inv(A)*u1
x=A\u1

You might also like