69,377
社区成员
发帖
与我相关
我的任务
分享
double qrt(double x)
{
double t=0,y=1;
int i=0;
t=y/2;
while(i++<60000)
{
if(power(t)>x)
{ y=t;
t=t/2;
}
else if(power(t)==x)
return t;
else if(power(y)==x)
return y;
else if(power(t)<x)
t=(t+y)/2;
}
return (t+y)/2;
}
你的程序、编译器(版本号)、操作系统(版本号)、CPU型号 ..... 都是啥?
单位是分,六十分之一度 cos(5)不应该是0.99...啊
cos(5)不应该是0.99...啊