1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597
|
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html
SYSTEM "mathml.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Introduction</title><style type="text/css">
.egmeta {
color:#5555AA;font-style:italic;font-family:serif;font-weight:bold;
}
table.syntax {
font-size: 75%;
background-color: #DDDDDD;
border: thin solid;
}
table.syntax td {
border: solid thin;
}
table.syntax th {
text-align: left;
}
table.attributes td { padding-left:0.5em; padding-right:0.5em; }
table.attributes td.attname { white-space:nowrap; vertical-align:top;}
table.attributes td.attdesc { background-color:#F0F0FF; padding-left:2em; padding-right:2em}
th.uname {font-size: 50%; text-align:left;}
code { font-family: monospace; }
div.constraint,
div.issue,
div.note,
div.notice { margin-left: 2em; }
li p { margin-top: 0.3em;
margin-bottom: 0.3em; }
div.exampleInner pre { margin-left: 1em;
margin-top: 0em; margin-bottom: 0em}
div.exampleOuter {border: 4px double gray;
margin: 0em; padding: 0em}
div.exampleInner { background-color: #d5dee3;
border-top-width: 4px;
border-top-style: double;
border-top-color: #d3d3d3;
border-bottom-width: 4px;
border-bottom-style: double;
border-bottom-color: #d3d3d3;
padding: 4px; margin: 0em }
div.exampleWrapper { margin: 4px }
div.exampleHeader { font-weight: bold;
margin: 4px}
a.mainindex {font-weight: bold;}
li.sitem {list-style-type: none;}
.error { color: red }
div.mathml-example {border:solid thin black;
padding: 0.5em;
margin: 0.5em 0 0.5em 0;
}
div.strict-mathml-example {border:solid thin black;
padding: 0.5em;
margin: 0.5em 0 0.5em 0;
}
div.strict-mathml-example h5 {
margin-top: -0.3em;
margin-bottom: -0.5em;}
var.meta {background-color:green}
var.transmeta {background-color:red}
pre.mathml {padding: 0.5em;
background-color: #FFFFDD;}
pre.mathml-fragment {padding: 0.5em;
background-color: #FFFFDD;}
pre.strict-mathml {padding: 0.5em;
background-color: #FFFFDD;}
.minitoc { border-style: solid;
border-color: #0050B2;
border-width: 1px ;
padding: 0.3em;}
.attention { border-style: solid;
border-width: 1px ;
color: #5D0091;
background: #F9F5DE;
border-color: red;
margin-left: 1em;
margin-right: 1em;
margin-top: 0.25em;
margin-bottom: 0.25em; }
.attribute-Name { background: #F9F5C0; }
.method-Name { background: #C0C0F9; }
.IDL-definition { border-style: solid;
border-width: 1px ;
color: #001000;
background: #E0FFE0;
border-color: #206020;
margin-left: 1em;
margin-right: 1em;
margin-top: 0.25em;
margin-bottom: 0.25em; }
.baseline {vertical-align: baseline}
#eqnoc1 {width: 10%}
#eqnoc2 {width: 80%; text-align: center; }
#eqnoc3 {width: 10%; text-align: right; }
div.div1 {margin-bottom: 1em;}
.h3style {
text-align: left;
font-family: sans-serif;
font-weight: normal;
color: #0050B2;
font-size: 125%;
}
h4 { text-align: left;
font-family: sans-serif;
font-weight: normal;
color: #0050B2; }
h5 { text-align: left;
font-family: sans-serif;
font-weight: bold;
color: #0050B2; }
th {background: #E0FFE0;}
p, blockquote, h4 { font-family: sans-serif; }
dt, dd, dl, ul, li { font-family: sans-serif; }
pre, code { font-family: monospace }
a.termref {
text-decoration: none;
color: black;
}
.mathml-render {
font-family: serif;
font-size: 130%;
border: solid 4px green;
padding-left: 1em;
padding-right: 1em;
}
</style><link rel="stylesheet" type="text/css"
href="../../../StyleSheets/TR/W3C-REC.css" />
</head>
<body>
<h1><a id="intro"></a>1 Introduction
</h1>
<!-- TOP NAVIGATION BAR -->
<div class="minitoc">
Overview: <a href="Overview.xml.html">Mathematical Markup Language (MathML) Version 3.0</a><br class="html-compat" />
Next: 2 <a href="chapter2.xml.html">MathML Fundamentals</a><br class="html-compat" /><br class="html-compat" />1 <a href="chapter1.xml.html">Introduction</a><br class="html-compat" /> 1.1 <a href="chapter1.xml.html#intro.notation">Mathematics and its Notation</a><br class="html-compat" /> 1.2 <a href="chapter1.xml.html#intro.origin">Origins and Goals</a><br class="html-compat" /> 1.2.1 <a href="chapter1.xml.html#intro.goals">Design Goals of MathML</a><br class="html-compat" /> 1.3 <a href="chapter1.xml.html#intro.overview">Overview</a><br class="html-compat" /> 1.4 <a href="chapter1.xml.html#intro.example">A First Example</a><br class="html-compat" /></div>
<div class="div1">
<div class="div2">
<h2><a id="intro.notation"></a>1.1 Mathematics and its Notation
</h2>
<p>A distinguishing feature of mathematics is the use of a complex and
highly evolved system of two-dimensional symbolic notation. As
J. R. Pierce writes in his book on communication theory,
mathematics and its notation should not be viewed as one and the same
thing <a href="appendixh.xml.html#Pierce1961">[Pierce1961]</a>. Mathematical ideas can exist independently of
the notation that represents them. However, the relation between meaning
and notation is subtle, and part of the power of mathematics to describe
and analyze derives from its ability to represent and manipulate ideas in
symbolic form. The challenge before a Mathematical Markup Language (MathML)
in enabling mathematics on the World Wide Web
is to capture both notation and content (that is, its meaning) in such a way
that documents can utilize the highly evolved notation of written
and printed mathematics as well as the new potential for interconnectivity in
electronic media.
</p>
<p>Mathematical notation evolves constantly as people continue
to innovate in ways of approaching and expressing ideas. Even
the common notation of arithmetic has gone through an amazing
variety of styles, including many defunct ones advocated by leading
mathematical figures of their day <a href="appendixh.xml.html#Cajori1928">[Cajori1928]</a>. Modern
mathematical notation is the product of centuries of refinement, and
the notational conventions for high-quality typesetting are quite
complicated and subtle. For example, variables and letters which stand for
numbers are usually typeset today in a special mathematical italic
font subtly distinct from the usual text italic; this seems to have been
introduced in Europe in the late sixteenth century. Spacing around
symbols for operations such as +, -, × and / is slightly
different from that of text, to reflect conventions about operator
precedence that have evolved over centuries.
Entire books have been devoted to the conventions of
mathematical typesetting, from the alignment of superscripts and
subscripts, to rules for choosing parenthesis sizes, and on to
specialized notational practices for subfields of mathematics. The
manuals describing the nuances of present-day computer typesetting and
composition systems can run to hundreds of pages.
</p>
<p>Notational conventions in mathematics, and in printed text in general,
guide the eye and make printed expressions much easier to read and
understand. Though we usually take them for granted, we, as modern readers,
rely on
numerous conventions such as paragraphs, capital letters, font
families and cases, and even the device of decimal-like numbering of
sections such as is used in this document.
Such notational conventions are perhaps even more important
for electronic media, where one must contend with the difficulties of
on-screen reading. Appropriate standards coupled with computers
enable a broadening of access to mathematics beyond the world of
print. The markup methods for mathematics in use
just before the Web rose to prominence importantly included T<sub>E</sub>X
(also written <code>TeX</code>) <a href="appendixh.xml.html#Knuth1986">[Knuth1986]</a>
and approaches based on SGML (<a href="appendixh.xml.html#AAP-math">[AAP-math]</a>, <a href="appendixh.xml.html#Poppelier1992">[Poppelier1992]</a> and <a href="appendixh.xml.html#ISO-12083">[ISO-12083]</a>).
</p>
<p>It is remarkable how widespread the current
conventions of mathematical notation have become. The general
two-dimensional layout, and most of the same symbols, are used
in all modern mathematical communications,
whether the participants are, say, European, writing left-to-right,
or Middle-Eastern, writing right-to-left. Of course, conventions
for the symbols used, particularly those naming functions and
variables, may tend to favor a local language and script.
The largest variation from the most common is a form used in
some Arabic-speaking communities which lays out the entire
mathematical notation from right-to-left, roughly in mirror image
of the European tradition.
</p>
<p>However, there is more to putting mathematics on the Web
than merely finding ways of displaying traditional
mathematical notation in a Web browser. The Web represents a
fundamental change in the underlying metaphor for knowledge
storage, a change in which <em>interconnection</em>
plays a central role. It has become important to
find ways of communicating mathematics which facilitate
automatic processing, searching and indexing, and reuse in
other mathematical applications and contexts. With this
advance in communication technology, there is an opportunity
to expand our ability to represent, encode, and ultimately to
communicate our mathematical insights and understanding with
each other. We believe that MathML as specified below is an important step in
developing mathematics on the Web.
</p>
</div>
<div class="div2">
<h2><a id="intro.origin"></a>1.2 Origins and Goals
</h2>
<div class="div3">
<h3><a id="intro.goals"></a>1.2.1 Design Goals of MathML
</h3>
<p>MathML has been designed from the beginning with the following
ultimate goals in mind.
</p>
<p>MathML should ideally:
</p>
<ul>
<li>
<p>Encode mathematical material suitable for all educational
and scientific communication.
</p>
</li>
<li>
<p>Encode both mathematical notation and mathematical meaning.</p>
</li>
<li>
<p>Facilitate conversion to and from other mathematical
formats, both presentational and semantic. Output formats should include:
</p>
<ul>
<li>
<p>graphical displays</p>
</li>
<li>
<p>speech synthesizers</p>
</li>
<li>
<p>input for computer algebra systems</p>
</li>
<li>
<p>other mathematics typesetting languages, such as T<sub>E</sub>X
</p>
</li>
<li>
<p>plain text displays, e.g. VT100 emulators</p>
</li>
<li>
<p>international print media, including braille</p>
</li>
</ul>
<p>It is recognized that conversion to and from other notational
systems or media may entail loss of information in the process.
</p>
</li>
<li>
<p>Allow the passing of information intended for
specific renderers and applications.
</p>
</li>
<li>
<p>Support efficient browsing of lengthy expressions.</p>
</li>
<li>
<p>Provide for extensibility.</p>
</li>
<li>
<p>Be well suited to templates and other common techniques for editing formulas.</p>
</li>
<li>
<p>Be legible to humans, and simple for software to generate and process.</p>
</li>
</ul>
<p>No matter how successfully MathML achieves its goals as
a markup language, it is clear that MathML is useful only
if it is implemented well. The W3C Math Working
Group has identified a short list of additional implementation
goals. These goals attempt to describe concisely the minimal
functionality MathML rendering and processing software should
try to provide.
</p>
<ul>
<li>
<p>MathML expressions in HTML (and XHTML) pages should render
properly in popular Web browsers, in accordance with reader and author
viewing preferences, and at the highest quality possible given the
capabilities of the platform.
</p>
</li>
<li>
<p>HTML (and XHTML) documents containing MathML expressions should
print properly and at high-quality printer resolutions.
</p>
</li>
<li>
<p>MathML expressions in Web pages should be able to react to
user gestures, such those as with a mouse, and to coordinate
communication with other applications through the
browser.
</p>
</li>
<li>
<p>Mathematical expression editors and converters should be developed
to facilitate the creation of Web pages containing MathML
expressions.
</p>
</li>
</ul>
<p>The extent to which these goals are ultimately met depends on the
cooperation and support of browser vendors and other developers. The W3C
Math Working Group has continued to work with other working groups of the W3C,
and outside the W3C, to ensure that the
needs of the scientific community will be met.
MathML 2 and its implementations showed considerable progress in this area
over the situation that obtained at
the time of the MathML 1.0 Recommendation (April 1998) <a href="appendixh.xml.html#MathML1">[MathML1]</a>. MathML3 and the developing Web are expected to
allow much more.
</p>
</div>
</div>
<div class="div2">
<h2><a id="intro.overview"></a>1.3 Overview
</h2>
<p>MathML is designed as an `XML Application', that is,
it uses XML markup for describing mathematics.
A special aspect of MathML is that there are two main strains of markup:
Presentation markup, discussed in <a href="chapter3.xml.html">Chapter 3 Presentation Markup</a>,
is used to display mathematical expressions;
and Content markup, discussed in <a href="chapter4.xml.html">Chapter 4 Content Markup</a>,
is used to convey mathematical meaning.
Content markup is specified in particular detail.
This specification makes use of a format called Content Dictionaries,
which is also an application of XML.
This format has been developed by the
OpenMath Society, <a href="appendixg.xml.html#OpenMath2004">[OpenMath2004]</a> with the dictionaries being used by this specification involving joint development by the OpenMath Society and the W3C Math
Working Group.
</p>
<p>Fundamentals common to both strains of markup
are covered in <a href="chapter2.xml.html">Chapter 2 MathML Fundamentals</a>,
while the means for combining these strains,
as well as external markup, into single MathML objects
are discussed in <a href="chapter5.xml.html">Chapter 5 Mixing Markup Languages for Mathematical Expressions</a>.
How MathML interacts with applications is covered
in <a href="chapter6.xml.html">Chapter 6 Interactions with the Host Environment</a>.
Finally, a discussion of special symbols,
and issues regarding characters, entities and fonts,
is given in <a href="chapter7.xml.html">Chapter 7 Characters, Entities and Fonts</a>.
</p>
</div>
<div class="div2">
<h2><a id="intro.example"></a>1.4 A First Example
</h2>
<p>
The quadratic formula provides a
simple but instructive illustration of MathML markup.
</p>
<blockquote>
<p><img src="image/f1002.gif" alt="x = \frac{-b\pm\sqrt{b^2 - 4ac}}{2a}" /></p>
</blockquote>
<p>MathML offers two flavors of markup of this formula. The first is
the style which emphasizes the actual presentation of a formula, the
two-dimensional layout in which the symbols are arranged. An example
of this type is given just below. The second flavor
emphasizes the mathematical content and an example of it follows the first one.
</p>
<table>
<tr>
<td><pre class="mathml">
<mrow>
<mi>x</mi>
<mo>=</mo>
<mfrac>
<mrow>
<mrow>
<mo>-</mo>
<mi>b</mi>
</mrow>
<mo>&#xB1;<span style="color:#999900"><!--PLUS-MINUS SIGN--></span></mo>
<msqrt>
<mrow>
<msup>
<mi>b</mi>
<mn>2</mn>
</msup>
<mo>-</mo>
<mrow>
<mn>4</mn>
<mo>&#x2062;<span style="color:#999900"><!--INVISIBLE TIMES--></span></mo>
<mi>a</mi>
<mo>&#x2062;<span style="color:#999900"><!--INVISIBLE TIMES--></span></mo>
<mi>c</mi>
</mrow>
</mrow>
</msqrt>
</mrow>
<mrow>
<mn>2</mn>
<mo>&#x2062;<span style="color:#999900"><!--INVISIBLE TIMES--></span></mo>
<mi>a</mi>
</mrow>
</mfrac>
</mrow>
</pre></td>
<td class="mathml-render" valign="middle">
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>x</mi>
<mo>=</mo>
<mfrac>
<mrow>
<mrow>
<mo>-</mo>
<mi>b</mi>
</mrow>
<mo>±</mo>
<msqrt>
<mrow>
<msup>
<mi>b</mi>
<mn>2</mn>
</msup>
<mo>-</mo>
<mrow>
<mn>4</mn>
<mo>⁢</mo>
<mi>a</mi>
<mo>⁢</mo>
<mi>c</mi>
</mrow>
</mrow>
</msqrt>
</mrow>
<mrow>
<mn>2</mn>
<mo>⁢</mo>
<mi>a</mi>
</mrow>
</mfrac>
</mrow>
</math>
</td>
</tr>
</table>
<p>
Consider the superscript 2 in this formula. It represents the squaring operation
here, but the meaning of a superscript in other situations depends on
the context. A letter with a superscript can be used to signify a particular
component of a vector, or maybe the superscript just labels a different
type of some structure. Similarly two letters written one just after the
other could signify two variables multiplied together, as they do in the
quadratic formula, or they could be two letters making up the name of a
single variable. What is called Content Markup in MathML allows closer
specification of the mathematical meaning of many common formulas. The
quadratic formula given in this style of markup is as follows.
</p>
<table>
<tr>
<td><pre class="mathml">
<apply>
<eq/>
<ci>x</ci>
<apply>
<divide/>
<apply>
<plus/>
<apply>
<minus/>
<ci>b</ci>
</apply>
<apply>
<root/>
<apply>
<minus/>
<apply>
<power/>
<ci>b</ci>
<cn>2</cn>
</apply>
<apply>
<times/>
<cn>4</cn>
<ci>a</ci>
<ci>c</ci>
</apply>
</apply>
</apply>
</apply>
<apply>
<times/>
<cn>2</cn>
<ci>a</ci>
</apply>
</apply>
</apply>
</pre></td>
<td class="mathml-render" valign="middle">
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply>
<eq/>
<ci>x</ci>
<apply>
<divide/>
<apply>
<plus/>
<apply>
<minus/>
<ci>b</ci>
</apply>
<apply>
<root/>
<apply>
<minus/>
<apply>
<power/>
<ci>b</ci>
<cn>2</cn>
</apply>
<apply>
<times/>
<cn>4</cn>
<ci>a</ci>
<ci>c</ci>
</apply>
</apply>
</apply>
</apply>
<apply>
<times/>
<cn>2</cn>
<ci>a</ci>
</apply>
</apply>
</apply>
</math>
</td>
</tr>
</table>
</div>
</div>
<div class="minitoc">
Overview: <a href="Overview.xml.html">Mathematical Markup Language (MathML) Version 3.0</a><br class="html-compat" />
Next: 2 <a href="chapter2.xml.html">MathML Fundamentals</a></div>
</body>
</html>
|