Range (mathematics)
In mathematics, the range of a function refers to either the codomain or the image of the function, depending upon usage. The codomain is a set containing the function's output, whereas the image is only the part of the codomain where the elements are outputs of the function. For example, the function is often described as a function from the real numbers to the real numbers, meaning that the codomain is R, but its image is the set of non-negative real numbers. Some books say that range of this function is its codomain, the set of all real numbers, reflecting that the function is real-valued. These books call the actual output of the function the image. This is the current usage for range in computer science. Other books say that the range is the function's image, the set of non-negative real numbers, reflecting that a number can be the output of this function if and only if it is a non-negative real number. In this case, the larger set containing the range is called the codomain. This usage is more common in modern mathematics.
Because of this ambiguity, it is a good idea to specify whether it is the image or the codomain being discussed.
Read more about Range (mathematics): Examples, Formal Definition
Famous quotes containing the word range:
“Culture is the suggestion, from certain best thoughts, that a man has a range of affinities through which he can modulate the violence of any master-tones that have a droning preponderance in his scale, and succor him against himself. Culture redresses this imbalance, puts him among equals and superiors, revives the delicious sense of sympathy, and warns him of the dangers of solitude and repulsion.”
—Ralph Waldo Emerson (18031882)