Difference between revisions of "Documentation/How Tos/Calc: POWER function"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Initial content)
 
m
Line 3: Line 3:
 
== POWER ==
 
== POWER ==
 
Returns a number raised to a power.
 
Returns a number raised to a power.
 
  
 
=== Syntax: ===
 
=== Syntax: ===
 
<tt>'''POWER(number; power)'''</tt>
 
<tt>'''POWER(number; power)'''</tt>
 
: returns <tt>'''number<sup>power</sup>'''</tt>, that is <tt>'''number'''</tt> raised to the power of <tt>'''power'''</tt>.
 
: returns <tt>'''number<sup>power</sup>'''</tt>, that is <tt>'''number'''</tt> raised to the power of <tt>'''power'''</tt>.
 
  
 
: The same result may be achieved by using the exponentiation operator <tt>'''^'''</tt>:
 
: The same result may be achieved by using the exponentiation operator <tt>'''^'''</tt>:
  
 
: <tt>'''number^power'''</tt>
 
: <tt>'''number^power'''</tt>
 
  
 
=== Example: ===
 
=== Example: ===
Line 21: Line 18:
 
<tt>'''4^3'''</tt>
 
<tt>'''4^3'''</tt>
 
: also returns <tt>'''4'''</tt> to the power of <tt>'''3'''</tt>.
 
: also returns <tt>'''4'''</tt> to the power of <tt>'''3'''</tt>.
 
  
 
=== See also: ===
 
=== See also: ===

Revision as of 06:34, 2 March 2008


POWER

Returns a number raised to a power.

Syntax:

POWER(number; power)

returns numberpower, that is number raised to the power of power.
The same result may be achieved by using the exponentiation operator ^:
number^power

Example:

POWER(4; 3)

returns 64, which is 4 to the power of 3.

4^3

also returns 4 to the power of 3.

See also:

EXP, LOG, SQRT

Mathematical functions

Personal tools