added support for negative functions, params, equation