circle.sce Code:
// 画圆
// 圆的标准方程为 x^2+y^2=r^2
// 圆心坐标(x0,y0)
x0=0;
y0=0;
r=10; // 半径
t=linspace(0,2*%pi);
x=r*cos(t)+x0;
y=r*sin(t)+y0;
plot2d(x,y);
xtitle('圆','x','y');
// axis centered at (0,0)
a=gca(); // Handle on axes entity
a.x_location = "origin";
a.y_location = "origin";
1万+

被折叠的 条评论
为什么被折叠?



