Jump to content

Integer-valued function: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m Reverted edits by 179.209.57.112 (talk) (HG) (3.4.10)
m added wikilinks
Line 2: Line 2:
[[Image:Floor function.svg|thumb|right|288px|The floor function on real numbers. Its discontinuities are pictured with white discs outlines with blue circles.]]
[[Image:Floor function.svg|thumb|right|288px|The floor function on real numbers. Its discontinuities are pictured with white discs outlines with blue circles.]]
{{Functions}}
{{Functions}}
In mathematics, an '''integer-valued function''' is a [[function (mathematics)|function]] whose [[codomain|values]] are [[integer]]s. In other words, it is a function that assigns an integer to each member of its [[domain of a function|domain]].
In [[mathematics]], an '''integer-valued function''' is a [[function (mathematics)|function]] whose values are [[integer]]s. In other words, it is a function that assigns an integer to each member of its [[domain of a function|domain]].


[[Floor and ceiling functions]] are examples of an integer-valued [[function of a real variable]], but on [[real number]]s and generally, on (non-disconnected) [[topological space]]s integer-valued functions are not especially useful. Any such function on a [[connected space]] either has [[discontinuity (mathematics)|discontinuities]] or is [[constant function|constant]]. On the other hand, on [[discrete space|discrete]] and other [[totally disconnected space]]s integer-valued functions have roughly the same importance as [[real-valued function]]s have on non-discrete spaces.
The [[floor and ceiling functions]] are examples of integer-valued [[function of a real variable|functions of a real variable]], but on [[real number]]s and, generally, on (non-disconnected) [[topological space]]s integer-valued functions are not especially useful. Any such function on a [[connected space]] either has [[discontinuity (mathematics)|discontinuities]] or is [[constant function|constant]]. On the other hand, on [[discrete space|discrete]] and other [[totally disconnected space]]s integer-valued functions have roughly the same importance as [[real-valued function]]s have on non-discrete spaces.


Any function with [[natural number|natural]], or [[non-negative]] integer values is a partial case of integer-valued function.
Any function with [[natural number|natural]], or [[non-negative]] integer values is a partial case of an integer-valued function.


== Examples ==
== Examples ==
Line 14: Line 14:


== Algebraic properties ==
== Algebraic properties ==
On an arbitrary [[set (mathematics)|set]] {{mvar|X}}, integer-valued functions form a [[ring (mathematics)|ring]] with [[pointwise]] operations of [[addition]] and [[multiplication]], and also an [[algebra (ring theory)|algebra]] over the ring {{math|'''Z'''}} of integers. Since the latter is an [[ordered ring]], the functions form a [[partially ordered ring]]:
On an arbitrary [[set (mathematics)|set]] {{mvar|X}}, integer-valued functions form a [[ring (mathematics)|ring]] with [[pointwise]] operations of addition and multiplication, and also an [[algebra over a ring|algebra]] over the ring {{math|'''Z'''}} of integers. Since the latter is an [[ordered ring]], the functions form a [[partially ordered ring]]:
:<math>f \le g \quad\iff\quad \forall x: f(x) \le g(x).</math>
:<math>f \le g \quad\iff\quad \forall x: f(x) \le g(x).</math>


Line 25: Line 25:


=== Mathematical logic and computability theory ===
=== Mathematical logic and computability theory ===
In [[mathematical logic]] such concepts as a [[primitive recursive function]] and a [[μ-recursive function]] represent integer-valued functions of several natural variables or, in other words, functions on {{math|'''N'''[[coordinate space|<sup>''n''</sup>]]}}. [[Gödel numbering]], defined on [[well-formed formula]]e of some [[formal language]], is a natural-valued function.
In [[mathematical logic]], such concepts as [[primitive recursive function]]s and [[μ-recursive function]]s represent integer-valued functions of several natural variables or, in other words, functions on {{math|'''N'''<sup>''n''</sup>}}. [[Gödel numbering]], defined on [[well-formed formula]]e of some [[formal language]], is a natural-valued function.


[[Computability theory]] is essentially based on natural numbers and natural (or integer) functions on them.
[[Computability theory]] is essentially based on natural numbers and natural (or integer) functions on them.
Line 33: Line 33:


=== Computer science ===
=== Computer science ===
In [[computer programming]] many [[function (programming)|functions]] return values of [[Integer (computer science)|integer type]] due to simplicity of implementation.
In [[computer programming]], many [[function (programming)|functions]] return values of [[Integer (computer science)|integer type]] due to simplicity of implementation.


== See also ==
== See also ==

Revision as of 21:49, 17 January 2023

The floor function on real numbers. Its discontinuities are pictured with white discs outlines with blue circles.

In mathematics, an integer-valued function is a function whose values are integers. In other words, it is a function that assigns an integer to each member of its domain.

The floor and ceiling functions are examples of integer-valued functions of a real variable, but on real numbers and, generally, on (non-disconnected) topological spaces integer-valued functions are not especially useful. Any such function on a connected space either has discontinuities or is constant. On the other hand, on discrete and other totally disconnected spaces integer-valued functions have roughly the same importance as real-valued functions have on non-discrete spaces.

Any function with natural, or non-negative integer values is a partial case of an integer-valued function.

Examples

Integer-valued functions defined on the domain of all real numbers include the floor and ceiling functions, the Dirichlet function, the sign function and the Heaviside step function (except possibly at 0).

Integer-valued functions defined on the domain of non-negative real numbers include the integer square root function and the prime-counting function.

Algebraic properties

On an arbitrary set X, integer-valued functions form a ring with pointwise operations of addition and multiplication, and also an algebra over the ring Z of integers. Since the latter is an ordered ring, the functions form a partially ordered ring:

Uses

Graph theory and algebra

Integer-valued functions are ubiquitous in graph theory. They also have similar uses in geometric group theory, where length function represents the concept of norm, and word metric represents the concept of metric.

Integer-valued polynomials are important in ring theory.

Mathematical logic and computability theory

In mathematical logic, such concepts as primitive recursive functions and μ-recursive functions represent integer-valued functions of several natural variables or, in other words, functions on Nn. Gödel numbering, defined on well-formed formulae of some formal language, is a natural-valued function.

Computability theory is essentially based on natural numbers and natural (or integer) functions on them.

Number theory

In number theory, many arithmetic functions are integer-valued.

Computer science

In computer programming, many functions return values of integer type due to simplicity of implementation.

See also