输入精度e 和实数x,用下列公式求cos x 的近似值,精确到最后一项的绝对值小于e

输入精度e 和实数x,用下列公式求cos x 的近似值,精确到最后一项的绝对值小于e
#include
#include
double funcos(double e,double x);
int main(void)
{
x05double e,x;
x05printf("e:");
scanf("%lf",&e);
printf("x:");
x05scanf("%lf",&x);
x05printf("cos(x)=%.3f",funcos(e,x));
x05
x05return 0;
}
double funcos(double e,double x)
{
x05int i,a,b;
x05double sum,c;
x05sum=0.0;
x05c=1.0;
x05
x05i=0,a=1;
x05while(c>=e)
x05{
x05x05if(i!=0)
x05x05{
x05x05x05a=b=1;
x05x05x05for(b=1;b
ydsjls 1年前 已收到1个回答 举报

filippoyin 春芽

共回答了15个问题采纳率:86.7% 举报

g

1年前 追问

2

ydsjls 举报

shenmeyisi什么意思?

举报 filippoyin

you are so bed. it is fgasdw swimming doing in.

ydsjls 举报

汗 英语也说得这么糊涂 你还是用拼音说吧 还有 这程序是我自己写的 但我实在查不出哪里错了

举报 filippoyin

Maiyaoco.
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 17 q. 1.456 s. - webmaster@yulucn.com