Useful functions

Floor function

Floor function

The floor function, , assigns any real number to the largest integer that is less than or equal to $x$.

Examples:

Link to original

Ceiling function

Ceiling function

The ceiling function, , assigns any real number to the smallest integer that is greater than or equal to $x$.

Examples:

Link to original

Properties of Floor and Ceil

Here are some simple properties of both floor and ceil functions.

Functions with multiple arguments

If the domain of a function is a Cartesian product , we can say that:

  • has arity

    Arity

    Arity is the number of arguments or operands taken by a function.

    Link to original
  • is an -ary function
  • has arguments

In this case, for each -tuple , denotes the value of .

Binary function

A binary function has two arguments.

For binary functions, we may write either of:

Link to original