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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,39db6c588f13f843,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-05 01:21:00 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!fr.usenet-edu.net!usenet-edu.net!enst.fr!not-for-mail From: "Grein, Christoph" Newsgroups: comp.lang.ada Subject: SI Units Checked and Unchecked Date: Wed, 5 Feb 2003 08:03:15 +0100 (MET) Organization: ENST, France Message-ID: Reply-To: "Grein, Christoph" , "comp.lang.ada mail to news gateway" 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 1044436859 34165 137.194.161.2 (5 Feb 2003 09:20:59 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 5 Feb 2003 09:20:59 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: X-Authentication-Warning: mail.eurocopter.com: uucp set sender to using -f Content-MD5: 9anMwqNgjB2ka8wja03KSg== X-Mailer: dtmail 1.2.1 CDE Version 1.2.1 SunOS 5.6 sun4u sparc X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:33800 Date: 2003-02-05T08:03:15+01:00 The ultimate SI Units checker has been updated. It now handles reading = of units=20 like reading of enumeration values. This only affects file reading = operations=20 for illegal items, i.e. those which raise Data_Error. Hours, minutes and liters have been added as units. ------------------------------------------------------------------------= ------- 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; where the exponent 3/2 is a rational number. Temperature scales like Celsius and Fahrenheit (the corresponding SI = unit is Kelvin) are available with conversion functions taking into account = whether temperatures or temperature differences are converted. (For = differences, e.g. 1K =3D 1=B0C, but not for temperatures themselves.) Further features include dimensional Text_IO, 3D vector arithmetics, polynomials, linear interpolation and quadratic approximation. Mathematical functions are included: exp (5.0*Meter) or log (10.0*Kilogramm) are illegal, but arctan (y =3D> 10.0*Meter, x =3D> 5.0*Meter) is of course legal as is sin (10.0*Centi*Meter, cycle =3D> 1.0*Meter). Unit checking can be switched off in production code by just changing a = few=20 lines of code. 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