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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,583275b6950bf4e6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-29 10:13:45 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: snarflemike@yahoo.com (Mike Silva) Newsgroups: comp.lang.ada Subject: Re: Saturated Math Date: 29 May 2003 10:13:44 -0700 Organization: http://groups.google.com/ Message-ID: <20619edc.0305290913.31006f83@posting.google.com> References: <3ECFF541.1010705@attbi.com> <3ED0B820.5050603@noplace.com> <3ED2096F.3020800@noplace.com> <3ED353BE.40605@noplace.com> <3ED4A323.3000909@noplace.com> <3ED5EA28.2040703@noplace.com> NNTP-Posting-Host: 154.6.152.68 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1054228425 22847 127.0.0.1 (29 May 2003 17:13:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 29 May 2003 17:13:45 GMT Xref: archiver1.google.com comp.lang.ada:38006 Date: 2003-05-29T17:13:45+00:00 List-Id: Would've saved Ariane 501's hindquarters too! (Not to mention all the other bits) Such a type (saturating, non-sticking) would definitely be quite useful in the embedded world, and I would think it a Most Excellent Addition -- might even help get some embedded programmers to look at Ada. I can't speak to the other problems it might create, though. Marin David Condic wrote in message news:<3ED5EA28.2040703@noplace.com>... > Then it doesn't behave like the real world thing I wanted it to model. > If you have an actuator that can move between -5.0 inches and +5.0 > inches and you try to command it to +5.5 inches, it "saturates" at +5.0. > If I start commanding it to +4.0 inches, that's where it starts to go. > One can find analogies in other problem domains as well. > > MDC > > Robert A Duff wrote: > > > > It seems to me that a saturating arithmetic ought to "stick" at > > infinity. If you say "X + 1000", and that returns the max, then > > subtracting 1 from it should return the max, not max-1. Others have > > said otherwise, and I wonder why. > > > > > > -- > ====================================================================== > Marin David Condic > I work for: http://www.belcan.com/ > My project is: http://www.jast.mil/ > > Send Replies To: m c o n d i c @ a c m . o r g > > "In general the art of government consists in taking as > much money as possible from one class of citizens to give > to the other." > > -- Voltaire > ======================================================================