FloatingPointRepresentation

On the other hand if one of the resistances say r1 is

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: d, if one of the resistances, say R1, is very much smaller than the other, the resistance of the whole circuit is almost equal to that very small value, since most of the current will ow through that resistor and avoid the other one. What if R1 is zero? The answer is intuitively clear: if one resistor o ers no resistance to the current, all the current will ow through that resistor and avoid the other one therefore, the total resistance in the 22 circuit is zero. The formula for T also makes perfect sense mathematically we get 1 1 1 T = 1 + 1 = 1 + 1 = 1 = 0: 0 R2 R2 Why, then, should a programmer writing code for the evaluation of parallel resistance formulas have to worry about treating division by zero as an exceptional situation? In IEEE oating point arithmetic, the programmer is relieved from that burden. As long as the initial oating point environment is set properly (as explained below), division by zero does not generate an interrupt but gives an in nite result, program execution continuing normally. In the case of th...
View Full Document

This note was uploaded on 02/12/2014 for the course MATH 4800 taught by Professor Lie during the Spring '09 term at Rensselaer Polytechnic Institute.

Ask a homework question - tutors are online