summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/tanh.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/asymptote/examples/tanh.asy')
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/tanh.asy13
1 files changed, 13 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/asymptote/examples/tanh.asy b/Master/texmf-dist/doc/asymptote/examples/tanh.asy
new file mode 100644
index 00000000000..21d4decb1a6
--- /dev/null
+++ b/Master/texmf-dist/doc/asymptote/examples/tanh.asy
@@ -0,0 +1,13 @@
+import graph;
+size(100,0);
+
+real f(real x) {return tanh(x);}
+pair F(real x) {return (x,f(x));}
+
+xaxis("$x$");
+yaxis("$y$");
+
+draw(graph(f,-2.5,2.5,operator ..));
+
+label("$\tanh x$",F(1.5),1.25*N);
+