72
sin
(
x
)
If you want to find the numerical value for any character you can use the Mathematica function ToCharacter
Code to generate the numerical value, and BaseForm to generate the hexadecimal form. For example, the unicode
value of a capital Alpha can be found as follows.
In[1]:=
BaseForm@ToCharacterCode@"A"D, 16D
Out[1]//BaseForm=
8391
16
<
Further information on the appropriate numerical values can be found at the MathML site, http://www.w3.org/TR/
MathML2/chapter6.html. Further information can also be found at the unicode site, http://www.unicode.org.
5.2.2 Generating MathML from webMathematica
Certain webMathematica applications generate results that contain mathematical expressions suitable for formatting
with MathML. This section shows how to generate MathML with webMathematica and take advantage of the
rendering techniques described in the previous section.
The main webMathematica documentation describes how MathML can be generated with MSPFormat using a
format style of MathMLForm. The following will format the expression expr into MathML.
MSPFormat[ expr, MathMLForm]
MathML comes in two different varieties: presentation MathML specifies the appearance of the MathML whereas
content MathML attempts to specify what the MathML means. Since MathML contains no general extension
mechanism, the amount of information that can be encoded with content MathML is limited. However, if presenta
tion MathML is generated from Mathematica, it will always work when sent back to Mathematica.
It is also possible to use other formatting styles such as StandardForm or TraditionalForm, in which case
the format type RawMathML should be selected, as shown here.
The following shows how to generate presentation MathML.
.
<
New Page 1
Comcast Web Hosting