f = If(x ≤ 0.0, x, If[0.0 < x ∧ x < 1.0, x^(2.0), sqrt(x) + 1.0])