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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8b33260b76fbe630 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-22 10:43:53 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Interval arithmetic in Ada? Date: 22 Apr 2002 10:43:52 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0204220943.20724df@posting.google.com> References: NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1019497433 20600 127.0.0.1 (22 Apr 2002 17:43:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 22 Apr 2002 17:43:53 GMT Xref: archiver1.google.com comp.lang.ada:22926 Date: 2002-04-22T17:43:53+00:00 List-Id: "Grein, Christoph" wrote in message news:... > Again, this _is_ the Ada 83 model with a and b the model > numbers enclosing the actual value. See the Ada 83 RM. And once again you are confused. Interval arithmetic involves a representation where you use a pair of numbers to represent a real, the lower and upper bounds. You are keying off the word "interval" here, and missing the target :-) The answer is that the language does not specifically support interval arithmetic. In general automatic support for this notion is tricky. As an example, consider doing Newton-Raphson iteration for a square root. If you just carry intervals through, they get wider and wider and you don't converge. You have to realize that the *estimate* each time is computed absolutely precisely, with no slop, and thus the interval must be collapsed here. The round towards +inf and round down towards -inf rounding modes of IEEE are intended to support this model of arithmetic. See Sam Figueroa's thesis for a further discussion of the use of these rounding modes in Ada. Robert Dewar