计算s=f(f(-1.4))的值
解:#include
main()
#define f(x) (2*(x) * (x)+6*(x)-6)
{
float f1,x;
x=-1.4;
f1=f(x);
f1=f(f1);
printf(“%f ”,f1);
}
main()
#define f(x) (2*(x) * (x)+6*(x)-6)
{
float f1,x;
x=-1.4;
f1=f(x);
f1=f(f1);
printf(“%f ”,f1);
}
【计算s=f(f(-1.4))的值】相关文章
1. 以下为Windows NT 下的32 位C++程序,请计算sizeof 的值
6. 写一个函数返回1+2+3+…+n的值(假定结果不会超过长整型变量的范围)
7. 如何计算加班费计算基数
9. 计算机职业道德规范
10. 年终奖个人所得税计算方法2015
本文来源:https://www.mianshiwenti.com/a13108.html
进入下载页面