I'm kinda a greenhorn in maths and young and unexperienced, but one thought popped in my head that google couldn't satisfy.
Let $g(x) = \sin(x)$.
Then wouldn't be $g([a,b]) = \{ (x, y): a \leq x \leq b \; \text{and} \; y = g(x) \}$ pretty fine?
Is $g([a,b])$ meaningless or incorrect? If it's not, what would be the result? Is there a function that argument is an interval? Or this whole idea is based on my incorrect vision of maths skewed by programming?
I'm sorry for unskilful use of MathJax and maths at all, it's just pure curiosity.