Arduino Programming Language: Pow

Name

pow()

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.

Syntax

x=pow(base,exponent)

Parameters

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

Returns

 double: the result of the exponentiation

Related Functions


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc