diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/asymptote/examples/tanh.asy |
Initial commit
Diffstat (limited to 'graphics/asymptote/examples/tanh.asy')
-rw-r--r-- | graphics/asymptote/examples/tanh.asy | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/asymptote/examples/tanh.asy b/graphics/asymptote/examples/tanh.asy new file mode 100644 index 0000000000..21d4decb1a --- /dev/null +++ b/graphics/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); + |