Funksjonen
Funksjonen in mathematics is a relation that assigns to every input from a domain exactly one output in a codomain. A function is often denoted f: X → Y, with the value at x written as f(x). The domain contains admissible inputs; the codomain is the set of possible outputs; the range is the subset of outputs produced by the function.
Common examples include f(x) = x^2 from the real numbers to the real numbers, and f: R →
Key properties include injective (one-to-one), surjective (onto), and bijective (both). A bijection has an inverse function
The graph of a function is the set of ordered pairs (x, f(x)) in the plane; for
In computer science, a function is a block of code that takes inputs (arguments) and returns an
The concept dates to the 17th–18th centuries, with Leonhard Euler helping popularize the term. Today, functions