comp.lang.ada
 help / color / mirror / Atom feed
* Many overlook the possibility sin(x,360.0) ?
@ 2017-05-01  5:22 reinert
  2017-05-01  8:50 ` hreba
  2017-05-01 17:46 ` Nasser M. Abbasi
  0 siblings, 2 replies; 10+ messages in thread
From: reinert @ 2017-05-01  5:22 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-05-08 17:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox