标签:def round alt 好处 计算 color return 有关 ble
double f(int n,double a[],double x) { int i; double p=a[0]; for(i=1;i<=n;i++) { p+=(a[i]*pow(x,i)); } return p; }
double f(int n,double a[],double x) { int i; double p=a[n]; for(i=n;i>0;i--) { p=a[i-1]+x*p; } return p; }
标签:def round alt 好处 计算 color return 有关 ble
原文地址:https://www.cnblogs.com/Bran-don/p/10358573.html