C语言的指数运算

我想问问大家,如何用C语言计算指数,比方说我现在给出一个数X,计算X/101.325的0.19次方,如何计算
不要粘贴别人的程序,我只想知道我这个怎么计算
谢谢大家了,我多给积分

#include <math.h>
#include <stdio.h>

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;
}
温馨提示:内容为网友见解,仅供参考
第1个回答  2019-04-21
c语言中指针运算要用pow()函数,例如2的4次方要写成这样:
pow(2,4);
^在c语言中是一个位操作符,作用是按位异或。
注意,pow()函数要包含math.h文件
第2个回答  2010-01-16
头文件#include <math.h>
pow ((x / 101.325),0.19);
第3个回答  2010-01-16
#include <math.h>
//pow(double x, double y)

double f(x){
double ret;
ret = pow(x / 101.325, 0.19);
return ret;
}
第4个回答  2010-01-16
#include <math.h>
pow ((x / 101.325),0.19);
相似回答