aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/lang/pow.rst
blob: dbe89b6edf64261072463c6c6c32e4a4b221e7c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.. _lang-pow:

pow(base, exponent)
===================

Calculates the value of a number raised to a power.

Library Documentation
---------------------

.. doxygenfunction:: pow

Example
-------

``pow()`` can be used to raise a number to a fractional power.  This
is useful for e.g.  generating exponential mapping of values or
curves.  See the `fscale <http://arduino.cc/playground/main/fscale>`_
function in the Arduino playground for more on this.

See Also
--------

-  :ref:`sqrt() <lang-sqrt>`
-  :ref:`float <lang-float>`
-  :ref:`double <lang-double>`


.. include:: cc-attribution.txt