pi*(0.5sgn(sin(x)) + 0.5)*sin(x) - 1