The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Grant Taylor via TUHS <tuhs@minnie.tuhs.org>
To: tuhs@minnie.tuhs.org
Subject: Re: [TUHS] RPN (was The most surprising Unix programs)
Date: Fri, 20 Mar 2020 18:43:08 -0600	[thread overview]
Message-ID: <638f3041-73e5-639f-5e2c-8387978a38d5@spamtrap.tnetconsulting.net> (raw)
In-Reply-To: <202003202315.02KNF088305876@coolidge.cs.dartmouth.edu>

[-- Attachment #1: Type: text/plain, Size: 879 bytes --]

On 3/20/20 5:15 PM, Doug McIlroy wrote:
> Sorry to flog this topic, but the two examples below are an unfair 
> comparison. What happened to the multiplications in the second?

Are you referring to the second {a,b} and the subsequent multiply?  (I'm 
presuming so until corrected otherwise.)  I think that is addressed by 
the square operation.

> And  two of the [enter]s in the first are unnecessary.

Which two?  The enter before the multiplies?

Seeing as how I'm trying to learn from the collective experience of 
TUHS, would you please elaborate or reproduce what you believe to be the 
correct key sequences?

> 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.

Hum.... :-/



-- 
Grant. . . .
unix || die


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4013 bytes --]

      parent reply	other threads:[~2020-03-21  0:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-20 23:15 Doug McIlroy
2020-03-21  0:40 ` Rob Pike
2020-03-21  0:43 ` Grant Taylor via TUHS [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=638f3041-73e5-639f-5e2c-8387978a38d5@spamtrap.tnetconsulting.net \
    --to=tuhs@minnie.tuhs.org \
    --cc=gtaylor@tnetconsulting.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).