computational complexity: Nonlinear Function