summaryrefslogtreecommitdiff
path: root/graphics/asymptote/doc/slopefield1.asy
blob: 82de91764626f7ccfa5c14b0fc39c3ed4780cbcf (plain)
1
2
3
4
5
6
7
import slopefield;

size(200);

real func(real x) {return 2x;}
add(slopefield(func,(-3,-3),(3,3),20));
draw(curve((0,0),func,(-3,-3),(3,3)),red);