prompts user for function and 2 variables