diff options
Diffstat (limited to 'Master/texmf/doc/asymptote/examples/floor.asy')
-rw-r--r-- | Master/texmf/doc/asymptote/examples/floor.asy | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Master/texmf/doc/asymptote/examples/floor.asy b/Master/texmf/doc/asymptote/examples/floor.asy deleted file mode 100644 index 02c2446abe8..00000000000 --- a/Master/texmf/doc/asymptote/examples/floor.asy +++ /dev/null @@ -1,28 +0,0 @@ -import graph; -unitsize(1cm); - -real Floor(real x) {return floor(x);} - -pair[] Close; -pair[] Open; - -bool3 branch(real x) { - static real lasty; - static bool first=true; - real y=floor(x); - bool samebranch=first || lasty == y; - first=false; - if(samebranch) lasty=x; - else { - Close.push((x,lasty)); - Open.push((x,y)); - } - lasty=y; - return samebranch ? true : default; -}; - -draw(graph(Floor,-5.5,5.5,500,branch)); -axes("$x$",rotate(0)*"$\lfloor x\rfloor$",red); - -dot(Close); -dot(Open,UnFill); |