c++中的pow()函数

编程入门 行业动态 更新时间:2024-10-27 00:23:03

c++中的pow()<a href=https://www.elefans.com/category/jswz/34/1771370.html style=函数"/>

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型。

更多推荐

c++中的pow()函数

本文发布于:2023-06-13 04:29:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/674131.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:函数   pow

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!