summaryrefslogtreecommitdiff
path: root/graphics/asymptote/doc/exp.asy
blob: 3558a2759bd451f093e1c4031af84098695e8519 (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));}

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

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

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