×

# Continuity problem #2

Find an example of a function that is nowhere continuous but whose absolute value is everywhere continuous.

Note by Hobart Pao
11 months, 3 weeks ago

Sort by:

$f : \mathbb{R} \to \mathbb{R}, \forall x f(x) = \begin{cases} 1 & \text{if x \in \mathbb{Q}} \\ -1 & \text{if x \not\in \mathbb{Q}} \end{cases}$ · 11 months, 2 weeks ago