From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Many overlook the possibility sin(x,360.0) ?
Date: Mon, 1 May 2017 13:46:10 -0700 (PDT)
Date: 2017-05-01T13:46:10-07:00 [thread overview]
Message-ID: <516be18c-b83e-457b-8f46-a6d8719e0134@googlegroups.com> (raw)
In-Reply-To: <oe84bp$4hv$1@gioia.aioe.org>
On Monday, May 1, 2017 at 2:04:13 PM UTC-6, Dmitry A. Kazakov wrote:
> On 2017-05-01 19:46, Nasser M. Abbasi wrote:
> > On 5/1/2017 12:22 AM, reinert wrote:
>
> >> Not a big philosophical question, but:
> >>
> >> I have often seen in (others) Ada code that many prefer to use for
> >> example sin(x)
> >> where they first calculate x := rad_per_degree*degrees.
> >>
> >> Why they do not use sin(degrees,360.0) if they need to use degree.
> >> Are there a good reason? Using sin(x, 3600.0) seems to keep the code
> >> simpler. Sometimes I even use sin(x,period).
>
> I remember the first thing they taught us during the first semester was
> to ditch degrees...
That is honestly stupid; given how I remember it being done "in the name of 'accuracy' -- the problem is that it's not more accurate: 90° *IS* π/2 radians.
Difficulty/complexity of handling is completely discrete from accuracy, and if we wanted a good constant for circles it would be 2π -- as shown here: http://www.math.utah.edu/%7Epalais/pi.pdf (see also: http://tauday.com/tau-manifesto )
next prev parent reply other threads:[~2017-05-01 20:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-01 5:22 Many overlook the possibility sin(x,360.0) ? reinert
2017-05-01 8:50 ` hreba
2017-05-01 17:46 ` Nasser M. Abbasi
2017-05-01 20:04 ` Dmitry A. Kazakov
2017-05-01 20:46 ` Shark8 [this message]
2017-05-02 6:37 ` reinert
2017-05-02 8:35 ` Dmitry A. Kazakov
2017-05-03 4:12 ` reinert
2017-05-03 7:18 ` Dmitry A. Kazakov
2017-05-08 17:37 ` reinert
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox