comp.lang.ada
 help / color / mirror / Atom feed
From: dkristol@see-my.sig (David Kristola)
Subject: Engineering types hierarchy
Date: 1999/09/08
Date: 1999-09-08T00:00:00+00:00	[thread overview]
Message-ID: <7r50i7$e893@svlss.lmms.lmco.com> (raw)

Hello,

I am trying to put together a robust and easily usable
hierarchy of types packages to support a collection of
engineering units (kilograms, meters, seconds, etc.)
in scalar, vector, and matrix forms.

So far, i have a list of the base types and combined
types (meters per second and so on) that are going to
be used on this project.

There is an explosion of operators that i have to
implement.  "/" for meters and second returning
meters per seconds, and on, and on, and on.
Of course, there is nothing special about these
operators beyond the typing they do.

With a few "use type" statements, coding up algorithms
has been a breeze, and unit problems show up when i
try to compile (kg*m^2 being the same as N*m*s^2 was
only a minor nuisance).

So far, the plan is to set up the hierarchy of child
packages as such:

Numeric_Types
Numeric_Types.Vectors
Numeric_Types.Matrices
Numeric_Types.Quaternions
Numeric_Types.Double
Numeric_Types.Double.Vectors
Numeric_Types.Double.Matrices
Numeric_Types.Double.Quaternions

Is there a better way?

(No, this is not a class project)

Thanks,
--djk, keeper of arcane lore & trivial fluff
Home: David95037 at aol dot com
Work: david dot j dot kristola at lmco dot com
Spam: goto.hades@welovespam.com





             reply	other threads:[~1999-09-08  0:00 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-08  0:00 David Kristola [this message]
1999-09-08  0:00 ` Engineering types hierarchy Pat Rogers
1999-09-09  0:00   ` David Kristola
1999-09-08  0:00 ` Robert Dewar
1999-09-09  0:00   ` David Kristola
1999-09-09  0:00     ` Robert Dewar
1999-09-09  0:00     ` Robert Dewar
1999-09-10  0:00       ` David Kristola
1999-09-08  0:00 ` Hyman Rosen
1999-09-08  0:00   ` Matthew Heaney
1999-09-08  0:00 ` Marin David Condic
1999-09-09  0:00   ` David Kristola
1999-09-11  0:00     ` Richard D Riehle
1999-09-08  0:00 ` Matthew Heaney
1999-09-09  0:00   ` David Kristola
1999-09-09  0:00 ` David Botton
1999-09-10  0:00   ` David Kristola
1999-09-10  0:00     ` Ted Dennison
  -- strict thread matches above, loose matches on Subject: below --
1999-09-09  0:00 Matthew Heaney
1999-09-09  0:00 ` Matthew Heaney
1999-09-09  0:00   ` Pat Rogers
1999-09-10  0:00   ` David Kristola
replies disabled

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