Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ada > Subtypes to rep...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 39 of 42 Topic 5611 of 5831
Post > Topic >>

Subtypes to represent coordinate charts

by Eric Hughes <eric.eh9@[EMAIL PROTECTED] > Mar 22, 2008 at 10:16 AM

On Thu, 20 Mar 2008 22:17:18 +0000, Simon Wright wrote:
> Why would things be different if there were rotations involved?

On Mar 21, 1:52 am, "Dmitry A. Kazakov" <mail...@[EMAIL PROTECTED]
>
wrote:
> Because with rotations coordinates become linear combinations with
> dimensionless coefficients. (The rotation matrix is a matrix exponent so
> that cannot be made dimensioned.)

The coordinates of the transformation matrix are indeed dimensionless
(on balance, see below), but the coordinates of the vectors themselves
can well be dimensioned.  Doing it this way can require type
conversions, but not always, depending on what operation the
application of a rotation matrix represents.  The two prototypical
meanings of the mathematical expression are these: (1) dynamic motion
of a vector within a single coordinate frame and (2) coordinate
conversion of a vector between two overlapping coordinate charts (as
with the definition of a manifold, among others).  In the first
application, there's no coordinate conversion.  In the second, there
is.  The underlying mathematical computations are identical, yet
significantly for a software implementation, the types of these
operations are different.

When dealing with multiple coordinate charts, the good reason to
require chart-specific types is that coordinates change their meaning
when trans****ted from one coordinate frame to another.  For example,
if a coordinate pair represents a point, and the pair (1,1) represents
point P in frame A, then (1,1) won't represent point P in frame B
(except degenerately).  So if you have a type Point, the right sort of
declaration looks like this:
    type Point_in_A is new Point ;
    type Point_in_B is new Point ;
    package Convert_from_A_to_B is new Frame_Conversion( Domain =>
Point_in_A, Range => Point_in_B ) ;
The package Frame_Conversion would contain all the necessary type
conversions.  Presumably it's an entirely pragma(Inline) library.

Having said all this, a transformation matrix that converts between
coordinate frames as above has units (meters in B)/(meters in A).  On
balance, this is dimensionless, but there are context-specific units
hiding behind the scenes.  Thus even declaring such a matrix should
have a declaration that captures these types.  The package
Frame_Conversion is a natural source for such types toward this
purpose.

Eric
 




 42 Posts in Topic:
Are there noticable differences in Ada acceptance by country?
Mike Silva <snarflemik  2008-03-18 12:08:30 
Re: Are there noticable differences in Ada acceptance by country
Pascal Obry <pascal@[E  2008-03-18 21:41:49 
Re: Are there noticable differences in Ada acceptance by country
"Phaedrus" <  2008-03-18 14:58:15 
Re: Are there noticable differences in Ada acceptance by country
Mike Silva <snarflemik  2008-03-18 15:25:50 
Re: Are there noticable differences in Ada acceptance by country
Ludovic Brenta <ludovi  2008-03-18 23:50:00 
Re: Are there noticable differences in Ada acceptance by country
Thomas <thomas@[EMAIL   2008-03-19 12:42:13 
Re: Are there noticable differences in Ada acceptance by country
Thomas <thomas@[EMAIL   2008-03-19 08:42:17 
Re: Are there noticable differences in Ada acceptance by country
"Peter C. Chapin&quo  2008-03-19 06:35:16 
Re: Are there noticable differences in Ada acceptance by country
"Phaedrus" <  2008-03-19 13:21:21 
Re: Are there noticable differences in Ada acceptance by country
Dennis Lee Bieber <wlf  2008-03-19 23:08:06 
Re: Are there noticable differences in Ada acceptance by country
David Thompson <dave.t  2008-03-31 04:27:45 
Re: Are there noticable differences in Ada acceptance by country
DScott <Merlin43PhD@[E  2008-03-31 00:40:24 
Re: Are there noticable differences in Ada acceptance by country
Ludovic Brenta <ludovi  2008-03-19 05:09:07 
Re: Are there noticable differences in Ada acceptance by country
Ludovic Brenta <ludovi  2008-03-19 05:16:08 
Re: Are there noticable differences in Ada acceptance by country
"framefritti@[EMAIL   2008-03-19 05:51:51 
Re: Are there noticable differences in Ada acceptance by country
Tero Koskinen <tero.ko  2008-03-19 21:04:58 
Re: Are there noticable differences in Ada acceptance by country
Jean-Pierre Rosen <ros  2008-03-20 09:57:30 
Re: Are there noticable differences in Ada acceptance by country
svaa@[EMAIL PROTECTED]   2008-03-19 12:55:05 
Re: Are there noticable differences in Ada acceptance by country
"Phaedrus" <  2008-03-19 13:14:40 
Re: Are there noticable differences in Ada acceptance by country
Ivan Levashew <octagra  2008-03-20 07:34:56 
Re: Are there noticable differences in Ada acceptance by country
gpriv@[EMAIL PROTECTED]   2008-03-19 21:37:59 
Re: Are there noticable differences in Ada acceptance by country
gpriv@[EMAIL PROTECTED]   2008-03-19 21:52:47 
Re: Are there noticable differences in Ada acceptance by country
Simon Wright <simon.j.  2008-03-20 20:22:22 
Re: Are there noticable differences in Ada acceptance by country
"Dmitry A. Kazakov&q  2008-03-20 21:48:14 
Re: Are there noticable differences in Ada acceptance by country
Simon Wright <simon.j.  2008-03-20 22:17:18 
Re: Are there noticable differences in Ada acceptance by country
"Dmitry A. Kazakov&q  2008-03-21 08:52:38 
Re: Are there noticable differences in Ada acceptance by country
Simon Wright <simon.j.  2008-03-21 16:44:50 
Re: Are there noticable differences in Ada acceptance by country
gpriv@[EMAIL PROTECTED]   2008-03-20 14:17:57 
Re: Are there noticable differences in Ada acceptance by country
gpriv@[EMAIL PROTECTED]   2008-03-20 15:59:25 
Re: Are there noticable differences in Ada acceptance by country
tmoran@[EMAIL PROTECTED]   2008-03-20 20:54:04 
Re: Are there noticable differences in Ada acceptance by country
"Jeffrey R. Carter&q  2008-03-21 04:16:40 
Re: Are there noticable differences in Ada acceptance by country
Simon Wright <simon.j.  2008-03-21 16:41:21 
Re: Are there noticable differences in Ada acceptance by country
Simon Wright <simon.j.  2008-03-21 16:39:31 
Re: Are there noticable differences in Ada acceptance by country
gpriv@[EMAIL PROTECTED]   2008-03-21 12:15:53 
Re: Are there noticable differences in Ada acceptance by country
gpriv@[EMAIL PROTECTED]   2008-03-21 12:21:52 
Re: Are there noticable differences in Ada acceptance by country
Adam Beneschan <adam@[  2008-03-21 14:11:34 
Re: Are there noticable differences in Ada acceptance by country
Simon Wright <simon.j.  2008-03-22 07:02:38 
Re: Are there noticable differences in Ada acceptance by country
Maciej Sobczak <see.my  2008-03-22 07:00:03 
Subtypes to represent coordinate charts
Eric Hughes <eric.eh9@  2008-03-22 10:16:21 
Re: Are there noticable differences in Ada acceptance by country
gpriv@[EMAIL PROTECTED]   2008-03-24 11:01:49 
Re: Are there noticable differences in Ada acceptance by country
Tero Koskinen <tero.ko  2008-03-25 20:02:43 
Re: Are there noticable differences in Ada acceptance by country
Gautier <gautier@[EMAI  2008-03-25 20:57:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 20:55:25 CDT 2008.