I'm fairly new to Mathematica. Im trying to plot a function but i cannot seem to get it right.
The function is: $f:\mathbb{R} \to \mathbb{R},f(x)=inf\{\vert x-k\vert \vert k\in \mathbb{Z}\}$
I tried defining it seperatly using the Min[]
function for the infimum and Abs[]
for the absolute value. I read about using something called ImplicitRegion[]
but i do not understand how i would use it such that i can tell that $z \in \mathbb{Z}$.
It would be much appreciated if you could tell me how i can plot such a function.
Thank you for helping me out.