summaryrefslogtreecommitdiff
path: root/graphics/asymptote/examples/1overx.asy
blob: dfaa049efb56e24d79e6f9e7e3fe8abf662e0cda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import graph;
size(200,IgnoreAspect);

real f(real x) {return 1/x;}

bool3 branch(real x)
{
  return x != 0;
}

draw(graph(f,-1,1,branch));
axes("$x$","$y$",red);