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