【发布时间】:2011-05-13 14:02:06
【问题描述】:
所以我们尝试解决简单的 ODE。我们使用文本book (warning - russian)。这是本书中的示例代码(第 18 页):
> with(DEtools); with(plots);
> eq1 := diff(x(t), t) = y(t); eq2 := diff(y(t), t) = -sin(x(t));
> init := [[x(0) = 1, y(0) = 0], [x(0) = 0, y(0) = 2]];
> DEplot([eq1, eq2], [x, y], t = 0 .. 110, x = -2*Pi .. 2*Pi, init, scene = [x, y], stepsize = 0.5e-1, obsrange = true, color = black, linecolour = black, arrows = 'MEDIUM')
此代码应绘制:
但是 maple 为我输出了这个:
1) 为什么只求解四分之一的函数?
2) 怎么解决让它看起来像书中的样子?
【问题讨论】: