【发布时间】:2014-12-10 01:46:25
【问题描述】:
在查找x 和y 的值时,如果(x567) + (2yx5) = (71yx)(均以8 为基数),我按以下方式进行。
我假设x=abc 和y=def 并跟随。
(abc+010 def+101 110+abc 111+101)=(111 001 def abc) //adding ()+()=() and equating LHS=RHS.
abc=111-010=101 which is 5 in base 8 and then def=001-101 which is -4
so x=5 and y=-4
现在的问题是我书中提到的答案是x=4 和y=3。
上述方法是否正确。如果正确,那这里有什么问题??
【问题讨论】:
标签: numbers computer-science octal