> > 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') > @interact > def _(g=input_box(default = 1-y)): > P=plot_slope_field(g,(x,0,3),(y,0,20)) > yfun = function('yfun',x) > f = desolve(diff(yfun,x) + g(y=yfun), yfun, ics=[2,2]) > Q=plot(f,0,3) > show(P+Q) > > Does that give what you want? > > Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org