I was given this question (there were prior questions defining the equivelence relation ~)
Let $E$ be the set of equivelence classes of $\sim$. Define $f$ from $E$ to $\mathbb R$, $$f:=\{([(x,y)],r)|x=yr,\: x,y,r\text{ in }\mathbb R\}.$$
I'm trying to understand what it means; is the following correct?
$f:[(x,y)] \mapsto r$,
$E=(\mathbb R \times {\mathbb R\setminus \{0\}})/\sim$: i.e. the Quotient set of $(\mathbb R\times (\mathbb R\setminus \{0\}))$ by $\sim$.
$(x,y)$ was earlier defined as an element of $(\mathbb R \times (\mathbb R\setminus\{0\})$.
Am I understanding this right?
My function takes in a equivlence class, $[(x,y)]$ and returns a real value $r$, fufilling the condition that $x=yr$?
Yes; the function is defined to take equivalence classes as inputs, and return reals as values. If you put in the class of $(x,y)$, which is $[(x,y)] = \{(a,b)\in \mathbb{R}\times\mathbb{R}^{\star}\,|\, (x,y)\sim (a,b)\}$, it returns a real number $r$. Which real number? The real number $r$ such that $x=yr$. (I'm using $\mathbb{R}^{\star}$ to denote the nonzero real numbers) The function takes equivalence classes as inputs, and has real numbers as outputs.
You would need to make sure that this function is well defined, though; that is, the definition of the function depends on the name you give the equivalence class; but the class $[(x,y)]$ has many different "names"; it can also be called $[(a,b)]$ for some other real numbers $a$ and $b$. So you need to make sure that if $[(x,y)]=[(a,b)]$ (that is, if $(x,y)\sim (a,b)$) then the real number $r$ such that $x=yr$ is the same as the real number $s$ such that $a=bs$. Otherwise, what you describe would not be a function.