cout<<fixed<<setprecision(7)<<a*pow(x,3)+b*pow(x,2)+c*x+d;//直接调用库函数中的pow(x , y)。添加头文件#include <math.h>
次方方法
最新推荐文章于 2024-01-21 16:14:17 发布
cout<<fixed<<setprecision(7)<<a*pow(x,3)+b*pow(x,2)+c*x+d;//直接调用库函数中的pow(x , y)。添加头文件#include <math.h>