aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/arduino/pow.rst
blob: 3a0948113da8e2b904dadf6e80ab9066617e5248 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.. _arduino-pow:

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

Description
-----------

Calculates the value of a number raised to a power. Pow() can be
used to raise a number to a fractional power. This is useful for
generating exponential mapping of values or curves.



Parameters
----------

base: the number (*float*)



exponent: the power to which the base is raised (*float*)



Returns
-------

The result of the exponentiation (*double*)



Example
-------

See the `fscale <http://arduino.cc/playground/Main/Fscale>`_
function in the code library.



See also
--------


-  `sqrt <http://arduino.cc/en/Reference/Sqrt>`_\ ()
-  `float <http://arduino.cc/en/Reference/Float>`_
-  `double <http://arduino.cc/en/Reference/Double>`_