Framework (
A-Z)
Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.
Name |
pow() |
Examples |
float a = pow( 1, 3);
float b = pow( 3, 5);
float c = pow( 3,-5);
float d = pow(-3, 5);
|
Description |
Facilitates exponential expressions. The pow() function is an efficient way of multiplying numbers by themselves (or their reciprocal) in large quantities. For example, pow(3, 5) is equivalent to the expression 3*3*3*3*3 and pow(3, -5) is equivalent to 1 / 3*3*3*3*3. |
Syntax |
pow(base, exponent)
|
Parameters |
base |
int or float: base of the exponential expression |
exponent |
int or float: power of which to raise the base |
|
Returns |
float |
Usage |
Application |
Related |
sqrt()
|
Updated on July 07, 2011 11:08:48pm PDT