I want to write a R code as follows:
Give a function say y = xb + c where b and c are constants. I want to determine a horizontal interval say (alpha, beta) lies above the function, below the function or intersect the function. (See uploaded plot) 
I find myself caot figure out how to code this programming in R.
Would someone help me out.
