Sharedslope_field.sagewsOpen in CoCalc
Author: Matt Thomas
Views : 8
%typeset_mode True
# make sure sage knows to treat y as a variable var('y')
y\displaystyle y
# plot a slope field for y' = 0.7 * (1-y/30) * y plot_slope_field(0.7 * (1-y/30) * y, (x,0,5), (y,0,60))
# plot a slope field for y' = sin(x+y) + cos(x+y) plot_slope_field(sin(x+y) + cos(x+y), (x,-3,3), (y,-3,3))
# plot the same slope field with a different color plot_slope_field(sin(x+y) + cos(x+y), (x,-3,3), (y,-3,3), color='blue')