From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,47fc49812a5e8e38 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!v29g2000prb.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: small example, using complex variables in Ada Date: Wed, 9 Jun 2010 16:50:41 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <6e70b80b-3030-479f-8378-d1281d1fa847@d37g2000yqm.googlegroups.com> NNTP-Posting-Host: 75.172.177.144 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1276127441 21832 127.0.0.1 (9 Jun 2010 23:50:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 9 Jun 2010 23:50:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v29g2000prb.googlegroups.com; posting-host=75.172.177.144; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-US) AppleWebKit/531.21.8+(KHTML, like Gecko, Safari/528.16) OmniWeb/v622.11.0,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:11544 Date: 2010-06-09T16:50:41-07:00 List-Id: On Jun 9, 4:26=A0am, Ludovic Brenta wrote: snip > =A0 =A0 =A0Two_Pi_Over_N : constant :=3D 2 * Pi / N; > =A0 =A0 =A0 -- named number, outside the loop, like in ARM 3.3.2(9) snip > Ludovic Brenta. So 2 and N are universal_integer and Pi is probably a universal_real. I didn't know that one could ever do mixed-mode arithmetic in Ada, but this is obviously allowed here. By the way, I don't see where in ARM 3.3.2 this mixed operation is described. Line 9 on that ARM page uses 2.0*Ada.Numerics.Pi which is not mixed mode. Is this described somewhere else? Jerry