standardized the function inputs. the client can give f as a list of as a function in algebraic normal form.