Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #224777

Re: what calculator do you use?

From The Wanderer <wanderer@fastmail.fm>
Newsgroups linux.debian.user
Subject Re: what calculator do you use?
Date 2020-07-14 03:10 +0200
Message-ID <AshCh-75z-1@gated-at.bofh.it> (permalink)
References (1 earlier) <As3zk-70m-7@gated-at.bofh.it> <As4c1-7d6-1@gated-at.bofh.it> <As5KN-8f3-11@gated-at.bofh.it> <AsfKa-5Y7-5@gated-at.bofh.it> <AshsC-6MQ-9@gated-at.bofh.it>
Organization This space intentionally left blank.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On 2020-07-13 at 20:56, David Wright wrote:

> On Mon 13 Jul 2020 at 19:02:38 (-0400), The Wanderer wrote:

>> ; pi(.00009)
>>         3.1416
> 
> It appears to use the argument as an integral factor of the answer
> quoted. However, the last example seems wrong. The answer ought to be
> 3.14163, which is 34907 * 0.00009. Was that a copy/paste failure?

Yes, apparently so. Sorry about that!


Based on a bit more digging, apparently calc does also have an atan()
function, which produces the arctangent of its argument; atan(1)*4 gives
3.14159265358979323848. Oddly, that last digit is not the same as what
'bc -l' gave from '4*a(1)' in Greg's demonstration; it looks like
atan(1) gives a value which is off in the very last displayed decimal
place from what Greg gave. I suspect that there is display rounding
involved on one side or the other.

atan() is of course more typing than a(), but it's also both arguably
more guessable (without already knowing function names) and definitely
more identifiable (in terms of recognizing what the function does from
the name), so there's a tradeoff.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

what calculator do you use? kaye n <guikaye@gmail.com> - 2020-07-13 09:40 +0200
  Re: what calculator do you use? Alex Mestiashvili <amestia@rsh2.donotuse.de> - 2020-07-13 09:50 +0200
  Re: what calculator do you use? Andrei POPESCU <andreimpopescu@gmail.com> - 2020-07-13 09:50 +0200
    Re: what calculator do you use? Linux-Fan <Ma_Sys.ma@web.de> - 2020-07-13 12:40 +0200
      Re: what calculator do you use? rhkramer@gmail.com - 2020-07-13 13:30 +0200
        Re: what calculator do you use? Klaus Singvogel <deb-user-ml@singvogel.net> - 2020-07-13 13:50 +0200
          Re: what calculator do you use? Greg Wooledge <wooledg@eeg.ccf.org> - 2020-07-13 14:20 +0200
          Re: what calculator do you use? rhkramer@gmail.com - 2020-07-13 17:20 +0200
        Re: what calculator do you use? Eric S Fraga <e.fraga@ucl.ac.uk> - 2020-07-13 14:30 +0200
          Re: what calculator do you use? Jörg-Volker Peetz <jvpeetz@web.de> - 2020-07-14 11:10 +0200
            Re: what calculator do you use? John Hasler <jhasler@newsguy.com> - 2020-07-14 14:30 +0200
  Re: what calculator do you use? Brad Rogers <brad@fineby.me.uk> - 2020-07-13 10:00 +0200
  Re: what calculator do you use? Marco Möller <talby@debianlists.mobilxpress.net> - 2020-07-13 10:00 +0200
  Re: what calculator do you use? <tomas@tuxteam.de> - 2020-07-13 10:20 +0200
  Re: what calculator do you use? Michael Lange <klappnase@freenet.de> - 2020-07-13 10:30 +0200
  Re: what calculator do you use? Ed Redd <edredd7@gmail.com> - 2020-07-13 10:40 +0200
  Re: what calculator do you use? Joe <joe@jretrading.com> - 2020-07-13 11:00 +0200
  Re: what calculator do you use? Eric S Fraga <e.fraga@ucl.ac.uk> - 2020-07-13 11:40 +0200
    Re: what calculator do you use? Florent Rougon <f.rougon@free.fr> - 2020-07-13 14:50 +0200
      Re: what calculator do you use? Eric S Fraga <e.fraga@ucl.ac.uk> - 2020-07-13 18:10 +0200
        Re: what calculator do you use? "Thomas Schmitt" <scdbackup@gmx.net> - 2020-07-13 19:30 +0200
          Re: what calculator do you use? Eric S Fraga <e.fraga@ucl.ac.uk> - 2020-07-14 08:20 +0200
        Re: what calculator do you use? ghe2001 <ghe2001@protonmail.com> - 2020-07-13 20:20 +0200
  Re: what calculator do you use? Reco <recoverym4n@enotuniq.net> - 2020-07-13 12:10 +0200
    Re: what calculator do you use? The Wanderer <wanderer@fastmail.fm> - 2020-07-13 12:50 +0200
      Re: what calculator do you use? echo test <echotest09@gmail.com> - 2020-07-13 13:40 +0200
      Re: what calculator do you use? Reco <recoverym4n@enotuniq.net> - 2020-07-13 13:40 +0200
      Re: what calculator do you use? Greg Wooledge <wooledg@eeg.ccf.org> - 2020-07-13 14:30 +0200
        Re: what calculator do you use? The Wanderer <wanderer@fastmail.fm> - 2020-07-14 01:10 +0200
          Re: what calculator do you use? David Wright <deblis@lionunicorn.co.uk> - 2020-07-14 03:00 +0200
            Re: what calculator do you use? The Wanderer <wanderer@fastmail.fm> - 2020-07-14 03:10 +0200
              Re: what calculator do you use? Greg Wooledge <wooledg@eeg.ccf.org> - 2020-07-14 13:30 +0200
  Re: what calculator do you use? Anssi Saari <as@sci.fi> - 2020-07-13 13:40 +0200
  Re: what calculator do you use? Weaver <weaver@riseup.net> - 2020-07-13 13:50 +0200
  Re: what calculator do you use? John Hasler <jhasler@newsguy.com> - 2020-07-13 14:40 +0200
  Re: what calculator do you use? Charles Curley <charlescurley@charlescurley.com> - 2020-07-13 15:40 +0200
  Re: what calculator do you use? Charles Curley <charlescurley@charlescurley.com> - 2020-07-13 15:40 +0200
    Re: what calculator do you use? Cindy Sue Causey <butterflybytes@gmail.com> - 2020-07-13 19:20 +0200
  Re: what calculator do you use? Celejar <celejar@gmail.com> - 2020-07-13 15:50 +0200
  Re: what calculator do you use? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2020-07-13 17:30 +0200
  Re: what calculator do you use? Wolf Halton <wolf.halton@gmail.com> - 2020-07-13 17:50 +0200
    Re: what calculator do you use? David Wright <deblis@lionunicorn.co.uk> - 2020-07-13 21:20 +0200
    Re: what calculator do you use? Ben Caradoc-Davies <ben@transient.nz> - 2020-07-13 22:00 +0200
  Re: what calculator do you use? Nate Bargmann <n0nb@n0nb.us> - 2020-07-13 19:30 +0200
  Re: what calculator do you use? Ben Caradoc-Davies <ben@transient.nz> - 2020-07-13 21:50 +0200

csiph-web