【问题标题】:how do i plot a phase plane diagram using maple如何使用 Maple 绘制相平面图
【发布时间】:2017-01-21 13:52:51
【问题描述】:

您好,我想知道是否有人可以帮助我,我正在尝试使用 maple 生成下面系统的相平面图。 在图表上,我想标记我为以下系统找到的平衡点,它们是 (x,y)=(0,2) 和 (1,0)

系统是 $(dx/dt)=-2x-y+2$ 和 $(dy/dt)=xy$ 我所做的尝试如下

DEplot(sys, [x(t), y(t)], t = 10 .. -10, x = -3 .. 3, y = -3 .. 3, [[x(0) = 0, y(0) = 2]], [[x(0) = 0, y(0) = 1]], stepsize = .1, linecolor = blue, thickness = 2, arrows = medium);

在哪里

sys := {diff(x(t), t) = -2*x(t)-y(t)+2, diff(y(t), t) = x(t)*y(t )}

它产生的图形是

谁能确认这是否是上述系统的正确相平面图?

【问题讨论】:

  • 更新了我的帖子

标签: plot ode maple


【解决方案1】:

你快到了,只需要包含更多的初始值。

restart; with(DEtools): with(linalg):with(plots):
sys := {diff(x(t), t) = -2*x(t)-y(t)+2, diff(y(t), t) = x(t)*y(t)}
initialdataset:={seq(seq([x(0)=a,y(0)=b],a=-5..5),b=-5..5)}:
DEplot(sys, [x,y],t=-3..3,initialdataset,x = -6..6, y = -6..6,
   colour=black, thickness=2, style=line, linestyle=1, axes=boxed,
   linecolor=red, scaling=constrained, arrows=medium);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-01-27
    • 1970-01-01
    • 1970-01-01
    • 2018-09-23
    • 2016-07-30
    • 1970-01-01
    • 1970-01-01
    • 2019-07-17
    相关资源
    最近更新 更多