Vous êtes sur la page 1sur 9

AKILIMALI BUSHASHIRE Idrissa G3 Électricité industriel

QUESTION 1

a.

syms x % declarer x comme


symbolep=-2*x^5+10*x^4+2*x^3-
38* ^2+4* 48
p =

% tracer la courbe
p(x)fplot(p)

sol=solve(p)
sol=
%sansbornesd'integration
I=int(-2*x^5+10*x^4+2*x^3-38*x^2+4*x-48)

I =

d. p=-2*x^5+10*x^4+2*x^3-38*x^2+4*x-
48;P1=diff(p,2)%deriveeseconde
P1 =

P=expand(p)
P =

P=p^2

P =

e.P=expand(P)
e = struct with fields:
P:[1×1 sym]

p=-2*x^5+10*x^4+2*x^3-38*x^2+4*x-48
p =

l=factor(p)

l =

QUESTION 2

a.

syms g % declarer g comme


symboleH=5*g^6+6*g^4-
12* ^3+2* ^2 +15
H =

% tracer la courbe
(H)fplot(H)
b.

sol=solve(H)
sol=

QUESTION 3

symsx
f(x)=x^3*exp(sin(2*x))/(5+4*cos(x))

f(x)=

% tracer la
courbefplot(f)

G(x)=

G=subs(f,x,1000)%dansf,remplacerxpar1000

1000000000*exp(sin(2000))/(4*cos(1000)+5)
ans=3.4962e+08

f1=diff(f)

f1(x)=

I(x)=int(f1)
I(x)=

QUESTION 4

syms x
yf(x,y)=(x*y*exp(x)+4*cos(x))/(5*y
)f(x,y)=

b=subs(f,x,10)%dansfremplacerxpar10
b(x,y)=

h=subs(b,y,1)%avecx=10,utilisery=1
h(x,y)=

(4*cos(10))+2*exp(10)/5
ans=8.8072e+03

f1=diff(f,x)%deriverdefparrapportax

f1(x,y)=

f2(x,y)=

f2=diff(f1,y)%deriverdef1parrapportay

f3=diff(f2,x)
f3(x,y)=
f4=diff(f3,y)

f4(x,y)=

I(x,y)=

% double
integralesymsx y
I(x,y)=int((x*y*exp(x)+4*cos(x))/(5*y),x)

I1(x,y)=int(I,y)
I1(x,y)=

I2=int(I1,x)
I2(x,y)=

I3=int(I2,y)
I3(x,y)=

QUESTION 5

%
DONNEESE=
10

E =10

J=[76-25-50 0 0 0
-2556 -1 -30 00
-50-1 160-55 0 0
0-30-55 160-25-50
0 0 0-25 56-1
0 0 0-50 -1106]

J=
76 -25 -50 0 0 0
-25 56 -1 -30 0 0
-50 -1 160 -55 0 0
0 -30 -55 160 -25 -50
0 0 0 -25 56 -1
0 0 0 -50 -1 106

K=[10;0;0;0;0;0];
I=inv(J)*K

I =
0.2614
0.1671
0.1138
0.0903
0.0411
0.0430

I1=I(1)
I1=0.2614

I2=I(2)

I2=0.1671

I3=I(3)
I3=0.1138

I4=I(4)

I4=0.0903

I5=I(5)
I5=0.0411

I6=I(6)

I6=0.0430

syms A B C D E
Ff(1)=76*A-25*B-50*C-
10;f(2)=-25*A+56*B-C-
30*D;f(3)=-50*A-B+106*C-
55*D;
f(4)=-30*B-55*C+160*D-25*E-
50*F;f(5)=-25*D+56*E-F;
f(6)=-50*D-
E+106*F;[A
A = B C D E F] solve(f(1) f(2) f(3) f(4) f(5) f(6))

B =

C =
D =

E =

F =

QUESTION 6
soit le circuit RLC suivant ou E=10v,R=10k,L=105mH et C=100microfarad

%SYSTEMEDUSECONDDEGREAUNEVARIABLE
syms vc
tl=0,105;c=0,0001;r=10000
l =0
c =0

%sans conditions
initialessol=dsolve("D2vc=(90000000+vc)/105")%D2vc:Deriversecondedevc
sol=

% Avec conditionq initiales vc(0)=0 et


Dvc(0)=0sol=dsolve("D2vc=(90000000+vc)/105",'vc(0)=0','Dvc(0)=0')
sol=

%tracer la courbe solution pour un temps de 0 à 10 secT=0:0.01:10;


V=subs(sol,t,T);plot(T,V)

Vous aimerez peut-être aussi