如何从wxmaxima中一个点运动方程式绘制路径?

发布于 2025-01-26 10:12:27 字数 407 浏览 3 评论 0原文

我有一个点的运动方程式:

x:3*sin(4*t);
y:2*cos(4*t);

我已经创建了一个向量:

r:[x,y];

并且进行了一些操作,但我不知道如何绘制路径(结果应该是椭圆)。

我尝试了各种命令,只有这给了我类似的东西与我想实现的目标相似:

load(draw);
draw2d(parametric(x,y,t,0,10));

但是结果很奇怪:

此处输入映像”

I have the following equations of motion of a point:

x:3*sin(4*t);
y:2*cos(4*t);

I already created a vector:

r:[x,y];

and did some operations but I don't know how to plot the path (the result should be an ellipse).

I tried various commands and only this gave me something similar to what I want to achieve:

load(draw);
draw2d(parametric(x,y,t,0,10));

But the result is strange:

enter image description here

Is there a way to get a proper plot in form of an ellipse in wxMaxima in this case?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

娇妻 2025-02-02 10:12:27

看起来draw2d(parametric(...))没有应用自适应细分以获得更平滑的绘图。它只是从固定网格中进行采样。您可以说draw2d(nticks =< gallumber>,parametric(...))获得一个更平滑的绘图,但是问题并没有消失。

尝试plot2d([[parametric,x,y,[t,0,10]]) - 我发现这给出了一个很好的平滑图。

Looks like draw2d(parametric(...)) is not applying adaptive subdivision to get a smoother plot; it's just sampling from a fixed grid. You can say draw2d(nticks = <large number>, parametric(...)) to get a somewhat smoother plot, but the problem doesn't go away.

Try plot2d([parametric, x, y, [t, 0, 10]]) -- I find that gives a nice smooth plot.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文