A function is a triple \((X,Y,f)\) such that \(f \subseteq X \times Y\) and whenever \((x,y) \in f\) and \((x,y') \in f\), then we have \(y=y'\). We denote the triple \((X,Y,f)\) simply by \(f\), or by the notation: \(f:X \rightarrow Y\). We call \(X\) the domain of \(f\) and we call \(Y\) the codomain of \(f\). Given \((x,y) \in f\) we, write \(f(x)=y\).