From b04c2e1a42573e9735547702356c7b9a769a6855 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 7 Apr 2013 18:26:53 +0000 Subject: texmf -> texmf-dist: doc git-svn-id: svn://tug.org/texlive/trunk@29714 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/asymptote/examples/mexicanhat.asy | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Master/texmf-dist/doc/asymptote/examples/mexicanhat.asy (limited to 'Master/texmf-dist/doc/asymptote/examples/mexicanhat.asy') diff --git a/Master/texmf-dist/doc/asymptote/examples/mexicanhat.asy b/Master/texmf-dist/doc/asymptote/examples/mexicanhat.asy new file mode 100644 index 00000000000..d55b127ae5c --- /dev/null +++ b/Master/texmf-dist/doc/asymptote/examples/mexicanhat.asy @@ -0,0 +1,22 @@ +size(200); + +real mexican(real x) {return (1-8x^2)*exp(-(4x^2));} + +int n=30; +real a=1.5; +real width=2a/n; + +guide hat; +path solved; + +for(int i=0; i < n; ++i) { + real t=-a+i*width; + pair z=(t,mexican(t)); + hat=hat..z; + solved=solved..z; +} + +draw(hat); +dot(hat,red); +draw(solved,dashed); + -- cgit v1.2.3