summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/asymptote/examples/xsin1x.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf/doc/asymptote/examples/xsin1x.asy')
-rw-r--r--Master/texmf/doc/asymptote/examples/xsin1x.asy10
1 files changed, 10 insertions, 0 deletions
diff --git a/Master/texmf/doc/asymptote/examples/xsin1x.asy b/Master/texmf/doc/asymptote/examples/xsin1x.asy
new file mode 100644
index 00000000000..f03714b79df
--- /dev/null
+++ b/Master/texmf/doc/asymptote/examples/xsin1x.asy
@@ -0,0 +1,10 @@
+import graph;
+size(300,0);
+
+real f(real x) {return (x != 0.0) ? x * sin(1.0 / x) : 0.0;}
+pair F(real x) {return (x,f(x));}
+
+xaxis("$x$",red);
+yaxis(red);
+draw(graph(f,-1.2/pi,1.2/pi,1000));
+label("$x\sin\frac{1}{x}$",F(1.1/pi),NW);