[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: An approach to describing the relationships between units-


christmas cartesian

>   {k, m | k = m * 1.62}
here and elsewhere
you mean
  {(k, m) | k = m * 1.62}
   ^    ^
I think, that is you want sets of pairs.
(Which is why you have the <list> connstructor in the MathML
representation of this)


> expressed as xPath(???)

Xpath could express the constraint that something=1.62* something else
eg
($1/cartesian-coordinate/x/kilometer =
$2/cartesian-coordinate/x/kilometer
or
$1/cartesian-coordinate/x/kilometer =
$2/cartesian-coordinate/x/mile * 1.62
)
would return true if the x coordiunates of the locations in $1 and $2
were true, using XSLT2 you could define a function that retuned true or
false with this (and a simliar expression for y coordinate).


> If someone more skilled
> with MathML than I would care to do so, I would greatly appreciate it.)

In your first version you were building sets of pairs of real numbers
for which there is really only one mathml representation.

For this set, again the MathML set construction is fairly automatic
following on from your {} notation which, again is missing the pair
constructor

{ (c, p) | ....
  ^    ^

However your problem now is not to represent the set but rather the
objects in the set which you have use  c.y.kilometer notation.
You could build a mathematical representation of the structired object,
and represent that in MathML, but I'm not sure that is really what you
want to do.


I think I'd be inclined to model everything as a function mapping on to
a canonical representation (say cartesian coordinates in met[re][er]s).

so 

<cartesian-coordinate>
            <x>
              <kilometers>
...


is the mapping (x,y) -> (x/1000,y/1000)

and
  <polar-coordinate>
            <r>
                <kilometer>..
            </r>
            <theta>
...

is the mapping

  (x,y) -> (r/1000 * cos theta, r/1000 * sin theta)

Then instances are equivalent if evaluating the specified function of
the supplied arguments results in teh same canonical form.


>   (6340 k, 3914) in S
          ^
You mean (6340 , 3914) in S, I think. S consists of pairs of numbers not
dimensions.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.