文章浏览阅读4.6w次,点赞17次,收藏33次。C语言中,开3次方用什么?_c语言开三次方...
2023-11-12 14:40 阅读 阅读全文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.00000......
2023-10-13 09:22 阅读 阅读全文