创客百科

姿势共享,有节操无门槛参与的创客百科,创客动力之源 \ (^_^) /

用户工具

站点工具


en:arduino:language: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.

Reference Home

本页面的其他翻译:
en/arduino/language/pow.txt · 最后更改: 2016/12/25 22:15 (外部编辑)