aboutsummaryrefslogtreecommitdiffstats
path: root/source/lang/pow.rst
diff options
context:
space:
mode:
Diffstat (limited to 'source/lang/pow.rst')
-rw-r--r--source/lang/pow.rst29
1 files changed, 29 insertions, 0 deletions
diff --git a/source/lang/pow.rst b/source/lang/pow.rst
new file mode 100644
index 0000000..dbe89b6
--- /dev/null
+++ b/source/lang/pow.rst
@@ -0,0 +1,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