Function: meaning, definitions and examples

⚙️
Add to dictionary

function

 

[ ˈfʌŋkʃən ]

Context #1

computer programming

A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application and allow you to break your program into smaller, more manageable pieces.

Synonyms

method, procedure, subroutine

Examples of usage

  • Example 1: In JavaScript, you can define a function using the 'function' keyword.
  • Example 2: The main advantage of using functions is that you can reuse the same code multiple times without rewriting it.
Context #2

mathematics

In mathematics, a function is a relation between a set of inputs and a set of possible outputs where each input is related to exactly one output.

Synonyms

mapping, operation, transformation

Examples of usage

  • Example 1: The function f(x) = x^2 is a simple mathematical function that squares its input.
  • Example 2: Functions are used in calculus to describe how one quantity changes in relation to another.
Context #3

general

To function means to work or operate in a particular way. It can also refer to the normal or proper working of something.

Synonyms

operate, perform, run

Examples of usage

  • Example 1: The machine stopped functioning properly after years of use.
  • Example 2: It is important for all parts of a team to function well together for success.

Translations

Translations of the word "function" in other languages:

🇵🇹 função

🇮🇳 कार्य

🇩🇪 Funktion

🇮🇩 fungsi

🇺🇦 функція

🇵🇱 funkcja

🇯🇵 機能 (きのう)

🇫🇷 fonction

🇪🇸 función

🇹🇷 işlev

🇰🇷 기능

🇸🇦 وظيفة

🇨🇿 funkce

🇸🇰 funkcia

🇨🇳 功能 (gōngnéng)

🇸🇮 funkcija

🇮🇸 virkni

🇰🇿 функция

🇬🇪 ფუნქცია

🇦🇿 funksiya

🇲🇽 función

Word origin

The word 'function' has its origin in the Latin word 'functio' which means performance or execution. It first appeared in English in the 16th century with the meaning of official or formal ceremony. Over time, it evolved to encompass the concept of a task or duty to be performed. In modern usage, 'function' is widely used in the fields of mathematics, computer programming, and general language to denote a specific action or operation.