summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/exp.asy
blob: 2c4eed90d4e675b2959206aa683d76ab98c2f535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import graph;
size(150,0);

real f(real x) {return exp(x);}
pair F(real x) {return (x,f(x));}

xaxis("$x$");
yaxis("$y$",0);

draw(graph(f,-4,2,operator ..),red);

labely(1,E);
label("$e^x$",F(1),SE);