0% found this document useful (0 votes)
31 views2 pages

Matlab

dasdas

Uploaded by

Hanami Nui Thanh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views2 pages

Matlab

dasdas

Uploaded by

Hanami Nui Thanh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

syms x y

f=exp(x^2+2*y)
f=exp(x^2+2*y);
A=3*diff(f,x)+5*diff(f,y)
subs(A,[x,y],[0 0])
clc
syms z
f=log(exp(x)+exp(z))-log(exp(x)+exp(y))
A=5*diff(f,x)-2*diff(f,y)+diff(f,z)
subs(A,[x y z],[0 0 0])
clc
f=(x^2+y^2+z^1)/(x+y+z);
f=(x^2+y^2+z^2)/(x+y+z);
A=diff(f,x)+diff(f,y)+diff(f,z)
subs(A,[x y z],[0 1 0])
d1=diff(f,x)
d2=diff(d1,y)
d3=2*diff(d2,z)
d3=diff(d2,z)/4
B=d3
subs(B,[x y z],[1 1 -1])
%%%%%%%%%%%%%%% c?c tr? t? do%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
f=x^3+y^3-6*x*y;
fx=diff(f,x);fy=diff(f,y);
S=solve(fx,fy)
X=S.x,Y=S.y
A=[0 0];B=[2 2];
fxx=diff(fx,x);fxy=diff(fx,y);fyy=diff(fy,y);
del=fxy^2-fxx*fyy
subs(del,[x y],A)
disp('diem dung (0 0) ko la cuc tri')
subs(del,[x y],B)
B
a=subs(fxx,[x y],B)
f=x^3+y^3-6*x*y;
subs(del,[x y],A)

syms x y
f=x^2+y^2-32*log(x*y)
fx=diff(f,x);fy=diff(f,y);
S=solve(fx,fy);X=S.x;Y=S.y;
X
Y
P1=[4 4];P2=[-4 4];P3=[4 -4];P4=[-4 -4];
A=diff(fx,x);B=diff(fx,y);C=diff(fy,y);
del=B^2-A*C;
subs(del,[x y],P1)
subs(A,[x y],P1)
subs(del,[x y],P2)
subs(A,[x y],P2)
subs(del,[x y],P3)
subs(A,[x y],P3)
subs(del,[x y],P4)
subs(A,[x y],P4)
disp('bon diem dung deu la cuc tieu')
%%%%%%%%%%%%%%%% Tch phn kp%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

syms x y
y1=x-1;y2=9-x;y3=3*x-3
ezplot(y1)
ezplot(y2)
ezplot(y1)
hold on
ezplot(y2)
ezplot(y3)
solve(y1-y3)
solve(y1-y2)
solve(y3-y2)
f=x-2*y;
int(int(f,y,y1,y3),x,1,3)+int(int(f,y,y1,y2),x,3,5)

f=1/(x^2+y^2);
syms r phi
X=r*cos(phi);Y=r*sin(phi);
syms r phi
X=r*cos(phi);Y=r*sin(phi);
g=subs(f,[x y],[X Y])*r
int(int(g,r,0,2*cos(phi)),phi,0,pi/2)
g=simplify(g)

You might also like