It is known that the notion of a function from spaces $R$ to space $D$ being open (set $x$ open in $R$ implies image $f(x)$ is open in $D$) is independent from the notion of a function being continuous (for any set $x$, if $f(x)$ is open in $D$, then $x$ is open in $R$). And this statement applies even if $R$ and $D$ are metric spaces.
Can you give me an understandable example of a function on metric spaces that is open but not continuous? (Obviously, then, the inverse is continuous but not open.)
I would prefer $f:\Bbb{R} \mapsto \Bbb{R}$ or if not, $f:\Bbb{R}^n \mapsto \Bbb{R}^m$ but iwll settle for any example if those don't exist.