c语言高手请进编程难题

来源:百度知道 编辑:UC知道 时间:2024/06/14 20:53:44
c语言中这个公式怎么编出来大家帮帮忙。

x的2/7次方怎么编程。

谢了

#include <math.h>

pow(x, 2.0/7);

挂个名,看看到底用什么函数的

x的2/7次方

#include <math.h>

pow(x, 2/7.00f);

pow(x, 2/7.00f);

pow
Calculates x raised to the power of y.

double pow( double x, double y );

不知道这题有什么约束,C语言自带数学函数库,里面有开方函数,如果这样就不是什么高手请进了,如果你想知道怎么写开方,那你可以进入math头文件,找到POW函数自己研究一下,高手是如何写的