How to write a function: Declare parameters with f(u,v) Declare a vector with square brackets [x,y,z]