W3C home > Mailing lists > Public > www-math@w3.org > April 2002

Re: Assignment Vs conditions

From: David Carlisle <davidc@nag.co.uk>
Date: Sat, 27 Apr 2002 00:09:12 +0100
Message-Id: <200204262309.AAA22255@penguin.nag.co.uk>
To: jimbofc@yahoo.com
CC: www-math@w3.org

: I have an idea...  How about using the apply element as the following:
: 
: <apply>
:   <ci>y</ci>
:   <ci>x</ci>
: </apply>
: 
: Where the above means, "Apply y to x," 
yes
: or "Make x the value of y," 
no
: or "x=y".
no

MathML, like any other language, starts to lose any meaning if you take
standard constructs and use them for totally different meanings.
If you can read the above as x=y then you can presumably read

<apply>
  <sin/>
  <ci>x</ci>
</apply>

as sin=x and so no content mathml expression will mean the same for you
as it does for anyone else.

If you want to have an assignment operator and mathml doesn't provide
one then the extension mechanism is to use csymbol as in
I have an idea...  How about using the apply element as the following:

<apply>
  <csymbol definitionURL="URI to your description of the semantics of
  assign">assign</csymbol>
  <ci>y</ci>
  <ci>x</ci>
</apply>


or if you think assignment is a form of equality then
<apply>
  <eq definitionURL="URI to your description of the semantics of
  assign"/>
  <ci>y</ci>
  <ci>x</ci>
</apply>



David



_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
Received on Friday, 26 April 2002 19:10:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:51 GMT