W3C home > Mailing lists > Public > www-math@w3.org > July 2003

Re: Question for the Math-oriented people: is an assignment a function?

From: Stan Devitt <jsdevitt@stratumtek.com>
Date: Wed, 16 Jul 2003 21:04:12 -0400
Message-ID: <3F15F60C.4010802@stratumtek.com>
To: "Roger L. Costello" <costello@mitre.org>
CC: www-math@w3.org

If you need an assignment operator, I would suggest introducing a 
csymbol like

  <csymbol definitionURL="myapplication/assign">assign</csymbol>
or
  <csymbol definitionURL="myapplication/assign">:=</csymbol>

For that matter you could add the definitionURL to <equals/>.

You can use the same approach to provide other programming
language constructs using apply to construct things like:
assign(a,b),   foreach( x , x < 3 , x^2 ) ,  if ( cond , r1 , r1 )

Also, OpenMath may have a dictionary you can reference.

Stan Devitt
Stratumtek

Roger L. Costello wrote:

>Hi Folks,
>
>Consider this formula:
>
>   kilometers = miles * 1.62
>
>A programmer might interpret it like this
>  
>
...

>How would you express this in MathML?
>
>/Roger
>
>
>  
>
Received on Wednesday, 16 July 2003 21:02:07 GMT

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