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.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,7ddf6ee0778bd40c,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-14 04:19:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!freenix!enst.fr!not-for-mail From: "Grein, Christoph" Newsgroups: comp.lang.ada Subject: Update: The Ultimate SI Units Checker Date: Mon, 14 Oct 2002 13:12:17 +0200 (MET DST) Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: TEXT/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: avanie.enst.fr 1034594342 8648 137.194.161.2 (14 Oct 2002 11:19:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Mon, 14 Oct 2002 11:19:02 +0000 (UTC) Return-Path: X-Authentication-Warning: mail.eurocopter.com: uucp set sender to using -f Content-MD5: vPTzhGAOguv9k7EwdbuDBQ== X-Mailer: dtmail 1.2.1 CDE Version 1.2.1 SunOS 5.6 sun4u sparc Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.13 Precedence: bulk X-Reply-To: "Grein, Christoph" List-Unsubscribe: , List-Id: comp.lang.ada mail<->news gateway List-Post: List-Help: List-Subscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Original-Cc: Christ-Usch.Grein@T-Online.de Xref: archiver1.google.com comp.lang.ada:29764 Date: 2002-10-14T13:12:17+02:00 The ultimate SI Units checker deals with physical items in full = generality, including arbitrary powers and roots, checking the correctness of = dimensions in all expressions: Current_Density :=3D (4.0/9.0) * Eps0 * Sqrt (2.0 * Electron_Charge / Electron_Mass) * Voltage**(3/2) / Distance**2; With the advent of Gnat 3.16w, a lot of unnecessary qualifications = could be removed from the code, which were necessary because of a bug in earlier versions. [Instead of the simple expression Voltage**(3/2) above, where = the=20 exponent 3/2 is a rational number, you had to write Voltage**Rational'(3/2).] Other compilers probably do not have these problems with overload = resolution, so you should try the updated version in any case. [Even with Gnat 3.16w, a few buggy cases remain, where qualification is = still=20 needed, but these are rare: Rational'(-1/2).] Temperature scales like Celsius and Fahrenheit have been added (the=20 corresponding SI unit is Kelvin) with conversion functions taking into = account=20 whether temperatures or temperature differences are converted. (For = differences, e.g. 1K =3D 1=B0C, but not for tempertures themselves.) See SI is released under GMGPL. Enjoy... o _ _ _ --------- __o __o /\_ _ \\o (_)\__/o (_) ------- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/ ------ (_)/ (_) (_)/ (_) (_) (_) (_) (_)' _\o_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mein Radunfall My bike accident Christoph Grein Mitglied von Ada-Deutschland Member of Ada Germany http:/www.ada-deutschland.de http://home.T-Online.de/home/Christ-Usch.Grein eMail: Christ-Usch.Grein@T-Online.de