summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/asymptote/examples/cos2theta.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf/doc/asymptote/examples/cos2theta.asy')
-rw-r--r--Master/texmf/doc/asymptote/examples/cos2theta.asy15
1 files changed, 15 insertions, 0 deletions
diff --git a/Master/texmf/doc/asymptote/examples/cos2theta.asy b/Master/texmf/doc/asymptote/examples/cos2theta.asy
new file mode 100644
index 00000000000..1be0c519fb1
--- /dev/null
+++ b/Master/texmf/doc/asymptote/examples/cos2theta.asy
@@ -0,0 +1,15 @@
+import graph;
+size(0,100);
+
+real f(real t) {return cos(2*t);}
+
+path g=polargraph(f,0,2pi,operator ..)--cycle;
+fill(g,green+white);
+xaxis("$x$",above=true);
+yaxis("$y$",above=true);
+draw(g);
+
+dot(Label,(1,0),NE);
+dot(Label,(0,1),NE);
+
+