特牛网址导航

C语言中,开3次方用什么?_c中如何开三次方根-CSDN博客

网友收藏
question: 开平方用 sqrt(), 开三次方用什么啊?answer: 开立方也就是求 1/3 次方, 所以可以用pow()函数example:#include <stdio.h>#include <math.h>int main(){ double a = pow(8, 1.0 / 3); printf("%f\n", a); return 0;}程序运行结果: a = 2.000000..._c中如何开三次方根