Function

Also let us notate a state as a function of time. What’s a function?

Example:

if i let ff be a function that accepts xx as an argument, like this

f(x)=4x\begin{gather*} f(x)=4x \end{gather*}

then

f(5)=4(5)=20\begin{gather*} f(5)=4(5)=20 \end{gather*}

A function ff, can also be thought of mapping numbers from a Set AA to set BB. It’s written like this

f:AB\begin{gather*} f:A\rightarrow B \end{gather*}

A map just links a thing to another thing.

Example

Let qq be a function

q:ZZq(x)=3x\begin{gather*} q:\mathbb{Z}\rightarrow\mathbb{Z}\\ q(x)=3x \end{gather*}

q essentially maps all integers to another integer, which is three times itself.

q(67)=201\begin{gather*} q(67)=201 \end{gather*}