[sage-support] Re: plot directional field differential equations

2008-06-02 Thread Marshall Hampton
I think that's a serious problem. This is now trac #3350. Seems like the problem must be close to the call on "setup_for_eval_on_grid" in sage/plot/plot.py but I haven't totally tracked it down yet. -M. Hampton On Jun 1, 4:08 am, Georg Muntingh <[EMAIL PROTECTED]> wrote: > You can use the plot_

[sage-support] Re: plot directional field differential equations

2008-06-01 Thread David Joyner
Besides Georg's suggestion there is a file in SAGEHOME/examples/calculus called field_plot2d.sage which does some very crude DF plotting of 1st order ODEs. (Designed specifically for teaching purposes.) You need to read it into SAGE using the attach command, edg sage: attach "SAGEHOME/examples/ca

[sage-support] Re: plot directional field differential equations

2008-06-01 Thread Georg Muntingh
You can use the plot_vector_field command: # Declare your variables: var('x t') # Define you function, for instance: def f(t,x): return t*x # Plot the associated vector field: plot_vector_field((lambda t, x: 1, f(t,x)), (-1, 1), (-2, 2)) There seems to be something awry, however, compare p