The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* Re: [TUHS] RPN (was The most surprising Unix programs)
@ 2020-03-20 23:15 Doug McIlroy
  2020-03-21  0:40 ` Rob Pike
  2020-03-21  0:43 ` Grant Taylor via TUHS
  0 siblings, 2 replies; 3+ messages in thread
From: Doug McIlroy @ 2020-03-20 23:15 UTC (permalink / raw)
  To: tuhs

Sorry to flog this topic, but the two examples below are an
unfair comparison. What happened to the multiplications in the
second?  And  two of the [enter]s in the first are unnecessary.
Ironically three of the four operations in the second are
actually reverse Polish!  If you had to utter sqrt first,
as we do on paper and in speech, things wouldn't look so great.

[a] [enter]
[a] [enter]
[multiply]
[b] [enter]
[b] [enter]
[multiply]
[add]
[square root]


[a]
[square]
[plus]
[b]
[square]
[square root]

Doug

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-21  0:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-20 23:15 [TUHS] RPN (was The most surprising Unix programs) Doug McIlroy
2020-03-21  0:40 ` Rob Pike
2020-03-21  0:43 ` Grant Taylor via TUHS

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).