作者trickli (哲)
看板Programming
标题[问题] 基本程式设计概念的问题
时间Mon Jan 21 01:58:24 2008
(1) Rewrite the following pseudo-code if statement expression
in a more realistic manner assuming that variables a and b are
of type real:
if (a = b) then
....
(2) Explain why this is necessary.
这题好像是关於两个实数不太可能相等的问题,但不知道该怎麽作答。
这是澳洲某大学 2006 年期末考题,请各位高手帮忙。
谢谢。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.112.16.250
※ 编辑: trickli 来自: 59.112.16.250 (01/21 01:59)
1F:推 march20:简单答, 精确度的问题 128.54.50.109 01/21 05:26