aboutsummaryrefslogtreecommitdiffstats
path: root/source/arduino/pow.rst
diff options
context:
space:
mode:
Diffstat (limited to 'source/arduino/pow.rst')
-rw-r--r--source/arduino/pow.rst45
1 files changed, 12 insertions, 33 deletions
diff --git a/source/arduino/pow.rst b/source/arduino/pow.rst
index 3a09481..66e67d7 100644
--- a/source/arduino/pow.rst
+++ b/source/arduino/pow.rst
@@ -3,45 +3,24 @@
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*)
+Calculates the value of a number raised to a power.
+Library Documentation
+---------------------
+.. doxygenfunction:: pow
Example
-------
-See the `fscale <http://arduino.cc/playground/Main/Fscale>`_
-function in the code library.
-
+``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
+See Also
--------
-
-- `sqrt <http://arduino.cc/en/Reference/Sqrt>`_\ ()
-- `float <http://arduino.cc/en/Reference/Float>`_
-- `double <http://arduino.cc/en/Reference/Double>`_
+- :ref:`sqrt() <arduino-sqrt>`
+- :ref:`float <arduino-float>`
+- :ref:`double <arduino-double>`