Concatenation (mathematics)

Concatenation (mathematics)

In mathematics, concatenation is the joining of two numbers by their numerals. That is, the concatenation of 123 and 456 is 123456. Concatenation of numbers a and b is denoted a||b. Relevant subjects in recreational mathematics include Smarandache-Wellin numbers, home primes, and Champernowne's constant. The convention for sequences at places such as the Online Encyclopedia of Integer Sequences is to have sequences of concatenations include as the first term a number prior to the actual act of concatenation. Therefore, care must be taken to ensure that parties discussing a topic agree either with this convention or with plain language. For example, the first term in the sequence of concatenations of increasing even numbers may be taken to be either 24, as would seem obviously correct, or simply 2, according to convention.

Contents

Calculation

The concatenation of numbers depends on the numeric base, which is often understood from context.

Given the numbers p and q in base b, the concatenation p||q is given by

p | | q = pbl(q) + q

where

l(q)=\lfloor log_b(q) \rfloor+1

is the number of digits of q in base b, and \lfloor x \rfloor is the floor function.

Vector extension

The concatenation of vectors can be understood in two distinct ways; either as a generalization of the above operation for numbers or as a concatenation of lists.

Given two vectors in \mathbb{R}^n, concatenation can be defined as

\left( \begin{array}{c} a_1 \\ a_2 \\ \vdots \\ a_n \end{array} \right) || \left( \begin{array}{c} b_1 \\ b_2 \\ \vdots \\ b_n \end{array} \right) = \left( \begin{array}{c} a_1 || b_1 \\ a_2 || b_2 \\ \vdots \\ a_n || b_n \end{array} \right)

In the case of vectors in \mathbb{R}^1, this is equivalent to the above definition for numbers. The further extension to matrices is trivial.

Since vectors can be viewed in a certain way as lists, concatenation may take on another meaning. In this case the concatenation of two lists (a1, a2, ..., an) and (b1, b2, ..., bn) is the list (a1, a2, ..., an, b1, b2, ..., bn). Only the exact context will reveal which meaning is intended.

See also

References

"MathWorld: Concatenation". http://mathworld.wolfram.com/Concatenation.html. 


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Concatenation (disambiguation) — Concatenation may refer to: Concatenation, a computer programming operation that joins strings together Concatenation (mathematics), a mathematical operation that combines two vectors Concatenated SMS, a way of combining multiple SMS text… …   Wikipedia

  • List of mathematics articles (C) — NOTOC C C closed subgroup C minimal theory C normal subgroup C number C semiring C space C symmetry C* algebra C0 semigroup CA group Cabal (set theory) Cabibbo Kobayashi Maskawa matrix Cabinet projection Cable knot Cabri Geometry Cabtaxi number… …   Wikipedia

  • Category (mathematics) — In mathematics, a category is an algebraic structure that comprises objects that are linked by arrows . A category has two basic properties: the ability to compose the arrows associatively and the existence of an identity arrow for each object. A …   Wikipedia

  • Sheaf (mathematics) — This article is about sheaves on topological spaces. For sheaves on a site see Grothendieck topology and Topos. In mathematics, a sheaf is a tool for systematically tracking locally defined data attached to the open sets of a topological space.… …   Wikipedia

  • Quiver (mathematics) — In mathematics, a quiver is a directed graph where loops and multiple arrows between two vertices are allowed. They are commonly used in representation theory: a representation , V, of a quiver assigns a vector space V(x) to each vertex x of the… …   Wikipedia

  • Laws of Form — (hereinafter LoF ) is a book by G. Spencer Brown, published in 1969, that straddles the boundary between mathematics and of philosophy. LoF describes three distinct logical systems: * The primary arithmetic (described in Chapter 4), whose models… …   Wikipedia

  • Outline of algebraic structures — In universal algebra, a branch of pure mathematics, an algebraic structure is a variety or quasivariety. Abstract algebra is primarily the study of algebraic structures and their properties. Some axiomatic formal systems that are neither… …   Wikipedia

  • List of algebraic structures — In universal algebra, a branch of pure mathematics, an algebraic structure is a variety or quasivariety. Abstract algebra is primarily the study of algebraic structures and their properties. Some axiomatic formal systems that are neither… …   Wikipedia

  • Tilde — For the baseball player known as the Big Tilde, see Magglio Ordóñez.  ◌̃ Tilde Punctuation …   Wikipedia

  • Theory of conjoint measurement — The theory of conjoint measurement (also known as conjoint measurement or additive conjoint measurement) is a general, formal theory of continuous quantity. It was independently discovered by the French economist Gerard Debreu (1960) and by the… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”