Multiple parameter nonlinear functions: (a) multi-segment linear function and (b) multi-segment square function.