Getting Binary Division Remainder
12-08-2021, 10:10 PM
Post: #1
 Arcane178 Junior Member Posts: 1 Joined: Dec 2021
Getting Binary Division Remainder
Hi everyone,

I'm trying to figure out how to get the remainder when doing binary division on the HP Prime, but I'm not having much luck. There is a picture of what I am trying to do and also here is a link that does the calculation correctly: http://www.ee.unb.ca/cgi-bin/tervo/calc....=d&e=1&m=1 (which has another example).

When dividing it you are XOR'ing the values together and you are left with the remainder in binary. I tried converting the numbers in decimal then to binary but it's giving me the wrong answer along with MOD'ing.

Any help would be appreciated.

Attached File(s) Thumbnail(s)

12-09-2021, 02:16 PM
Post: #2
 Claudio L. Senior Member Posts: 1,883 Joined: Dec 2013
RE: Getting Binary Division Remainder
(12-08-2021 10:10 PM)Arcane178 Wrote:  Hi everyone,

I'm trying to figure out how to get the remainder when doing binary division on the HP Prime, but I'm not having much luck. There is a picture of what I am trying to do and also here is a link that does the calculation correctly: http://www.ee.unb.ca/cgi-bin/tervo/calc....=d&e=1&m=1 (which has another example).

When dividing it you are XOR'ing the values together and you are left with the remainder in binary. I tried converting the numbers in decimal then to binary but it's giving me the wrong answer along with MOD'ing.

Any help would be appreciated.

The link you provided uses a binary Galois Field GF(2), but that's not the same as regular numbers that the HP Prime uses. The addition in this field is defined as XOR, the HP Prime is using numbers where addition is defined as regular addition.
So you can't expect the division in that field to be the same as regular division.
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)