[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.
See also
Language Reference Home
86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。