- 链接地址:https://blog.csdn.net/qq_36412526/article/details/123370475
- 链接标题:C语言中,开3次方用什么?_c中如何开三次方根-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:2308
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中如何开三次方根
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除
标签:c中如何开三次方根