encyclopegia.org

Arity

In logic, mathematics, and computer science, arity ( ) is the number of arguments or operands taken by a function, operation or relation.[src] In mathematics, arity may also be called rank, but this word can have many other meanings.[src] In logic and philosophy, arity may also be called adicity and degree.[src] In linguistics, it is usually named valency.[src]

In logic, mathematics, and computer science, arity ( ) is the number of arguments or operands taken by a function, operation or relation.[src] In mathematics, arity may also be called rank, but this word can have many other meanings.[src] In logic and philosophy, arity may also be called adicity and degree.[src] In linguistics, it is usually named valency.[src] Example: f()=2 A unary function takes one argument.[src] Example: f(x)=2x A binary function takes two arguments.[src] Example: f(x,y)=2xy A ternary function takes three arguments.[src] Example: f(x,y,z)=2xyz An n-ary function takes n arguments.[src] Example: f(x_1, x_2, \ldots, x_n)=2\prod_{i=1}^n x_i The Unix dc calculator has several ternary operators, such as | , which will pop three values from the stack and efficiently compute x^y \bmod z with arbitrary precision.[src] Many (RISC) assembly language instructions are ternary (as opposed to only two operands specified in CISC); or higher, such as MOV %AX, (%BX, %CX) , which will load ( ) into register the contents of a calculated memory location that is the sum (parenthesis) of the registers and .[src] The arithmetic mean of n real numbers is an n-ary function: \bar{x}=\frac{1}{n}\left (\sum_{i=1}^n{x_i}\right) = \frac{x_1+x_2+\dots+x_n}{n} Similarly, the geometric mean of n positive real numbers is an n-ary function: \left(\prod_{i=1}^n a_i\right)^\frac{1}{n} = \ \sqrt[n]{a_1 a_2 \cdots a_n} .[src] Note that a logarithm of the geometric mean is the arithmetic mean of the logarithms of its n arguments From a mathematical point of view, a function of n arguments can always be considered as a function of a single argument that is an element of some product space.[src] However, it may be convenient for notation to consider n-ary functions, as for example multilinear maps (which are not linear maps on the product space, if ).[src] The same is true for programming languages, where functions taking several arguments could always be defined as functions taking a single argument of some composite type such as a tuple, or in languages with higher-order functions, by currying.[src]

18 sentences · 18 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Arity." encyclopegia.org, 2026, https://encyclopegia.org/wiki/arity. Accessed 27 November 2026.

Chicago

"Arity." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/arity.

APA

encyclopegia.org. (2026). Arity. Retrieved November 27, 2026, from https://encyclopegia.org/wiki/arity

Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1375536476 · 0.5 · snapshot enwiki-001375536476

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.