For example, if I say $f(x) = \ln \left\{ x \right\}$ where $ \{ \cdot \}$ denotes the fractional part function. Is there any way to know the codomain of this function?
And Now if I define $f : \mathbb{R} \to \mathbb{R}$, now the codomain is $\mathbb{R} $. So is it safe to say, codomain could be anything we want so long as it contains range, if there isn't a codomain already given?
So, $ \sin : \mathbb{R} \to [-1,1]$ is as correct as writing $\sin : \mathbb{R} \to \mathbb{R}$?
So I take it that if domain and codomain aren't given, then I could also say Codomain $\equiv$ Range?
EDIT : What I'm trying to ask is, if it's only a matter of codomain, then every function can be called surjective and conversely every function can be called into function? Which makes it all ambiguous.
I have so many confusions with co-domain, but can anyone just explain me these for the time being? Help is appreciated :)