diff options
Diffstat (limited to 'Master/texmf/doc/asymptote/examples/cardioid.asy')
-rw-r--r-- | Master/texmf/doc/asymptote/examples/cardioid.asy | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Master/texmf/doc/asymptote/examples/cardioid.asy b/Master/texmf/doc/asymptote/examples/cardioid.asy new file mode 100644 index 00000000000..49a3c55207e --- /dev/null +++ b/Master/texmf/doc/asymptote/examples/cardioid.asy @@ -0,0 +1,15 @@ +import graph; + +size(0,100); + +real f(real t) {return 1+cos(t);} + +path g=polargraph(f,0,2pi,operator ..)--cycle; +filldraw(g,pink); + +xaxis("$x$",above=true); +yaxis("$y$",above=true); + +dot("$(a,0)$",(1,0),N); +dot("$(2a,0)$",(2,0),N+E); + |