The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Juergen Nickelsen <ni@w21.org>
To: tuhs@tuhs.org
Subject: Re: [TUHS] The most surprising Unix programs
Date: Sun, 13 Sep 2020 17:44:57 +0200	[thread overview]
Message-ID: <87tuw1n0jq.fsf@lith.ni.w21.org> (raw)
In-Reply-To: <f47a30b8-884a-843b-d820-d9d4da21ba3d@tnetconsulting.net>

Grant Taylor via TUHS <tuhs@minnie.tuhs.org> writes:

> For example, let's start with Pythagorean Theorem
>
>    a² + b² = c²
[...]
> [a] [enter]
> [a] [enter]
> [multiply]
> [b] [enter]
> [b] [enter]
> [multiply]
> [add]
> [square root]   # to solve for c

I do

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

6 keys. (Many operations push the entered value into the x register
without needing the enter key. Also, like with infix calculators,
usually there is a [x^2] key -- in postfix notation on both!)

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

That would give you the value of [b] and leave some rest of the
operation in the (hidden) registers. Actually you need

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

7 keys.

Although I started with infix calculators, I find it easier to work
my way out of more complex nested formulas with RPN than to track
the level of parentheses in my mind. Consider something like this:

   3y * x    / (z + 4k)^2    2w + v!   \
   ------  * | ---------- + ---------- |
   5b + z    \   3b * 4x    ln(x + 2y) /

Now this is a PITA either way, but it comes easier for me with RPN.


[Sorry for the late reply -- I subscribed to TUHS earlier this year
and am only now making my way through it.]

-- 
Kein Wunder, wenn bei Leuten, die tagaus, tagein Zugriff auf alles
haben, was die Welt im Internet anbietet, die Fantasie-Sicherungen
durchbrennen.                                    -- Karl Notter

  reply	other threads:[~2020-09-13 15:53 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-20 14:03 Noel Chiappa
2020-03-20 14:08 ` Richard Salz
2020-03-20 14:52   ` Larry McVoy
2020-03-20 14:58     ` Dagobert Michelsen
2020-03-20 15:05       ` Richard Salz
2020-03-20 22:09       ` Mike Markowski
2020-03-20 15:03     ` Gregg Levine
2020-03-20 15:05       ` Chet Ramey
2020-03-20 22:06     ` Dave Horsfall
2020-03-21  4:59     ` Wesley Parish
2020-03-20 21:57   ` Dave Horsfall
2020-03-22 18:05     ` Tony Finch
2020-03-20 15:07 ` Nemo
2020-03-20 19:03   ` Adam Thornton
2020-03-20 16:07 ` Grant Taylor via TUHS
2020-09-13 15:44   ` Juergen Nickelsen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-03-21  1:12 Noel Chiappa
2020-03-19 20:57 Nelson H. F. Beebe
2020-03-19 21:18 ` Tomasz Rola
2020-03-20  7:14 ` arnold
2020-03-20  7:49   ` Thomas Paulsen
2020-03-20  8:18     ` arnold
2020-03-13 23:31 Doug McIlroy
2020-03-14  0:40 ` Dave Horsfall
2020-03-14 11:30 ` Harald Arnesen
2020-03-14 12:24   ` Clem Cole
2020-03-15 22:01     ` Rob Pike
2020-03-15 22:14       ` Larry McVoy
2020-03-15 23:34         ` Warner Losh
2020-03-16  2:45           ` Anthony Martin
2020-03-15 22:30       ` Clem Cole
2020-03-15 23:20       ` Dave Horsfall
2020-03-16  0:56         ` Rob Pike
2020-03-20 23:20           ` Dave Horsfall
2020-03-20 23:35             ` Toby Thain
2020-03-21  0:34             ` Rob Pike
2020-03-17 13:03 ` ca6c
2020-03-17 13:30   ` Andy Kosela
2020-03-17 14:53     ` Cág
2020-03-17 14:57       ` Larry McVoy
2020-03-17 14:59         ` Arrigo Triulzi
2020-03-17 15:40   ` Steve Nickolas
2020-03-17 22:28   ` Dave Horsfall
2020-03-18  0:17     ` Jon Steinhart
2020-03-18  3:28       ` Dave Horsfall
2020-03-18  8:40     ` arnold
2020-03-19 12:26     ` Mike Markowski
2020-03-19 21:31       ` Dave Horsfall
2020-03-20 11:48         ` paul
2020-03-20 15:40           ` Grant Taylor via TUHS
2020-03-20 16:40             ` Jon Steinhart
2020-03-20 17:23               ` Grant Taylor via TUHS
2020-03-20 18:43               ` Rich Morin
2020-03-19 20:01   ` Tomasz Rola

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=87tuw1n0jq.fsf@lith.ni.w21.org \
    --to=ni@w21.org \
    --cc=tuhs@tuhs.org \
    /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).