eclipse编程问题的英文解答 求翻译!! 50

Anyrimeanthrneticoperationsaredonewithfloating-po;ntnumbers,round-offerroroccurs.TheM... Any rime anth rnetic operations are done with floating-po ; nt numbers, round-
off error occurs. The Math class methods (see p. 183) such as pow and sqrt use
various approximations to generate their answers to the required accuracy. Since
they do different internal arithmetic, however, the round-off will usually not re-
sult in exactly the same answers. Note that choice A is not cofrect because both
Math. pow and Math. sqrt return type doubt e. Choice B is wrong because no mat-
ter how x. was previously calculated, the same x is input to pow and sqrt. Choice
C is wrong since round-off error occurs no matter how many bits are used to rep-
resent numbers. Choice E is wrong because if x is representable on the machine
(i. e., hasn't overflowed), then its square root, x]/2, wil not overfJow.
展开
 我来答
那些年0怀念
2017-03-09 · TA获得超过195个赞
知道小有建树答主
回答量:248
采纳率:50%
帮助的人:85.2万
展开全部
好像说在执行Math类的方法sqrt之类的产生精度的问题。你仔细查一下相关的api,肯定是你输入的数据有问题。
追问

其实就是对这个程序为什么会break的解释 求指导。。

已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式