Numerical methods (quads number system help please))

Click For Summary

Homework Help Overview

The discussion revolves around a computer system that utilizes a "quad" number system with four states (0, 1, 2, and 3) and a 12 quad format for representing numbers. Participants are exploring how to determine the largest and smallest positive decimal numbers, as well as the machine epsilon for this system.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • The original poster seeks guidance on how to approach the problem, expressing uncertainty about starting points. Some participants suggest relating the problem to similar concepts in binary and decimal systems. Others attempt to derive representations for the largest and smallest numbers in the quad system, while questioning the implications of the mantissa and exponent structure.

Discussion Status

Participants are actively engaging with the problem, sharing insights and clarifications. Some have provided examples based on similar number systems, while others are questioning the assumptions made about the representation of numbers and the calculation of machine epsilon. There is a sense of progress as participants refine their understanding of the concepts involved.

Contextual Notes

There are discussions about the constraints of the number system, including the specific allocation of quads for the sign, exponent, and mantissa. Participants are also considering the implications of the number of digits and the representation of values within the quad system.

buchi
Messages
8
Reaction score
0
Consider a new computer system which stores data in “quads”, i.e. it has four states 0, 1,
2 and 3 (as opposed to binary which has only two, 0 and 1). Now imagine that numbers
are stored in a 12 quad format where there is one quad for the sign of the number, three
quads for the exponent, another one quad for the sign of the exponent and seven quads
for the normalised mantissa (ie. it is of the form 0.nqqqqqq, where n≥1). Find:

(a) The largest positive (decimal) number that can be represented in this system.
(b) The smallest positive (decimal) number that can be represented in this system.
(c) The machine epsilon, epsilonM .

i honestly have no idea how to start this question i was hoping if someone can lead me the right way on how to start it or send me some site about this number systems and how to figure this things out.

thank you in advance
 
Physics news on Phys.org
Do you know how to solve a similar problem in binary (base 2)?

Do you know how to solve a similar problem in decimal (base ten)?
 
no i don't really know how to do that either i am just reading about it now but it seems like i am stuck on the concept may be if you can tell me how to do it in another base i might be able to get some direction
 
A similar problem in decimal would be for a ten state computer: states 0,1, ... ,8,9 .

The largest positive number in this case is: +.9999999×10+999.
Note: The base for the exponent is usually the base of the number system used. For binary computers, the base of the exponent is 2.​
 
+.9999999×10+999

doesn't this have 16 digits though? i am assuming for mine it would be +.33333*4^+333 does that look right the whole thing has 12 entry's and 3 being the largest number in that base system?
and would the smallest one be +.00001*4^+001 ?
 
In both the largest and smallest numbers, you are missing the digit represented by the 'n' in the mantissa.

There are 12 'digits' including the signs, but excluding the decimal (or quad) point, the multiplication symbol the base and the exponentiation symbol, ^.
 
thank you so much i think i got it now.
 
could you comment on this for me for the machine epsilon

in the above scenario 1=.1000000*4^1 therefore the closest number we can write to one is .1000001*4^1 which equals 1.000001 therefore the machine epsilon is 4^-6?

is that right? i sense that the three spaces for the exponent value make this argument wrong but i can't quite see it.

Thanks in advance
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
Replies
4
Views
2K
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
32
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 14 ·
Replies
14
Views
3K