right|thumb|250px|A function from to . The blue oval is the codomain of . The yellow oval inside is the Image (mathematics)|image of , and the red oval is the domain of .
right|thumb|250px|A function from to . The blue oval is the codomain of . The yellow oval inside is the Image (mathematics)|image of , and the red oval is the domain of .
In mathematics, a codomain or set of destination of a function is a set into which all of the outputs of the function are constrained to fall. It is the set in the notation . The term range is sometimes ambiguously used to refer to either the codomain or the image of a function.
Discovered by embedding cosine similarity (sentence-transformers MiniLM, 384-dim).