Arity

Arity is the number of arguments that something takes: something could be a function, an operation or something in a computer language such as a subroutine or a method.

The word operand might be used instead of argument.

Addition and Multiplication are Binary Operations.

Below, Signflip is a Unary Operation.

Signflip(x) = -x

Look at the computer code below.

  • TriAddition(a,b,c)
  • {
  • d=a+b+c
  • return d
  • }

When we call the method TriAddition we provide it with three values. It adds these up and returns the results of the calculation–one value.