c++中的pow()函数

定义:
#include <math.h>
double pow( double base, double exp );
The pow() function returns base raised to the expth power. There’s a domain error if base is zero and exp is less than or equal to zero. There’s also a domain error if base is negative and exp is not an integer. There’s a range error if an overflow occurs.

pow函数的作用是求幂。
数学公式:计算x的y次幂;
返回值:x不能为负数且y为小数,或者x为0且y小于等于0,返回幂指数的结果;
返回类型:double型。

猜你喜欢

转载自blog.csdn.net/serena_t/article/details/90142530
今日推荐