Skip to content

Mathematical Functions

A function in mathematics1 is a relation between a value in a domain and a value in a codomain across a range. In programming terms, this means that mathematical functions are single-arity and pure. In other words, they take a single value and, given the same value, always produce the same output.

f : Domain \rightarrow Codomain

Language