I was thinking about the epsilon-delta definition of a limit and began to wonder if it would work with closed intervals instead of open intervals. That is, for some function $f$, would the folowing definition work? $$\forall \epsilon>0\,\exists\delta>0\,(0<\lvert x-c\rvert≤\delta \, \implies \lvert f(x)-L\rvert≤\epsilon) $$ I've been trying to think of a counterexample, but can't seem to find one.
edit: If it does work, why choose open intervals rather than closed?
Let $E$ be a set, $f:E\to\Bbb R$, $c$ is an adherent point of $E$ and $L\in\Bbb R$. If $\forall \epsilon>0,~\exists\delta >0,~\forall x\in E,(0<|x-c|<\delta\to |f(x)-L|<\epsilon)$, then we called the limit of $f$ at $c$ is $L$.
– Eric Aug 27 '17 at 02:48