if x ≤ π/2 f(x) = 2*sin(x²), else f(x) = sin(x²)