Finding the value of c on a given interval