summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples/tanh.asy
blob: 21d4decb1a612664e007d85c0af314cd3e0f6946 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);