All Topics  
Exponentiation

 

   Email Print
   Bookmark   Link






 

Exponentiation



 
 
Exponentiation is a mathematical
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
 operation
Operation (mathematics)

In its simplest meaning in mathematics and logic, an operation is an action or procedure which produces a new value from one or more input values....
, written an, involving two numbers, the base
Base (mathematics)

In arithmetic, the base refers to the number b in an expression of the form bn. The number n is called the exponent and the expression is known formally as exponentiation of b by n or the exponential of n with base b....
a and the exponent n. When n is a positive integer
Integer

The integers are natural numbers including 0 and their negative and non-negative numberss . They are numbers that can be written without a fractional or decimal component, and fall within the set ....
, exponentiation corresponds to repeated multiplication
Multiplication

Multiplication is the Operation of scaling one number by another. It is one of the four basic operations in elementary arithmetic .Multiplication is defined for Natural number in terms of repeated addition; for example, 4 multiplied by 3 can be calculated by adding 3 copies of 4 together:...
:

just as multiplication by a positive integer corresponds to repeated addition
Addition

Addition is the mathematics process of putting things together. The plus sign "+" means that numbers are added together. For example, in the picture on the right, there are 3 + 2 apples?meaning three apples and two other apples?which is the same as five apples, since 3 + 2 = 5....
:

The exponent is usually shown as a superscript to the right of the base. The exponentiation
an can be read as: a raised to the n-th power, a raised to the power [of] n or possibly a raised to the exponent [of] n, or more briefly: a to the n-th power or a to the power [of] n, or even more briefly: a to the n.






Discussion
Ask a question about 'Exponentiation'
Start a new discussion about 'Exponentiation'
Answer questions from other users
Full Discussion Forum



Encyclopedia


Exponentiation is a mathematical
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
 operation
Operation (mathematics)

In its simplest meaning in mathematics and logic, an operation is an action or procedure which produces a new value from one or more input values....
, written an, involving two numbers, the base
Base (mathematics)

In arithmetic, the base refers to the number b in an expression of the form bn. The number n is called the exponent and the expression is known formally as exponentiation of b by n or the exponential of n with base b....
a and the exponent n. When n is a positive integer
Integer

The integers are natural numbers including 0 and their negative and non-negative numberss . They are numbers that can be written without a fractional or decimal component, and fall within the set ....
, exponentiation corresponds to repeated multiplication
Multiplication

Multiplication is the Operation of scaling one number by another. It is one of the four basic operations in elementary arithmetic .Multiplication is defined for Natural number in terms of repeated addition; for example, 4 multiplied by 3 can be calculated by adding 3 copies of 4 together:...
:

just as multiplication by a positive integer corresponds to repeated addition
Addition

Addition is the mathematics process of putting things together. The plus sign "+" means that numbers are added together. For example, in the picture on the right, there are 3 + 2 apples?meaning three apples and two other apples?which is the same as five apples, since 3 + 2 = 5....
:

The exponent is usually shown as a superscript to the right of the base. The exponentiation
an can be read as: a raised to the n-th power, a raised to the power [of] n or possibly a raised to the exponent [of] n, or more briefly: a to the n-th power or a to the power [of] n, or even more briefly: a to the n. Some exponents have their own pronunciation: for example, a2 is usually read as a squared and a3 as a cubed.

The power
an can be defined also when n is a negative integer, at least for nonzero a. No natural extension to all real a and n exists, but when the base a is a positive real number, an can be defined for all real and even complex exponents n via the exponential function
Exponential function

The exponential function is a function in mathematics. The application of this function to a value x is written as exp. Equivalently, this can be written in the form ex, where e is the mathematical constant that is the base of the natural logarithm and that is also known as Euler's number....
 
ez. Trigonometric functions
Trigonometry

Trigonometry is a branch of mathematics that deals with triangle s, particularly those plane triangles in which one angle has 90 degrees . Trigonometry deals with relationships between the sides and the angles of triangles and with the trigonometric functions, which describe those relationships....
 can be expressed in terms of complex exponentiation.

Exponentiation where the exponent is a matrix
Matrix (mathematics)

In mathematics, a matrix is a rectangular array of numbers, as shown at the right. In addition to a number of elementary, entrywise operations such as matrix addition a key notion is matrix multiplication....
 is used for solving systems of linear differential equation
Linear differential equation

In mathematics, a linear differential equation is a differential equation of the formwhere the differential operator L is a linear operator, y is the unknown function, and the right hand side ƒ is a given function ....
s.

Exponentiation is used pervasively in many other fields as well, including economics, biology, chemistry, physics, and computer science, with applications such as compound interest
Compound interest

Compound interest is the concept of adding accumulated interest back to the principal, so that interest is earned on interest from that moment on....
, population growth
Population growth

Population growth is the change in population over time, and can be quantified as the change in the number of individuals in a population using "per unit time" for measurement....
, chemical reaction kinetics, wave
Wave

A wave is a disturbance that propagates through space and time, usually with transference of energy. While a mechanical wave exists in a medium , waves of electromagnetic radiation can travel through vacuum, that is, without a medium....
 behavior, and public key cryptography.

Exponentiation with integer exponents

The exponentiation operation with integer exponents requires only elementary algebra
Elementary algebra

Elementary algebra is a fundamental and relatively basic form of algebra taught to students who are presumed to have little or no formal knowledge of mathematics beyond arithmetic....
.

Positive integer exponents

The expression
a2 = a·a is called the square
Square (algebra)

In algebra, the square of a number is that number multiplication by itself. To square a quantity is to multiply it by itself.Its notation is a superscripted "2"; a number x squared is written as x?....
 of
a because the area of a square with side-length a is a2.

The expression
a3 = a·a·a is called the cube, because the volume of a cube with side-length a is a3.

So 32 is pronounced "three squared", and 23 is "two cubed".

The exponent says how many copies of the base are multiplied together. For example, 35 = 3·3·3·3·3 = 243. The base 3 appears 5 times in the repeated multiplication, because the exponent is 5. Here, 3 is the
base, 5 is the exponent, and 243 is the power or, more specifically, the fifth power of 3, 3 raised to the fifth power, or 3 to the power of 5.

The word "raised" is usually omitted, and very often "power" as well, so 35 is typically pronounced "three to the fifth" or "three to the five".

Formally, powers with positive integer exponents may be defined by the initial condition
a1 = a and the recurrence relation
Recurrence relation

In mathematics, a recurrence relation is an equation that defines a sequence recursion: each term of the sequence is defined as a Function of the preceding terms....
 
an+1 = a·an.

Exponents one and zero

Notice that 31 is the product of only one 3, which is evidently 3.

Also note that 35 = 3·34. Also 34 = 3·33. Continuing this trend, we should have
31 = 3·30.
Another way of saying this is that when
n, m, and n - m are positive (and if x is not equal to zero), one can see by counting the number of occurrences of x that Extended to the case that n and m are equal, the equation would read since both the numerator and the denominator are equal. Therefore we take this as the definition of x0.

Therefore we
define 30 = 1 so that the above equality holds. This leads to the following rule:
  • Any number to the power 1 is itself.
  • Any nonzero number to the power 0 is 1; one interpretation of these powers is as empty product
    Empty product

    In mathematics, an empty product, or nullary product, is the result of multiplication no numbers. Its numerical value is 1 , the multiplicative identity element, just as the empty sum—the result of addition no numbers—is 0 , or the additive identity....
    s. The case of 00 is discussed below.


Combinatorial
Combinatorics

Combinatorics is a branch of pure mathematics concerning the study of Countable set objects. It is related to many other areas of mathematics, such as algebra, probability theory, ergodic theory and geometry, as well as to applied subjects in computer science and statistical physics....
 interpretation


For nonnegative integers
n and m, the power nm equals the cardinality
Cardinality

In mathematics, the cardinality of a set is a measure of the "number of Element of the set". For example, the set A = contains 3 elements, and therefore A has a cardinality of 3....
 of the set of
m-tuple
Tuple

In mathematics, a tuple is a sequence of a specific number of values, called the components of the tuple. These components can be any kind of mathematical objects, where each component of a tuple is a value of a specified type....
s from an
n-element set, or the number of m-letter words from an n-letter alphabet.

05 = | | = 0. There is no 5-tuple from the empty set.
14 = | | = 1. There is one 4-tuple from a one-element set.
23 = | | = 8. There are eight 3-tuples from a two-element set.
32 = | | = 9. There are nine 2-tuples from a three-element set.
41 = | | = 4. There are four 1-tuples from a four-element set.
50 = | | = 1. There is exactly one empty tuple
Tuple

In mathematics, a tuple is a sequence of a specific number of values, called the components of the tuple. These components can be any kind of mathematical objects, where each component of a tuple is a value of a specified type....
.


See also
exponentiation over sets
Exponentiation

Exponentiation is a mathematics operation , written 'an', involving two numbers, the base a and the exponent n....
.

Negative integer exponents

By definition, raising a nonzero number to the −1 power produces its reciprocal
Multiplicative inverse

In mathematics, a multiplicative inverse or reciprocal for a number x, denoted by 1⁄x or x −1, is a number which when multiplied by x yields the multiplicative identity, 1....
:

One also defines for any nonzero
a and any positive integer n. Raising 0 to a negative power would imply division by 0
Division by zero

In mathematics, a division is called a division by zero if the divisor is 0 . Such a division can be formally expressed as a/0 where a is the dividend....
, so it is left undefined.

The definition of
a-n for nonzero a is made so that the identity aman = am+n, initially true only for nonnegative integers m and n, holds for arbitrary integers m and n. In particular, requiring this identity for m = -n is requiring where a0 is defined above, and this motivates the definition a-n = 1/an shown above.

Exponentiation to a negative integer power can alternatively be seen as repeated division
Division (mathematics)

In mathematics, especially in elementary arithmetic, division is an arithmetic operation which is the inverse of multiplication.Specifically, if c times b equals a, written:...
 of 1 by the base. For instance, .

Identities and properties

The most important identity
Identity (mathematics)

In mathematics, the term identity has several different important meanings:*An identity is an equality that remains true regardless of the values of any variables that appear within it, to distinguish it from an Equality which is true under more particular conditions....
 satisfied by integer exponentiation is This identity has the consequence for
a ? 0, and Another basic identity is

While addition and multiplication are commutative (for example, 2+3 = 5 = 3+2 and 2·3 = 6 = 3·2), exponentiation is not commutative: 23 = 8, but 32 = 9.

Similarly, while addition and multiplication are associative (for example, (2+3)+4 = 9 = 2+(3+4) and (2·3)·4 = 24 = 2·(3·4), exponentiation is not associative either: 23 to the 4th power is 84 or 4096, but 2 to the 34 power is 281 or 2,417,851,639,229,258,349,412,352. Without parentheses to modify the order of calculation, the order is usually understood to be top-down, not bottom-up:

Powers of ten

See Scientific notation
Scientific notation

Scientific notation, also known as standard form or as exponential notation, is a way of writing numbers that accommodates values too large or small to be conveniently written in standard decimal notation....
In the base ten (decimal
Decimal

The decimal numeral system has 10 as its Base . It is the most widely used numeral system....
) number system, integer powers of 10 are written as the digit 1 followed or preceded by a number of zeroes determined by the sign and magnitude of the exponent. For example, 103 = 1000 and 10−4 = 0.0001.

Exponentiation with base 10
10 (number)

10 is an Even and odd numbers natural number following 9 and preceding 11 ....
 is used in scientific notation
Scientific notation

Scientific notation, also known as standard form or as exponential notation, is a way of writing numbers that accommodates values too large or small to be conveniently written in standard decimal notation....
 to describe large or small numbers. For instance, 299,792,458 (the speed of light
Speed of light

The speed of light in an free space is an important physical constant usually written as c, with a value of 299,792,458 metres per second....
 in a vacuum, in meters per second) can be written as 2.99792458·108 and then approximated
Approximation

An approximation is an Accuracy and precision representation of something that is still close enough to be useful. Although approximation is most often applied to numbers, it is also frequently applied to such things as Function , shapes, and physical laws....
 as 2.998·108.

SI prefix
SI prefix

An SI prefix is a name or associated symbol that precedes a basic unit of measure to form a decimal multiple . The abbreviation SI is from the French language name Syst?me International d?Unit?s ....
es based on powers of 10 are also used to describe small or large quantities. For example, the prefix kilo means 103 = 1000, so a kilometre is 1000 metre
Metre

The metre or meter is a Unit of measurement of length. It is the SI base unit of length in the metric system and in the International System of Units , used around the world for general and scientific purposes....
s.

Powers of two

The positive powers of 2
Power of two

In mathematics, a power of two is any of the integer exponentiation of the number 2 ; in other words, two multiplication by itself a certain number of times....
 are important in computer science
Computer science

Computer science is the study of the theoretical foundations of information and computation, and of practical techniques for their implementation and application in computer systems....
 because there are 2
n possible values for an n-bit
Bit

A bit is a binary numeral system numerical digit, taking a value of either 0 or 1. Binary digits are a basic unit of information Computer data storage and transmission in digital computing and digital information theory....
 variable
Variable

A variable is a symbol that stands for a value that may vary; the term usually occurs in opposition to constant, which is a symbol for a non-varying value, i.e....
. See Binary numeral system
Binary numeral system

The binary numeral system, or notation with a radix of 2. Owing to its straightforward implementation in digital electronic circuitry using logic gates, the binary system is used internally by all modern computers....
.

Powers of 2 are important in set theory
Set theory

Set theory is the branch of mathematics that studies Set , which are collections of objects. Although any type of object can be collected into a set, set theory is applied most often to objects that are relevant to mathematics....
 since a set with
n members has a power set
Power set

In mathematics, given a Set S, the power set of S, written , P, ℘ or Power set#Representing subsets as functions, is the set of all subsets of S....
, or set of all subset
Subset

In mathematics, especially in set theory, a Set A is a subset of a set B if A is "contained" inside B. Notice that A and B may coincide....
s of the original set, with 2
n members.

The negative powers of 2 are commonly used, and the first two have special names: half
One half

One half is the irreducible fraction resulting from dividing 1 by 2 , or any number by its double; multiplication by one half is equivalent to division by two....
, and quarter
Quarter

Quarter is one fourth, ?, or 25%.Quarter may also refer to:*Quarter , a division of an academic year lasting from 8 to 12 weeks*Quarter , valued at one-fourth of a U.S....
.

In the base 2 (binary) number system, integer powers of 2 are written as 1 followed or preceded by a number of zeroes determined by the sign and magnitude of the exponent. For example, two to the power of three is written 1000 in binary.

Powers of one

The integer powers of one are one: 1
n = 1.

Powers of zero

If the exponent is positive, the power of zero is zero: 0
n = 0, where n > 0.

If the exponent is negative, the power of zero (0
n, where n < 0) is undefined, because division by zero is implied.

If the exponent is zero, some authors define 00=1, whereas others leave it undefined, as discussed below.

Powers of minus one


If
n is an even integer, then (−1)n = 1.

If
n is an odd integer, then (−1)n = −1.

Because of this, powers of −1 are useful for expressing alternating sequences. For a similar discussion of powers of the complex number
i, see the section on powers of the imaginary unit
Exponentiation

Exponentiation is a mathematics operation , written 'an', involving two numbers, the base a and the exponent n....
.

Large exponents

The limit of a sequence
Limit of a sequence

The limit of a sequence is one of the oldest concepts in mathematical analysis. It provides a rigorous definition of the idea of a sequence converging towards a point called the limit....
 of powers of a number greater than one diverges, in other words they grow without bound:
an → ∞ as n → ∞ when a > 1 .
This can be read as "a to the power of n tends to infinity
Infinity

Infinity comes from the Latin infinitas or "unboundedness." It refers to several distinct concepts – usually linked to the idea of "without end" – which arise in philosophy, mathematics, and theology....
 as
n tends to infinity when a is greater than one".

Powers of a number with absolute value
Absolute value

In mathematics, the absolute value of a real number is its numerical value without regard to its Negative and non-negative numbers. So, for example, 3 is the absolute value of both 3 and -3....
 less than one tend to zero:
an → 0 as n → ∞ when |a| < 1 .
Powers of one, are one:
an → 1 as n → ∞ when a = 1 .


If the number
a varies tending to 1 as the exponent tends to infinity then the limit is not necessarily one of those above. A particularly important case is ne as n→∞ see the section below Powers of e.

Other limits, in particular of those tending to indeterminate forms, are described in limits of powers below.

Real powers of positive real numbers


Raising a positive real number to a power that is not an integer can be accomplished in two ways.
  • Rational number
    Rational number

    In mathematics, a rational number is a number which can be expressed as a quotient of two integers. Non-integer rational numbers are usually written as the vulgar fraction , where b is not 0 ....
     exponents can be defined in terms of
    nth root
    Nth root

    In mathematics, an nth root of a number a is a number b such that when n copies of b are multiplication together, the result is a....
    s, and arbitrary nonzero exponents can then be defined by continuity.
  • The natural logarithm
    Natural logarithm

    The natural logarithm, formerly known as the hyperbolic logarithm, is the logarithm to the base e , where e is an irrational number constant approximately equal to 2.718281828....
     can be used to define real exponents using the exponential function.


The identities and properties shown above are true for noninteger exponents as well.

Principal n-th root



An
n-th root of a number
Number

A number is a mathematical object used in counting and measurement. A notational symbol which represents a number is called a Numeral system, but in common usage the word number is used for both the abstract object and the symbol, as well as for the numeral for the number....
 
a is a number x such that xn = a.

If
a is a positive real number and n is a positive integer, then there is exactly one positive real solution to xn = a. This solution is called the principal n-th root
Nth root

In mathematics, an nth root of a number a is a number b such that when n copies of b are multiplication together, the result is a....
 of
a. It is denoted nva, where v is the
radical symbol
Symbol

A symbol is something such as an entity, picture, written word, sound, or particular mark that represents something else by association, resemblance, or convention....
; alternatively, it may be written . For example: 41/2 = 2, 81/3 = 2,

When one speaks of
the n-th root of a positive real number
Real number

In mathematics, the real numbers may be described informally in several different ways. The real numbers include both rational numbers, such as 42 and −23/129, and irrational numbers, such as pi and the square root of two; or, a real number can be given by an infinite decimal representation, such as 2.4871773339...., where the digits co...
 
a, one usually means the
principal n-th root.

Rational powers


A power with a rational
Rational number

In mathematics, a rational number is a number which can be expressed as a quotient of two integers. Non-integer rational numbers are usually written as the vulgar fraction , where b is not 0 ....
 exponent
m/n in lowest terms satisfies

whenever this makes sense.

Powers of e


The important mathematical constant
e
E (mathematical constant)

The mathematical constant e is the unique real number such that the function ex has the same value as the derivative, for all values of x....
, sometimes called Euler's number, is approximately equal to 2.718 and is the base of the natural logarithm
Natural logarithm

The natural logarithm, formerly known as the hyperbolic logarithm, is the logarithm to the base e , where e is an irrational number constant approximately equal to 2.718281828....
. It provides a path for defining exponentiation with noninteger exponents. It is defined as the following limit where the power goes to infinity as the base tends to one:

The
exponential function
Exponential function

The exponential function is a function in mathematics. The application of this function to a value x is written as exp. Equivalently, this can be written in the form ex, where e is the mathematical constant that is the base of the natural logarithm and that is also known as Euler's number....
, defined by has the
x written as a power as it satisfies the basic exponential identity The exponential function is defined for all integer, fractional, real, and complex
Complex number

In mathematics, the complex numbers are an extension of the real numbers obtained by adjoining an imaginary unit, denoted i, which satisfies:...
 values of
x. It can even be used to extend exponentiation to some nonnumerical entities e.g. square matrices, however the exponential identity only holds when x and y commute.

A short proof that
e to a positive integer power k is the same as ek is:

This proof shows also that
ex+y satisfies the exponential identity when x and y are positive integers. These results are in fact generally true for all numbers, not just for the positive integers.

Real powers


Since any real number
Real number

In mathematics, the real numbers may be described informally in several different ways. The real numbers include both rational numbers, such as 42 and −23/129, and irrational numbers, such as pi and the square root of two; or, a real number can be given by an infinite decimal representation, such as 2.4871773339...., where the digits co...
 can be approximated by rational numbers, exponentiation to an arbitrary real exponent
x can be defined by continuity
Continuous function

In mathematics, a continuous function is a function for which, intuitively, small changes in the input result in small changes in the output. Otherwise, a function is said to be discontinuous....
 with the rule

where the limit as
r gets close to x is taken only over rational values of r.

For example, if then

Exponentiation by a real power is normally accomplished using logarithms instead of using limits of rational powers.

The natural logarithm
Natural logarithm

The natural logarithm, formerly known as the hyperbolic logarithm, is the logarithm to the base e , where e is an irrational number constant approximately equal to 2.718281828....
 ln(
x) is the inverse
Inverse function

In mathematics, if ƒ is a function from A to B then an inverse function for ƒ is a function in the opposite direction, from B to A, with the property that a round trip from A to B to A returns each element of the initial set to itself....
 of the exponential function
ex. It is defined for , and satisfies If bx is to be defined to as to preserve the logarithm and exponent rules, then one must have This motivates the definition for each real number x.

This definition of the real number power
bx agrees with the definition given above using rational exponents and continuity. The definition of exponentiation using logarithms is more common in the context of complex numbers, as discussed below.

Powers of negative real numbers


If
a is negative and n is even, then xn = a has no real solutions, If a is negative and n is odd, then xn = a has one negative solution.

Neither the logarithm method nor the rational exponent method can be used to define
ak as a real number for a negative real number a and an arbitrary real number k. In some special cases, a definition is possible: integral powers of negative real numbers are real numbers, and rational powers of the form am/n where n is odd can be computed using roots. But since there is no real number x such that x2 = −1, the definition of am/n when n is even and m is odd must use the imaginary unit
Imaginary unit

In mathematics, physics, and engineering, the imaginary unit is denoted by  or the Latin   or the Greek iota . It allows the real number system, to be extended to the complex number system,   Its precise definition is dependent upon the particular method of extension....
 
i, as described more fully in the next section.

The logarithm method cannot be used to define
ak as a real number when a = 0: indeed, ex is positive for every real number x, so ln(a) is not defined as a real number. (On the other hand, arbitrary complex powers
Exponentiation

Exponentiation is a mathematics operation , written 'an', involving two numbers, the base a and the exponent n....
 of negative numbers
a can be defined by choosing a complex logarithm
Complex logarithm

In complex analysis, a complex logarithm function is an "inverse function" of the complex exponential function, just as the natural logarithm ln x is the inverse of the exponential function ex....
 of
a.)

The rational exponent method cannot be used for negative values of
a because it relies on continuity
Continuous function

In mathematics, a continuous function is a function for which, intuitively, small changes in the input result in small changes in the output. Otherwise, a function is said to be discontinuous....
. The function
f(r) = ar has a unique continuous extension from the rational numbers to the real numbers for each a > 0. But when a < 0, the function f is not even continuous on the set of rational numbers r for which it is defined.

For example, take
a = −1. The nth root of −1 is −1 for every odd natural number n. So if n is an odd positive integer, (−1)(m/n) = −1 if m is odd, and (−1)(m/n) = 1 if m is even. Thus the set of rational numbers q for which −1q = 1 is dense
Dense set

In topology and related areas of mathematics, a subset A of a topological space X is called dense if, intuitively, any point in X can be "well-approximated" by points in A....
 in the rational numbers, as is the set of
q for which −1q = −1. This means that the function (−1)q is not continuous at any rational number q where it is defined.

Complex powers of positive real numbers


Imaginary powers of e


The geometric interpretation of the operations on complex numbers
Complex number

In mathematics, the complex numbers are an extension of the real numbers obtained by adjoining an imaginary unit, denoted i, which satisfies:...
 and the definition of powers of
e
Exponentiation

Exponentiation is a mathematics operation , written 'an', involving two numbers, the base a and the exponent n....
 is the clue to understanding
eix for real x. Consider the right triangle For big values of n the triangle is almost a circular sector
Circular sector

A circular sector or circle sector, is the portion of a circle enclosed by two radius and an Arc , where the smaller area is known as the minor sector and the larger being the major sector....
 with a small central angle equal to
x/n radian
Radian

The radian is a unit of plane angle, equal to 180/pi Degree , or about 57.2958 degrees, or about 57?17'45?. It is the standard unit of angular measurement in all areas of mathematics beyond the elementary level....
s. The triangles are mutually similar
Similarity (geometry)

Two geometrical objects are called similar if they both have the same shape. Equivalently and more precisely, one is congruence to the result of a uniform Scaling of the other....
 for all values of
k. So for large values of n the limiting point of is the point on the unit circle
Unit circle

In mathematics, a unit circle is a circle with a 1 radius, i.e., a circle whose radius is 1. Frequently, especially in trigonometry, "the" unit circle is the circle of radius 1 centered at the origin in the Cartesian coordinate system in the Euclidean plane....
 whose angle from the positive real axis is
x radians. The polar coordinates of this point are and the cartesian coordinates are (cos x, sin x). So and this is Euler's formula
Euler's formula

Euler's formula, named after Leonhard Euler, is a mathematics formula in complex analysis that shows a deep relationship between the trigonometric functions and the complex exponential function....
, connecting algebra
Algebra

Algebra is a branch of mathematics concerning the study of structure , relation , and quantity. Together with geometry, mathematical analysis, combinatorics, and number theory, algebra is one of the main branches of mathematics....
 to trigonometry
Trigonometry

Trigonometry is a branch of mathematics that deals with triangle s, particularly those plane triangles in which one angle has 90 degrees . Trigonometry deals with relationships between the sides and the angles of triangles and with the trigonometric functions, which describe those relationships....
 by means of complex number
Complex number

In mathematics, the complex numbers are an extension of the real numbers obtained by adjoining an imaginary unit, denoted i, which satisfies:...
s.

The solutions to the equation
ez = 1 are the integer multiples of 2ip: More generally, if eb = a, then every solution to ez = a can be obtained by adding an integer multiple of 2pi to b: Thus the complex exponential function is a periodic function
Periodic function

In mathematics, a periodic function is a function that repeats its values in regular intervals or periods. The most important examples are the trigonometric functions, which repeat over intervals of length 2π....
 with period 2p
i.

More simply:
eip = −1; ex + iy = ex(cos y + i sin y).

Trigonometric functions

It follows from Euler's formula
Euler's formula

Euler's formula, named after Leonhard Euler, is a mathematics formula in complex analysis that shows a deep relationship between the trigonometric functions and the complex exponential function....
 that the trigonometric functions cosine and sine are

Historically, cosine and sine were defined geometrically before the invention of complex numbers. The above formula reduces the complicated formulas for trigonometric functions of a sum
List of trigonometric identities

In mathematics, trigonometric identities are equalities that involve trigonometric functions that are true for every single value of the occurring variables....
 into the simple exponentiation formula Using exponentiation with complex exponents many problems in trigonometry can be reduced to algebra.

Complex powers of e

The power
ex+i·y is computed ex · ei·y. The real factor ex is the absolute value
Absolute value

In mathematics, the absolute value of a real number is its numerical value without regard to its Negative and non-negative numbers. So, for example, 3 is the absolute value of both 3 and -3....
 of
ex+i·y and the complex factor ei·y identifies the direction
Direction (geometry, geography)

Direction is the information contained in the relative position of one point with respect to another point without the distance information. Directions may be either Relative direction to some indicated reference , or absolute according to some previously agreed upon frame of reference ....
 of
ex+i·y.

Complex powers of positive real numbers


If
a is a positive real number, and z is any complex number, the power az is defined as ez·ln(a), where x = ln(a) is the unique real solution to the equation ex = a. So the same method working for real exponents also works for complex exponents. For example:
2 i = e i·ln(2) = cos(ln(2))+i·sin(ln(2)) = 0.7692+i·0.63896
e i = 0.54030+i·0.84147
10 i = −0.66820+i·0.74398
i = 535.49 i = 1

Powers of complex numbers


Integer powers of complex numbers are defined by repeated multiplication or division as above. Complex powers of positive reals are defined via
ex as above. These are continuous functions. Trying to extend these functions to the general case of noninteger powers of complex numbers that are not positive reals leads to difficulties. Either we define discontinuous functions or multivalued function
Multivalued function

In mathematics, a multivalued function is a total relation; i.e. every input is associated with one or more outputs. Strictly speaking, a "well-defined" function associates one, and only one, output to any particular input....
s. Neither of these options is entirely satisfactory.

The rational power of a complex number must be the solution to an algebraic equation. Therefore it always has a finite number of possible values. For example,
w = z1/2 must be a solution to the equation w2 = z. But if w is a solution, then so is −w, because (−1)2 = 1 . A unique but somewhat arbitary solution called the principal value
Principal value

In considering complex multiple-valued functions in complex analysis, the principal values of a function are the values along one chosen branch of that function, so it is Single-valued function....
 can be chosen using a general rule which also applies for nonrational powers.

Complex powers and logarithms are more naturally handled as single valued functions on a Riemann surface
Riemann surface

In mathematics, particularly in complex analysis, a Riemann surface, first studied by and named after Bernhard Riemann, is a one-dimensional complex manifold....
. Single valued versions are defined by choosing a sheet. The value has a discontinuity along a branch cut. Choosing one out of many solutions as the principal value leaves us with functions that are not continuous, and the usual rules for manipulating powers can lead us astray.

Any nonrational power of a complex number has an infinite number of possible values because of the multi-valued nature of the complex logarithm
Complex logarithm

In complex analysis, a complex logarithm function is an "inverse function" of the complex exponential function, just as the natural logarithm ln x is the inverse of the exponential function ex....
 (see below). The principal value
Principal value

In considering complex multiple-valued functions in complex analysis, the principal values of a function are the values along one chosen branch of that function, so it is Single-valued function....
 is a single value chosen from these by a rule which, amongst its other properties, ensures powers of complex numbers with a positive real part and zero imaginary part give the same value as for the corresponding real numbers.

Exponentiating a real number to a complex power is formally a different operation from that for the corresponding complex number. However in the common case of a positive real number the principal value is the same. The powers of negative real numbers are not always defined and are discontinuous even where defined. When dealing with complex numbers the complex number operation is normally used instead. For example: (-1)1/3 = -1 as a real, but when dealing with complex numbers (-1)1/3 normally means either the principal value ep
i/3 or the set of values .

Powers of the imaginary unit

If
i is the imaginary unit
Imaginary unit

In mathematics, physics, and engineering, the imaginary unit is denoted by  or the Latin   or the Greek iota . It allows the real number system, to be extended to the complex number system,   Its precise definition is dependent upon the particular method of extension....
 and
n is an integer, then in equals 1, i, −1, or −i, according to whether the integer n is congruent to 0, 1, 2, or 3 modulo 4. Because of this, the powers of i are useful for expressing sequence
Sequence

In mathematics, a sequence is an ordered list of objects . Like a Set , it contains Element , and the number of terms is called the length of the sequence....
s of period 4
Root of unity

In mathematics, the nth roots of unity, or Abraham de Moivre numbers, are all the complex numbers that yield 1 when exponentiation to a given power n....
.

Complex power of a complex number


For complex numbers
a and b with a ? 0, the notation ab is ambiguous in the same sense that log a
Complex logarithm

In complex analysis, a complex logarithm function is an "inverse function" of the complex exponential function, just as the natural logarithm ln x is the inverse of the exponential function ex....
 is.

To obtain a value of
ab, first choose a logarithm
Complex logarithm

In complex analysis, a complex logarithm function is an "inverse function" of the complex exponential function, just as the natural logarithm ln x is the inverse of the exponential function ex....
 of
a; call it log a. Such a choice may be the principal value
Complex logarithm

In complex analysis, a complex logarithm function is an "inverse function" of the complex exponential function, just as the natural logarithm ln x is the inverse of the exponential function ex....
 Log 
a (the default, if no other specification is given), or perhaps a value given by some other branch of log z
Complex logarithm

In complex analysis, a complex logarithm function is an "inverse function" of the complex exponential function, just as the natural logarithm ln x is the inverse of the exponential function ex....
 fixed in advance. Then, using the complex exponential function one defines

because this agrees with the earlier definition
Exponentiation

Exponentiation is a mathematics operation , written 'an', involving two numbers, the base a and the exponent n....
 in the case where
a is a positive real number and the (real) principal value of log a is used.

If
b is an integer
Integer

The integers are natural numbers including 0 and their negative and non-negative numberss . They are numbers that can be written without a fractional or decimal component, and fall within the set ....
, then the value of
ab is independent of the choice of log a, and it agrees with the earlier definition of exponentation with an integer exponent
Exponentiation

Exponentiation is a mathematics operation , written 'an', involving two numbers, the base a and the exponent n....
.

If
b is a rational number
Rational number

In mathematics, a rational number is a number which can be expressed as a quotient of two integers. Non-integer rational numbers are usually written as the vulgar fraction , where b is not 0 ....
 
n/m in lowest terms with m > 0, then the infinitely many choices of log a yield only m different values for ab; these values are the m complex solutions z to the equation zm = an.

If
b is an irrational number
Irrational number

In mathematics, an irrational number is any real number that is not a rational number ? that is, it is a number which cannot be expressed as a fraction m/n, where m and n are integers, with n non-zero....
, then the infinitely many choices of log 
a lead to infinitely many distinct values for ab.

The computation of complex powers is facilitated by converting the base
a to polar form, as described in detail below.

Complex roots of unity


A complex number
a such that an = 1 for a positive integer n is an
nth root of unity. Geometrically, the nth roots of unity lie on the unit circle of the complex plane at the vertices of a regular n-gon with one vertex on the real number 1.

If
zn = 1 but zk ? 1 for all natural numbers k such that 0 < k < n, then z is called a
primitive nth root of unity. The negative unit −1 is the only primitive square root of unity. The imaginary unit
Imaginary unit

In mathematics, physics, and engineering, the imaginary unit is denoted by  or the Latin   or the Greek iota . It allows the real number system, to be extended to the complex number system,   Its precise definition is dependent upon the particular method of extension....
 
i is one of the two primitive 4-th roots of unity; the other one is −i.

The number
e2pi (1/n) is the primitive nth root of unity with the smallest positive complex argument. (It is sometimes called the
principal nth root of unity, although this terminology is not universal and should not be confused with the principal value
Principal value

In considering complex multiple-valued functions in complex analysis, the principal values of a function are the values along one chosen branch of that function, so it is Single-valued function....
 of
nv1, which is 1.)

The other
nth roots of unity are given by for 2 = k = n.

Roots of arbitrary complex numbers

Although there are infinitely many possible values for a general complex logarithm, there are only a finite number of values for the power
az in the important special case where z = 1/n and n is a positive integer. These are the
n
th roots
of a; they are solutions of the equation xn = a. As with real roots, a second root is also called a square root and a third root is also called a cube root.

It is conventional in mathematics to define a1/n as the principal value of the root. If a is a positive real number, it is also conventional to select a positive real number as the principal value of the root a1/n. For general complex numbers, the nth root with the smallest argument is often selected as the principal value of the nth root operation, as with principal values of roots of unity.

The set of nth roots of a complex number a is obtained by multiplying the principal value a1/n by each of the nth roots of unity. For example, the fourth roots of 16 are 2, −2, 2i, and −2i, because the principal value of the fourth root of 16 is 2 and the fourth roots of unity are 1, −1, i, and −i.

Computing complex powers

It is often easier to compute complex powers by writing the number to be exponentiated in polar form
Complex number

In mathematics, the complex numbers are an extension of the real numbers obtained by adjoining an imaginary unit, denoted i, which satisfies:...
. Every complex number z can be written in the polar form where r is a nonnegative real number and ? is the (real) argument of z. The polar form has a simple geometric interpretation: if a complex number u + iv is thought of as representing a point (u, v) in the complex plane
Complex plane

In mathematics, the complex plane is a geometric representation of the complex numbersestablished by the real axis and the orthogonal imaginary axis....
 using Cartesian coordinates
Cartesian coordinate system

In mathematics, the Cartesian coordinate system is used to determine each Point uniquely in a Plane through two numbers, usually called the x-coordinate or abscissa and the y-coordinate or ordinate of the point....
, then (r, ?) is the same point in polar coordinates. That is, r is the "radius" r2 = u2 + v2 and ? is the "angle" ? = atan2
Atan2

In trigonometry, the two-argument function atan2 is a variation of the arctangent function. For any real number arguments x and y not both equal to zero, atan2 is the angle in radians between the positive x-axis of a plane and the point given by the Cartesian coordinate system on it....
(v, u). The polar angle ? is ambiguous since any multiple of 2p could be added to ? without changing the location of the point. Each choice of ? gives in general a different possible value of the power. A branch cut can be used to choose a specific value. The principal value (the most common branch cut), corresponds to ? chosen in the interval (−p, p]. For complex numbers with a positive real part and zero imaginary part using the principal value gives the same result as using the corresponding real number.

In order to compute the complex power ab, write a in polar form: . Then and thus If b is decomposed as c + di, then the formula for ab can be written more explicitly as This final formula allows complex powers to be computed easily from decompositions of the base into polar form and the exponent into Cartesian form. It is shown here both in polar form and in Cartesian form (via Euler's identity).

The following examples use the principal value, the branch cut which causes ? to be in the interval (−p, p]. To compute ii, write i in polar and Cartesian forms: Then the formula above, with r = 1, ? = p/2, c = 0, and ''d'' = 1, yields:

Similarly, to find (−2)3 + 4''i'', compute the polar form of −2,

and use the formula above to compute

The value of a complex power depends on the branch used. For example, if the polar form ''i'' = 1''e''''i''(5p/2) is used to compute ''i'' ''i'', the power is found to be ''e''−5p/2; the principal value of ''i'' ''i'', computed above, is ''e''−p/2. The set of all possible values for ''i'' ''i'' is given by:
So there is an infinity of values which are possible candidates for the value of ''i''''i'', one for each integer ''k''. All of them have a zero imaginary part so one can say ''i''''i'' has an infinity of valid real values.

Failure of power and logarithm identities


Some identities for powers and logarithms for positive real numbers will fail for complex numbers, no matter how complex powers and complex logarithms are defined.

For example,

  • The identity log(''a''''b'') = ''b'' · log ''a'' holds whenever ''a'' is a positive real number and ''b'' is a real number. But for the principal branch
    Principal branch

    In mathematics, a principal branch is a function which selects one branch, or "slice", of a multi-valued function. Most often, this applies to functions defined on the complex plane: see branch cut....
     of the complex logarithm one has
Regardless of which branch of the logarithm is used, a similar failure of the identity will exist. The best that can be said is that:


This identity does not hold even when considering log as a multivalued function. The possible values of log(''a''''b'') contain those of ''b'' · log ''a'' as a subset. Using Log(''a'') for the principal value of log(''a'') and ''m'', ''n'' as any integers the possible values of both sides are:


  • The identities (''ab'')''c'' = ''a''''c''''b''''c'' and (''a''/''b'')''c'' = ''a''''c''/''b''''c'' are valid when ''a'' and ''b'' are positive real numbers and ''c'' is a real number. But a calculation using principal branches shows that
and
On the other hand, when ''c'' is an integer, the identities are valid for all nonzero complex numbers.


If exponentiation is considered as a multivalued function then the possible values of (-1.-1)1/2 are . The identity holds but saying = is wrong.


  • The identity (e''a'')''b'' = e''ab'' holds for real numbers ''a'' and ''b'', but assuming its truth for complex numbers leads to the following paradox, discovered in 1827 by Clausen
    Thomas Clausen (mathematician)

    Thomas Clausen was a Denmark mathematician and astronomer, best known for his 1854 discovery of a factor of the sixth Fermat number.Clausen learned mathematics at home....
    : For any integer ''n'',
e1+4π''in''-4π2''n''2 = e; e1e4π''in''e-4π2''n''2 = e; and e-4π2''n''2 = 1,
but this is false when the integer ''n'' is nonzero.


There are a number of problems in the reasoning:
The major error is that changing the order of exponentiation in going from line two to three changes what the principal value chosen will be.
From the multi valued point of view the first error occurs even sooner, it is implicit in the first line and not obvious. It is that e is a real number whereas the result of e1+2π''in'' is a complex number better represented as e+0''i''. Substituting the complex number for the real on the second line makes the power have multiple possible values. Changing the order of exponentiation from lines two to three also affects how many possible values the result can have.


Zero to the zero power


Most authors agree with the statements related to 00 in the two lists below, but come to differing conclusions when it comes to ''defining'' 00 or not: see the next subsection.

In most settings ''not involving continuity'' (for instance, those in which only integral exponents are considered), interpreting 00 as 1 simplifies formulas and eliminates the need for special cases in theorems. (See the next paragraph for some settings that ''do'' involve continuity.) For example:
  • Regarding 00 as an empty product
    Empty product

    In mathematics, an empty product, or nullary product, is the result of multiplication no numbers. Its numerical value is 1 , the multiplicative identity element, just as the empty sum—the result of addition no numbers—is 0 , or the additive identity....
     of zeros suggests a value of 1.
  • The combinatorial interpretation
    Exponentiation

    Exponentiation is a mathematics operation , written 'an', involving two numbers, the base a and the exponent n....
     of 00 is the number of empty tuples of elements from the empty set. There is exactly one empty tuple.
  • Equivalently, the set-theoretic interpretation of 00 is the number of functions from the empty set to the empty set. There is exactly one such function, the empty function
    Empty function

    In mathematics, an empty function is a function whose domain is the empty set. For each Set A, there is exactly one such empty function...
    .
  • It greatly simplifies the theory of polynomial
    Polynomial

    In mathematics, a polynomial is an expression constructed from variables and constants, using the operations of addition, subtraction, multiplication, and constant non-negative whole number exponents....
    s and power series
    Power series

    In mathematics, a power series is an infinite series of the formwhere an represents the coefficient of the nth term, c is a constant, and x varies around c ....
     that a constant term can be written ''ax''0 for an arbitrary ''x''. For example:
    • The formula for the coefficients of a product of polynomials would lose much of its simplicity if constant terms had to be treated specially.
    • Identities like and are not valid for ''x'' = 0 unless 00 = 1.
    • The binomial theorem
      Binomial theorem

      In mathematics, the binomial theorem is an important formula giving the expansion of exponentiation of sums. Its simplest version states that...
        is not valid for ''x'' = 0 unless 00 = 1.
  • In differential calculus
    Differential calculus

    Differential calculus, a field in mathematics, is the study of how function s change when their inputs change. The primary object of study in differential calculus is the derivative....
    , the power rule is not valid for ''n'' = 1 at ''x'' = 0 unless 00 = 1.


On the other hand, 00 must be handled as an indeterminate form
Indeterminate form

In calculus and other branches of mathematical analysis, an indeterminate form is an algebraic expression obtained in the context of limits. Limits involving algebraic operations are often performed by replacing subexpressions by their limits; if the expression obtained after this substitution does not give enough information to determine th...
 in settings where the exponent varies continuously:
  • When ''f''(''t'') and ''g''(''t'') are real-valued functions approaching 0 (as ''t'' approaches a real number or ±8), with ''f''(''t'') > 0, the function ''f''(''t'')''g''(''t'') need not approach 1. In fact, depending on ''f'' and ''g'', the limit of ''f''(''t'')''g''(''t'') can be any nonnegative real number or +8, or it can be undefined. Limits involving algebraic operations can often be evaluated by replacing subexpressions by their limits; if the resulting expression does not determine the original limit, the expression is known as an indeterminate form
    Indeterminate form

    In calculus and other branches of mathematical analysis, an indeterminate form is an algebraic expression obtained in the context of limits. Limits involving algebraic operations are often performed by replacing subexpressions by their limits; if the expression obtained after this substitution does not give enough information to determine th...
    .


For example, the following expressions are all of the form ''f''(''t'')''g''(''t'') with ''f''(''t''),''g''(''t'') ? 0 as ''t'' ? 0+
One-sided limit

In calculus, a one-sided limit is either of the two Limit of a function of a function f of a real number variable x as x approaches a specified point either from below or from above....
, and have the stated limits for any positive constant ''a'':
.
The limits are all different so clearly no single value of 00 can be defined as the limit for every case. This behavior results from the fact that the two-variable function ''x''''y'', though continuous on the set , cannot be extended to a continuous function
Continuous function

In mathematics, a continuous function is a function for which, intuitively, small changes in the input result in small changes in the output. Otherwise, a function is said to be discontinuous....
 on any set containing (0,0), no matter how 00 is defined.


  • The function ''z''''z'' is defined for nonzero complex number
    Complex number

    In mathematics, the complex numbers are an extension of the real numbers obtained by adjoining an imaginary unit, denoted i, which satisfies:...
    s ''z'' by choosing a branch
    Complex logarithm

    In complex analysis, a complex logarithm function is an "inverse function" of the complex exponential function, just as the natural logarithm ln x is the inverse of the exponential function ex....
     of log ''z'' and setting ''z''''z'' := ''e''''z'' log ''z'', but there is no branch
    Complex logarithm

    In complex analysis, a complex logarithm function is an "inverse function" of the complex exponential function, just as the natural logarithm ln x is the inverse of the exponential function ex....
     of log ''z'' defined at ''z'' = 0, let alone in a neighborhood of 0. There is no holomorphic function
    Holomorphic function

    Holomorphic functions are the central object of study of complex analysis; they are function defined on an open set of the complex number C with values in C that are complex-differentiable at every point....
     defined in a neighborhood of 0 that agrees with ''z''''z'' for all positive real numbers ''z''.


History of differing points of view


Different authors interpret the situation above in different ways:
  • Some argue that the best value for 00 depends on context, and hence that defining
    Defined and undefined

    In mathematics, defined and undefined are used to explain whether or not expressions have meaningful, sensible, and unambiguous values. Not all branches of mathematics come to the same conclusion....
     it once and for all is problematic. According to Benson (1999), "The choice whether to define 00 is based on convenience, not on correctness."
  • Others argue that 00 is 1. According to p. 408 of Knuth
    Donald Knuth

    Donald Ervin Knuth is a renowned computer science and Emeritus of the Art of Computer Programming at Stanford University.Author of the seminal multi-volume work The Art of Computer Programming , Knuth has been called the "father" of the run-time analysis, contributing to the development of, and systematizing formal mathematical techn...
     (1992), it "''has'' to be 1".


The debate has been going on at least since the early 1800s. At that time, most mathematicians agreed that 00 = 1, but in 1821 Cauchy listed 00 along with expressions like 0/0 in a table of undefined forms. In the 1830s Libri published an unconvincing argument for 00 = 1, and Möbius sided with him, erroneously claiming that whenever A commentator who signed his name simply as "S" provided the counterexample of (''e''-1/''t'')t (which can be obtained in one example above by taking ''a'' = 1), and this quieted the debate for some time, with the apparent conclusion of this episode being that 00 should be undefined. More details can be found in Knuth
Donald Knuth

Donald Ervin Knuth is a renowned computer science and Emeritus of the Art of Computer Programming at Stanford University.Author of the seminal multi-volume work The Art of Computer Programming , Knuth has been called the "father" of the run-time analysis, contributing to the development of, and systematizing formal mathematical techn...
 (1992).

Treatment in programming languages and calculators

Computer programming languages that evaluate 00 to 1 include bc
Bc programming language

bc is "an arbitrary precision calculator language" with syntax similar to the C . It is generally used by typing the command bc on a Unix command prompt and entering a mathematical expression, such as * 2, whereupon 8 will be output....
, Haskell
Haskell (programming language)

Haskell is a standardized, purely functional programming language with non-strict programming language, named after logician Haskell Curry. The goals of the language are described as:...
, J
J (programming language)

The J programming language, developed in the early 1990s by Kenneth Iverson and Roger Hui, is a synthesis of APL programming language and the FP programming language and FL programming language function-level languages created by John Backus....
, Java
Java (programming language)

Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java ....
, LISP
Lisp

A lisp is a speech impediment, historically also known as sigmatism. Stereotypically, people with a lisp are unable to pronounce sibilants , and replace them with Interdental consonants , though there are actually several kinds of lisps....
,MATLAB
MATLAB

MATLAB is a Numerical analysis environment and programming language. Maintained by The MathWorks, MATLAB allows easy matrix manipulation, plotting of function and data, implementation of algorithms, creation of user interfaces, and interfacing with programs in other languages....
, ML, Perl
Perl

In computer programming, Perl is a high-level programming language, List of programming languages by category, Interpreter , dynamic programming language....
, PHP
PHP

PHP is a scripting language originally designed for producing dynamic web pages. It has evolved to include a command line interface capability and can be used in Standalone software Graphical user interface....
, Python
Python (programming language)

Python is a general-purpose high-level programming language. Its design philosophy emphasizes code readability. Python's core syntax and semantics are Minimalism , while the standard library is large and comprehensive....
, R, Ruby
Ruby (programming language)

Ruby is a dynamic programming language, reflection , general purpose object-oriented programming language that combines syntax inspired by Perl with Smalltalk-like features....
, Scheme, and SQL
SQL

SQL is a database computer language designed for the retrieval and management of data in relational database management systems , database schema creation and modification, and database object access control management....
. In the .NET Framework
.NET Framework

The Microsoft .NET Framework is a software framework that is available with several Microsoft Windows operating systems. It includes a large Library of coded solutions to prevent common programming problems and a virtual machine that manages the execution of programs written specifically for the Software framework....
, the method
Method (computer science)

In object-oriented programming, a method is a subroutine that is exclusively associated either with a class or with an object . Like a procedure in procedural programming languages, a method usually consists of a sequence of statement to perform an action, a set of input parameter to customize those actions, and possibly an output value...
 System.Math.Pow treats 00 to be 1.

Among spreadsheet applications, Microsoft Excel
Microsoft Excel

Microsoft Excel is a spreadsheet-application written and distributed by Microsoft for Microsoft Windows and Mac OS X. It features calculation, graphing tools, pivot tables and a macro programming language called VBA ....
 issues an error when it evaluates 00, while OpenOffice.org
OpenOffice.org

OpenOffice.org , commonly known simply as OpenOffice, is an office application suite available for a number of different computer operating systems....
 3 returns 1.

Microsoft Windows
Microsoft Windows

Microsoft Windows is a series of software operating systems and graphical user interfaces produced by Microsoft. Microsoft first introduced an operating environment named Windows in November 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces ....
' Calculator and the calculator in Google search
Google search

Google search is a Web search engine owned by Google, and is the most used search engine on the World Wide Web. Google receives several hundred million queries each day through its various services....
 evaluate 00 to 1.

Maple
Maple (software)

Maple is a general-purpose commercial computer algebra system. It was first developed in 1980 by the Symbolic Computation Group at the University of Waterloo in Waterloo, Ontario, Canada....
 simplifies ''a''0 to 1 and 0''a'' to 0, even if no constraints are placed on ''a'', and evaluates 00 to 1.

Mathematica
Mathematica

Mathematica is a computational software program used widely in scientific, engineering, and mathematical fields and other areas of technical computing....
 simplifies ''a''0 to 1, even if no constraints are placed on ''a''. It does not simplify 0''a'', and it takes 00 to be an indeterminate form.

The TI-84 returns a Domain Error when given 0^0 to solve, but the TI-89 returns 1. The TI-89 Titanium returns undef.

Limits of powers


The section zero to the zero power gives a number of examples of limits which are of the indeterminate form
Indeterminate form

In calculus and other branches of mathematical analysis, an indeterminate form is an algebraic expression obtained in the context of limits. Limits involving algebraic operations are often performed by replacing subexpressions by their limits; if the expression obtained after this substitution does not give enough information to determine th...
 00. The limits in these examples exist, but have different values, showing that the two-variable function ''x''''y'' has no limit at the point (0,0). One may ask at what points this function does have a limit.

More precisely, we consider the function ''f''(''x'',''y'') = ''x''''y'' defined on ''D'' = . We view ''D'' as a subset of R2 (that is, the set of all pairs (''x'',''y'') with ''x'',''y'' belonging to the extended real number line
Extended real number line

In mathematics, the affinely extended real number system is obtained from the real number system R by adding two elements: +8 and −8 ....
 R = [−8, +8], endowed with the product topology
Product topology

In topology and related areas of mathematics, a product space is the cartesian product of a family of topological spaces equipped with a natural topology called the product topology....
), and ask at what points the function ''f'' has a limit.

In fact, ''f'' has a limit at all accumulation points of ''D'', except for (0,0), (+8,0), (1,+8) and (1,-8). Accordingly, this allows one to define the powers ''x''''y'' by continuity whenever 0 = ''x'' = +8, -8 = y = +8, except for 00, (+8)0, 1+8 and 1-8, which remain indeterminate forms.

Under this definition by continuity, we obtain:

  • ''a''+8 = +8 and ''a''-8 = 0, when 1 < ''a'' = +8.
  • ''a''+8 = 0 and ''a''-8 = +8, when 0 = ''a'' < 1.
  • 0''b'' = 0 and (+8)''b'' = +8, when 0 < ''b'' = +8.
  • 0''b'' = +8 and (+8)''b'' = 0, when -8 = ''b'' < 0.


It should be borne in mind that these powers are obtained by taking limits of ''x''''y'' for ''positive'' values of ''x''. This method does not permit a definition of ''x''''y'' when ''x'' < 0, since pairs (''x'',''y'') with ''x'' < 0 are not accumulation points of ''D''.

On the other hand, when ''n'' is an integer, the power ''x''''n'' is already meaningful for all values of ''x'', including negative ones. This may make the definition 0''n'' = +8 obtained above for negative ''n'' problematic when ''n'' is odd, since in this case ''t''''n'' ? +8 as ''t'' tends to 0 through positive values, but not negative ones.

Efficiently computing a power

The simplest method of computing ''a''''n'' requires ''n''−1 multiplication operations, but it can be computed more efficiently as illustrated by the following example. To compute 2100, note that 100 = 96 + 4 and 96 = 3 × 32. Compute the following in order:
22 = 4
2 = 24 = 16 2 = 28 = 256 2 = 216 = 65,536 2 = 232 = 4,294,967,296
232 232 23224 = 1,267,650,600,228,229,401,496,703,205,376 = 2100
This series of steps only requires 8 multiplication operations instead of 99.

In general, the number of multiplication operations required to compute ''a''''n'' can be reduced to Θ(log ''n'') by using exponentiation by squaring
Exponentiation by squaring

Exponentiating by squaring is an algorithm used for the fast computation of large integer powers of a number. It is also known as the square-and-multiply algorithm or binary exponentiation....
 or (more generally) addition-chain exponentiation
Addition-chain exponentiation

In mathematics and computer science, optimal addition-chain exponentiation is a method of exponentiation by positive integer powers that requires a minimal number of multiplications....
. Finding the ''minimal'' sequence of multiplications (the minimal-length addition chain for the exponent) for ''a''''n'' is a difficult problem for which no efficient algorithms are currently known, but many reasonably efficient heuristic algorithms are available.

Exponential notation for function names

Placing an integer superscript after the name or symbol of a function, as if the function were being raised to a power, commonly refers to repeated function composition
Function composition

In mathematics, a composite function represents the application of one function to the results of another. For instance, the functions and can be composed by first computing a f and then applying a function g to the output of f....
 rather than repeated multiplication. Thus ''f''3(''x'') may mean ''f''(''f''(''f''(''x''))); in particular, ''f'' -1(''x'') usually denotes the inverse function
Inverse function

In mathematics, if ƒ is a function from A to B then an inverse function for ƒ is a function in the opposite direction, from B to A, with the property that a round trip from A to B to A returns each element of the initial set to itself....
 of ''f''. Iterated function
Iterated function

In mathematics, iterated functions are the objects of deep study in computer science, fractals and dynamical systems. An iterated function is a function which is function composition with itself, ad infinitum, in a process called iteration....
s are of interest in the study of fractal
Fractal

A fractal is generally "a rough or fragmented Shape that can be split into parts, each of which is a reduced-size copy of the whole," a property called self-similarity....
s and dynamical systems. Babbage was the first to study the problem of finding a functional square root
Functional square root

In mathematics, a functional square root is a square root of a function with respect to the operation of function composition. In other words, a functional square root of a function g is a function f satisfying f = g for all x....
 ''f''1/2(''x'').

However, for historical reasons, a special syntax applies to the trigonometric functions: a positive exponent applied to the function's abbreviation means that the result is raised to that power, while an exponent of −1 denotes the inverse function. That is, sin2''x'' is just a shorthand way to write (sin ''x'')2 without using parentheses, whereas sin−1''x'' refers to the inverse function of the sine
Siné

Maurice Sinet, known as Sin? is a France cartoonist.As a young man he studied drawing and graphic arts, earning his life as a cabaret singer....
, also called arcsin ''x''. There is no need for a shorthand for the reciprocals of trigonometric functions since each has its own name and abbreviation; for example, 1/sin ''x'' = (sin ''x'')−1 is csc ''x''. A similar convention applies to logarithms, where log2''x'' usually means (log ''x'')2, not log log ''x''.

Generalizations of exponentiation


Exponentiation in abstract algebra

Exponentiation for integer exponents can be defined for quite general structures in abstract algebra
Abstract algebra

Abstract algebra is the subject area of mathematics that studies algebraic structures, such as group , ring , field , module , vector spaces, and algebra over a field....
.

Let ''X'' be a set with a power-associative binary operation
Binary operation

In mathematics, a binary operation is a calculation involving two operands, in other words, an operation whose arity is two. Binary operations can be accomplished using either a binary function or binary operator....
 which is written multiplicatively,. Then ''x''''n'' is defined for any element ''x'' of ''X'' and any nonzero natural number
Natural number

In mathematics, a natural number can mean either an element of the Set = *n = = ? = ? ...
 ''n'' as ''x'' multiplied by itself ''n'' times.

  • Power associative


If the operation has a two-sided identity element
Identity element

In mathematics, an identity element is a special type of element of a Set with respect to a binary operation on that set. It leaves other elements unchanged when combined with them....
 1 (often denoted by ''e''), then ''x''0 is defined to be equal to 1 for any ''x''.

  • Two sided identity


If the operation also has two-sided inverses
Inverse element

In mathematics, the idea of inverse element generalises the concepts of additive inverse, in relation to addition, and Multiplicative inverse, in relation to multiplication....
, and multiplication is associative then the magma
Magma (algebra)

In abstract algebra, a magma is a basic kind of algebraic structure. Specifically, a magma consists of a Set M equipped with a single binary operation M × M ? M....
 is a group
Group (mathematics)

In mathematics, a group is an algebraic structure consisting of a set together with an Binary operation that combines any two of its element to form a third element....
. The inverse of ''x'' can be denoted by ''x''-1 and follows all the usual rules for exponents.

  • Two sided inverse
  • Associative


If the multiplication operation is commutative (as for instance in abelian group
Abelian group

An abelian group, also called a commutative group, is a group satisfying the requirement that the product of elements does not depend on their order ....
s), then the following holds:


If the binary operation is written additively, as it often is for abelian groups, then "exponentiation is repeated multiplication" can be reinterpreted as "multiplication
Multiplication

Multiplication is the Operation of scaling one number by another. It is one of the four basic operations in elementary arithmetic .Multiplication is defined for Natural number in terms of repeated addition; for example, 4 multiplied by 3 can be calculated by adding 3 copies of 4 together:...
 is repeated addition
Addition

Addition is the mathematics process of putting things together. The plus sign "+" means that numbers are added together. For example, in the picture on the right, there are 3 + 2 apples?meaning three apples and two other apples?which is the same as five apples, since 3 + 2 = 5....
". Thus, each of the laws of exponentiation above has an analogue
Analogy

Analogy is both the cognition process of transferring information from a particular subject to another particular subject , and a language expression corresponding to such a process....
 among laws of multiplication.

When one has several operations around, any of which might be repeated using exponentiation, it is common to indicate which operation is being repeated by placing its symbol in the superscript. Thus, ''x''*''n'' is ''x'' * ··· * ''x'', while ''x''#''n'' is ''x'' # ··· # ''x'', whatever the operations * and # might be.

Superscript notation is also used, especially in group theory
Group theory

In mathematics and abstract algebra, group theory studies the algebraic structures known as group .The concept of a group is central to abstract algebra: other well-known algebraic structures, such as ring , field , and vector spaces can all be seen as groups endowed with additional operations and axioms....
, to indicate conjugation
Conjugacy class

In mathematics, especially group theory, the elements of any group may be partition of a set into conjugacy classes; members of the same conjugacy class share many properties, and study of conjugacy classes of non-abelian groups reveals many important features of their structure....
. That is, ''g''''h'' = ''h''−1''gh'', where ''g'' and ''h'' are elements of some group. Although conjugation obeys some of the same laws as exponentiation, it is not an example of repeated multiplication in any sense. A quandle is an algebraic structure
Algebraic structure

In algebra, a branch of pure mathematics, an algebraic structure consists of one or more Set Closure under one or more Operation , satisfying some axiom....
 in which these laws of conjugation play a central role.

Exponentiation over sets


If ''n'' is a natural number and ''A'' is an arbitrary set, the expression ''A''''n'' is often used to denote the set of ordered ''n''-tuples of elements of ''A''. This is equivalent to letting ''A''''n'' denote the set of functions from the set to the set ''A''; the ''n''-tuple (''a''0, ''a''1, ''a''2, ..., a''n''−1) represents the function that sends ''i'' to ''a''''i''.

For an infinite cardinal number
Cardinal number

In mathematics, cardinal numbers, or cardinals for short, are a generalization of the natural numbers used to measure the cardinality of Set ....
 ? and a set ''A'', the notation ''A''? is also used to denote the set of all functions from a set of size ? to ''A''. This is sometimes written ?''A'' to distinguish it from cardinal exponentiation, defined below.

This generalized exponential can also be defined for operations on sets or for sets with extra structure
Mathematical structure

In mathematics, a structure on a Set , or more generally a intuitionistic type theory, consists of additional mathematical objects that in some manner attach to the set, making it easier to visualize or work with, or endowing the collection with meaning or significance....
. For example, in linear algebra
Linear algebra

Linear algebra is the branch of mathematics concerned with the study of Euclidean vectors, vector spaces , linear maps , and system of linear equations....
, it makes sense to index direct sums of vector space
Vector space

File:Vector addition ans scaling.pngA vector space is a mathematical structure formed by a collection of vectors: objects that may be Vector addition together and Scalar multiplication by numbers, called scalar s in this context....
s over arbitrary index sets. That is, we can speak of
where each ''V''''i'' is a vector space. Then if ''V''''i'' = ''V'' for each ''i'', the resulting direct sum can be written in exponential notation as ''V''(+)''N'', or simply ''V''''N'' with the understanding that the direct sum is the default. We can again replace the set ''N'' with a cardinal number ''n'' to get ''V''''n'', although without choosing a specific standard set with cardinality ''n'', this is defined only up to isomorphism. Taking ''V'' to be the field R of real number
Real number

In mathematics, the real numbers may be described informally in several different ways. The real numbers include both rational numbers, such as 42 and −23/129, and irrational numbers, such as pi and the square root of two; or, a real number can be given by an infinite decimal representation, such as 2.4871773339...., where the digits co...
s (thought of as a vector space over itself) and ''n'' to be some natural number
Natural number

In mathematics, a natural number can mean either an element of the Set = *n = = ? = ? ...
, we get the vector space that is most commonly studied in linear algebra, the Euclidean space
Euclidean space

Around 300 Before Christ, the Ancient Greece mathematician Euclid undertook a study of relationships among distances and angles, first in a plane and then in space....
 R''n''.

If the base of the exponentiation operation is a set, the exponentiation operation is the Cartesian product
Cartesian product

In mathematics, the Cartesian product is a direct product of sets. The Cartesian product is named after Ren? Descartes, whose formulation of analytic geometry gave rise to this concept....
 unless otherwise stated. Since multiple Cartesian products produce an ''n''-tuple
Tuple

In mathematics, a tuple is a sequence of a specific number of values, called the components of the tuple. These components can be any kind of mathematical objects, where each component of a tuple is a value of a specified type....
, which can be represented by a function on a set of appropriate cardinality, ''S''''N'' becomes simply the set of all function
Function (mathematics)

The mathematical concept of a function expresses dependence between two quantities, one of which is known and the other which is produced. A function associates a single output to each input element drawn from a fixed Set , such as the real numbers , although different inputs may have the same output....
s from ''N'' to ''S'' in this case:
This fits in with the exponentiation of cardinal numbers, in the sense that |''S''''N''| = |''S''||''N''|, where |''X''| is the cardinality of ''X''. When ''N''=2=, we have |2''X''| = 2|''X''|, where 2''X'', usually denoted by PX'', is the power set
Power set

In mathematics, given a Set S, the power set of S, written , P, ℘ or Power set#Representing subsets as functions, is the set of all subsets of S....
 of ''X''; each subset
Subset

In mathematics, especially in set theory, a Set A is a subset of a set B if A is "contained" inside B. Notice that A and B may coincide....
 ''Y'' of ''X'' corresponds uniquely to a function on ''X'' taking the value 1 for ''x'' ? ''Y'' and 0 for ''x'' ? ''Y''.

Exponentiation in category theory

In a Cartesian closed category
Cartesian closed category

In category theory, a category is cartesian closed if, roughly speaking, any morphism defined on a product of two objects can be naturally identified with a morphism defined on one of the factors....
, the exponential operation can be used to raise an arbitrary object to the power of another object. This generalizes the Cartesian product
Cartesian product

In mathematics, the Cartesian product is a direct product of sets. The Cartesian product is named after Ren? Descartes, whose formulation of analytic geometry gave rise to this concept....
 in the category of sets.

Exponentiation of cardinal and ordinal numbers


In set theory
Set theory

Set theory is the branch of mathematics that studies Set , which are collections of objects. Although any type of object can be collected into a set, set theory is applied most often to objects that are relevant to mathematics....
, there are exponential operations for cardinal
Cardinal number

In mathematics, cardinal numbers, or cardinals for short, are a generalization of the natural numbers used to measure the cardinality of Set ....
 and ordinal
Ordinal number

In set theory, an ordinal number, or just ordinal, is the order type of a well-order. They are usually identified with hereditarily transitive sets....
 numbers.

If ? and ? are cardinal numbers, the expression ?? represents the cardinality of the set of functions from any set of cardinality ? to any set of cardinality ?. If ? and ? are finite, then this agrees with the ordinary arithmetic exponential operation. For example, the set of 3-tuples of elements from a 2-element set has cardinality 8 = 23.

Exponentiation of cardinal numbers is distinct from exponentiation of ordinal number
Ordinal number

In set theory, an ordinal number, or just ordinal, is the order type of a well-order. They are usually identified with hereditarily transitive sets....
s, which is defined by a limit
Limit (mathematics)

In mathematics, the concept of a "limit" is used to describe the behavior of a Function as its argument or input either "gets close" to some point, or as the argument becomes arbitrarily large; or the behavior of a sequence's elements as their index increases indefinitely....
 process involving transfinite induction
Transfinite induction

Transfinite induction is an extension of mathematical induction to well-order, for instance to sets of Ordinal number or cardinal number....
.

Repeated exponentiation

Just as exponentiation of natural numbers is motivated by repeated multiplication, it is possible to define an operation based on repeated exponentiation; this operation is sometimes called tetration
Tetration

In mathematics, tetration is an iterated function exponential function, the first hyper operator after exponentiation. The portmanteau tetration was coined by English mathematician Reuben Louis Goodstein from tetra- and iteration....
. Iterating tetration leads to another operation, and so on. This sequence of operations is expressed by the Ackermann function
Ackermann function

In computability theory, the Ackermann function or Ackermann?P?ter function is a simple example of a computable function that is not Primitive recursive function....
 and Knuth's up-arrow notation
Knuth's up-arrow notation

In mathematics, Knuth's up-arrow notation is a method of notation of large number integers introduced by Donald Knuth in 1976. It is closely related to the Ackermann function....
.

Exponentiation in programming languages

The superscript notation ''x''''y'' is convenient in handwriting but inconvenient for typewriter
Typewriter

A typewriter is a Machine or electromechanical device with a set of "keys" that, when pressed, cause Typeface to be printed on a medium, usually paper....
s and computer terminal
Computer terminal

A computer terminal is an electronic or electromechanical computer hardware device that is used for entering data into, and displaying data from, a computer or a computing system....
s that align the baselines of all characters on each line. Many programming language
Programming language

A programming language is a machine-readable artificial language designed to express computations that can be performed by a machine, particularly a computer....
s have alternate ways of expressing exponentiation that do not use superscripts:
  • x ? y: Algol, Commodore BASIC
    Commodore BASIC

    Commodore BASIC, also known as PET BASIC, is the dialect of the BASIC programming language used in Commodore International's 8-bit home computer line, stretching from the Commodore PET of 1977 to the Commodore 128 of 1985....
  • x ^ y: BASIC
    BASIC

    In computer programming, BASIC is a family of high-level programming languages. The Dartmouth BASIC was designed in 1964 by John George Kemeny and Thomas Eugene Kurtz at Dartmouth College in New Hampshire, United States to provide computer access to non-science students....
    , J, Matlab
    MATLAB

    MATLAB is a Numerical analysis environment and programming language. Maintained by The MathWorks, MATLAB allows easy matrix manipulation, plotting of function and data, implementation of algorithms, creation of user interfaces, and interfacing with programs in other languages....
    , R
    R (programming language)

    In computing, R is a programming language and software environment for statistics computing and graphics. It is an implementation of the S programming language with lexical scoping semantics inspired by Scheme ....
    , Microsoft Excel
    Microsoft Excel

    Microsoft Excel is a spreadsheet-application written and distributed by Microsoft for Microsoft Windows and Mac OS X. It features calculation, graphing tools, pivot tables and a macro programming language called VBA ....
    , TeX
    TeX

    TeX is a typesetting system designed and mostly written by Donald Knuth. Together with the METAFONT language for font description and the Computer Modern typefaces, it was designed with two main goals in mind: to allow anybody to produce high-quality books using a reasonable amount of effort, and to provide a system that would give the exact...
     (and its derivatives), Haskell
    Haskell (programming language)

    Haskell is a standardized, purely functional programming language with non-strict programming language, named after logician Haskell Curry. The goals of the language are described as:...
     (for integer exponents), and most computer algebra system
    Computer algebra system

    A computer algebra system is a Application software that facilitates symbolic mathematics. The core functionality of a CAS is manipulation of mathematical expressions in symbolic form....
    s
  • x ** y: Ada
    Ada (programming language)

    Ada is a structured programming, statically typed, Imperative programming, and Object-oriented programming high-level language computer programming programming language, extended from Pascal and other languages....
    , Bash
    Bash

    Bash is a free software Unix shell written for the GNU Project. Its name is an acronym which stands for Bourne-again shell. The name is a pun on the name of the Bourne shell , an early and important Unix shell written by Stephen Bourne and distributed with Version 7 Unix circa 1978, and the concept of being "Born again Christianity"....
    , COBOL
    COBOL

    COBOL is one of the oldest programming languages still in active use. Its name is an acronym for COmmon Business-Oriented Language, defining its primary domain in business, finance, and administrative systems for companies and governments....
    , Fortran
    Fortran

    Fortran is a general-purpose programming language, procedural programming language, imperative programming language programming language that is especially suited to numerical analysis and scientific computing....
    , FoxPro
    FoxPro

    has two meanings:* Visual FoxPro - an object-oriented programming language and RDBMS, published by Microsoft, for Microsoft Windows.* FoxPro 2 - a text-based procedural programming language and RDBMS, originally published by Fox Software and later by Microsoft, for MS-DOS, Microsoft Windows, Macintosh, and UNIX...
    , Perl
    Perl

    In computer programming, Perl is a high-level programming language, List of programming languages by category, Interpreter , dynamic programming language....
    , PL/I
    PL/I

    PL/I is an imperative programming computer programming programming language designed for scientific, engineering, and business applications. It is one of the most feature-rich programming languages and one of the very first in the highly-feature-rich category....
    , Python
    Python (programming language)

    Python is a general-purpose high-level programming language. Its design philosophy emphasizes code readability. Python's core syntax and semantics are Minimalism , while the standard library is large and comprehensive....
    , Ruby
    Ruby (programming language)

    Ruby is a dynamic programming language, reflection , general purpose object-oriented programming language that combines syntax inspired by Perl with Smalltalk-like features....
    , SAS, ABAP
    ABAP

    ABAP is a high level programming language created by the Germany software company SAP AG. It is currently positioned, alongside the more recently introduced Java_, as the language for programming SAP's SAP Web Application Server, part of its NetWeaver platform for building business applications....
    , Haskell (for floating-point exponents), Turing, VHDL
  • x * y: APL
    APL programming language

    APL is an array programming language based on a notation invented in 1957 by Kenneth E. Iverson while at Harvard University. It originated as an attempt to provide consistent notation for the teaching and analysis of topics related to the application of computers....
  • Power(x, y): Microsoft Excel, Delphi/Pascal (declared in "Math"-unit)
  • pow(x, y): C
    C (programming language)

    C is a general-purpose computer programming language originally developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories to implement the Unix operating system....
    , C++
    C++

    C++ is a general-purpose programming language. It is regarded as a middle-level language, as it comprises a combination of both high-level programming language and low-level programming language language features....
    , PHP
    PHP

    PHP is a scripting language originally designed for producing dynamic web pages. It has evolved to include a command line interface capability and can be used in Standalone software Graphical user interface....
  • Math.pow(x, y): Java
    Java (programming language)

    Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java ....
    , JavaScript
    JavaScript

    JavaScript is a scripting language widely used for client-side web development. It was the originating Programming language dialect of the ECMAScript standard....
    , Modula-3
    Modula-3

    In Computer science, Modula-3 is a programming language conceived as a successor to an upgraded version of Modula-2. While it has been influential in research circles it has not been adopted widely in industry....
  • Math.Pow(x, y): C#
  • (expt x y): Common Lisp
    Common Lisp

    Common Lisp, commonly abbreviated CL, is a dialect of the Lisp programming language, published in American National Standards Institute standard document Information Technology - Programming Language - Common Lisp, formerly X3.226-1994 ....
    , Scheme
  • math:pow(x, y): Erlang


In Bash, C, C++, C#, Java, JavaScript, Perl, PHP, Python and Ruby, the symbol ^ represents bitwise XOR. In Pascal, it represents indirection
Indirection

In computer programming, indirection is the ability to reference something using a name, reference, or container instead of the value itself. The most common form of indirection is the act of manipulating a value through its memory address....
.

History of the notation

The term ''power'' was used by Euclid
Euclid

Euclid , floruit 300 BC, also known as Euclid of Alexandria, was a Greek mathematics and is often referred to as the Father of Geometry. He was active in Alexandria during the reign of Ptolemy I ....
 for the square of a line. Nicolas Chuquet
Nicolas Chuquet

Nicolas Chuquet Chuquet was born in Paris, France, and died in Lyon. His thinking was clearly far ahead of its time. He invented his own notation for algebraic concepts and exponentiation....
 used a form of exponential notation in the 15th century, which was later used by Henricus Grammateus
Henricus Grammateus

Henricus Grammateus was a German mathematician. In 1518 he published details of a new musical temperament , which is now named after him, for the harpsichord....
 and Michael Stifel
Michael Stifel

Michael Stifel or Styfel was an Augustinian monk who became an early supporter of Martin Luther and was later appointed professor of mathematics at Jena University....
. Samuel Jeake
Samuel Jeake

Samuel Jeake was a merchant, Nonconformism and astrologer from Rye, East Sussex, England. He is primarily known for his extensive diary, which are today considered a valuable historical resource....
 introduced the term ''indices'' in 1696. In the 16th century Robert Recorde
Robert Recorde

Robert Recorde was a Welsh people physician and mathematician. He introduced the equals sign in 1557.A member of a respectable family of Tenby, Wales, he entered the University of Oxford in about 1525, and was elected a fellow of All Souls College, Oxford in 1531....
 used the terms square, cube, zenzizenzic (fourth power), surfolide (fifth), zenzicube (sixth), second surfolide (seventh) and Zenzizenzizenzic
Zenzizenzizenzic

The zenzizenzizenzic "doeth represent the square of squares squared", or eighth exponentiation of a number. This term was suggested by Robert Recorde, a 16th century Welsh people writer of popular mathematics textbooks, in his work The Whetstone of Witte, published in 1557, although his spelling was zenzizenzizenzike....
 (eighth). ''Biquadrate'' has been used to refer to the fourth power as well.

Some mathematicians (e.g., Isaac Newton
Isaac Newton

Sir Isaac Newton, Fellow of the Royal Society was an English people physicist, mathematician, Astronomy, Natural philosophy, Alchemy, and Theology and one of the the 100 in human history....
) used exponents only for powers greater than two, preferring to represent squares as repeated multiplication. Thus they would write polynomials, for example, as ''ax'' + ''bxx'' + ''cx''3 + ''d''.

Another historical synonym,
involution, is now rare and should not be confused with its more common meaning.

See also


External links

  • * with derivation and examples
  • (14.5 MB)