这样的方程怎么画出它的曲线
来源:学生作业帮 编辑:搜狗做题网作业帮 分类:综合作业 时间:2024/06/28 15:50:18
这样的方程怎么画出它的曲线
(x-c)^2 + y^2=h^2+c^2 其中 h为定值 h=20 c为可变的常数 做出 c为不同整数值下 的曲线族
MATLAB那样的数学软件 可以用吗
(x-c)^2 + y^2=h^2+c^2 其中 h为定值 h=20 c为可变的常数 做出 c为不同整数值下 的曲线族
MATLAB那样的数学软件 可以用吗
![这样的方程怎么画出它的曲线](/uploads/image/z/15036786-18-6.jpg?t=%E8%BF%99%E6%A0%B7%E7%9A%84%E6%96%B9%E7%A8%8B%E6%80%8E%E4%B9%88%E7%94%BB%E5%87%BA%E5%AE%83%E7%9A%84%E6%9B%B2%E7%BA%BF)
恩这个方法比较多,当然可使用Matlab求解了
%by dynamic
%2009.2.14
1.使用参数方程
t=0:0.1:2*pi;
h=20;
hold on
for c=1:20;
x=c+sqrt(h^2+c^2)*sin(t);
y=sqrt(h^2+c^2)*cos(t);
plot(x,y)
end
%若是对plot语句和矩阵运算比较熟悉的用户,那么可以直接使用下面的语句取代循环语句
h=20;
t=0:0.1:2*pi;
c=1:20;
[c,t]=meshgrid(c,t);
x=c+sqrt(h^2+c.^2).*sin(t);
y=sqrt(h^2+c.^2).*cos(t);
plot(x,y)
2.使用等高线
h=20;
[x,y]=meshgrid(-30:1:30);
hold on
for c=0:20
z=(x-c).^2 + y.^2-h^2-c.^2;
contour(x,y,z,[0 0]);
end
![](http://img.wesiedu.com/upload/e/a4/ea445b733ac950edf899b2b6e00690d7.jpg)
%by dynamic
%2009.2.14
1.使用参数方程
t=0:0.1:2*pi;
h=20;
hold on
for c=1:20;
x=c+sqrt(h^2+c^2)*sin(t);
y=sqrt(h^2+c^2)*cos(t);
plot(x,y)
end
%若是对plot语句和矩阵运算比较熟悉的用户,那么可以直接使用下面的语句取代循环语句
h=20;
t=0:0.1:2*pi;
c=1:20;
[c,t]=meshgrid(c,t);
x=c+sqrt(h^2+c.^2).*sin(t);
y=sqrt(h^2+c.^2).*cos(t);
plot(x,y)
2.使用等高线
h=20;
[x,y]=meshgrid(-30:1:30);
hold on
for c=0:20
z=(x-c).^2 + y.^2-h^2-c.^2;
contour(x,y,z,[0 0]);
end
![](http://img.wesiedu.com/upload/e/a4/ea445b733ac950edf899b2b6e00690d7.jpg)