User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







arduino:math: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 function in the code library.

See also

* sqrt(x) * float * double

Source: arduino.cc

advertising
arduino/math/pow.txt · Last modified: 2013/02/15 20:45 (external edit)

Impressum Datenschutz