This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Each command is either a single-character operation or else a number. Input numbers can be integers, floating point, or in scientific representation they will all be within the range of a `double precision' type. After each input line is processed, the first value on the stack is printed on a line by itself. (First is the most recent-ly pushed number.) Note that the stack is not cleared between lines. Repeat: do not clear the stack between lines! l The output should be accurate to at least 0.0001% (6 decimal places) as long as similarly valued numbers are not subtracted and the number of operations needed to compute an output number is less than 100. Again this is well within the limits of double precision floating point arithmetic as long as at least 6 digits of precision are output. Sample input: 3 2 01/02/11-3.2e10 5 / Sheet1 Page 2 Sample output: 3 5 0.5-6.40E+009...
View Full Document
- Spring '11