I know how to map a set of real numbers $\mathbb{R}$ or integers $\mathbb{Z}$ to an interval, e.g. $[0,1]$, but how would I do it for a set containing two elements? I know such a set would not be injective, though, that's for sure. Suggestions?
2026-03-31 12:20:14.1774959614
Is there a function that maps $\mathbb{R}$ to {$-1,1$}
59 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
It depends what you want this function to do. The constant functions $x\mapsto -1$ or $x\mapsto 1$ do the job. Or maybe you want a surjection? Then how about $x\mapsto 1$ if $x\ge 0$ and $x\mapsto -1$ otherwise; or $x\mapsto 1$ if $x\not=17$, and $17\mapsto -1$; or so on.