> P=plot_slope_field(-g,(x,0,3),(y,0,20))
>
> since the slope of the solution is -g, not g.
Yeah, there was a typo of + for -.
- kcrisman
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support-unsubscr...@googlegroups.co
>
> It looks like you are confusing y-as-a-variable and y-as-a-function an
> awful lot. How about:
Yes, because I was hoping to make it as easy as possible to switch
from the "static" version. Unfortunately, this isn't that :( but it's
probably the best we can do?
- kcrisman
> y = var('y')
>
You probably also want to do something like
P=plot_slope_field(-g,(x,0,3),(y,0,20))
since the slope of the solution is -g, not g.
-Marshall
On Nov 30, 4:37 pm, Jason Grout wrote:
> kcrisman wrote:
> > Dear support,
>
> > I'm giving a talk Wednesday and would like to do the following
> > intera
kcrisman wrote:
> Dear support,
>
> I'm giving a talk Wednesday and would like to do the following
> interact as an example of how easy interacts are:
>
> y = var('y')
> @interact
> def _(g=input_box(default = 1-y)):
> P=plot_slope_field(g,(x,0,3),(y,0,20))
> y = function('y',x)
> f =