How can one plot y=1/floor(1/x) in pstricks? where floor is the greatest integer function. i.e. floor(2.5)=2 and floor(-0.5)=-1.
I need to generate something like what I generated in sage:
But I do not want vertical lines; I also need to put some disk and fdisk for the points.
Best Answer
Somewhat crudely done with MetaPost. Coding can certainly be optimized.
EDIT I've improved the coding (I think). The result remains the same, except for the filled dots which are now really of the same size than the empty ones.