Le vendredi 27 novembre 2009 ? 00:05 +0000, Jaime Villate a ?crit :
> Hi,
> I don't know that function "with_slider" that you are using. Where is it
> defined?
I found examples here :
http://wxmaxima.sourceforge.net/wiki/index.php/Animations
> Why don't you use something like this?:
I will try your solution, if only to understand better maxima's syntax
but I wanted to create an animation : different trajectories displayed
one at a time.
> (%i4) plot: []$
>
> (%i5) for i:1 thru 3 do (sol:rk([-x,v],[v,x],[0,i],[t,0,10,.5]),
> plot:endcons([discrete,makelist([sol[j][2],sol[j][3]],j,1,length(sol))],plot))$
>
> (%i6) plot2d(plot,[legend,false],[xlabel,"v"],[ylabel,"x"]);
>
> One of the future improvements I have already planned for Plotdf.tcl is
> to allow multiple points in the trajectory_at field:
> plotdf([-x,v],[v,x],[trajectory_at,[0,1],[0,2],[0,3]);
That's something I've been looking for, that would be very useful.
Julien.