comp.lang.ada
 help / color / mirror / Atom feed
From: cis.ohio-state.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!agate !linus!linus.mitre.org!vgiddings-mac.mitre.org!user@ucbvax.Berkeley.EDU  (Victo r Giddings)
Subject: Re: Dimensions (was: What's the difference between...)
Date: 16 Feb 93 16:51:09 GMT	[thread overview]
Message-ID: <vtg-160293111256@vgiddings-mac.mitre.org> (raw)

In article <1993Feb15.151209.7531@inmet.camb.inmet.com>,
stt@spock.camb.inmet.com (Tucker Taft) replies to:

In article <1993Feb13.232516.5229@seas.gwu.edu> 
   mfeldman@seas.gwu.edu (Michael Feldman) comments on support for
dimensional types:

> [discussion deleted}

One aspect of this problem that hasn't been mentioned and may greatly
affect the 
efficacy of some of the proposed solutions is that integer exponents aren't
enough!  At least some problems require that halves be expressable.

One of the first subprograms that I attempted to write (after the standard
one week "Intro to Ada" course) was Gauss's solution to the orbital
intercept problem.  In orbital mechanics,  the constant 1/SQRT(GM) occurs
fairly frequently.   The units of this quantity are sec/(km**3/2) !!  The
resulting package to define all the permutations of "unitary operations"
was so daunting that I reversed myself on advocating this type of checking.
 It requires support for SQRT in addition to "+", "-", "*", and "/".  I
commend the Gaussian intercept solution as a test case to those proposing
solutions for dimensional types.

             reply	other threads:[~1993-02-16 16:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-02-16 16:51 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!agate [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-02-15 21:10 Dimensions (was: What's the difference between...) cis.ohio-state.edu!news.sei.cmu.edu!ae
1993-02-15 18:23 Jorge Luis Diaz-Herrera
1993-02-15 15:12 enterpoop.mit.edu!hri.com!noc.near.net!inmet!spock!stt
replies disabled

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