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,e41c540121b84783 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Message-ID: <43BDACAF.C20E2840@fakeaddress.nil> Date: Fri, 06 Jan 2006 00:33:03 +0100 From: Gautier Write-only X-Mailer: Mozilla 4.8 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: How to use "infinite" ? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 83.76.11.94 X-Original-NNTP-Posting-Host: 83.76.11.94 X-Trace: news.bluewin.ch 1136503993 83.76.11.94 (6 Jan 2006 00:33:13 +0100) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news1.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news1.google.com comp.lang.ada:2455 Date: 2006-01-06T00:33:03+01:00 List-Id: Dmitry A. Kazakov: > You should define an abstract data type to represent the set of integer > numbers + ideals you want (such as "negative infinity", "positive > infinity") . For example a universal package could be generic: > > generic > type Finite_Integer is range <>; > package Integers_With_Infinity_Ideals is > type Infinite_Integer is private; > -- > -- Unary operations > -- > function "+" (Left : Infinite_Integer) return Infinite_Integer; > function "-" (Left : Infinite_Integer) return Infinite_Integer; > -- > -- Dyadic operations > -- > function "+" (Left : Finite_Integer; Right : Infinite_Integer) > return Infinite_Integer; [...] Great idea, you just drafted a (or the first ?) computer package for nonstandard analysis! I strongly suggest to use the (hem...) standard wording of nonstandard analysis for the types (unlimited, infinitesimal, etc.). ______________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/index.htm Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!