summaryrefslogtreecommitdiff
path: root/graphics/asymptote/doc/exp.asy
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/asymptote/doc/exp.asy
Initial commit
Diffstat (limited to 'graphics/asymptote/doc/exp.asy')
-rw-r--r--graphics/asymptote/doc/exp.asy14
1 files changed, 14 insertions, 0 deletions
diff --git a/graphics/asymptote/doc/exp.asy b/graphics/asymptote/doc/exp.asy
new file mode 100644
index 0000000000..2c4eed90d4
--- /dev/null
+++ b/graphics/asymptote/doc/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);
+