This page explains how to define a function.
Defining functions is just as easy as variables. It starts with a name followed by list of parameters in parentheses followed by the = sign. For example, you could type:
my_func(x,y)=x+y^2
Here are some more examples of defining functions: