comp.lang.ada
 help / color / mirror / Atom feed
From: AdaMagica <christoph.grein@eurocopter.com>
Subject: SI unit checking
Date: Mon, 5 Jul 2010 01:56:47 -0700 (PDT)
Date: 2010-07-05T01:56:47-07:00	[thread overview]
Message-ID: <270f723c-c64a-4692-8861-ef8ebc19935e@q12g2000yqj.googlegroups.com> (raw)

Dimension checking in Ada made simple. All 7 SI units are included;
Centigrade and other temperature skales.

Runtime checks can easily be switched off by changing only a few lines
of code, i.e. only the numerics remains.
IO with unit information is included, e.g.  10.0*km/h. Easy definition
of arbitrary other units.
3D vector spaces. Rotation via matrices or quaternions.

Examples of use and a lot of unit tests are provided.

http://www.christ-usch-grein.homepage.t-online.de/Ada/SI.html

This version fixes a bug in the definition of photometry unit lm=cd*sr.



             reply	other threads:[~2010-07-05  8:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-05  8:56 AdaMagica [this message]
2010-08-16 20:00 ` SI unit checking Yannick Duchêne (Hibou57)
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox