The function f(x) implemented in the script./temp0/function.py is a piecewise linear function with four distinct intervals:

* For x in [-1, 0], the function has a local minimum at x = 0, with a value of 0.5.
* For x in [0, 1], the function has a local maximum at x = 1, with a value of 1.2923028525062133.
* For x in [-1, -2], the function has a local minimum at x = -1, with a value of -0.9099454271183098.
* For x in [2, 3], the function has a local maximum at x = 2, with a value of 2.584981902659756.

