Function
From Maths
A function f is a special kind of relation
Domain
A function ought be defined for everything in its domain, that's for every point in the domain the function maps the point to something.
Examples
(See notation below if you're not sure what the f:X→Y notation means)
- f:R→R given by f(x)=1x isn't defined at 0
- f:R→R given by f(x)=x2 is correct, it is not surjective though, because nothing maps onto the negative numbers, however f:R→R≥0 with f(x)=x2 is a surjection. It is not an injective function as only 0 maps to one point.
Notation
A function f from a domain X to a set Y is denoted f:X→Y
TODO: Come back after the relation page and fill this out