为了说明具有无穷解族的一阶常微分方程的柯西问题,我将绘制参数化的解,并有可能通过滑块控制参数值。
完整的柯西问题是y'=sqrt(|y|),y(0)=0,参数解是y_c(x):={0,if c=>x;(x-c)^2/4,if x=>c}。
所以我会得到一个y=y_c(x)的曲线图,用一个滑块来控制c的值。
谢谢。
发布于 2014-12-22 20:24:52
您可以在wxMaxima中使用with_slider_draw来完成此操作。
Y(c,x) := if c>x then 0 else (x-c)^2/4;
with_slider_draw(
c, /* the name of the variable to attach to the slider */
makelist(i,i,0,1,0.1), /* a list of values that the variable can have */
explicit(Y(c,x), x, 0, 2) /* plot the function */
)$在wxMaxima中,单击图形,然后单击工具栏上的播放按钮播放动画,或使用工具栏上的滑块更改c的值。
发布于 2012-04-15 23:58:35
您可以在Sage notebook中使用Maxima并求助于interact command。另请参见Sage's interface to Maxima。
https://stackoverflow.com/questions/10161305
复制相似问题