comp.lang.ada
 help / color / mirror / Atom feed
From: reinert <reinkor@gmail.com>
Subject: Many overlook the possibility sin(x,360.0) ?
Date: Sun, 30 Apr 2017 22:22:42 -0700 (PDT)
Date: 2017-04-30T22:22:42-07:00	[thread overview]
Message-ID: <3e7f9789-a0af-4342-a42e-46a6258d7801@googlegroups.com> (raw)

Hi,

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

reinert


             reply	other threads:[~2017-05-01  5:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-01  5:22 reinert [this message]
2017-05-01  8:50 ` Many overlook the possibility sin(x,360.0) ? hreba
2017-05-01 17:46 ` Nasser M. Abbasi
2017-05-01 20:04   ` Dmitry A. Kazakov
2017-05-01 20:46     ` Shark8
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