aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/arduino/pow.rst
blob: 66e67d7183bbe5dd4916dcd261a3dfdebcc08bf0 (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
.. _arduino-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() <arduino-sqrt>`
-  :ref:`float <arduino-float>`
-  :ref:`double <arduino-double>`