summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/exp.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/asymptote/examples/exp.asy')
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/exp.asy14
1 files changed, 14 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/asymptote/examples/exp.asy b/Master/texmf-dist/doc/asymptote/examples/exp.asy
new file mode 100644
index 00000000000..2c4eed90d4e
--- /dev/null
+++ b/Master/texmf-dist/doc/asymptote/examples/exp.asy
@@ -0,0 +1,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);
+