summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples/jump.asy
blob: 7ae19be3886fb6247768b7d03087db3153a06819 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import graph;
size(4inches,0);

real f1(real x) {return (1+x^2);} 
real f2(real x) {return (4-x);}

xaxis("$x$",LeftTicks,Arrow);
yaxis("$y$",RightTicks,Arrow);

draw("$y=1+x^2$",graph(f1,-2,1)); 
dot((1,f1(1)),UnFill);

draw("$y=4-x$",graph(f2,1,5),LeftSide,red,Arrow);
dot((1,f2(1)),red);