[Prev][Next][Index][Thread]
Content markups, piecewise functions, conditions
-
To: <www-math@w3.org>
-
Subject: Content markups, piecewise functions, conditions
-
From: =?iso-8859-1?Q?G=E9rald_QUINTANA?= <quintana@lyon.objectif.fr>
-
Date: Tue, 11 Jul 2000 17:45:18 +0200
-
From www-math-request@tux.w3.org Tue Jul 11 11: 44:08 2000
-
Organization: Q-Labs Lyon
-
Reply-To: =?iso-8859-1?Q?G=E9rald_QUINTANA?= <quintana@lyon.objectif.fr>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,<BR><BR>I am thinking about how I =
could code a=20
piecewise function using<BR>content markups. I need content markups =
because I=20
aim at making a small<BR>MathML "parser-compiler". I didn't understood =
exactly=20
how conditions were<BR>working. So as to code the sign function (returns =
-1 when=20
x<0, 0 when x=3D0<BR>and +1 when x>0) what do you think of this ? =
How can I=20
tell that those 3<BR>definitions belongs to the same function =
?<BR><BR><?xml=20
version=3D"1.0" encoding=3D"UTF-8"?><BR><!DOCTYPE math SYSTEM "<A=20
href=3D"file://localhost/S:/java/xerces/mathml/mathml.dtd">file://localho=
st/S:/java/xerces/mathml/mathml.dtd</A>"=20
><BR><math><BR> <!--If x<0 then -1--><BR> =20
<lambda><BR> =20
<bvar><BR> =20
<ci>x</ci><BR> =
</bvar><BR> =20
<apply><BR> =20
<bvar><BR> =20
<ci>x</ci><BR> =20
</bvar><BR> =20
<condition><BR> =20
<reln><BR> =20
<lt/><BR> =20
<ci>x</ci><BR>  =
; =20
<cn>0</cn><BR> =20
</reln><BR> =20
</condition><BR> =20
<apply><BR> =20
<minus/><BR> =20
<cn>1</cn><BR> =20
</apply><BR> </apply><BR> =20
</lambda><BR> <!--If x=3D0 then 0--><BR> =20
<lambda><BR> =20
<bvar><BR> =20
<ci>x</ci><BR> =
</bvar><BR> =20
<apply><BR> =20
<bvar><BR> =20
<ci>x</ci><BR> =20
</bvar><BR> =20
<condition><BR> =20
<reln><BR> =20
<eq/><BR> =20
<ci>x</ci><BR>  =
; =20
<cn>0</cn><BR> =20
</reln><BR> =20
</condition><BR> =20
<cn>0</cn><BR> </apply><BR> =20
</lambda><BR> <!--If x>0 then +1--><BR> =20
<lambda><BR> =20
<bvar><BR> =20
<ci>x</ci><BR> =
</bvar><BR> =20
<apply><BR> =20
<bvar><BR> =20
<ci>x</ci><BR> =20
</bvar><BR> =20
<condition><BR> =20
<reln><BR> =20
<eq/><BR> =20
<ci>x</ci><BR>  =
; =20
<cn>0</cn><BR> =20
</reln><BR> =20
</condition><BR> =20
<cn>1</cn><BR> </apply><BR> =20
</lambda><BR></math><BR><BR>Thanks for your=20
help,<BR>Gerald.<BR><BR></FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>________________________________<BR>G=E9rald=20
QUINTANA<BR> <A=20
href=3D"mailto:gerald.quintana@ecl2000.ec-lyon.fr">gerald.quintana@ecl200=
0.ec-lyon.fr</A><BR> =20
<A=20
href=3D"http://www.multimania.com/gquintana">http://www.multimania.com/gq=
uintana</A></FONT></DIV></BODY></HTML>
Follow-Ups: