习题2.1
画出下列常见曲线的图形
(1)立方抛物线y?命令:syms x y; ezplot('x.^(1/3)')
3x
(2)高斯曲线y=e^(-X^2); 命令:clear syms x y; ezplot('exp(-x*x)')
(3)笛卡尔曲线
命令:>> clear
>> syms x y; >> a=1;
>> ezplot(x^3+y^3-3*a*x*y)
(4)蔓叶线
命令:>> clear >> syms x y; >> a=1
ezplot(y^2-(x^3)/(a-x))
(5)摆线:x?a?t?sint?,y?b?1?cost? 命令:>> clear >> t=0:0.1:2*pi; >> x=t-sin(t);
>>y=2*(1-cos(t)); >> plot(x,y)
7螺旋线
命令:>> clear >> t=0:0.1:2*pi; >> x=cos(t); >> y=sin(t); >> z=t; >>plot3(x,y,z)
(8)阿基米德螺线
命令:clear >> theta=0:0.1:2*pi; >> rho1=(theta);
>> subplot(1,2,1),polar(theta,rho1)
(9) 对数螺线 命令:clear theta=0:0.1:2*pi; rho1=exp(theta);
subplot(1,2,1),polar(theta,rho1)
(12)心形线
命令:>> clear >> theta=0:0.1:2*pi; >> rho1=1+cos(theta);
>> subplot(1,2,1),polar(theta,rho1)
练习2.2
1. 求出下列极限值
(1)limn??nn3?3n
命令:>>syms n
>>limit((n^3+3^n)^(1/n)) ans = 3
(2)lim(n?1?2n?1?n)
n??命令:>>syms n
>>limit((n+2)^(1/2)-2*(n+1)^(1/2)+n^(1/2),n,inf) ans = 0
(3)limxcot2x
x?0命令:syms x;