summaryrefslogtreecommitdiff
path: root/graphics/asymptote/examples/jump.asy
blob: d2fdb41c643e1ff78e0030832f7f969e968d42d9 (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);