Suppose I have a function $f:I \to \mathbb{R}$ that is continuous at $I$, except at a finite number of points, for example $ \{ C_n; \enspace (n \le K) \in \mathbb{N} \}$.
How can I build a sequence of continuous functions $f_n :I \to \mathbb{R}$ that converge pointwise to $f$?
My Idea, at first, was to take the Fourier series but I realized that it would not work because:
- I don't know what kind of discontinuity points I have;
- the Fourier series at discontinuity points converges to the mean value of the lateral limits, so we would not have pointwise convergence there.