11智能在线
新记
C语言中指数运算应怎么表示
如题所述
举报该文章
相关建议 2020-01-05
1、
c语言
中指针运算要用pow()函数,例如2的4次方要写成这样:
pow(2,4);
^在c语言中是一个位操作符,作用是按位
异或
。
注意,pow()函数要包含math.h文件
2、例程:
#include
#include
int main(void)
{
double ans;
double x=5;
ans=pow(x/101.325,0.19);/*计算(x/101.325)的0.19次方*/
printf("%lf",ans);
return 0;
}
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/42pqq242vmv8p8884p.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
c语言中如何表示指数
c语言中如何表示指数?
C语言中指数怎么表示例如(-1)的n次方怎么表示
在C语言中指数运算怎么用呀
C语言的指数运算
C语言编程中指数的表示是怎样的?
在C语言中指数运算怎么用
C语言中指数表示法怎么使用