The codomain of a function is an arbitrary set that contains all the images of a function. Thus, the function defined by f(x) = cos x + i sin x might be said to have codomain C, or the set of all complex numbers. The range is much more specific: it is the set of all the images, and nothing more. In this case, the range is {a + bi = z in C: |z| = 1}.
Chat with our AI personalities