function y = quad(x) % % quad(x) = x^2 + a where a is a parameter % % here we have a = -1.76; edit to try another value % a = 1.76; y = x*x-a;