Question: what is the difference between range and codomain?
Answer: The Codomain and Range are both on the output side, but are subtly different. The Codomain is the set of values that could possibly come out. ... And The Range is the set of values that actually do come out. Example: we can define a function f(x)=2x with a domain and codomain of integers (because we say so).