```C++
float_X x=position_x- L_x;
return float_X(math::abs(x)<=float_X(0.5))*(float_X(1.0)-float_X(2.0) * x );
```