[Math]
説明
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.
構文
pow(base, exponent)
媒介変数
base: the number (double)exponent: the power to which the base is raised (double)
戻り値
The result of the exponentiation (double)
例
You may refer to the fscale function in the Arduino code library.
参照
Language Reference Home
86Duinoリファレンスのテキストは、Arduinoリファレンスを改変したもので、Creative Commons Attribution-ShareAlike 3.0ライセンスに基づいてライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。