y=abs[x-floor[x]-1/2]-1/2