I have to construct a continuous function such that
$$\int_{-\infty}^\infty |f(x)| \, dx<\infty$$
but
$$\lim_{x\to \infty}|f(x)|$$
does not exists.
I have already known one messy example that deals with lines and minimum distance. I just want to see different examples. I know we can construct a triangle with fixed height and decreasing base such that the area get's smaller and the integral is like the geometric series. However, the fixed height makes the limit inexistent. I just dont know how to describe that properly. Thanks.
Define:
I shorter way of defining $f$ is: $f(x)=0$ if $x<0$ or $x>\lfloor x\rfloor+2^{-\lfloor x\rfloor}$ and$$f(x)=1-2\left|2^{\lfloor x\rfloor}\bigl(x-\lfloor x\rfloor\bigr)-\frac12\right|=1-\left|2^{\lfloor x\rfloor+1}\bigl(x-\lfloor x\rfloor\bigr)-1\right|$$otherwise.