前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >c++中的pow()函数

c++中的pow()函数

作者头像
用户7886150
修改于 2021-02-04 02:07:01
修改于 2021-02-04 02:07:01
1.9K0
举报
文章被收录于专栏:bit哲学院bit哲学院

参考链接: C++中用户定义函数的类型

定义: #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型。

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档