MATLAB作业题

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/21 17:17:56
MATLAB作业题MATLAB作业题MATLAB作业题1、ezplot('x^2/5^2+y^2/2^2=1')axisequal 2(1)>>symsx>

MATLAB作业题
MATLAB作业题

MATLAB作业题

1、

ezplot('x^2/5^2+y^2/2^2=1')
axis equal

 

2(1)

>> syms x
>> limit((2*x^2-2)/(x-1),1)
ans =
4

2(2)

>> limit((x^2+4)/(x-7),2)
ans =
-8/5
 

2(3)

>> limit((x^2-1)/(x^3-1),1)
ans =
2/3
 

2(4)

>> limit((x^2+3)/(4*x^2-7),inf)
ans =
1/4

 

2(5)

>> limit(sqrt(x^2+x)-sqrt(x^2-1),inf)
ans =
1/2

3(1)

>> syms x y
>> z=x*log(x+y);
>> diff(z,x,2)
ans =
2/(x + y) - x/(x + y)^2
 
>> diff(z,y,2)
ans =
-x/(x + y)^2
 
>> diff(diff(z,x),y)
ans =
1/(x + y) - x/(x + y)^2

 

3(2)

>> y=solve('x*y+x+y=1','y')
y =
-(x - 1)/(x + 1)
 
>> diff(y,x)
ans =
(x - 1)/(x + 1)^2 - 1/(x + 1)

3(3)

>> syms x y z
>> F=x/z-log(z/y);
>> diff(F,x)/diff(F,z)
ans =
-1/(z*(x/z^2 + 1/z))
 
>> diff(F,y)/diff(F,z)
ans =
-1/(y*(x/z^2 + 1/z))

作业的话自己做呗