Bifalgorithm post · Brisk · Chapter 1
What is a function?
What is a function? (Brisk · Chapter 1) — "One very, very important type of relation is called a function. Some mathematicians treat functions totally separate…
Ideas in this flowchart
- A function is a special kind of relation.
- Some mathematicians treat functions separately from relations, but they can be understood as special relations.
- Every element of the first set is related to exactly one element of the second set.
- A function from X to Y is written F : X → Y.
- The set X is called the domain.
- The set Y is called the codomain.
- F = { (Harry, Dr. Pepper), (Ron, Mt. Dew), (Hermione, Mt. Dew) } is a function.
- R is not a function because Hermione has no corresponding pair.
- S is not a function because Hermione has more than one corresponding pair.
- A domain element is sometimes said to be mapped to its corresponding codomain element.
- The reverse is not necessarily true: each codomain element need not be related to a domain element.
- A function may leave some codomain elements unused.
- { (Harry, Dr. Pepper), (Ron, Dr. Pepper), (Hermione, Dr. Pepper) } is a valid function.
