I'm puzzled by quote from "Calculus and Analytic Geometry" by Stein and Barcellos that I found in this answer: If a function is undefined at a point, is it also discontinuous at that point?
Unfortunately I don't have access to said book to clarify, so I ask here.
According to this definition any polynomial is continuous. So is each of the basic trigonometric functions, including $y = \tan x$... You may be tempted to say, 'But $\tan x$ blows up at $π/2$ and I have to lift my pencil off the paper to draw the graph.' However, $π/2$ is not in the domain of the tangent function... If $a$ is not in the domain of $f$, we do not define either continuity or discontinuity there.
I don't see any logical foundation for exclusion of $π/2$. The only thing that comes to my mind is "The text implies that a function can't have number "c" in its domain if f(c) is undefined. For example, division by zero is undefined, so if there is such "c" that f(c) leads to division by zero, then "c" can't belong to the domain of said function." But it's hard to believe that such interpretation is true because it has absurd consequences:
Namely, considering that functions are discontinious only over their domains (i.e. it's meaningless to talk about discontiniuty of a function outside its domain), it would mean that all functions are continious. After all, how is it possible to have discontiniuty if we exclude x's each time they "blow up" the function?? The concept of discontinuity would just stop making any sense.