association of a single output to each input
A function is a relationship where each input is paired with exactly one output. Functions matter because they're a fundamental way to describe how things depend on each other—whether in mathematics, science, or everyday situations like how your paycheck depends on your hours worked.
AI-generated from the Wikipedia summary — may contain errors.
In mathematics, a function from a set X to a set Y assigns to each element of X exactly one element of Y. The set X is called the domain of the function and the set Y is called the codomain of the function.
Functions were originally the idealization of how a varying quantity depends on another quantity. For example, the position of a planet is a function of time. Historically, the concept was elaborated with the infinitesimal calculus at the end of the 17th century, and, until the 19th century, the functions that were considered were differentiable (that is, they had a high degree of regularity). The concept of a function was formalized at the end of the 19th century in terms of set theory, and this greatly increased the possible applications of the concept.
Discovered by embedding cosine similarity (sentence-transformers MiniLM, 384-dim).