[TUHS] RPN (was The most surprising Unix programs)

Grant Taylor gtaylor at tnetconsulting.net
Sat Mar 21 10:43:08 AEST 2020


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4013 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200320/cbaf5537/attachment.bin>


More information about the TUHS mailing list