Hello

I am quite new to sage and I am trying to copy a graph created using 
mathcad.  The following code seems to do the result but i am not sure if it 
is the best way of doing it.  Any help would be appreciated

var('a','b')

Slopefield = plot_slope_field((a+b), (a,-5,5), (b,-5,5))

x = var('x')

y = function('y', x)

DE = diff(y,x) - x-y

f = desolve(DE, [y,x], (0,0))

SolnPlot = plot(f, (x, -5,5))

(SolnPlot+Slopefield).show(aspect_ratio=1, xmin=-5, xmax=5, ymin=-5, ymax=5)



Thanks Dan

ps the above code has been cut and pasted from a sage doc and slightly 
modified by myself and i have no idea why the -x-y works in the DE part.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to