Define function with parameters
Parse and validate input arguments
Bind arguments to function parameters
Perform mathematical operation
Return computed result