请输入您要查询的百科知识:

 

词条 Reverse Polish notation
释义

  1. Explanation

  2. Practical implications

  3. Postfix evaluation algorithm

      Example  

  4. Converting from infix notation

  5. Implementations

      History   {{anchor|Three-level RPN|Four-level RPN|128-level RPN|Classical RPN|Entry RPN|Advanced RPN}}Hewlett-Packard    {{anchor|8-level RPN}}WP 31S and WP 34S    Sinclair Radionics   {{anchor|Two-level RPN}}Commodore   Prinztronic    {{anchor|5-level RPN}}Heathkit    Soviet Union    Other  

  6. See also

  7. References

  8. Further reading

  9. External links

{{Operator notation sidebar |logo=}}Reverse Polish notation (RPN), also known as Polish postfix notation or simply postfix notation, is a mathematical notation in which operators follow their operands, in contrast to Polish notation (PN), in which operators precede their operands. It does not need any parentheses as long as each operator has a fixed number of operands. The description "Polish" refers to the nationality of logician Jan Łukasiewicz,[1] who invented Polish notation in 1924.[2][3]

The reverse Polish scheme was proposed in 1954 by Arthur Burks, Don Warren, and Jesse Wright[4] and was independently reinvented by Friedrich L. Bauer and Edsger W. Dijkstra in the early 1960s to reduce computer memory access and utilize the stack to evaluate expressions. The algorithms and notation for this scheme were extended by Australian philosopher and computer scientist Charles L. Hamblin in the mid-1950s.[5][6]

During the 1970s and 1980s, Hewlett-Packard used RPN in all of their desktop and hand-held calculators, and continued to use it in some into the 2010s.[7][7] In computer science, reverse Polish notation is used in stack-oriented programming languages such as Forth and PostScript.

Explanation

Note: Most of what follows is about binary operators. An example of a unary operator whose standard notation may be interpreted as reverse Polish notation is the factorial, "n!".

In reverse Polish notation, the operators follow their operands; for instance, to add 3 and 4, one would write {{nowrap|3 4 +}} rather than {{nowrap|3 + 4}}. If there are multiple operations, operators are given immediately after their second operands; so the expression written {{nowrap|3 − 4 + 5}} in conventional notation would be written {{nowrap|3 4 − 5 +}} in reverse Polish notation: 4 is first subtracted from 3, then 5 is added to it. An advantage of reverse Polish notation is that it removes the need for parentheses that are required by infix notation. While {{nowrap|3 − 4 × 5}} can also be written {{nowrap|3 − (4 × 5)}}, that means something quite different from {{nowrap|(3 − 4) × 5}}. In reverse Polish notation, the former could be written {{nowrap|3 4 5 × −}}, which unambiguously means {{nowrap|3 (4 5 ×) −}} which reduces to {{nowrap|3 20 −}}; the latter could be written {{nowrap|3 4 − 5 ×}} (or {{nowrap|5 3 4 − ×}}, if keeping similar formatting), which unambiguously means {{nowrap|(3 4 −) 5 ×}}.

Practical implications

In comparison testing of reverse Polish notation with algebraic notation, reverse Polish has been found to lead to faster calculations, for two reasons. Because reverse Polish calculators do not need expressions to be parenthesized, fewer operations need to be entered to perform typical calculations. Additionally, users of reverse Polish calculators made fewer mistakes than for other types of calculator.[8][9] Later research clarified that the increased speed from reverse Polish notation may be attributed to the smaller number of keystrokes needed to enter this notation, rather than to a smaller cognitive load on its users.[10] However, anecdotal evidence suggests that reverse Polish notation is more difficult for users to learn than algebraic notation.[9]

Postfix evaluation algorithm

{{Original research section|date=January 2019}}

The following algorithm evaluates postfix expressions using a stack, with the expression processed from left to right:

 for each token in the postfix expression:   if token is an operator:     operand_2 ← pop from the stack     operand_1 ← pop from the stack     result ← evaluate token with operand_1 and operand_2     push result back onto the stack   else if token is an operand:     push token onto the stack result ← pop from the stack

The following algorithm produces the same results of the previous one, but the expression is processed from right to left:

 for each token in the reversed postfix expression:   if token is an operator:     push token onto the operator stack     pending_operand ← False   else if token is an operand:     operand ← token     if pending_operand is True:       while the operand stack is not empty:         operand_1 ← pop from the operand stack         operator ← pop from the operator stack         operand ← evaluate operator with operand_1 and operand     push operand onto the operand stack     pending_operand ← True result ← pop from the operand stack

Example

The infix expression {{nowrap|((15 ÷ (7 − (1 + 1))) × 3) − (2 + (1 + 1))}} can be written like this in reverse Polish notation:

{{nowrap|15 7 1 1 + − ÷ 3 × 2 1 1 + + −}}

  • Evaluating this postfix expression with the above left-to-right algorithm yields (red items are the stack contents, bold is the current token):
 '''15''' 7 1 1 + − ÷ 3 × 2 1 1 + + − = {{color|red|15}} '''7''' 1 1 + − ÷ 3 × 2 1 1 + + − = {{color|red|15 7}} '''1''' 1 + − ÷ 3 × 2 1 1 + + − = {{color|red|15 7 1}} '''1''' + − ÷ 3 × 2 1 1 + + − = {{color|red|15 7 1 1}} '''+''' − ÷ 3 × 2 1 1 + + − = {{color|red|15 7     2}} '''−''' ÷ 3 × 2 1 1 + + − = {{color|red|15         5}} '''÷''' 3 × 2 1 1 + + − =              {{color|red|3}} '''3''' × 2 1 1 + + − =              {{color|red|3 3}} '''×''' 2 1 1 + + − =                  {{color|red|9}} '''2''' 1 1 + + − =                  {{color|red|9 2}} '''1''' 1 + + − =                  {{color|red|9 2 1}} '''1''' + + − =                  {{color|red|9 2 1 1}} '''+''' + − =                  {{color|red|9 2     2}} '''+''' − =                  {{color|red|9         4}} '''−''' =                              {{color|red|5}} =                              '''5'''
  • Evaluating this postfix expression with the above right-to-left algorithm yields:
 15 7 1 1 + − ÷ 3 × 2 {{color|red|1 1 +}} + − = 15 7 1 1 + − ÷ 3 × {{color|red|2     '''2''' +}} − = 15 7 {{color|red|1 1 +}} − ÷ 3 ×         '''4''' − = 15 {{color|red|7     '''2''' −}} ÷ 3 ×         4 − = {{color|red|15         '''5''' ÷}} 3 ×         4 − = {{color|red|             '''3''' 3 ×}}         4 − = {{color|red|                 '''9'''         4 −}} =                              '''5'''

The following table shows the state of the operand stack at each stage of the above left-to-right algorithm:

Token Type Stack Actions
15 Operand 15 Push onto stack.
7 Operand 15 7 Push onto stack.
1 Operand 15 7 1 Push onto stack.
1 Operand 15 7 1 1 Push onto stack.
+ Operator 15 7 2 1 + 1 {{=}} 2}}) and push onto stack.
Operator 15 5 7 − 2 {{=}} 5}}) and push onto stack.
÷ Operator 3 15 ÷ 5 {{=}} 3}}) and push onto stack.
3 Operand 3 3 Push onto stack.
× Operator 9 3 × 3 {{=}} 9}}) and push onto stack.
2 Operand 9 2 Push onto stack.
1 Operand 9 2 1 Push onto stack.
1 Operand 9 2 1 1 Push onto stack.
+ Operator 9 2 2 1 + 1 {{=}} 2}}) and push onto stack.
+ Operator 9 4 2 + 2 {{=}} 4}}) and push onto stack.
Operator 5 9 − 4 {{=}} 5}}) and push onto stack.

The above example could be rewritten by following the "chain calculation" method described by HP for their series of reverse Polish notation calculators:[11]

As was demonstrated in the Algebraic mode, it is usually easier (fewer keystrokes) in working a problem like this to begin with the arithmetic operations inside the parentheses first.

{{nowrap|1 2 + 4 × 5 + 3 −}}

Converting from infix notation

{{main article|Shunting-yard algorithm}}

Edsger Dijkstra invented the shunting-yard algorithm to convert infix expressions to postfix expressions (reverse Polish notation), so named because its operation resembles that of a railroad shunting yard.

There are other ways of producing postfix expressions from infix expressions. Most operator-precedence parsers can be modified to produce postfix expressions; in particular, once an abstract syntax tree has been constructed, the corresponding postfix expression is given by a simple post-order traversal of that tree.

Implementations

History

The first computers to implement architectures enabling reverse Polish notation were the English Electric Company's KDF9 machine, which was announced in 1960 and delivered (i.e. made available commercially) in 1963, and the American Burroughs B5000, announced in 1961 and also delivered in 1963. One of the designers of the B5000, Robert S. Barton, later wrote that he developed reverse Polish notation independently of Hamblin sometime in 1958 after reading a 1954 textbook on symbolic logic by Irving Copi,[12][13][16] where he found a reference to Polish notation,[14] which made him read the works of Jan Łukasiewicz as well,[14] and before he was aware of Hamblin's work. Designed by Robert "Bob" Appleby Ragen,[15] Friden introduced reverse Polish notation to the desktop calculator market with the EC-130 supporting a four-level stack[3] in June 1963.[16] The successor EC-132 added a square root function in April 1965.[17] Around 1966, the Monroe Epic calculator supported an unnamed input scheme resembling RPN as well.[3]

{{anchor|Three-level RPN|Four-level RPN|128-level RPN|Classical RPN|Entry RPN|Advanced RPN}}Hewlett-Packard

{{main article|HP calculators}}

Hewlett-Packard engineers designed the 9100A Desktop Calculator in 1968 with reverse Polish notation[18] with only three stack levels,[19] a reverse Polish notation variant later referred to as three-level RPN. This calculator popularized reverse Polish notation among the scientific and engineering communities. The HP-35, the world's first handheld scientific calculator,[18] introduced the classical four-level RPN in 1972.[20] HP used reverse Polish notation on every handheld calculator it sold, whether scientific, financial, or programmable, until it introduced the HP-10 adding machine calculator in 1977. By this time, HP was the leading manufacturer of calculators for professionals, including engineers and accountants.

Later LCD-based calculators in the early 1980s such as the HP-10C, HP-11C, HP-15C, HP-16C, and the financial calculator, the HP-12C also used reverse Polish notation. In 1988, Hewlett-Packard introduced a business calculator, the HP-19B, without reverse Polish notation, but its 1990 successor, the HP-19BII, gave users the option of using algebraic notation or reverse Polish notation.

{{anchor|Automatic Memory Stack}}Around 1987, HP introduced RPL, an object-oriented successor to reverse Polish notation. It deviates from classical reverse Polish notation by utilizing a stack only limited by the amount of available memory (instead of three or four fixed levels) and which can hold all kinds of data objects (including symbols, strings, lists, matrices, graphics, programs, etc.) instead of just numbers. It also changed the behaviour of the stack to no longer duplicate the top register on drops (since in an unlimited stack there is no longer a top register) and the behaviour of the {{key press|Enter}} key so that it no longer duplicates values into Y under certain conditions, both part of the specific ruleset of the so-called automatic memory stack[21] or operational (memory) stack[22] in classical reverse Polish notation in order to ease some calculations and to save keystrokes, but which had shown to also sometimes cause confusion among users not familiar with these properties. From 1990 to 2003 HP manufactured the HP-48 series of graphing RPL calculators and in 2006 introduced the HP 50g.

As of 2011, Hewlett-Packard was offering the calculator models 12C, 12C Platinum, 17bII+, 20b, 30b, 33s, 35s, 48gII (RPL) and 50g (RPL) which support reverse Polish notation.[23] While calculators emulating classical models continue to support classical reverse Polish notation, new reverse Polish notation models feature a variant of reverse Polish notation, where the {{key press|Enter}} key behaves as in RPL. This latter variant is sometimes known as entry RPN.[24] In 2013, the HP Prime introduced a 128-level form of entry RPN called advanced RPN. By late 2017, only the 12C, 12C Platinum, 17bii+, 35s and Prime remain active HP models supporting reverse Polish notation.

{{anchor|8-level RPN}}WP 31S and WP 34S

The community-developed calculators WP 31S and WP 34S, which are based on the HP 20b/HP 30b hardware platform, support Hewlett-Packard-style classical reverse Polish notation with either a four- or an eight-level stack. A seven-level stack had been implemented in the MITS 7400C scientific desktop calculator in 1972[25][26][27] and an eight-level stack was already suggested by John A. Ball in 1978.[3]

Sinclair Radionics

In Britain, Clive Sinclair's Sinclair Scientific and Scientific Programmable models used reverse Polish notation.[28][29]

{{anchor|Two-level RPN}}Commodore

In 1974 Commodore produced the Minuteman *6 (MM6) without {{key press|Enter}} key and the Minuteman *6X (MM6X) with {{key press|Enter}} key, both implementing a form of two-level RPN. The SR4921 RPN came with a variant of four-level RPN with stack levels named X, Y, Z, and W (rather than T). In contrast to Hewlett-Packard's reverse Polish notation implementation, W filled with 0 instead of its contents being duplicated on stack drops.[30]

Prinztronic

Prinz and Prinztronic were own-brand trade names of the British Dixons photographic and electronic goods stores retail chain, which was later rebranded as Currys Digital stores, and became part of DSG International. A variety of calculator models was sold in the 1970s under the Prinztronic brand, all made for them by other companies.

Among these was the PROGRAM[31] Programmable Scientific Calculator which featured reverse Polish notation.

{{anchor|5-level RPN}}Heathkit

The Aircraft Navigation Computer Heathkit OC-1401/OCW-1401 used five-level RPN in 1978.

Soviet Union

Soviet programmable calculators (MK-52, MK-61, B3-34 and earlier B3-21[32] models) used reverse Polish notation for both automatic mode and programming. Modern Russian calculators MK-161[33] and MK-152,[34] designed and manufactured in Novosibirsk since 2007 and offered by Semico,[35] are backward compatible with them. Their extended architecture is also based on reverse Polish notation.

Other

Existing implementations using reverse Polish notation include:

  • Any stack-oriented programming language, such as:
    • Forth
    • Factor
    • PostScript page description language[36][37]
    • BibTeX
    • Befunge
    • Joy
    • IPTSCRAE
    • Lotus 1-2-3 and Lotus Symphony formulas[38][39]
    • RPL (aka Reverse Polish Language), a programming language for the Commodore PET around 1979/1981
    • RPL (aka Reverse Polish Lisp), a programming language for Hewlett-Packard calculators between 1984 and 2015
    • RPNL (Reverse Polish Notation Language)[40][41]
  • Hardware calculators:
    • Some Hewlett-Packard science/engineering and business/finance calculators
    • Semico calculators
    • SwissMicros calculators
  • Software calculators:
    • Mac OS X Calculator
    • Several Apple iPhone applications e.g. "reverse polish notation calculator"
    • Several Android applications e.g. "RealCalc"
    • Several Windows 10 Mobile applications e.g. "RPN9"
    • Unix system calculator program dc
    • Emacs lisp library package calc
    • Xorg calculator (xcalc)
    • grpn[42] scientific/engineering calculator using the GIMP Toolkit (GTK+)
    • F-Correlatives in MultiValue dictionary items
    • RRDtool, a widely used tabulating and graphing software
    • grdmath, a program for algebraic operations on NetCDF grids, part of Generic Mapping Tools (GMT) suite
    • galculator,[43] a GTK desktop calculator
    • Mouseless Stack-Calculator[44] scientific/engineering calculator including complex numbers.

See also

  • Calculator input methods
  • Factor (programming language)
  • FOCAL keystroke programming
  • Formula calculator
  • Forth (programming language)
  • Joy (programming language)
  • LIFO (computing)
  • Object–subject–verb
  • Polish notation
  • PostScript
  • Reverse Polish Lisp (RPL)
  • Stack machine
  • Subject–object–verb (SOV)

References

1. ^{{cite book |author-last=Łukasiewicz |author-first=Jan |author-link=Jan Łukasiewicz |title=Aristotle's Syllogistic from the Standpoint of Modern Formal Logic |publisher=Oxford University Press |date=1957}} (Reprinted by Garland Publishing in 1987. {{isbn|0-8240-6924-2}})
2. ^{{cite journal |author-first=Charles Leonard |author-last=Hamblin |author-link=Charles Leonard Hamblin |date=1962 |title=Translation to and from Polish notation |journal=Computer Journal |volume=5 |issue=3 |pages=210–213 |url=http://comjnl.oxfordjournals.org/content/5/3/210.full.pdf |doi=10.1093/comjnl/5.3.210}}
3. ^{{cite book |title=Algorithms for RPN calculators |author-first=John A. |author-last=Ball |date=1978 |edition=1 |publisher=Wiley-Interscience, John Wiley & Sons, Inc. |location=Cambridge, Massachusetts, USA |isbn=0-471-03070-8 |quote=[…] In their advertisements and also in a letter to me, Hewlett-Packard Company (HP), the best known manufacturer of RPN calculators, says that RPN is based on a suggestion by Jan Łukasiewicz (1878-1956), and that RPN was invented and is patented by HP. Aside from the apparent contradiction in these two statements, I do not think that either of them is quite true. My first experience with RPN involved a nice old Friden EC-130 desktop electronic calculator, circa 1964. The EC-130 has RPN with a push-down stack of four registers, all visible simultaneously on a cathode ray tube display. Furthermore, they are shown upside down, that is, the last-in-first-out register is at the bottom. […] Around 1966, the Monroe Epic calculator offered RPN with a stack of four, a printer, and either 14 or 42 step programmability. The instruction booklets with these two calculators make no mention of RPN or Jan Łukasiewicz. […]}}
4. ^{{cite journal |doi=10.2307/2001990 |jstor=2001990 |title=An Analysis of a Logical Machine Using Parenthesis-Free Notation |journal=Mathematical Tables and Other Aids to Computation |volume=8 |issue=46 |pages=53 |date=1954 |author-last1=Burks |author-first1=Arthur Walter |author-link1=Arthur Walter Burks |author-last2=Warren |author-first2=Don W. |author-last3=Wright |author-first3=Jesse B.}}
5. ^"Charles L. Hamblin and his work" {{webarchive|url=https://web.archive.org/web/20081206093044/http://www.csc.liv.ac.uk/~peter/hamblin.html |date=2008-12-06 }} by Peter McBurney
6. ^{{cite web |url=http://www.csc.liv.ac.uk/~peter/this-month/this-month-3-030303.html |title=Charles L. Hamblin: Computer Pioneer |author-first=Peter |author-last=McBurney |date=2008-07-27 |quote=[…] Hamblin soon became aware of the problems of (a) computing mathematical formulae containing brackets, and (b) the memory overhead in having dealing with memory stores each of which had its own name. One solution to the first problem was Jan Łukasiewicz's Polish notation, which enables a writer of mathematical notation to instruct a reader the order in which to execute the operations (e.g. addition, multiplication, etc) without using brackets. Polish notation achieves this by having an operator (+, ×, etc) precede the operands to which it applies, e.g., +ab, instead of the usual, a+b. Hamblin, with his training in formal logic, knew of Lukasiewicz's work. […] |deadurl=yes |archiveurl=https://web.archive.org/web/20081207005233/http://www.csc.liv.ac.uk/~peter/this-month/this-month-3-030303.html |archivedate=2008-12-07 |df= }}
7. ^{{cite news |url=https://www.wsj.com/articles/SB10001424052748703841904576257440326458056 |url-access=subscription |title=Wall Street's Cult Calculator Turns 30 |author-first=Kristina |author-last=Peterson |date=2011-05-04 |work=Wall Street Journal |access-date=6 December 2015 |archive-url=https://web.archive.org/web/20150316030830/https://www.wsj.com/articles/SB10001424052748703841904576257440326458056 |archive-date=16 March 2015}}
8. ^{{citation |title=Human behaviour and performance in calculator use with Algebraic and Reverse Polish Notation |journal=Ergonomics |volume=22 |issue=9 |pages=1011 |date=1979 |doi=10.1080/00140137908924675 |author-first1=D. M. |author-last1=Kasprzyk |author-first2=Colin G. |author-last2=Drury |author-first3=W. F. |author-last3=Bialas}}
9. ^{{citation |title=Electronic calculators: which notation is the better? |journal=Applied Ergonomics |volume=11 |issue=1 |date=March 1980 |pages=2–6 |author-first1=Seb J. |author-last1=Agate |author-first2=Colin G. |author-last2=Drury |location=Department of Industrial Engineering, University at Buffalo, State University of New York, USA |doi=10.1016/0003-6870(80)90114-3 |pmid=15676368 |id=0003-6870/80/01 0002-05 |publisher=IPC Business Press |url=https://vdocuments.mx/electronic-calculators-which-notation-is-the-better.html |access-date=2018-09-22 |dead-url=no |archive-url=https://archive.is/RauXp |archive-date=2018-09-22}}
10. ^{{citation |title=Calculator logic: when and why is RPN superior to algebraic? |author-first1=Errol |author-last1=Hoffman |author-first2=Patrick |author-last2=Ma |author-first3=Jason |author-last3=See |author-first4=Chee Kee |author-last4=Yong |author-first5=Jason |author-last5=Brand |author-first6=Matthew |author-last6=Poulton |journal=Applied Ergonomics |volume=25 |issue=5 |date=1994 |pages=327–333 |doi=10.1016/0003-6870(94)90048-5}}
11. ^http://h20331.www2.hp.com/Hpsub/downloads/17b2pChain.pdf
12. ^{{cite web |url=http://conservancy.umn.edu/bitstream/107105/1/oh098b5c.pdf |title=Archived copy |accessdate=2013-02-27 |deadurl=yes |archiveurl=https://web.archive.org/web/20120422070048/http://conservancy.umn.edu/bitstream/107105/1/oh098b5c.pdf |archivedate=2012-04-22 |df= }} A New Approach to the Design of a Digital Computer (1961)
13. ^  The Burroughs B5000 Conference (1985) p. 49
14. ^"Oral History: Burroughs B5000 Conference", OH 98. Oral history on 6 September 1985, conducted by Bernard A. Galler and Robert F. Rosin, sponsored by AFIPS and Burroughs Corporation, at Marina del Rey, California, archived by the Charles Babbage Institute, University of Minnesota, Minneapolis.
15. ^{{cite web |title=1928–2012 Obituary Condolences Robert (Bob) Ragen |url=http://www.legacy.com/obituaries/insidebayarea/obituary.aspx?n=robert-ragen-bob&pid=158717663 |access-date=2016-01-01 |dead-url=no |archive-url=https://web.archive.org/web/20171218233505/http://www.legacy.com/obituaries/name/robert-ragen-obituary?pid=1000000158717663 |archive-date=2017-12-18 |quote=[…] Bob holds over 80 patents awarded during his work as Director of RD for Friden, and Singer and as Senior Project Engineer at Xerox. He retired from Xerox RD in 1990. He is responsible for the development of the first commercial electronic calculator, the Friden 130, which has been displayed at the Smithsonian. […]}}
16. ^{{cite web|url=http://www.oldcalculatormuseum.com/friden130.html|title=Friden EC-130 Electronic Calculator|author=|date=|website=www.oldcalculatormuseum.com|accessdate=21 March 2018}}
17. ^{{cite web|url=http://www.oldcalculatormuseum.com/friden132.html|title=Friden EC-132 Electronic Calculator|author=|date=|website=www.oldcalculatormuseum.com|accessdate=21 March 2018}}
18. ^{{cite web |title=Tom Osborne's Story in His Own Words |author-first=Thomas E. |author-last=Osborne |orig-year=1994 |date=2010 |publisher=Steve Leibson |url=http://www.hp9825.com/html/osborne_s_story.html |access-date=2016-01-01 |quote=[…] I changed the architecture to use RPN (Reverse Polish Notation), which is the ideal notation for programming environment in which coding efficiency is critical. In the beginning, that change was not well received... […]}}
19. ^{{cite journal |author-first=Richard E. |author-last=Monnier |title=A New Electronic Calculator with Computerlike Capabilities |journal=Hewlett-Packard Journal |publisher=Hewlett-Packard |location=Palo Alto, California, USA |date=September 1968 |volume=20 |issue=1 |pages=3–9 |url=http://www.hparchive.com/Journals/HPJ-1968-09.pdf |access-date=2016-01-03}}
20. ^{{cite web |title=The slide rule killer: a milestone in computer history |author-first=Jacques |author-last=Laporte |date=2014-05-22 |url=http://www.jacques-laporte.org/HP%2035%20Saga.htm |dead-url=yes |archive-url=https://web.archive.org/web/20150211194800/http://jacques-laporte.org/HP%2035%20Saga.htm |archive-date=2015-02-11 |access-date=2016-01-01 |df= }}
21. ^{{cite book |title=HP-42S RPN Scientific Calculator – Owner's Manual |date=June 1988 |edition=1 |id=00042-90001 |location=Corvallis, OR, USA |publisher=Hewlett-Packard Co. |page=3 |url=http://www.hp41.net/forum/fileshp41net/manuel-hp42s-us.pdf |access-date=2017-09-17 |dead-url=no |archive-url=https://web.archive.org/web/20170917215457/http://www.hp41.net/forum/fileshp41net/manuel-hp42s-us.pdf |archive-date=2017-09-17}}
22. ^{{cite book |title=HP35 User's Manual |publisher=Hewlett-Packard |page=i |quote=[…] The operational stack and reverse Polish (Łukasiewicz) notation used in the HP-35 are the most efficient way known to computer science for evaluating mathematical expressions. […]}}
23. ^HP Calculators
24. ^http://h20331.www2.hp.com/hpsub/downloads/S07%20HP%20RPN%20Evolves%20V5b.pdf
25. ^Radio-Electronics magazine, 1972
26. ^{{cite journal |author-first=Ivan |author-last=Berger |title=New calculator kits: From pocket minis to versatile desk models |journal=Popular Mechanics |date=May 1973 |page=152 |url=https://books.google.com/books?id=htQDAAAAMBAJ&pg=PA151&lpg=PA151 |access-date=2017-04-29}}
27. ^{{cite web |url=http://www.oldcalculatormuseum.com/w-mits7400.html |access-date=2017-04-30 |dead-url=no |title=MITS 7400 Scientific/Engineering Calculator |archive-url=https://web.archive.org/web/20170430004710/http://www.oldcalculatormuseum.com/w-mits7400.jpg |archive-date=2017-04-30}} (NB. Shows a photo of the MITS 7400, but the text erroneously refers to the later algebraic 7440 model instead of the 7400A/B/C models.)
28. ^{{cite web |title=Reversing Sinclair's amazing 1974 calculator hack – half the ROM of the HP-35 |author-last=Shirriff |author-first=Ken |url=http://files.righto.com/calculator/sinclair_scientific_simulator.html |access-date=2013-12-09}}
29. ^{{cite web |title=Google chap reverse engineers Sinclair Scientific Calculator |work=The Register |author-last=Sharwood |author-first=Simon |date=2013-09-02 |url=https://www.theregister.co.uk/2013/09/02/google_chap_reverse_engineers_sinclair_scientific_calculator/ |access-date=2013-12-09}}
30. ^http://www.wass.net/manuals/Commodore%20SR4921R.pdf
31. ^{{cite web|url=http://www.vintagecalculators.com/html/program.html|title=Prinztronic Program|author=|date=|website=www.vintagecalculators.com|accessdate=21 March 2018}}
32. ^Elektronika B3-21 page on RSkey.org
33. ^Elektronika MK-161 page on RSkey.org
34. ^{{cite web|url=http://arbinada.com/pmk/node/56|title=Elektronika MK-61/52 and 152/161: small tech review (En) - Кон-Тики|author=|date=|website=arbinada.com|accessdate=21 March 2018}}
35. ^{{cite web|url=http://mk.semico.ru/|title=НПП СЕМИКО - вычислительная техника и устройства автоматизации|author=|date=|website=mk.semico.ru|accessdate=21 March 2018}}
36. ^{{cite book |title=PostScript Language Tutorial and Cookbook |author=Adobe Systems Incorporated |author-link=Adobe Systems Incorporated |publisher=Addison Wesley Publishing Company |date=1986 |orig-year=1985 |isbn=0-201-10179-3 |id=9-780201-101799 |edition=27th printing, August 1998, 1st |contribution=Preface |contributor-first=Charles |contributor-last=Geschke |contributor-link=Charles Geschke}} (NB. This book is informally called "blue book" due to its blue cover.)
37. ^{{cite book |title=PostScript Language Reference Manual |edition=1st printing, 3rd |date=February 1999 |orig-year=1985 |isbn=0-201-37922-8 |author=Adobe Systems Incorporated |author-link=Adobe Systems Incorporated |publisher=Addison-Wesley Publishing Company |url=https://www.adobe.com/products/postscript/pdfs/PLRM.pdf |access-date=2017-02-18 |dead-url=no |archive-url=https://web.archive.org/web/20170218093716/https://www.adobe.com/products/postscript/pdfs/PLRM.pdf |archive-date=2017-02-18}} (NB. This book is informally called "red book" due to its red cover.)
38. ^{{cite book |title=Dateiformate – Eine Referenz – Tabellenkalkulation, Text, Grafik, Multimedia, Sound und Internet |language=German |trans-title=File formats – a reference – spreadsheets, text, graphics, multimedia, sound and internet |author-first=Günter |author-last=Born |author-link=:de:Günter Born |date=December 2000 |publisher=Galileo Computing |chapter=Kapitel 1. LOTUS 1-2-3-Format (WKS/WK1) |trans-chapter=Chapter 1. Lotus 1-2-3 WKS/WK1 format |location=Bonn, Germany |isbn=3-934358-83-7 |url=http://www.aboutvb.de/bas/formate/pdf/wks.pdf |access-date=2016-11-28 |dead-url=no |archive-url=https://web.archive.org/web/20161129191803/http://www.aboutvb.de/bas/formate/pdf/wks.pdf |archive-date=2016-11-29}}
39. ^{{cite book |title=Dateiformate – Eine Referenz – Tabellenkalkulation, Text, Grafik, Multimedia, Sound und Internet |language=German |trans-title=File formats – a reference – spreadsheets, text, graphics, multimedia, sound and internet |author-first=Günter |author-last=Born |author-link=:de:Günter Born |date=December 2000 |publisher=Galileo Computing |chapter=Kapitel 2. LOTUS 1-2-3-Format (WK3) |trans-chapter=Chapter 2. Lotus 1-2-3 WK3 format |location=Bonn, Germany |isbn=3-934358-83-7 |url=http://www.aboutvb.de/bas/formate/pdf/wk3.pdf |access-date=2016-11-28 |dead-url=no |archive-url=https://web.archive.org/web/20161129183043/http://www.aboutvb.de/bas/formate/pdf/wk3.pdf |archive-date=2016-11-29}}
40. ^{{cite book |author-first=Herwig |author-last=Feichtinger |title=Arbeitsbuch Mikrocomputer |language=German |location=Munich, Germany |publisher=Franzis-Verlag GmbH |isbn=3-7723-8022-0 |date=1987 |edition=2 |pages=427–428}} (NB. According to this book, a 4 KB compiler was available from Lifeboat Software for CP/M.)
41. ^{{cite book |title=RPNL. Eine FORTH ähnliche Sprache mit strukturunterstützenden Sprachkonstrukten |language=German |author-first=Gustav |author-last=Wostrack |publisher=Wolf-Detlef Luther, Gens |date=January 1989 |isbn=978-3-88707022-9}}
42. ^{{cite web|url=http://lashwhip.com/grpn.html|title=Katharina & Paul Wilkins' Home Page|author=|date=|website=lashwhip.com|accessdate=21 March 2018}}
43. ^{{cite web|url=http://galculator.sourceforge.net|title=galculator - a GTK 2 / GTK 3 algebraic and RPN calculator|author=|date=|website=galculator.sourceforge.net|accessdate=21 March 2018}}
44. ^{{cite web|url=http://www.stack-calculator.com/|title=Home - mouseless Stack-Calculator|first=Frans|last=Schrijver|date=|website=www.stack-calculator.com|accessdate=21 March 2018}}

Further reading

  • {{cite |title=Interruption as a test of the user-computer interface |author-first1=John G. |author-last1=Kreifeldt |author-first2=Mary E. |author-last2=McCarthy |location=Department of Engineering Design, Tufts University, Medford, MA, USA / 17th Annual Conference on Manual Control / NASA |date=1995-11-13 |orig-year=1981-10-15 |id=02155, N82-13721, 82N13721, 19820005848 |pages=655-667 |url=https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19820005848.pdf |access-date=2018-09-22}}
  • {{cite web |title=Good Ideas, Through the Looking Glass |author-first=Niklaus |author-last=Wirth |author-link=Niklaus Wirth |date=2005-06-15 |orig-year=2005-02-02 |location=Zürich, Switzerland |url=http://www.inf.ethz.ch/~wirth/Articles/GoodIdeas_origFig.pdf |access-date=2015-09-12 |dead-url=no |archive-url=https://web.archive.org/web/20170624164254/https://www.inf.ethz.ch/personal/wirth/Articles/GoodIdeas_origFig.pdf |archive-date=2017-06-24}}
  • {{cite web |title=Everything you've always wanted to know about RPN but were afraid to pursue – Comprehensive manual for scientific calculators – Corvus 500 – APF Mark 55 – OMRON 12-SR and others |publisher=T. K. Enterprises |date=1976 |url=http://www.wass.net/manuals/Everything%20RPN.pdf |access-date=2017-06-24 |dead-url=no |archive-url=https://web.archive.org/web/20170624162722/http://www.wass.net/manuals/Everything%20RPN.pdf |archive-date=2017-06-24}} (NB. The book's cover title contains a typographical error reading "APS Mark 55" instead of the correct "APF Mark 55".)

External links

  • {{cite web |title=Postfix Notation Mini-Lecture |author-first=Bob |author-last=Brown |publisher=Information Technology Department, College of Computing and Software Engineering, Kennesaw State University |date=2015-06-05 |orig-year=2001 |url=http://bbrown.kennesaw.edu/web_lectures/postfix/ |access-date=2015-09-12 |dead-url=no |archive-url=https://web.archive.org/web/20170624164922/http://ksuweb.kennesaw.edu/faculty/rbrow211/web_lectures/postfix/ |archive-date=2017-06-24}}
  • {{cite web |title=RPN or DAL? A brief analysis of Reverse Polish Notation against Direct Algebraic Logic |author-first=James |author-last=Redin |date=2005-02-12 |orig-year=1997 |url=http://www.xnumber.com/xnumber/rpn_or_adl.htm |access-date=2015-09-12 |dead-url=no |archive-url=https://web.archive.org/web/20170624164945/http://www.xnumber.com/xnumber/rpn_or_adl.htm |archive-date=2017-06-24}}
  • {{cite web |title=What is RPN? |author-first=David G. |author-last=Hicks |date=2013 |orig-year=1995 |publisher=The Museum of HP Calculators (MoHPC) |url=http://hpmuseum.org/rpn.htm |access-date=2015-09-12 |dead-url=no |archive-url=https://web.archive.org/web/20170624165003/http://hpmuseum.org/rpn.htm |archive-date=2017-06-24}}
  • {{cite web |title=RPN Tutorial, incl. some things HP did not tell |author-first=Hans |author-last=Klaver |date=2014 |url=http://hansklav.home.xs4all.nl/rpn/index.html |access-date=2015-09-12 |dead-url=no |archive-url=https://web.archive.org/web/20170624165035/https://hansklav.home.xs4all.nl/rpn/index.html |archive-date=2017-06-24}}
  • Rosettacode.org providing many implementations in several programming languages.
  • http://rpn.codeplex.com/ Implementation of RPN with custom functions support and flexible list of operators.
  • https://xrjunque.nom.es/ConvertAlg2RPN_RPL.aspx Free online Algebraic expression to RPN Converter
{{DEFAULTSORT:Reverse Polish Notation}}

4 : Calculators|Mathematical notation|Science and technology in Poland|Operators (programming)

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/13 10:49:11