Origin: Latin suffix -tion
Function has 12 different meanings across 2 categories:
(mathematics) a mathematical relation such that each element of a given set (the domain of the function) is associated with an element of another set (the range of the function)
"Students learned to graph a quadratic function where every input value in the domain maps to exactly one output in the range."
a relation such that one thing is dependent on another
"height is a function of age"
"price is a function of supply and demand"
a vaguely specified social event
"the party was quite an affair"
"an occasion arranged to honor the president"
"a seemingly endless round of social functions"
a set sequence of steps, part of larger computer program
"The developer added a new function to the codebase that automatically sorts user data before saving it to the database."
What something does or is used for.
"The main function of a seatbelt is to protect passengers during an accident."
In plain English: A function is a rule that takes an input and gives you exactly one output based on that rule.
"The main function of this software is to organize your contacts."
Usage: Use "function" to describe the specific purpose or operation of an object, system, or part of the body. Avoid using it interchangeably with "feature," which refers to a characteristic rather than a primary job.
To have a function.
"We will host an office party next Friday to celebrate our team's success, so please make sure you can attend the function."
In plain English: To function means to work properly or do what something is supposed to do.
"The new software update allows your phone to function more smoothly."
Usage: Use "function" as a verb to mean that something works properly or performs its intended purpose, such as saying the machine functions well after repair. Avoid using it to simply mean "having a role" when you intend to describe someone's job duties, which is better expressed with words like "serve" or "act.
The word "function" comes from the Latin functio, meaning "performance" or "execution." It ultimately traces back to a root related to the idea of enjoying or performing an action.