|
|
|
|
|
|
|
|
CTK Exchange
J.A.N
guest
|
Jan-14-03, 08:39 PM (EST) |
|
"Hexadecimal"
|
I need to know if anyone has any good ideas for a hexadecimal math fair project. Could you please respond if you have any ideas. Thanks for the help! |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
Ben
guest
|
Jan-23-03, 07:02 PM (EST) |
|
1. "RE: Hexadecimal"
In response to message #0
|
What you have to bear in mind is that Hexadecimal is only of use in digital applications(computers, digital electronics). We do not naturally count in hexadecimal. The reason why hexadecimal is used in digital applications is due to it's convienient relationship with binary. 1 hexadecimal digit represents exactly the same values as 4 binary digits. Decimal does not have this property but octal does as well so that
Hexadecimal | Decimal | Octal | Base 4 | binary
| 0 | 0 | 0 | 0 | 0
| 1 | 1 | 1 | 1 | 1
| 2 | 2 | 2 | 2 | 10
| 3 | 3 | 3 | 3 | 11
| 4 | 4 | 4 | 10 | 100
| 5 | 5 | 5 | 11 | 101
| 6 | 6 | 6 | 12 | 110
| 7 | 7 | 7 | 13 | 111
| 8 | 8 | 10 | 20 | 1000
| 9 | 9 | 11 | 21 | 1001
| A | 10 | 12 | 22 | 1010
| B | 11 | 13 | 23 | 1011
| C | 12 | 14 | 30 | 1100
| D | 13 | 15 | 31 | 1101
| E | 14 | 16 | 32 | 1110
| F | 15 | 17 | 33 | 1111
|
You can see that 1 hexadecimal digit represents 4 binary digits exactly, 1 octal digit represents 3 binary digits exactly and 1 base 4 digit represents 2 binary digits exactly. However a decimal digit is not an exact representation of any number of binary digits. This is useful because if I want to convert a binary number to hexadecimal I can do it in groups of 4 digits using the conversion table above and vis versa i.e. 1110001010110111 splits into 1110 = E 0010 = 2 1011 = B 0111 = 7 so Binary(1110001010110111) = Hexadecimal(E2B7) Any project needs to demonstrate this relationship as it is this that gives hexadecimal it usefulness and has caused it to become so prevalent in the computer world. The relationship between hexadecimal(base 16), octal(base 8) base 4 and binary(base 2) is that the bases are all powers of 2. Note that base 16 is also a power of 4 (squared)and in fact from above 1 hexadecimal digit is also represents the exactly the same values as 2 base 4 digits. A similar relationship exists between bases 3 and 9. |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
|
Kh
guest
|
Oct-21-06, 00:23 AM (EST) |
|
2. "RE: Hexadecimal"
In response to message #1
|
What if we are trying to add 2 hexadecimals each containg 4 digits and we are asked to display the answer using 1 digit only. what would be the answer? Ex. FD58 + 02A8 = 10000 , How could we display the answer with one hexadecimal digit? Thanks...
|
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
|
|
mr_homm
Member since May-22-05
|
Oct-22-06, 06:07 PM (EST) |
|
3. "RE: Hexadecimal"
In response to message #2
|
Well, there is no way to do this in general. Of course if your hexadecimal numbers add up to something like 10000, 20000, ... F0000, then you could display just the first digit. However, this would be meaningless unless you could somehow imply that there were 4 zeroes after it. I do not see why you would want to do this. @Alex, Regarding your (new 3 years ago) post about hexadecimal digits, there is one other interesting property they have: PI expressed in hexadecimal has a very pretty and predictable pattern to its digits. It is of course not a repeating pattern since PI is irrational, but there does exist a closed form formula for the nth digit of PI in base 16. I do not recall the formula, but I saw it reported in Science News about 5 years ago. --Stuart |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
|
|
|
You may be curious to have a look at the old CTK Exchange archive. Please do not post there.
Copyright © 1996-2018 Alexander Bogomolny
|
|