From: reinert <reinkor@gmail.com>
Subject: Re: Many overlook the possibility sin(x,360.0) ?
Date: Tue, 2 May 2017 21:12:53 -0700 (PDT)
Date: 2017-05-02T21:12:53-07:00 [thread overview]
Message-ID: <518cca79-b172-4e96-bca0-b6491cd3c013@googlegroups.com> (raw)
In-Reply-To: <oe9gc6$20o$1@gioia.aioe.org>
To be a bit precise: "x" and "period" must be of the same unit (which *include* same dimension) in sin(x,period).
Here is an attempt to make clean code plotting an approximation of a circle
(using two arguments for cos and sin):
for i in 0 .. 35 loop
vertex(radius * (cos (real (i), 36.0), sin (real (i), 36.0)));
end loop;
next prev parent reply other threads:[~2017-05-03 4:12 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
2017-05-02 6:37 ` reinert
2017-05-02 8:35 ` Dmitry A. Kazakov
2017-05-03 4:12 ` reinert [this message]
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