<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" 
 "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="José Grimm" />
<title>Producing MathML with Tralics</title>
<link rel="stylesheet" href="tralics.css" />
<meta name="keywords" content="Tralics, XML, MathML, mathematics, LaTeX, HTML, Pdf" />
</head><body><h1>Producing MathML with Tralics</h1><p>French title: Produire du MathML avec Tralics</p><p> Author: José Grimm</p><p> Location: Sophia Antipolis</p><p>Inria Research Theme: THnum</p><p>Inria Research Report Number: 6181</p><p>Revision: 2</p><p> Team: Apics</p><p> Date: May 2007</p><p>Revised Date: 29 November 2007</p><p>Keywords: Tralics, XML, MathML, mathematics, LaTeX, HTML, Pdf.</p><p>French keywords: Tralics, XML, MathML, mathématiques, LaTeX, HTML, Pdf.</p><p>Note: The software and the documentation is available
at <a href="http://www-sop.inria.fr/apics/tralics">http://<!--PASS THROUGH allowbreak-->www-sop.<!--PASS THROUGH allowbreak-->inria.<!--PASS THROUGH allowbreak-->fr/<!--PASS THROUGH allowbreak-->apics/<!--PASS THROUGH allowbreak-->tralics</a>.</p><p>Author's email address: Jose.Grimm[at]sophia.inria.fr.</p><h2>Abstract</h2><p>The purpose of this paper is to show that it is possible to
translate almost every mathematical formula from LaTeX syntax to XML.
The document you are reading contains a great number of formulas extracted
from the TeXbook, the LaTeX companion, the MathML recommendation, and
translated into XML by <i>Tralics</i>; it is available in Pdf or HTML version.</p>
<p>The HTML version was produced using a very simple style sheet; mathematics are
left unchanged, and you need a MathML-aware browser, like Firefox, or
adequate plugins, and a set of fonts for the symbols or operators.
The Pdf version was obtained by use of <span class="sansserif">xmltex</span> (a
package by D. Carlisle that makes TeX an XML interpreter), and a great number
of modifications to the file <span class="sansserif">mathml2.xmt</span> (that interprets elements in
the MathML namespace). All files needed to produce this document are part of
the <i>Tralics</i> bundle (version 2.10 or more).</p>
<p>This document was compiled with the experimantal version 2.10.8, in which examples
in section <a href="#uid137" title="The connexion examples">4.1</a> should work fine.</p>
<h2>French Abstract</h2><p>Le but de ce papier est de démontrer qu´il est possible de
traduire presque toutes les formules de mathématiques de la syntaxe
LaTeX vers le langage XML. Le document que vous lisez contient un grand
nombre de formules extraites du TeXbook, du LaTeX companion, de la
recommandation MathML, et traduites en XML par le logiciel <i>Tralics</i>. Il est
disponible en HTML et en Pdf.</p>
<p>La version HTML est obtenue en utilisant une feuille de style assez simple,
qui laisse les formules de mathématiques inchangées; pour la lire, il
vous faut un navigateur ou un plugin qui sache interpréter le MathML et les
fontes associées pour les symboles et les opérateurs.
La version Pdf a été obtenue grâce au package
<span class="sansserif">xmltex</span> de D. Carlisle (qui fait de TeX un interprète XML),
et un grand nombre de modifications dans le fichier <span class="sansserif">mathml2.xmt</span>,
qui contient le code d´interprétation des mathématiques. Tous les fichiers
nécessaires pour obtenir ce document sont distribués avec le package
<i>Tralics</i> à partir de la version 2.10.</p>
<hr /><h1>Short Table of Contents</h1><p>
<br /><b>1. <a href="#uid1">Introduction</a></b>
<br /><b>2. <a href="#uid11">Examples from the TEXbook</a></b>
<br /><b>3. <a href="#uid62">Higher Mathematics, TLC2</a></b>
<br /><b>4. <a href="#uid128">Other Examples</a></b>
<br /><b>5. <a href="#uid141">Font tests</a></b>
<br /><b>6. <a href="#uid142">Examples from the MathML recommendation</a></b>
<br /><a href="#bibliography"><b>Bibliography</b></a>
<br /><a href="#tableofcontents"><b>Table of Contents</b></a></p>

<h1 id="uid1">1. Introduction</h1>
<p>The technical reports <a href="#bid0" title="Grimm2006">[6]</a> and <a href="#bid1" title="Grimm2006">[7]</a> describe
some features of the <i>Tralics</i> software, a LaTeX to XML translator,
and associated tools. In particular, we explain how the XML file
can be converted
to HTML, or to Pdf (using the excellent work of D. Carlisle
and S. Rahtz (<a href="#bid2" title="Rahtz2003">[10]</a>, <a href="#bid3" title="Carlisle, Goossens, Rahtz2000">[3]</a>, <a href="#bid4" title="Carlisle2000">[2]</a>).
One application is RalyX (Inria´s Annual Activity Report), where all math
formulas are converted to images before inclusion in the HTML document.</p>
<p>Recently, the cedram (Centre de diffusion de revues académiques de
mathématiques, <a href="http://www.cedram.org/">http://www.cedram.org/</a>)
has decided to convert the metadata of some collections (including the
Annales de l´institut Fourier) from LaTeX to HTML, <a href="#bid5" title="Bouche2006">[1]</a>. The
<i>Tralics</i> software has been adapted for this purpose, the idea being the
following: there are nowadays some browsers with a high quality math
renderer, where native MathML formulas are more readable than images;
thus the web site presents each document in two versions, neither of which
containing an image. By default you see something like
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>L</mi> <mn>1</mn> </msup><mrow><mo>(</mo><mi mathvariant="double-struck">T</mi><mo>)</mo></mrow></mrow></math></span>, and the alternate version contains
<samp>$L^1(\mathbb{T})$</samp>. This looks like the source
code, but non-trivial operations are performed, as explained below.</p>
<p>There is a torture file that comes with <i>Tralics</i>; the purpose is to make sure
that no error occurs while compiling expressions like <samp>\cfrac12</samp>, but it is
hard to check that the result is correctly translated. For this reason, we
decided to create a sample file containing, not only all examples of the
LaTeX companion second edition <a href="#bid6" title="Mittelbach, Goossens, Braams, Carlisle, Rowley2004">[9]</a>, but also those of the
TeXbook <a href="#bid7" title="Knuth1984">[8]</a>, or the MathML recommendation <a href="#bid8" title="Carlisle, Ion, Miner, Poppelier (editors)2001">[4]</a>,
and to convert it to HTML.
Translation is correct if the HTML page prints correctly. This file is
available on the Web, we hope that it will convince you to use the <i>Tralics</i> software, and put your math documents on the Web. We have inserted comments
explaining why some constructions do not work, if you have a solution or
suggestions, please send mail to the author. Additional examples are welcome.</p>
<p>We also wanted to make sure that the RalyX still works: more than one hundred
teams use <i>Tralics</i> once a year, asking sometimes silly questions, like: how to
add color to the text, or a page break; the answer is generally either `not yet
implemented, wait for next year´, or `incompatible with the Raweb semantics´.
This document uses colors and page breaks, as explained below; no modification
to the translator was needed, but, unless the style sheets are modified, these
additions are ignored.</p>
<p>For these reasons we converted the whole
document to Pdf. This was not trivial, especially because of a lack of font
families (this will be discussed later). Note also the format of the
document: in the HTML version all metadata (author, title, abstract, etc.) are
placed at the start of the document by the XML to HTML processor. In the case
of the Pdf version, this was not so easy: something as trivial as
<samp>\newpage</samp> <samp>\null</samp> <samp>\vskip-2cm</samp> is impossible to express in XSL/FO
(said otherwise, all my attempts failed), and I had to add a new element
<tt class="txt">&lt;vspace&gt;</tt> for this purpose.</p>
<p>The source file <span class="sansserif">testmath.tex</span> is part of the <i>Tralics</i> distribution;
translating it requires <i>Tralics</i> version 2.10, and some packages,
like <span class="sansserif">amsmath</span> (do not try to include the file <span class="sansserif">amsmath.sty</span>,
this is not possible; you must use <span class="sansserif">amsmath.plt</span> instead).
In most cases we show the TeX source before the translation. There are some
exceptions, for instance we leave as an exercise to find out how we solved
the exercises of the TeXbook.
Examples of the LaTeX companion <a href="#bid6" title="Mittelbach, Goossens, Braams, Carlisle, Rowley2004">[9]</a> are available on
the CD that comes with the book.</p>
<p>The XML file was converted into HTML, math formulas are left unchanged.
We explain in some cases that what we see is not what we expected. Here
<i>FL</i> means Firefox on Linux (unless specified, it is Firefox 2.0,
on Fedora Core 3) and <i>FM</i> means Firefox on MacIntosh (unless
specified, it is Firefox 2.0 on a PowerBook G4, MacOS 10.4).
We also tested Amaya, bot <i>AM</i> (version 9.55 on Mac) and <i>AL</i>
(version 9.99 on Linux FC5).</p>
<p>Installing math fonts for use with a web browser is not always easy:
they are installed as explained on the Mozilla web page, but this page
seems unclear to me: on one Linux machine, Firefox is happy with the fonts,
but uses the wrong font when printing, on another one, Firefox says that fonts
Math1, Math2 and Math4 are missing, but the printed result is correct.</p>

<h2 id="uid2">1.1. Special features</h2>
<p>You are not supposed to insert page breaks in your document, but if you put
twenty tables in a row, you will get error messages of the form: to many
unprocessed floats, and then you are in trouble. In this case, the only remedy
is to insert some <samp>\clearpage</samp> commands; in this document, we used the
<samp>\xbox</samp> command in order to produce an empty <tt class="txt">&lt;clearpage&gt;</tt> element in the
XML document, and we adapted the style sheets.</p>
<p>There is a <samp>\clearpage</samp> before this section; you will not notice it because
there is a natural page break there. On the other hand, it is likely that you
will see the page breaks in Chapter three, but there is no easy solution:
there is no text in the current chapter to fill the gaps.
In order to improve the layout, we changed the ordering of
the figures, starting with tables <a href="#uid107">3</a> and <a href="#uid108">4</a>, that
occupy a full page, and inserting smaller tables after that. Moreover,
table <a href="#uid108">4</a> was too big to fit on a page (the baseline in this
document is much larger than in the LaTeX companion) and we split it into
two parts. We are happy since this gives 8 full pages with floats, and a
single bad page, the last text page of the chapter.</p>
<p>Concerning colors, you can put any attribute you like to any object
(there is no attempt to validate the document against some DTD).
In the case of math formulas, identifiers, numbers and operators accept
some common attributes including font information and colors, these are
currently ignored when converting XSL/FO into Pdf (but this can easily be
changed, it suffices to add some lines
of code to the <span class="sansserif">raweb-cfg.sty</span> file. However, the color attribute is
honored for the <tt class="txt">&lt;mstyle&gt;</tt> element (all symbols appearing in the LaTeX companion for which no Unicode element has been found are replaced by a
<span style="color:#E00000" color="#F00000">red</span>
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mstyle xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" color="#D00000"><mi>X</mi></mstyle></math></span> using this method).
For the text case, the
<tt class="txt">&lt;inline&gt;</tt> element is translated into <tt class="txt">&lt;span&gt;</tt> element in the HTML and a
<tt class="txt">&lt;fo:inline&gt;</tt> element in the Pdf, all attributes are copied; in the previous
sentence we have used</p>
<pre class="latex-code">\xbox{inline}{\XMLaddatt{color}{#F00000}\XMLaddatt{style}{color:#E00000}red}
$\mathbox{mstyle}[color][\#D00000]{X}$
\def\UnimplementedOperator{\mathbox{mstyle}[color][red]{X}}
</pre>
<p class="nofirst noindent">This example shows that you can use a named color, or one defined in RGB
syntax, using six hexadecimal digits; use sharp or backslash sharp as
indicated here.</p>

<h2 id="uid3">1.2. Compiling the example file</h2>
<p>These are the options you can use when compiling the file
<span class="sansserif">testmath.tex</span></p>
<pre class="latex-code">-noentnames -trivialmath=7 -leftquote=2018 -rightquote=2019 -nozerowidthspace
</pre>
<p class="nofirst noindent">The first option says that you prefer <tt class="txt">&amp;#x21DA;</tt> to <tt class="txt">&amp;Lleftarrow;</tt>
(this is useless if you use an XSLT processor to convert the XML document).
Option `trivialmath=7´ says that simple math expressions are translated as
text; option `mathvariant´ says that a command like <samp>\mathbb</samp> should add a
mathvariant attribute; these two options set initial values to some counters,
they are not needed, because the associated file <span class="sansserif">testmath.ult</span>
resets them to the values needed here. Following options are
problematic. If you say `nostraightquotes´, this changes the translation of
the apostrophe character to character U+B4, this option produces a nice HTML
file, but the Pdf is not so nice. Here we modify left and right quotes to
U+2018 and U+2019.
If you say `zerowidthspace´, <i>Tralics</i> inserts an
invisible character in verbatim mode, that is supposed to inhibit ligatures
when converting the XML file into Pdf file, the trouble is that this character
is shown as a normal space by my browser in certain cases. In <i>Tralics</i> version 2.10, the translation changed: the old behavior can be obtained by
saying <tt>-nozerowidthelt</tt>. Otherwise an element is created, this element
is transformed into a zerowidthspace character when the document is converted
to Pdf, is omitted when the document is converted to HTML. This means that the
option is useless.</p>
<p>The following files are needed for the compilation:</p>
<ul>
<li id="uid4"><p class="nofirst noindent">a configuration file, that
behaves like the default one; namely one that defines the root element to be
<tt class="txt">&lt;std&gt;</tt> and the dtd file to be <span class="sansserif">classes.dtd</span>;</p>
</li>
<li id="uid5"><p class="nofirst noindent">the source file <span class="sansserif">testmath.tex</span>, and the associated
<span class="sansserif">testmath.ult</span> file;</p>
</li>
<li id="uid6"><p class="nofirst noindent">the class file <span class="sansserif">report.clt</span> (and the auxiliary file
<span class="sansserif">std.clt</span>);</p>
</li>
<li id="uid7"><p class="nofirst noindent">the standard math packages <span class="sansserif">amsmath.plt</span>, <span class="sansserif">amscd.plt</span>,
<span class="sansserif">delarray.plt</span>, <span class="sansserif">amsxtra.plt</span>, <span class="sansserif">amsgen.plt</span>,
<span class="sansserif">amsbsy.plt</span>, <span class="sansserif">amsopn.plt</span>;</p>
</li>
<li id="uid8"><p class="nofirst noindent">the file <span class="sansserif">fancyvrb.plt</span> for the special verbatim mode; and</p>
</li>
<li id="uid9"><p class="nofirst noindent">the file <span class="sansserif">RR.plt</span> for the meta data.</p>
</li></ul>
<p>When converting the document to HTML, we use the `xsltproc´ program. The style
sheet is <span class="sansserif">testmathhtml.xsl</span>; this is a short style sheet; but it
needs <span class="sansserif">cls.xsl</span> and <span class="sansserif">RR.xsl</span>. Conversion to XSL/FO uses
<span class="sansserif">RRfo.xsl</span> as style sheet, it needs <span class="sansserif">clsfo.xsl</span>, that
includes <span class="sansserif">raweb3-param.xsl</span>, <span class="sansserif">rrrafo3.xsl</span>,
<span class="sansserif">clspages.xsl</span>, <span class="sansserif">RRfosimple.xsl</span>,
<span class="sansserif">clsfotable.xsl</span>. Note: this list is likely to change; we have
to separate clearly the RA (activity report), the RR (research report) and CLS
(standard classes). All these files are in the directory <span class="sansserif">xml</span> or
<span class="sansserif">styles</span> of the <i>Tralics</i> distribution, but the XSLT processor wants
to see them in the current directory.</p>
<p>Conversion from XSL/FO to pdf is achieved by compiling the file
<span class="sansserif">wtestmath.tex</span> containing the following lines</p>
<pre class="latex-code"><span class="prenumber">1</span> \def\xmlfile{testmath.fo}
<span class="prenumber">2</span> \def\LastDeclaredEncoding{T1}
<span class="prenumber">3</span> \input{xmltex.tex}
<span class="prenumber">4</span> \end{document}
</pre>
<p class="nofirst noindent">It requires <span class="sansserif">xmltex.tex</span> and other files from the xmltex
distribution, so that you must install these files first.
There are some bugs or incompatibilities in
the fotex distribution, so that you must use the two files
<span class="sansserif">fotex.xmt</span>, <span class="sansserif">fotex.sty</span> as distributed in the xml
directory. Additional required files are <span class="sansserif">fotex-add.sty</span>,
<span class="sansserif">raweb-uni.sty</span>, and <span class="sansserif">fotex.cfg</span>.
Finally the file <span class="sansserif">wtestmath.cfg</span> should be a
symbolic link to <span class="sansserif">raweb-cfg.sty</span>.</p>

<h2 id="uid10">1.3. Overview of math mode</h2>
<p>The main change between <i>Tralics</i> version 2.9 and 2.10 concerns handling of
math formulas. Two steps are required for processing them: first a tree is
created, after that, it is converted. This mechanism is similar to the
behavior of TeX, but some details are not yet implemented, and some
information is lost (for instance, <samp>\mathbin</samp> is a command that says that
the object that follows should be of type `binary´; this information is used
by the program, but the resulting XML tree does not contain this information
(we cannot simply add an attribute pair class=bin to the object).</p>
<p>When <i>Tralics</i> sees a math formula, it constructs recursively a tree, also
called a math list.
The action after a token has been read is the following:
If the token is expandable (a user defined command for instance), expansion
takes place, this can read some tokens, it can add new tokens to the stream
(to be read again).
If the token is a mode-independent command it will be executed (for instance,
you can change the meaning of some commands). Otherwise, the token is added
to the tree, but there are some exceptions. The easy case is when a whole
subtree is read, for instance when the token is a left brace, a <samp>\begin</samp>
command, etc. In some cases, the execution level is incremented (said
otherwise, the
behavior is the same as a group defined by braces in non-math mode). In a case
of <samp>\begin</samp>, a token list is read, and the behavior depends on whether
this is a user defined environment (normal expansion rules apply), or a
built-in one. Most built-in environments are matrix-like, and each cell is
evaluated in a group; this has the following consequence: if the math formula
contains an unwanted ampersand character, an error will be signaled when that
character tries to finish the cell-group (because the current group is of type
math), and an error is signaled at the end of the math expression (because the
ampersand character has added a second group after the first, a cell-group,
where the end-of-math character expected a math-group). A third error will be
signaled later: when the tree is converted into a MathML object, <i>Tralics</i> may
complain about non-math tokens in the expression.
A font change command like <samp>\mathbb</samp>
changes the internal state and adds two tokens to the tree, one that selects
the blackboard font (before the argument) and a token that selects the current
font (after the argument).</p>
<p>In the case of <samp>$L^1(\mathbb{T})$</samp>
the tree has eight nodes. One is a
subtree, containing the argument of the command. They are six
characters, and two commands (select double-struck font, or select normal
font). When the tree is converted into a MathML expression, some nodes are
converted to basic XML elements (the letters), some are ignored (the font
change commands), and others are used to construct an XML tree.
We shall see later that parentheses, braces, and tokens like that can induce
<tt class="txt">&lt;mrow&gt;</tt> elements; translation of the hat character is non-obvious, because
MathML provides <tt class="txt">&lt;msub&gt;</tt> and <tt class="txt">&lt;mover&gt;</tt> as possible translations; a command
like <samp>\nolimits</samp> placed after a token is an indication for the translation
of the hat that follows. When the tree is converted the current style is looked
at, this quantity depends on the position in the tree (the style of the
numerator of a fraction or the style of an exponent after the hat is smaller
than the current style, while the style of the numerator of a <samp>\cfrac</samp> is
always text style) or the presence of style change commands. Some commands
depend on the style (for instance <samp>\mathchoice</samp>) and are conditionally
interpreted.</p>
<p>The characters in the formula above are of type letter (L, T), or type
non-letter (the digit, or the parentheses), or other (the hat). An interesting
question is:
what happens if the single L (or any other character) is replaced by a double
one? A first answer is that this just adds a new token to the tree (there is
a special case: <samp>^^1</samp> is a non-obvious way to represents the
character q). Spaces are ignored, so that doubling them has no effect.
Two hat characters in a row signal an error (assume for instance that a space
between them inhibits the double-hat feature mentioned above). Two consecutive
new line characters are replaced by <samp>\par</samp>, this is illegal.
Characters that are neither letters nor digits generally translate to a
<tt class="txt">&lt;mo&gt;</tt> element. No attempt is made to convert two plus characters into a
double plus character (some people use `:=´ as an operator, meaning `is equal
by definition´, and expect no white space between the two
characters). In a case like <samp>\sqrt</samp><samp>\frac</samp><samp>{1}</samp><samp>{2}</samp>,
where we have two consecutive commands that take arguments, the argument of
the root operator is the fraction operator, not the full fraction (this
expression is accepted by LaTeX, as an unexpected consequence of the
implemented of the fraction operator that provides that braces that delimit
the argument of the square root, it is rejected by <i>Tralics</i>).</p>
<p>The superscript and subscript operators (generally associated to
hat and underscore characters) are hybrid commands: most commands, for
instance <samp>\frac</samp>, are prefix commands (they come before their arguments), a
few commands, like <samp>\over</samp>, are infix operators (the first argument is
before the operator). In the case of hat, there is one argument after the
operator, but the operator acts on the kernel that is to its left
(in the example the kernel is L, but a kernel can have an index and an
exponent, so that the order of tokens can be: kernel, underscore, index, hat,
exponent).
Translation of character L is a <tt class="txt">&lt;mi&gt;</tt> element; <i>Tralics</i> tries to
converts LL or TT into a single element, according to the following rule.
Assume that <samp>\T</samp> is defined to be <samp>\mathbb</samp><samp>{T}</samp> and <samp>\TT</samp>
is defined to be <samp>\mathbb</samp><samp>{TT}</samp>. Then <samp>\TT</samp> produces a single
element with two characters, while <samp>\T</samp><samp>\T</samp> produces two elements with a
single character. On the other hand, a strange rule of MathML says that the
font used for a <tt class="txt">&lt;mi&gt;</tt> element (that lacks font attributes) depends on the
number of characters in it; for this reason, in a formula like <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mi>y</mi></mrow></math></span>, the
translation is a sequence of two <tt class="txt">&lt;mi&gt;</tt> elements, without attributes,
containing a single character (implicit product). In a case like <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mn xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">17</mn></math></span>, a
single <tt class="txt">&lt;mn&gt;</tt> element is constructed, because this represents a number (in a
case like <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msub xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi> <mn>12</mn> </msub></math></span>, an implicit comma could be added in the case where the
expression refers to row 1 column 2 of the matrix <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">x</mi></math></span>; however, do not expect
such a behavior in a near future). The source code of the expression above is
<samp>$x_<samp>{12}</samp>$</samp>. Without the braces, the translation is <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>x</mi> <mn>1</mn> </msub><mn>2</mn></mrow></math></span>
(if you do not see the difference, there is a bug somewhere).</p>
<p>If the internal counter <samp>\@nomathml</samp> is negative, the tree is converted to
a character string in a trivial manner; in a case like
<samp>\cfrac12</samp>, you will see <samp>\cfrac</samp><samp>{1}</samp><samp>{2}</samp>, because we
have a sub-tree with two nodes (the two arguments of the command). In reality,
the command takes an optional argument, and its value is printed only if it is
not empty. In a case like <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>L</mi> <mn>1</mn> </msup><mrow><mo>(</mo><mi mathvariant="double-struck">T</mi><mo>)</mo></mrow></mrow></math></span>, you will see two font changes
as explained above. If you want to see the characters <samp>\mathbb</samp> there are
two solutions: the easy one works only since version 2.10:
<i>Tralics</i> inserts in the tree all commands that behave like
<samp>\relax</samp>; these commands are ignored when converting the tree into a MathML
expression, but the name is used otherwise; thus <samp>\let</samp> <samp>\mathbb</samp>
<samp>\relax</samp> does the job. Otherwise, it suffices to redefine <samp>\mathbb</samp> in
order to expand to the desired string (using <samp>\string</samp> for instance).
Note: since version 2.10, a font change command that takes an argument defines
a semi-simple group, by inserting <samp>\begingroup</samp> and <samp>\endgroup</samp> commands.</p>

<h1 id="uid11">2. Examples from the TEXbook</h1>
<h2 id="uid12">2.1. Typing math formulas, TB 16</h2>
<p>The TeX book starts slowly; first Knuth explains that math formulas are
enclosed in special math brackets, dollar signs. He also says that
spaces are ignored in math mode.</p>
<pre class="latex-code"><span class="prenumber">1</span> `$x$', `$2$', `$ x$', `$ 2 $',
<span class="prenumber">2</span> `$(x + y)/(x - y)$', `$(x+y) / (x-y)$'
</pre>
<p class="nofirst noindent">Easy formulas: `<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">x</mi></math></span>´, `<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mn xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">2</mn></math></span>´, `<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">x</mi></math></span>´, `<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mn xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">2</mn></math></span>´,
`<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mi>x</mi><mo>+</mo><mi>y</mi><mo>)</mo><mo>/</mo><mo>(</mo><mi>x</mi><mo>-</mo><mi>y</mi><mo>)</mo></mrow></math></span>´, `<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mi>x</mi><mo>+</mo><mi>y</mi><mo>)</mo><mo>/</mo><mo>(</mo><mi>x</mi><mo>-</mo><mi>y</mi><mo>)</mo></mrow></math></span>´.</p>
<p>We show here some Greek letters, and some other symbols:</p>
<pre class="latex-code"><span class="prenumber">3</span> $\Gamma, \nu,\kappa$,
<span class="prenumber">4</span> $\phi,\emptyset, \epsilon,\in,\approx,\mapsto$
<span class="prenumber">5</span> $(\phi,\theta,\epsilon,\rho)$,
<span class="prenumber">6</span> $(\varphi,\vartheta,\varepsilon,\varrho)$,
<span class="prenumber">7</span> $$\alpha, \beta, \gamma, \delta.$$
</pre>
<p>Greek letters <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>&#915;</mi><mo>,</mo><mi>&#957;</mi><mo>,</mo><mi>&#954;</mi></mrow></math></span>, and other symbols:
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>&#966;</mi><mo>,</mo><mi>&#8709;</mi><mo>,</mo><mi>&#1013;</mi><mo>,</mo><mo>&#8712;</mo><mo>,</mo><mo>&#8776;</mo><mo>,</mo><mo>&#8614;</mo></mrow></math></span>;
standard Greek<a id="uid13" href="#note1" title="AM does not show the epsilon"><small>(note: </small>&#10163;<small>)</small></a> letters, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mi>&#966;</mi><mo>,</mo><mi>&#952;</mi><mo>,</mo><mi>&#1013;</mi><mo>,</mo><mi>&#961;</mi><mo>)</mo></mrow></math></span>,
and variants <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mi>&#981;</mi><mo>,</mo><mi>&#977;</mi><mo>,</mo><mi>&#949;</mi><mo>,</mo><mi>&#1009;</mi><mo>)</mo></mrow></math></span>,
a display math formula:</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>&#945;</mi><mo>,</mo><mi>&#946;</mi><mo>,</mo><mi>&#947;</mi><mo>,</mo><mi>&#948;</mi><mo>.</mo></mrow></math></div>
<pre class="latex-code"><span class="prenumber">8</span> \begingroup
<span class="prenumber">9</span> \catcode`\*=3
<span class="prenumber">10</span> *x^2*, \( x_2\), \begin{math}\Sigma\end{math}
<span class="prenumber">11</span> **A** \[ B\] \begin{displaymath} C \end{displaymath}
<span class="prenumber">12</span> \endgroup
</pre>
<p>We show here that any character of category code 3 can be used as math
delimiter:
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi> <mn>2</mn> </msup></math></span>, as well as two alternative ways introduced by LaTeX:
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msub xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi> <mn>2</mn> </msub></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">&#931;</mi></math></span>. We show that display math can be
entered by doubling the character of category 3 (actual rules are more
complicated, see the TeXBook), or using a LaTeX environment (additional
environments will be explained in later chapters), or using brackets.
Note that brackets are very useful, because they are so easy to type.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">A</mi></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">B</mi></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">C</mi></math></div>
<p class="nofirst noindent"><b>Exercise 16.1:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>&#947;</mi><mo>+</mo><mi>&#957;</mi><mo>&#8712;</mo><mi>&#915;</mi></mrow></math></span>.</p>
<p><b>Exercise 16.2:</b> <samp>\le</samp>,<samp>\ge</samp>,<samp>\ne</samp>,
<samp>\leq</samp>,<samp>\geq</samp>, and <samp>\neq</samp>:
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8804;</mo><mo>,</mo><mo>&#8805;</mo><mo>,</mo><mo>&#8800;</mo></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8804;</mo><mo>,</mo><mo>&#8805;</mo><mo>,</mo><mo>&#8800;</mo></mrow></math></span>.</p>
<p>Complex formulas with superscripts<sup>(up high)</sup> and subscripts
<sub>(down low)</sub>.</p>
<pre class="latex-code"><span class="prenumber">13</span> $x^2$, $x_2$, $2^x$, $x^2y^2$, $x ^ 2y ^ 2$, $x_2y_2$, $_2F_3$,
<span class="prenumber">14</span> $x^{2y}$, $2^{2^x}$, $2^{2^{2^x}}$, $y_{x_2}$, $y_{x^2}$.
</pre>
<p class="nofirst noindent">Translation <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi> <mn>2</mn> </msup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msub xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi> <mn>2</mn> </msub></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>2</mn> <mi>x</mi> </msup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>x</mi> <mn>2</mn> </msup><msup><mi>y</mi> <mn>2</mn> </msup></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>x</mi> <mn>2</mn> </msup><msup><mi>y</mi> <mn>2</mn> </msup></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>x</mi> <mn>2</mn> </msub><msub><mi>y</mi> <mn>2</mn> </msub></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mrow></mrow> <mn>2</mn> </msub><msub><mi>F</mi> <mn>3</mn> </msub></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi> <mrow><mn>2</mn><mi>y</mi></mrow> </msup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>2</mn> <msup><mn>2</mn> <mi>x</mi> </msup> </msup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>2</mn> <msup><mn>2</mn> <msup><mn>2</mn> <mi>x</mi> </msup> </msup> </msup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msub xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi> <msub><mi>x</mi> <mn>2</mn> </msub> </msub></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msub xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi> <msup><mi>x</mi> <mn>2</mn> </msup> </msub></math></span>.</p>
<p>Consider now the following two formulas:</p>
<pre class="latex-code"><span class="prenumber">15</span> $((x^2)^3)^4$,  ${({(x^2)}^3)}^4$.
</pre>
<p class="nofirst noindent">Translation of the first formula</p>
<pre class="xml-code"><span class="prenumber">16</span> &lt;formula type='inline'&gt;
<span class="prenumber">17</span>   &lt;math xmlns='http://www.w3.org/1998/Math/MathML'&gt;
<span class="prenumber">18</span>     &lt;mrow&gt;
<span class="prenumber">19</span>       &lt;mo&gt;(&lt;/mo&gt;
<span class="prenumber">20</span>       &lt;mo&gt;(&lt;/mo&gt;
<span class="prenumber">21</span>       &lt;msup&gt;&lt;mi&gt;x&lt;/mi&gt; &lt;mn&gt;2&lt;/mn&gt; &lt;/msup&gt;
<span class="prenumber">22</span>       &lt;msup&gt;&lt;mo&gt;)&lt;/mo&gt; &lt;mn&gt;3&lt;/mn&gt; &lt;/msup&gt;
<span class="prenumber">23</span>       &lt;msup&gt;&lt;mo&gt;)&lt;/mo&gt; &lt;mn&gt;4&lt;/mn&gt; &lt;/msup&gt;
<span class="prenumber">24</span>     &lt;/mrow&gt;
<span class="prenumber">25</span>   &lt;/math&gt;
<span class="prenumber">26</span> &lt;/formula&gt;
</pre>
<p class="nofirst noindent">Translation of the second formula</p>
<pre class="xml-code"><span class="prenumber">27</span> &lt;formula type='inline'&gt;
<span class="prenumber">28</span>   &lt;math xmlns='http://www.w3.org/1998/Math/MathML'&gt;
<span class="prenumber">29</span>     &lt;msup&gt;
<span class="prenumber">30</span>       &lt;mrow&gt;&lt;mo&gt;(&lt;/mo&gt;
<span class="prenumber">31</span>         &lt;msup&gt;
<span class="prenumber">32</span>           &lt;mrow&gt;
<span class="prenumber">33</span>             &lt;mo&gt;(&lt;/mo&gt;
<span class="prenumber">34</span>             &lt;msup&gt;&lt;mi&gt;x&lt;/mi&gt; &lt;mn&gt;2&lt;/mn&gt; &lt;/msup&gt;
<span class="prenumber">35</span>             &lt;mo&gt;)&lt;/mo&gt;
<span class="prenumber">36</span>           &lt;/mrow&gt;
<span class="prenumber">37</span>           &lt;mn&gt;3&lt;/mn&gt;
<span class="prenumber">38</span>         &lt;/msup&gt;
<span class="prenumber">39</span>         &lt;mo&gt;)&lt;/mo&gt;
<span class="prenumber">40</span>       &lt;/mrow&gt;
<span class="prenumber">41</span>       &lt;mn&gt;4&lt;/mn&gt;
<span class="prenumber">42</span>     &lt;/msup&gt;
<span class="prenumber">43</span>   &lt;/math&gt;
<span class="prenumber">44</span> &lt;/formula&gt;
</pre>
<p class="nofirst noindent">The current <i>Tralics</i> uses some hacks, so that the translation is actually
different. You will get first <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mo>(</mo><msup><mi>x</mi> <mn>2</mn> </msup><msup><mo>)</mo> <mn>3</mn> </msup><msup><mo>)</mo> <mn>4</mn> </msup></mrow></math></span>, second
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>(</mo><msup><mrow><mo>(</mo><msup><mi>x</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mn>3</mn> </msup><mo>)</mo></mrow> <mn>4</mn> </msup></math></span>, third
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>(</mo><msup><mrow><mo>(</mo><msup><mi>x</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mn>3</mn> </msup><mo>)</mo></mrow> <mn>4</mn> </msup></math></span>, and fourth <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>(</mo><msup><mrow><mo>(</mo><msup><mi>x</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mn>3</mn> </msup><mo>)</mo></mrow> <mn>4</mn> </msup></math></span>. Here the first two formulas
correspond to the XML fragment shown above (they were produced by prefixing
each parenthesis with <samp>\mathord</samp>, and after that we have the
actual translation. The MathML
recommendation says that some operators are <i>stretchy</i>, so that the width
and height can depend on the context. This is not the case in <span class="sansserif">xmltex</span>, so
that, in the Pdf version, all parentheses have the same size. The <samp>\mathop</samp>
prefix tells <i>Tralics</i> to not consider parentheses as stretchy, so no hack is
applied. We shall not explain the hack here; moreover we modified it in
version 2.10.8. We originally wrote <i>
All parentheses have the same size in the pdf version, the same is true for
the HTML
version in the first formula. Now, the <tt class="txt">&lt;mrow&gt;</tt> elements delimit a scope,
so that inner parentheses are smaller than outer parentheses (but only for
HTML, second formula); note that the placement of the exponent depend on the
context, so that, in the second formula, all three superscripts at placed at
different positions.
In the case of the first formula, placement of the
exponent depends only on the the size of the parentheses (hence, in the Pdf
version, they should be aligned, in the HTML version, they are not).</i>
Firefox on Mac shows the following: all superscript are aligned. Big
parentheses are used but for case 2. Amaya shows only small parentheses,
scripts are not aligned, but this is hard to see.</p>
<p>The MathML recommendation says that the second alternative is
better; but Knuth says:
&#8220;The first alternative is preferable, because it is much easier to type, and
it is just as easy to read.&#8221;</p>
<pre class="latex-code"><span class="prenumber">45</span> `${}_2F_3$', `${_2}F_3$', `${_2F_3}$'
</pre>
<p><b>Exercise 16.3:</b> Three ways to have an empty kernel:
`<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mrow></mrow> <mn>2</mn> </msub><msub><mi>F</mi> <mn>3</mn> </msub></mrow></math></span>´, `<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mrow></mrow> <mn>2</mn> </msub><msub><mi>F</mi> <mn>3</mn> </msub></mrow></math></span>´, `<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mrow></mrow> <mn>2</mn> </msub><msub><mi>F</mi> <mn>3</mn> </msub></mrow></math></span>´. The translation is the same in all
cases because of the following two rules: if a math list starts with a
subscript or superscript operator, an empty math list is added before, it
serves as
kernel (thus, braces in the first example are useless);
a math list is packaged by putting it in a <tt class="txt">&lt;mrow&gt;</tt> element, unless
the list has one element (in the second example, there are two tokens between
the braces, converted to a single <tt class="txt">&lt;msub&gt;</tt> element, the math list has a
single element, braces are useless). In these two cases, the main math list
has two <tt class="txt">&lt;msub&gt;</tt> elements, and a <tt class="txt">&lt;mrow&gt;</tt> is added. In the last case, the
main math list has a single element, a <tt class="txt">&lt;mrow&gt;</tt>, thus, no <tt class="txt">&lt;mrow&gt;</tt> is
added and braces are useless.</p>
<pre class="latex-code"><span class="prenumber">46</span> `$x+_2F_3$' and `$x+{}_2F_3$'.
</pre>
<p class="nofirst noindent">Effect of braces after plus sign:
`<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><msub><mo>+</mo> <mn>2</mn> </msub><msub><mi>F</mi> <mn>3</mn> </msub></mrow></math></span>´ and `<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>+</mo><msub><mrow></mrow> <mn>2</mn> </msub><msub><mi>F</mi> <mn>3</mn> </msub></mrow></math></span>´. The MathML recommendation says that the distance
between the plus sign and the letter F should be the same in both cases; in the
first case, index 2 is attached to the plus sign, in the second case to the
letter F (<i>AM</i> shows both formulas with index attached to F).</p>
<pre class="latex-code"><span class="prenumber">47</span> ${x_2}_3$, $\displaystyle {\sum}'$
</pre>
<p>Note that an <tt class="txt">&lt;mrow&gt;</tt> element is added for a
math list with a single element in the case where it is followed by a
subscript or a subscript. Reason one: in a case like <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msub xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msub><mi>x</mi> <mn>2</mn> </msub></mrow> <mn>3</mn> </msub></math></span>, you will get
an error if braces are omitted; in the same fashion, an error is signaled
(when converting to Pdf) if <tt class="txt">&lt;mrow&gt;</tt> is missing. Reason two, in a case like
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mstyle xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" scriptlevel="0" displaystyle="true"><msup><mrow><mo>&#8721;</mo></mrow> <mo>'</mo> </msup></mstyle></math></span>, the apostrophe is not placed above the sum if there
is a <tt class="txt">&lt;mrow&gt;</tt> (the sum operator has type Op, but not the group, unless there
is a <samp>\mathop</samp> before it).</p>
<p><b>Exercise 16.4:</b> Double superscript, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msup><mi>x</mi> <mi>y</mi> </msup></mrow> <mi>z</mi> </msup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi> <msup><mi>y</mi> <mi>z</mi> </msup> </msup></math></span>.</p>
<pre class="latex-code"><span class="prenumber">48</span> $x^2_3$, $x_3^2$, $x^{31415}_{92}+\pi$, $x_{y^a_b}^{z_c^d}$.
<span class="prenumber">49</span> $P_2^2$ and $P{}_2^2$.
</pre>
<p class="nofirst noindent">Simultaneous superscripts and subscripts <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msubsup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi> <mn>3</mn> <mn>2</mn> </msubsup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msubsup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi> <mn>3</mn> <mn>2</mn> </msubsup></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mi>x</mi> <mn>92</mn> <mn>31415</mn> </msubsup><mo>+</mo><mi>&#960;</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msubsup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi> <mrow><msubsup><mi>y</mi> <mi>b</mi> <mi>a</mi> </msubsup></mrow> <msubsup><mi>z</mi> <mi>c</mi> <mi>d</mi> </msubsup> </msubsup></math></span>.</p>
<p>Vertical alignment: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msubsup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>P</mi> <mn>2</mn> <mn>2</mn> </msubsup></math></span> and <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>P</mi><msubsup><mrow></mrow> <mn>2</mn> <mn>2</mn> </msubsup></mrow></math></span>. In the first case, scripts are
attached to the letter P, and alignment can depend on the slant of the letter.
(Amaya has extra space in the second formula).</p>
<pre class="latex-code"><span class="prenumber">50</span> `$\prime$', $y_1^\prime$, $y_2^{\prime\prime}$, $y_3^{\prime\prime\prime}$,
<span class="prenumber">51</span> $f'[g(x)]g'(x)$, $y_1'+y_2''$, $y'_1+y''_2$, $y'''_3+g'^2$
</pre>
<p class="nofirst noindent">Primes and shorthand:
`<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">&#8242;</mo></math></span>´, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msubsup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi> <mn>1</mn> <mo>&#8242;</mo> </msubsup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msubsup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi> <mn>2</mn> <mrow><mo>&#8242;</mo><mo>&#8242;</mo></mrow> </msubsup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msubsup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi> <mn>3</mn> <mrow><mo>&#8242;</mo><mo>&#8242;</mo><mo>&#8242;</mo></mrow> </msubsup></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>f</mi> <mo>&#8242;</mo> </msup><mrow><mo>[</mo><mi>g</mi><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mo>]</mo></mrow><msup><mi>g</mi> <mo>&#8242;</mo> </msup><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mi>y</mi> <mn>1</mn> <mo>&#8242;</mo> </msubsup><mo>+</mo><msubsup><mi>y</mi> <mn>2</mn> <mrow><mo>&#8242;</mo><mo>&#8242;</mo></mrow> </msubsup></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mi>y</mi> <mn>1</mn> <mo>&#8242;</mo> </msubsup><mo>+</mo><msubsup><mi>y</mi> <mn>2</mn> <mrow><mo>&#8242;</mo><mo>&#8242;</mo></mrow> </msubsup></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mi>y</mi> <mn>3</mn> <mrow><mo>&#8242;</mo><mo>&#8242;</mo><mo>&#8242;</mo></mrow> </msubsup><mo>+</mo><msup><mi>g</mi> <mrow><mo>&#8242;</mo><mn>2</mn></mrow> </msup></mrow></math></span>.
In the code shown here, the character used as delimiter for XML attributes is
character U+39, the quotes around the math formulas are U+60 and U+B4 (this
character can be changed via an option of the program, in verbatim mode it is
always U+39, straight quote).
The
prime character used in the formula is U+2032. This is not the right character.
Thus, in <i>Tralics</i> 2.9.5, translation of prime changed, it is now
character U+39. The same formula is now:
`<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">'</mo></math></span>´, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msubsup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi> <mn>1</mn> <mo>'</mo> </msubsup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msubsup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi> <mn>2</mn> <mrow><mo>'</mo><mo>'</mo></mrow> </msubsup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msubsup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi> <mn>3</mn> <mrow><mo>'</mo><mo>'</mo><mo>'</mo></mrow> </msubsup></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>f</mi> <mo>'</mo> </msup><mrow><mo>[</mo><mi>g</mi><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mo>]</mo></mrow><msup><mi>g</mi> <mo>'</mo> </msup><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mi>y</mi> <mn>1</mn> <mo>'</mo> </msubsup><mo>+</mo><msubsup><mi>y</mi> <mn>2</mn> <mrow><mo>'</mo><mo>'</mo></mrow> </msubsup></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mi>y</mi> <mn>1</mn> <mo>'</mo> </msubsup><mo>+</mo><msubsup><mi>y</mi> <mn>2</mn> <mrow><mo>'</mo><mo>'</mo></mrow> </msubsup></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mi>y</mi> <mn>3</mn> <mrow><mo>'</mo><mo>'</mo><mo>'</mo></mrow> </msubsup><mo>+</mo><msup><mi>g</mi> <mrow><mo>'</mo><mn>2</mn></mrow> </msup></mrow></math></span>. It is unclear
whether this is the good solution. It seems that Firefox uses the same font
metrics as TeX, i.e., a very large prime character that has a normal size
when used at script size, while Amaya uses a normal size prime, that is small
when used as a superscript. In the case of f-prime, the slant of the letter is
not taken into account by Amaya, and the prime sign is hard to see.</p>
<pre class="latex-code"><span class="prenumber">52</span> $x\varprime y^\varprime, x\Prime y^\Prime,
<span class="prenumber">53</span> x\tprime y^\tprime,x\bprime y^\bprime,x\qprime y^\qprime$
</pre>
<p class="nofirst noindent">The amsmath package provides the symbols shown above; as you can see (at least
with FM), these characters are not meant
to be used as an exponent:
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>&#8242;</mo><msup><mi>y</mi> <mo>&#8242;</mo> </msup><mo>,</mo><mi>x</mi><mo>&#8243;</mo><msup><mi>y</mi> <mo>&#8243;</mo> </msup><mo>,</mo><mi>x</mi><mo>&#8244;</mo><msup><mi>y</mi> <mo>&#8244;</mo> </msup><mo>,</mo><mi>x</mi><mo>&#8245;</mo><msup><mi>y</mi> <mo>&#8245;</mo> </msup><mo>,</mo><mi>x</mi><mo>&#8279;</mo><msup><mi>y</mi> <mo>&#8279;</mo> </msup></mrow></math></span>.
Note that <samp>\qprime</samp> is unkown to Amaya, and the prime subscript in the
following exercice is hard to see.</p>
<p><b>Exercise 16.5:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>F</mi> <mo>'</mo> </msup><mrow><mo>(</mo><mi>w</mi><mo>,</mo><mi>z</mi><mo>)</mo></mrow><mo>=</mo><mi>&#8706;</mi><mi>F</mi><mrow><mo>(</mo><mi>w</mi><mo>,</mo><mi>z</mi><mo>)</mo></mrow><mo>/</mo><mi>&#8706;</mi><mi>z</mi></mrow></math></span> and <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>F</mi> <mo>'</mo> </msub><mrow><mo>(</mo><mi>w</mi><mo>,</mo><mi>z</mi><mo>)</mo></mrow><mo>=</mo><mi>&#8706;</mi><mi>F</mi><mrow><mo>(</mo><mi>w</mi><mo>,</mo><mi>z</mi><mo>)</mo></mrow><mo>/</mo><mi>&#8706;</mi><mi>w</mi></mrow></math></span>.</p>
<pre class="latex-code"><span class="prenumber">54</span> \let\none\mmlnone
<span class="prenumber">55</span> $R_i{}^{jk}{}_l$ versus $\mathbox{mmultiscripts}{Ri\none\none jk \none l\none}$
</pre>
<p><b>Exercise 16.6:</b>
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>R</mi> <mi>i</mi> </msub><msup><mrow></mrow> <mrow><mi>j</mi><mi>k</mi></mrow> </msup><msub><mrow></mrow> <mi>l</mi> </msub></mrow></math></span> versus <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mmultiscripts xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>R</mi><mi>i</mi><none></none><none></none><mi>j</mi><mi>k</mi><none></none><mi>l</mi><none></none></mmultiscripts></math></span>
(MathML example, section 3.4.7.2, only second index raised).</p>
<pre class="latex-code"><span class="prenumber">56</span> $\sqrt 2$, $\sqrt{x+2}$, $\underline4$, $\overline{x+y}$,
<span class="prenumber">57</span> $\overline x+ \overline y$, $x^{\underline n}$, $x^{\overline{m+n}}$,
<span class="prenumber">58</span> $\sqrt{x^3+\sqrt\alpha}$
</pre>
<p class="nofirst noindent">Translation <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msqrt xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>2</mn></msqrt></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msqrt xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mi>x</mi><mo>+</mo><mn>2</mn></mrow></msqrt></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munder xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>4</mn> <mo>&#818;</mo></munder></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mi>x</mi><mo>+</mo><mi>y</mi></mrow> <mo>¯</mo></mover></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mover><mi>x</mi> <mo>¯</mo></mover><mo>+</mo><mover><mi>y</mi> <mo>¯</mo></mover></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi> <munder><mi>n</mi> <mo>&#818;</mo></munder> </msup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi> <mover><mrow><mi>m</mi><mo>+</mo><mi>n</mi></mrow> <mo>¯</mo></mover> </msup></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msqrt xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msup><mi>x</mi> <mn>3</mn> </msup><mo>+</mo><msqrt><mi>&#945;</mi></msqrt></mrow></msqrt></math></span>.
There are problems with underline and overline on <i>FM</i>. Vertical
position is not always good, and the length is sometimes incorrect. On the
fifth formula, rules are sometimes invisible in the printed version.
There is a text version in <i>Tralics</i>:
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munder xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtext>Mfoo</mtext> <mo>&#818;</mo></munder></math></span>, <span style="text-decoration:underline">Tfoo</span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtext>Mfoo</mtext> <mo>¯</mo></mover></math></span>, <span style="text-decoration:overline">Tfoo</span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munder><mtext>Mfoo</mtext> <mo>&#818;</mo></munder> <mo>¯</mo></mover></math></span>, <span style="text-decoration:overline"><span style="text-decoration:underline">Tfoo</span></span>.</p>
<pre class="latex-code"><span class="prenumber">59</span> $\root 3 \of 2$, $\root n \of {x^n + y^n}$, $\root n+1 \of a$,
<span class="prenumber">60</span> $\sqrt[3]{2}$, $\sqrt[n]{x^n + y^n}$, $\sqrt[n+1]a$, `$\sqrt[3]{~~}$'.
</pre>
<p class="nofirst noindent">Translation
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mroot xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>2</mn> <mn>3</mn></mroot></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mroot xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msup><mi>x</mi> <mi>n</mi> </msup><mo>+</mo><msup><mi>y</mi> <mi>n</mi> </msup></mrow> <mi>n</mi></mroot></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mroot xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>a</mi> <mrow><mi>n</mi><mo>+</mo><mn>1</mn></mrow></mroot></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mroot xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>2</mn> <mn>3</mn></mroot></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mroot xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msup><mi>x</mi> <mi>n</mi> </msup><mo>+</mo><msup><mi>y</mi> <mi>n</mi> </msup></mrow> <mi>n</mi></mroot></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mroot xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>a</mi> <mrow><mi>n</mi><mo>+</mo><mn>1</mn></mrow></mroot></math></span>, `<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mroot xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace></mrow> <mn>3</mn></mroot></math></span>´.</p>
<pre class="latex-code"><span class="prenumber">61</span> $\sqrt{\mathstrut a} + \sqrt{\mathstrut d} + \sqrt{\mathstrut y}$,
<span class="prenumber">62</span> $\sqrt{a} + \sqrt{d} + \sqrt{y}$,
<span class="prenumber">63</span> $\overline{a} + \overline{d} + \overline{y}$,
<span class="prenumber">64</span> $\overline{\mathstrut a} + \overline{\mathstrut d} + \overline{\mathstrut y}$.
</pre>
<p class="nofirst noindent">Translation <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msqrt><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mi>a</mi></mrow></msqrt><mo>+</mo><msqrt><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mi>d</mi></mrow></msqrt><mo>+</mo><msqrt><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mi>y</mi></mrow></msqrt></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msqrt><mi>a</mi></msqrt><mo>+</mo><msqrt><mi>d</mi></msqrt><mo>+</mo><msqrt><mi>y</mi></msqrt></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mover><mi>a</mi> <mo>¯</mo></mover><mo>+</mo><mover><mi>d</mi> <mo>¯</mo></mover><mo>+</mo><mover><mi>y</mi> <mo>¯</mo></mover></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mover><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mi>a</mi></mrow> <mo>¯</mo></mover><mo>+</mo><mover><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mi>d</mi></mrow> <mo>¯</mo></mover><mo>+</mo><mover><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mi>y</mi></mrow> <mo>¯</mo></mover></mrow></math></span>.</p>
<p><b>Exercise 16.7:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>10</mn> <mn>10</mn> </msup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>2</mn> <mrow><mi>n</mi><mo>+</mo><mn>1</mn></mrow> </msup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>(</mo><mi>n</mi><mo>+</mo><mn>1</mn><mo>)</mo></mrow> <mn>2</mn> </msup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msqrt xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mn>1</mn><mo>-</mo><msup><mi>x</mi> <mn>2</mn> </msup></mrow></msqrt></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mi>w</mi><mo>+</mo><mover><mi>z</mi> <mo>¯</mo></mover></mrow> <mo>¯</mo></mover></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msubsup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>p</mi> <mn>1</mn> <msub><mi>e</mi> <mn>1</mn> </msub> </msubsup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msub xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>a</mi> <msub><mi>b</mi> <msub><mi>c</mi> <msub><mi>d</mi> <mi>e</mi> </msub> </msub> </msub> </msub></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mroot xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msubsup><mi>h</mi> <mi>n</mi> <mrow><mo>'</mo><mo>'</mo></mrow> </msubsup><mrow><mo>(</mo><mi>&#945;</mi><mi>x</mi><mo>)</mo></mrow></mrow> <mn>3</mn></mroot></math></span>.</p>
<p><b>Exercise 16.8:</b> If<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>=</mo><mi>y</mi></mrow></math></span>,then <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">x</mi></math></span> is equal to <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi><mo>.</mo></mrow></math></span> (this exercise says what you
should not do).</p>
<p><b>Exercise 16.9:</b> Deleting an element from an <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">n</mi></math></span>-tuple leaves an <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mi>n</mi><mo>-</mo><mn>1</mn><mo>)</mo></mrow></math></span>-tuple.</p>
<p><b>Exercise 16.10:</b> Letters with descenders are Qfgjpqy.</p>
<pre class="latex-code"><span class="prenumber">65</span> $x+y-z$, $x+y*z$, $x*y/z$
</pre>
<p class="nofirst noindent">Basic binary operators: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>+</mo><mi>y</mi><mo>-</mo><mi>z</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>+</mo><mi>y</mi><mo>*</mo><mi>z</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>*</mo><mi>y</mi><mo>/</mo><mi>z</mi></mrow></math></span>.</p>
<pre class="latex-code"><span class="prenumber">66</span> $x\times y\cdot z$, $x\circ y\bullet z$, $x\cup y\cap z$,
<span class="prenumber">67</span> $x\sqcup y\sqcap z$, $x\vee y\wedge z$, $x\pm y \mp z$.
<span class="prenumber">68</span> Aliases   $x\land y\lor z$.
</pre>
<p class="nofirst noindent">Many more binary operators
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>×</mo><mi>y</mi><mo>·</mo><mi>z</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>&#8728;</mo><mi>y</mi><mo>&#8226;</mo><mi>z</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>&#8746;</mo><mi>y</mi><mo>&#8745;</mo><mi>z</mi></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>&#8852;</mo><mi>y</mi><mo>&#8851;</mo><mi>z</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>&#8744;</mo><mi>y</mi><mo>&#8743;</mo><mi>z</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>±</mo><mi>y</mi><mo>&#8723;</mo><mi>z</mi></mrow></math></span>.
Aliases <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>&#8743;</mo><mi>y</mi><mo>&#8744;</mo><mi>z</mi></mrow></math></span>.</p>
<pre class="latex-code"><span class="prenumber">69</span> $x=+1$, $3.142-$, $(D*)$
<span class="prenumber">70</span> $x=\mathmo[form][prefix]{+}1$
<span class="prenumber">71</span> $3.142\mathmo[form][prefix]{-}$
<span class="prenumber">72</span> $(D\mathmi[mathvariant][normal]{*})$
<span class="prenumber">73</span> $(D\mathmo[lspace][0][rspace][0]{*})$
</pre>
<p class="nofirst noindent">Binary as ordinary symbols: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>=</mo><mo>+</mo><mn>1</mn></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>3</mn><mo>.</mo><mn>142</mn><mo>-</mo></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mi>D</mi><mo>*</mo><mo>)</mo></mrow></math></span>.
The HTML version is slightly different from the TeX version.
You can declare the plus sign as prefix operator, this gives
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>=</mo><mo form="prefix">+</mo><mn>1</mn></mrow></math></span>, you can define the minus sign as prefix
operator, this gives <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>3</mn><mo>.</mo><mn>142</mn><mo form="prefix">-</mo></mrow></math></span>. Removing the space around
the star is more complicated, a solution consists of using an identifier in
upright variant like this <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mi>D</mi><mi mathvariant="normal">*</mi><mo>)</mo></mrow></math></span>, or by setting
the lspace and rspace attributes to zero:
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mi>D</mi><mo rspace="0" lspace="0">*</mo><mo>)</mo></mrow></math></span>.</p>
<pre class="latex-code"><span class="prenumber">74</span> $K_n^+,K_n^-$, $z^*_{ij}$, $g^\circ\mapsto g^\bullet$, $f^*(x)\cap f_*(y)$
</pre>
<p class="nofirst noindent">Binary operators in superscripts
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mi>K</mi> <mi>n</mi> <mo>+</mo> </msubsup><mo>,</mo><msubsup><mi>K</mi> <mi>n</mi> <mo>-</mo> </msubsup></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msubsup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>z</mi> <mrow><mi>i</mi><mi>j</mi></mrow> <mo>*</mo> </msubsup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>g</mi> <mo>&#8728;</mo> </msup><mo>&#8614;</mo><msup><mi>g</mi> <mo>&#8226;</mo> </msup></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>f</mi> <mo>*</mo> </msup><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mo>&#8745;</mo><msub><mi>f</mi> <mo>*</mo> </msub><mrow><mo>(</mo><mi>y</mi><mo>)</mo></mrow></mrow></math></span>.</p>
<p><b>Exercise 16.11:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>z</mi> <mrow><mo>*</mo><mn>2</mn></mrow> </msup></math></span> and <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mi>h</mi> <mo>*</mo> <mo>'</mo> </msubsup><mrow><mo>(</mo><mi>z</mi><mo>)</mo></mrow></mrow></math></span>.</p>
<pre class="latex-code"><span class="prenumber">75</span> $x=y&gt;z$, $x:=y$, $x\le y\ne z$, $x\sim y\simeq z$, $x\equiv y\not\equiv z$,
<span class="prenumber">76</span> $x\subset y\subseteq z$
</pre>
<p class="nofirst noindent"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>=</mo><mi>y</mi><mo>&gt;</mo><mi>z</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>:</mo><mo>=</mo><mi>y</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>&#8804;</mo><mi>y</mi><mo>&#8800;</mo><mi>z</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>&#8764;</mo><mi>y</mi><mo>&#8771;</mo><mi>z</mi></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>&#8801;</mo><mi>y</mi><mstyle color="red"><mi>X</mi></mstyle><mo>&#8801;</mo><mi>z</mi></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>&#8834;</mo><mi>y</mi><mo>&#8838;</mo><mi>z</mi></mrow></math></span>. In the Pdf version there is no space between the
colon and the equals sign, but the HTML version shows some, because the rules
are not the same for TeX and MathML. The best solution would be to use a
single operator instead of two consecutive ones; the user can define a command
<samp>\coloneq</samp> that behaves like colon-eq in normal TeX, or <i>Tralics</i> could be
modified in order to recognise sequences like this. Translation of <samp>\not</samp> is
problematic: in this document we consider it as an undefined operator, and you
see a red X. We should add rules like: <samp>\not=</samp> should give <samp>\ne</samp>.</p>
<pre class="latex-code"><span class="prenumber">77</span> $f(x,y;z)$, $f:A\to B$, $f\colon A\to B$
<span class="prenumber">78</span> %\def\colon{\mathmo[lspace][0]{:}}
</pre>
<p class="nofirst noindent">Punctuation <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>f</mi><mo>(</mo><mi>x</mi><mo>,</mo><mi>y</mi><mo>;</mo><mi>z</mi><mo>)</mo></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>f</mi><mo>:</mo><mi>A</mi><mo>&#8594;</mo><mi>B</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>f</mi><mo lspace="0pt">:</mo><mi>A</mi><mo>&#8594;</mo><mi>B</mi></mrow></math></span>. Note that <samp>\colon</samp> is
a colon with <span class="sansserif">lspace</span> = `0pt´, but the attribute is ignored in the Pdf
version. It seems that Amaya uses a zero lspace by default.</p>
<pre class="latex-code"><span class="prenumber">79</span> $12,345x$, $12{,}245x$, $\mathcn{12,345}x$, $\mathmn{12,345}x$
</pre>
<p class="nofirst noindent"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>12</mn><mo>,</mo><mn>345</mn><mi>x</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>12</mn><mo>,</mo><mn>245</mn><mi>x</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><cn base="10" definitionURL="" encoding="">12,345</cn><mi>x</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>12,345</mn><mi>x</mi></mrow></math></span>. The translation
of the first two expressions is the same, braces are useless here. A silly
bug of my F browser: the second digit of the first number disappears; this does
not happen if the number is not the first word of a paragraph (this is why the
sentence starts with a number). You should use
one of the last two variants if you want the sequence of digits plus the comma
to be considered as a number.</p>
<p><b>Exercise 16.12:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>3</mn><mo>·</mo><mn>1416</mn></mrow></math></span>, but <samp>\mathmn</samp><samp>{3^^b71416}</samp> gives
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mn xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">3·1416</mn></math></span> (less space in the HTML version).</p>
<pre class="latex-code"><span class="prenumber">80</span> $\hat a$, $\check a$, $\tilde a$, $\acute a$, $\grave a$, $\dot a$,
<span class="prenumber">81</span> $\ddot a$, $\breve a$, $\bar a$, $\vec a$
<span class="prenumber">82</span> \def\ihat{{\hat \imath}} \def\jhat{{\hat\jmath}} $\ihat$, $\jhat$
</pre>
<p><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" accent="true"><mi>a</mi> <mo>^</mo></mover></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" accent="true"><mi>a</mi> <mo>&#711;</mo></mover></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" accent="true"><mi>a</mi> <mo>&#732;</mo></mover></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" accent="true"><mi>a</mi> <mo>´</mo></mover></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" accent="true"><mi>a</mi> <mo>`</mo></mover></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" accent="true"><mi>a</mi> <mo>&#729;</mo></mover></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" accent="true"><mi>a</mi> <mo>¨</mo></mover></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" accent="true"><mi>a</mi> <mo>&#728;</mo></mover></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" accent="true"><mi>a</mi> <mo>¯</mo></mover></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" accent="true"><mi>a</mi> <mo>&#8594;</mo></mover></math></span>,
  <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" accent="true"><mo>&#305;</mo> <mo>^</mo></mover></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" accent="true"><mo>j</mo> <mo>^</mo></mover></math></span>.
Character <samp>\jmath</samp> is a normal j, because there is no dotless j in most
fonts. There is also a problem with the rendering of grave accents on FM.</p>
<pre class="latex-code"><span class="prenumber">83</span> $\hat{I+M}$, $\bar z+ \overline z$, $\widehat x, \widetilde x$,
<span class="prenumber">84</span> $\widehat{xy}, \widetilde{xy}$
<span class="prenumber">85</span> $\widehat{xy}, \widetilde{xy}$
<span class="prenumber">86</span> $\widehat{xyz}, \widetilde{xyz}$
<span class="prenumber">87</span> % $\ghat\in{(H^{\pi_1^{-1}})}' -&gt; Ex16.13 below
</pre>
<p class="nofirst noindent">Large accents
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" accent="true"><mrow><mi>I</mi><mo>+</mo><mi>M</mi></mrow> <mo>^</mo></mover></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mover accent="true"><mi>z</mi> <mo>¯</mo></mover><mo>+</mo><mover><mi>z</mi> <mo>¯</mo></mover></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mover accent="true"><mi>x</mi> <mo>^</mo></mover><mo>,</mo><mover accent="true"><mi>x</mi> <mo>&#732;</mo></mover></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mover accent="true"><mrow><mi>x</mi><mi>y</mi></mrow> <mo>^</mo></mover><mo>,</mo><mover accent="true"><mrow><mi>x</mi><mi>y</mi></mrow> <mo>&#732;</mo></mover></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mover accent="true"><mrow><mi>x</mi><mi>y</mi></mrow> <mo>^</mo></mover><mo>,</mo><mover accent="true"><mrow><mi>x</mi><mi>y</mi></mrow> <mo>&#732;</mo></mover></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mover accent="true"><mrow><mi>x</mi><mi>y</mi><mi>z</mi></mrow> <mo>^</mo></mover><mo>,</mo><mover accent="true"><mrow><mi>x</mi><mi>y</mi><mi>z</mi></mrow> <mo>&#732;</mo></mover></mrow></math></span>. As you can see, there is no difference
between wide and non-wide operators. My browser (AM as well as FM) shows a small hat, and a
variable length tilde. For the Pdf version, we have decided to use the
variable size variant.</p>
<p><b>Exercise 16.13:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>e</mi> <mrow><mo>-</mo><msup><mi>x</mi> <mn>2</mn> </msup></mrow> </msup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>D</mi><mo>&#8764;</mo><msup><mi>p</mi> <mi>&#945;</mi> </msup><mi>M</mi><mo>+</mo><mi>l</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mover accent="true"><mi>g</mi> <mo>^</mo></mover><mo>&#8712;</mo><msup><mrow><mo>(</mo><msup><mi>H</mi> <msubsup><mi>&#960;</mi> <mn>1</mn> <mrow><mo>-</mo><mn>1</mn></mrow> </msubsup> </msup><mo>)</mo></mrow> <mo>'</mo> </msup></mrow></math></span>,
(braces added),
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mover accent="true"><mi>g</mi> <mo>^</mo></mover><mo>&#8712;</mo><msup><mrow><mo>(</mo><msup><mi>H</mi> <msubsup><mi>&#960;</mi> <mn>1</mn> <mrow><mo>-</mo><mn>1</mn></mrow> </msubsup> </msup><mo>)</mo></mrow> <mo>'</mo> </msup></mrow></math></span> (without braces). In <i>Tralics</i> 2.11, there shuld
be no difference between the version with and without braces.</p>

<h2 id="uid14">2.2. More about Math, TB 17</h2>
<pre class="latex-code"><span class="prenumber">88</span> $$ {1\over 2}\qquad {\rm and}\qquad {n+1 \over 3} \qquad {\rm and}\qquad {n+1
<span class="prenumber">89</span>   \choose 3}\qquad {\rm and}\qquad \sum_{n=1}^3Z_n^2. \label{eq17.1}$$
<span class="prenumber">90</span> \[ \frac{1}{2}\qquad \text{and}\qquad \frac{n+1}{3} \qquad \text{and}\qquad
<span class="prenumber">91</span> \binom{n+1}{3}\qquad \text{and}\qquad \sum_{n=1}^3Z_n^2.\label{eq17.2}\]
</pre>
<p class="nofirst noindent">Example of vertical alignment. Translation of the first three expressions is a
<tt class="txt">&lt;mfrac&gt;</tt> element, subexpressions are in text style (normal size). In the
case of the last expression scripts are in script style (small size) and we
have a <tt class="txt">&lt;munderover&gt;</tt> element for the sum (it is an operator with limits in
display style) and a <tt class="txt">&lt;msubsup&gt;</tt> element for the Z (that is not an operator).</p>
<div class="mathdisplay"><table width="100%" id="uid15"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mn>1</mn> <mn>2</mn></mfrac><mspace width="2.em"></mspace><mi> and </mi><mspace width="2.em"></mspace><mfrac><mrow><mi>n</mi><mo>+</mo><mn>1</mn></mrow> <mn>3</mn></mfrac><mspace width="2.em"></mspace><mi> and </mi><mspace width="2.em"></mspace><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mrow><mi>n</mi><mo>+</mo><mn>1</mn></mrow> <mn>3</mn></mfrac></mfenced><mspace width="2.em"></mspace><mi> and </mi><mspace width="2.em"></mspace><munderover><mo>&#8721;</mo> <mrow><mi>n</mi><mo>=</mo><mn>1</mn></mrow> <mn>3</mn> </munderover><msubsup><mi>Z</mi> <mi>n</mi> <mn>2</mn> </msubsup><mo>.</mo></mrow></math></td><td class="eqno">(1)</td></tr></table></div>
<p class="nofirst noindent">The same, using LaTeX syntax</p>
<div class="mathdisplay"><table width="100%" id="uid16"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mn>1</mn> <mn>2</mn></mfrac><mspace width="2.em"></mspace><mtext>and</mtext><mspace width="2.em"></mspace><mfrac><mrow><mi>n</mi><mo>+</mo><mn>1</mn></mrow> <mn>3</mn></mfrac><mspace width="2.em"></mspace><mtext>and</mtext><mspace width="2.em"></mspace><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mrow><mi>n</mi><mo>+</mo><mn>1</mn></mrow> <mn>3</mn></mfrac></mfenced><mspace width="2.em"></mspace><mtext>and</mtext><mspace width="2.em"></mspace><munderover><mo>&#8721;</mo> <mrow><mi>n</mi><mo>=</mo><mn>1</mn></mrow> <mn>3</mn> </munderover><msubsup><mi>Z</mi> <mi>n</mi> <mn>2</mn> </msubsup><mo>.</mo></mrow></math></td><td class="eqno">(2)</td></tr></table></div>
<pre class="latex-code"><span class="prenumber">92</span> \[{x+y^2\over k+1},\qquad {x+y^2\over k}+1,\qquad
<span class="prenumber">93</span> x+{y^2\over k}+1,\qquad x+{y^2\over k+1},\qquad x+y^{2\over k+1}\]
<span class="prenumber">94</span> \[\frac{x+y^2}{k+1},\qquad \frac{x+y^2}{k}+1,\qquad
<span class="prenumber">95</span> x+\frac{y^2}{k}+1,\qquad x+\frac{y^2}{k+1},\qquad x+y^{\frac{2}{k+1}}\]
</pre>
<p class="nofirst noindent">Single over. The only difference in these expressions is the placement of the
braces.</p>
<div class="mathdisplay"><table width="100%" id="uid17"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mrow><mi>x</mi><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow> <mrow><mi>k</mi><mo>+</mo><mn>1</mn></mrow></mfrac><mo>,</mo><mspace width="2.em"></mspace><mfrac><mrow><mi>x</mi><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow> <mi>k</mi></mfrac><mo>+</mo><mn>1</mn><mo>,</mo><mspace width="2.em"></mspace><mi>x</mi><mo>+</mo><mfrac><msup><mi>y</mi> <mn>2</mn> </msup> <mi>k</mi></mfrac><mo>+</mo><mn>1</mn><mo>,</mo><mspace width="2.em"></mspace><mi>x</mi><mo>+</mo><mfrac><msup><mi>y</mi> <mn>2</mn> </msup> <mrow><mi>k</mi><mo>+</mo><mn>1</mn></mrow></mfrac><mo>,</mo><mspace width="2.em"></mspace><mi>x</mi><mo>+</mo><msup><mi>y</mi> <mfrac><mn>2</mn> <mrow><mi>k</mi><mo>+</mo><mn>1</mn></mrow></mfrac> </msup><mo>.</mo></mrow></math></td><td class="eqno">(3)</td></tr></table></div>
<p class="nofirst noindent">LaTeX style: this uses a command with two arguments, that behaves without
surprise.</p>
<div class="mathdisplay"><table width="100%" id="uid18"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mrow><mi>x</mi><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow> <mrow><mi>k</mi><mo>+</mo><mn>1</mn></mrow></mfrac><mo>,</mo><mspace width="2.em"></mspace><mfrac><mrow><mi>x</mi><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow> <mi>k</mi></mfrac><mo>+</mo><mn>1</mn><mo>,</mo><mspace width="2.em"></mspace><mi>x</mi><mo>+</mo><mfrac><msup><mi>y</mi> <mn>2</mn> </msup> <mi>k</mi></mfrac><mo>+</mo><mn>1</mn><mo>,</mo><mspace width="2.em"></mspace><mi>x</mi><mo>+</mo><mfrac><msup><mi>y</mi> <mn>2</mn> </msup> <mrow><mi>k</mi><mo>+</mo><mn>1</mn></mrow></mfrac><mo>,</mo><mspace width="2.em"></mspace><mi>x</mi><mo>+</mo><msup><mi>y</mi> <mfrac><mn>2</mn> <mrow><mi>k</mi><mo>+</mo><mn>1</mn></mrow></mfrac> </msup><mo>.</mo></mrow></math></td><td class="eqno">(4)</td></tr></table></div>
<pre class="latex-code"><span class="prenumber">96</span> \[{ {a \over b}\over 2} \qquad \text{and}\qquad { a\over {b\over 2}}
<span class="prenumber">97</span> \qquad \text{and}\qquad { a/ b\over 2} \qquad \text{and}\qquad { a\over b/2}
<span class="prenumber">98</span>  \]
<span class="prenumber">99</span> \[ \frac{\frac{a}{b}}{2} \qquad \text{and}\qquad \frac{a}{\frac{b}{2}}
<span class="prenumber">100</span> \qquad \text{and}\qquad  \frac{a/b}{2} \qquad \text{and}\qquad \frac{a}{b/2} \]
</pre>
<p class="nofirst noindent">Double over. It is an error if you say A over B over C without adding
braces. As you can see, if a fraction is in text style, its numerator and
denominator are in script style, so that it is sometimes better to use a slash.</p>
<div class="mathdisplay"><table width="100%" id="uid19"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mfrac><mi>a</mi> <mi>b</mi></mfrac> <mn>2</mn></mfrac><mspace width="2.em"></mspace><mtext>and</mtext><mspace width="2.em"></mspace><mfrac><mi>a</mi> <mfrac><mi>b</mi> <mn>2</mn></mfrac></mfrac><mspace width="2.em"></mspace><mtext>and</mtext><mspace width="2.em"></mspace><mfrac><mrow><mi>a</mi><mo>/</mo><mi>b</mi></mrow> <mn>2</mn></mfrac><mspace width="2.em"></mspace><mtext>and</mtext><mspace width="2.em"></mspace><mfrac><mi>a</mi> <mrow><mi>b</mi><mo>/</mo><mn>2</mn></mrow></mfrac><mo>.</mo></mrow></math></td><td class="eqno">(5)</td></tr></table></div>
<p class="nofirst noindent">LaTeX style (nothing special here).</p>
<div class="mathdisplay"><table width="100%" id="uid20"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mfrac><mi>a</mi> <mi>b</mi></mfrac> <mn>2</mn></mfrac><mspace width="2.em"></mspace><mtext>and</mtext><mspace width="2.em"></mspace><mfrac><mi>a</mi> <mfrac><mi>b</mi> <mn>2</mn></mfrac></mfrac><mspace width="2.em"></mspace><mtext>and</mtext><mspace width="2.em"></mspace><mfrac><mrow><mi>a</mi><mo>/</mo><mi>b</mi></mrow> <mn>2</mn></mfrac><mspace width="2.em"></mspace><mtext>and</mtext><mspace width="2.em"></mspace><mfrac><mi>a</mi> <mrow><mi>b</mi><mo>/</mo><mn>2</mn></mrow></mfrac><mo>.</mo></mrow></math></td><td class="eqno">(6)</td></tr></table></div>
<p><b>Exercise 17.1:</b> Compare <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>+</mo><msup><mi>y</mi> <mfrac><mn>2</mn> <mrow><mi>k</mi><mo>+</mo><mn>1</mn></mrow></mfrac> </msup></mrow></math></span> with <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>+</mo><msup><mi>y</mi> <mrow><mn>2</mn><mo>/</mo><mo>(</mo><mi>k</mi><mo>+</mo><mn>1</mn><mo>)</mo></mrow> </msup></mrow></math></span>. If a fraction is
in script style, its numerator and denominator are in script script style,
i.e. smaller. In TeX, there are four styles and three sizes (display style and
text style have the same size). In MathML, the size is defined by a level,
zero, one, or two, but larger levels are possible; thus more than three sizes
are possible. There is however a minimal font size.</p>
<p><b>Exercise 17.2:</b> Compare <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mrow><mi>a</mi><mo>+</mo><mn>1</mn></mrow> <mrow><mi>b</mi><mo>+</mo><mn>1</mn></mrow></mfrac><mi>x</mi></mrow></math></span> with <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mo>(</mo><mi>a</mi><mo>+</mo><mn>1</mn><mo>)</mo><mo>/</mo><mo>(</mo><mi>b</mi><mo>+</mo><mn>1</mn><mo>)</mo><mo>)</mo><mi>x</mi></mrow></math></span>.</p>
<p><b>Exercise 17.3:</b> Wrong use of <samp>\over</samp> in <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mstyle xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" scriptlevel="0" displaystyle="true"><mfrac><mrow><mi>x</mi><mo>=</mo><mo>(</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow> <mrow><mi>k</mi><mo>+</mo><mn>1</mn><mo>)</mo></mrow></mfrac></mstyle></math></span>.</p>
<p><b>Exercise 17.4:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>7</mn><mfrac><mn>1</mn> <mn>2</mn></mfrac><mi>¢</mi></mrow></math></span>, using the <samp>\textcent</samp> command.</p>
<p><b>Exercise 17.5:</b> Same as in the TeXbook, but not cramped.</p>
<pre class="latex-code"><span class="prenumber">101</span> \[n+\scriptstyle n + \scriptscriptstyle n\]
<span class="prenumber">102</span> \[n+{\scriptstyle n + {\scriptscriptstyle n}}\]
</pre>

<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mstyle xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" scriptlevel="2" displaystyle="false"><mrow><mi>n</mi><mo>+</mo><mi>n</mi><mo>+</mo><mi>n</mi></mrow></mstyle></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>n</mi><mo>+</mo><mstyle scriptlevel="1" displaystyle="false"><mrow><mi>n</mi><mo>+</mo><mstyle scriptlevel="2" displaystyle="false"><mi>n</mi></mstyle></mrow></mstyle></mrow></math></div>
<p class="nofirst noindent">Note: In the current version of <i>Tralics</i>, it is unclear what happens when you
put style commands randomly in a math formula; in any case, <i>Tralics</i> uses the
correct math style, but has difficulties in inserting <tt class="txt">&lt;mstyle&gt;</tt>
elements: what is the scope? Currently such an element is added to the current
math list, if it contains a style change command; in the example above,
we have two such commands, thus three different styles,
and a single list (first example) or three lists (second example).
Translation of the first example is wrong, translation of the second example is
correct because the style command is the first token of the
list<a id="uid21" href="#note2" title="Amaya seems to ignore the style attribute"><small>(note: </small>&#10163;<small>)</small></a>.</p>
<pre class="latex-code"><span class="prenumber">103</span> \[a_0+{1\over\displaystyle a_1 +
<span class="prenumber">104</span>   {\strut 1\over\displaystyle a_2+
<span class="prenumber">105</span>     {\strut 1\over\displaystyle a_3+
<span class="prenumber">106</span>        {\strut 1\over a_4}}}}\]
</pre>
<p class="nofirst noindent">Translation</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>a</mi> <mn>0</mn> </msub><mo>+</mo><mfrac><mn>1</mn> <mstyle scriptlevel="0" displaystyle="true"><mrow><msub><mi>a</mi> <mn>1</mn> </msub><mo>+</mo><mfrac><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mn>1</mn></mrow> <mstyle scriptlevel="0" displaystyle="true"><mrow><msub><mi>a</mi> <mn>2</mn> </msub><mo>+</mo><mfrac><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mn>1</mn></mrow> <mstyle scriptlevel="0" displaystyle="true"><mrow><msub><mi>a</mi> <mn>3</mn> </msub><mo>+</mo><mfrac><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mn>1</mn></mrow> <msub><mi>a</mi> <mn>4</mn> </msub></mfrac></mrow></mstyle></mfrac></mrow></mstyle></mfrac></mrow></mstyle></mfrac></mrow></math></div>
<p class="nofirst noindent">Without <samp>\displaystyle</samp></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>a</mi> <mn>0</mn> </msub><mo>+</mo><mfrac><mn>1</mn> <mrow><msub><mi>a</mi> <mn>1</mn> </msub><mo>+</mo><mfrac><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mn>1</mn></mrow> <mrow><msub><mi>a</mi> <mn>2</mn> </msub><mo>+</mo><mfrac><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mn>1</mn></mrow> <mrow><msub><mi>a</mi> <mn>3</mn> </msub><mo>+</mo><mfrac><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mn>1</mn></mrow> <msub><mi>a</mi> <mn>4</mn> </msub></mfrac></mrow></mfrac></mrow></mfrac></mrow></mfrac></mrow></math></div>
<p class="nofirst noindent">
Without <samp>\strut</samp>. Since a <samp>\strut</samp> is an invisible object of the size of
a parenthesis, more or less the size of the digit one, its effect is hard to
see.<a id="uid22" href="#note3" title="The width of the strut should be zero; this is incorrectly rendered by Amaya, that shows a non-cente..."><small>(note: </small>&#10163;<small>)</small></a></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>a</mi> <mn>0</mn> </msub><mo>+</mo><mfrac><mn>1</mn> <mstyle scriptlevel="0" displaystyle="true"><mrow><msub><mi>a</mi> <mn>1</mn> </msub><mo>+</mo><mfrac><mn>1</mn> <mstyle scriptlevel="0" displaystyle="true"><mrow><msub><mi>a</mi> <mn>2</mn> </msub><mo>+</mo><mfrac><mn>1</mn> <mstyle scriptlevel="0" displaystyle="true"><mrow><msub><mi>a</mi> <mn>3</mn> </msub><mo>+</mo><mfrac><mn>1</mn> <msub><mi>a</mi> <mn>4</mn> </msub></mfrac></mrow></mstyle></mfrac></mrow></mstyle></mfrac></mrow></mstyle></mfrac></mrow></math></div>
<p class="nofirst noindent">
Without both</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>a</mi> <mn>0</mn> </msub><mo>+</mo><mfrac><mn>1</mn> <mrow><msub><mi>a</mi> <mn>1</mn> </msub><mo>+</mo><mfrac><mn>1</mn> <mrow><msub><mi>a</mi> <mn>2</mn> </msub><mo>+</mo><mfrac><mn>1</mn> <mrow><msub><mi>a</mi> <mn>3</mn> </msub><mo>+</mo><mfrac><mn>1</mn> <msub><mi>a</mi> <mn>4</mn> </msub></mfrac></mrow></mfrac></mrow></mfrac></mrow></mfrac></mrow></math></div>
<p>Until version 2.9.4, commands of the form <samp>\hfill</samp> were illegal in math
mode. Since then, they are allowed as first or last element in arguments of
commands like <samp>\overline</samp>. They are ignored, unless the result is a
fraction; we demonstrate here that <samp>\hfill</samp> placed at the end of the list
produces a left alignment, in the case of <samp>\over</samp>, <samp>\genfrac</samp>, or
<samp>\frac</samp>. Note that the <samp>\cfrac</samp> command can be used for continued
fractions: its optional argument says whether the numerator is centered, left
aligned or right aligned, under the assumption that the denominator is much
larger than the numerator.<a id="uid23" href="#note4" title="As previously, the struts induce unwanted space in Amaya"><small>(note: </small>&#10163;<small>)</small></a>.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>a</mi> <mn>0</mn> </msub><mo>+</mo><mfrac numalign="left"><mn>1</mn> <mstyle scriptlevel="0" displaystyle="true"><mrow><msub><mi>a</mi> <mn>1</mn> </msub><mo>+</mo><mfrac numalign="left"><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mn>1</mn></mrow> <mstyle scriptlevel="0" displaystyle="true"><mrow><msub><mi>a</mi> <mn>2</mn> </msub><mo>+</mo><mfrac numalign="left"><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mn>1</mn></mrow> <mstyle scriptlevel="0" displaystyle="true"><mrow><msub><mi>a</mi> <mn>3</mn> </msub><mo>+</mo><mfrac><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mn>1</mn></mrow> <msub><mi>a</mi> <mn>4</mn> </msub></mfrac></mrow></mstyle></mfrac></mrow></mstyle></mfrac></mrow></mstyle></mfrac><mspace width="2.em"></mspace><mfenced separators="" open="(" close=")"><mfrac denomalign="left"><mn>12345</mn> <mn>1</mn></mfrac></mfenced><mspace width="2.em"></mspace><mfrac numalign="left"><mn>1</mn> <mn>12345</mn></mfrac></mrow></math></div>
<pre class="latex-code"><span class="prenumber">107</span> \[ {x\atop y+2}, {n \choose k}, \text{latex},
<span class="prenumber">108</span> \genfrac{}{}{0pt}{}{x}{y+2},\binom{n}{k} \]
</pre>
<p class="nofirst noindent">The <samp>\atop</samp> construction is like <samp>\over</samp>, without fraction rule; you
should not use it in LaTeX, you should use <samp>\genfrac</samp> instead. The command
<samp>\atopwithdelims</samp> (see below for an example) is followed by two delimiters,
say A and B, it puts A before the fraction and B after it. You can use
<samp>\genfrac</samp> with A and B as arguments (third argument is line thickness,
fourth argument is style). The <samp>\choose</samp>
command is nothing else than <samp>\atopwithdelims()</samp>. You should not use it.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac linethickness="0pt"><mi>x</mi> <mrow><mi>y</mi><mo>+</mo><mn>2</mn></mrow></mfrac><mo>,</mo><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mi>n</mi> <mi>k</mi></mfrac></mfenced><mo>,</mo><mtext>latex</mtext><mo>,</mo><mfrac linethickness="0.0pt"><mi>x</mi> <mrow><mi>y</mi><mo>+</mo><mn>2</mn></mrow></mfrac><mo>,</mo><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mi>n</mi> <mi>k</mi></mfrac></mfenced></mrow></math></div>
<pre class="latex-code"><span class="prenumber">109</span> \[{ {n\choose k}\over 2} \text{ or } { n\choose{k\over2} }
<span class="prenumber">110</span> \text{ or } { n\choose k/2} \text{ or } {n\choose{1\over2}k}\]
</pre>
<p class="nofirst noindent">As mentioned above, a construction like A over B over C needs braces,
where over is a generic name for <samp>\over</samp> and variants, including
<samp>\choose</samp>. Nothing special is required for <samp>\frac</samp> or <samp>\binom</samp>, so
that LaTeX variant is omitted.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mi>n</mi> <mi>k</mi></mfrac></mfenced> <mn>2</mn></mfrac><mspace width="4.pt"></mspace><mtext>or</mtext><mspace width="4.pt"></mspace><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mi>n</mi> <mfrac><mi>k</mi> <mn>2</mn></mfrac></mfrac></mfenced><mspace width="4.pt"></mspace><mtext>or</mtext><mspace width="4.pt"></mspace><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mi>n</mi> <mrow><mi>k</mi><mo>/</mo><mn>2</mn></mrow></mfrac></mfenced><mspace width="4.pt"></mspace><mtext>or</mtext><mspace width="4.pt"></mspace><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mi>n</mi> <mrow><mfrac><mn>1</mn> <mn>2</mn></mfrac><mi>k</mi></mrow></mfrac></mfenced></mrow></math></div>
<pre class="latex-code"><span class="prenumber">111</span> %%$${1\over2}{n\choose k}$$; $$\displaystyle{n\choose k}\over2}$$ : TeXbook
<span class="prenumber">112</span> $\displaystyle \frac{1}{2}\binom{n}{k}$,
<span class="prenumber">113</span> $\displaystyle{n\choose k}\over \displaystyle 2$,
<span class="prenumber">114</span> $\dfrac{\dbinom{n}{k}}2$.
<span class="prenumber">115</span> {\def\P{\mathchoice{D}{T}{S}{SS}}
<span class="prenumber">116</span> $\displaystyle{\P\choose \P}\P\over \displaystyle \P$,
<span class="prenumber">117</span> $\dfrac{\dbinom{\P}{\P}\P}\P$.}
</pre>
<p><b>Exercise 17.6:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mstyle xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" scriptlevel="0" displaystyle="true"><mrow><mfrac><mn>1</mn> <mn>2</mn></mfrac><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mi>n</mi> <mi>k</mi></mfrac></mfenced></mrow></mstyle></math></span> and
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mfrac xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mstyle scriptlevel="0" displaystyle="true"><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mi>n</mi> <mi>k</mi></mfrac></mfenced></mstyle> <mstyle scriptlevel="0" displaystyle="true"><mn>2</mn></mstyle></mfrac></math></span>; LaTeX version
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mstyle xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" scriptlevel="0" displaystyle="true"><mfrac><mfenced open="(" close=")"><mstyle scriptlevel="0" displaystyle="true"><mfrac linethickness="0pt"><mi>n</mi> <mi>k</mi></mfrac></mstyle></mfenced> <mn>2</mn></mfrac></mstyle></math></span>; version with <samp>\P</samp>:

<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mfrac xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mstyle scriptlevel="0" displaystyle="true"><mrow><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mi>T</mi> <mi>T</mi></mfrac></mfenced><mi>D</mi></mrow></mstyle> <mstyle scriptlevel="0" displaystyle="true"><mi>D</mi></mstyle></mfrac></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mstyle xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" scriptlevel="0" displaystyle="true"><mfrac><mrow><mfenced open="(" close=")"><mstyle scriptlevel="0" displaystyle="true"><mfrac linethickness="0pt"><mi>T</mi> <mi>T</mi></mfrac></mstyle></mfenced><mi>T</mi></mrow> <mi>T</mi></mfrac></mstyle></math></span>.
Note that the `d´ in <samp>\dfrac</samp> or <samp>\dbinom</samp>
means that the expression is in display style, hence numerator and
denominator are in text style; as a consequence the <samp>\choose</samp> is same as the
<samp>\dbinom</samp>; on the other hand, the <samp>\over</samp> produces a fraction in text
style, with numerator and denominator in display style, while the <samp>\dfrac</samp>
produces a fraction in display style, with numerator and denominator in
text style. In the dvi file, the distance between D and the fraction rule is
the same as the width of the rule, and the distance between the T and the
rule is approximatively one third of the height of the T; my HTML FM browser uses
larger values, making the difference more obvious.</p>
<p><b>Exercise 17.7:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mstyle xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" scriptlevel="0" displaystyle="true"><mrow><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mi>p</mi> <mn>2</mn></mfrac></mfenced><mspace width="0.166667em"></mspace><msup><mi>x</mi> <mn>2</mn> </msup><msup><mi>y</mi> <mrow><mi>p</mi><mo>-</mo><mn>2</mn></mrow> </msup><mo>-</mo><mfrac><mn>1</mn> <mrow><mn>1</mn><mo>-</mo><mi>x</mi></mrow></mfrac><mspace width="0.166667em"></mspace><mfrac><mn>1</mn> <mrow><mn>1</mn><mo>-</mo><msup><mi>x</mi> <mn>2</mn> </msup></mrow></mfrac></mrow></mstyle></math></span>.
Fine space added for legibility.</p>
<pre class="latex-code"><span class="prenumber">118</span> \[{\displaystyle{a\over b}\above3pt\displaystyle{c\over d}}
<span class="prenumber">119</span> \text{~~and~~} \genfrac{}{}{3pt}{}{\dfrac{a}{b}}{\dfrac{c}{d}}\]
</pre>
<p class="nofirst noindent">There are six operators that behave alike: <samp>\over</samp>, <samp>\atop</samp> and
<samp>\above</samp>, and the same with delimiters. The `above´ commands read a
dimension, the thickness of the fraction rule. In the current version of
<i>Tralics</i>, this has better to be explicit (if you want the value of
<samp>\parskip</samp>, you must use <samp>\genfrac</samp>).</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac linethickness="3pt"><mstyle scriptlevel="0" displaystyle="true"><mfrac><mi>a</mi> <mi>b</mi></mfrac></mstyle> <mstyle scriptlevel="0" displaystyle="true"><mfrac><mi>c</mi> <mi>d</mi></mfrac></mstyle></mfrac><mspace width="4.pt"></mspace><mspace width="4.pt"></mspace><mtext>and</mtext><mspace width="4.pt"></mspace><mspace width="4.pt"></mspace><mfrac linethickness="3.0pt"><mstyle scriptlevel="0" displaystyle="true"><mfrac><mi>a</mi> <mi>b</mi></mfrac></mstyle> <mstyle scriptlevel="0" displaystyle="true"><mfrac><mi>c</mi> <mi>d</mi></mfrac></mstyle></mfrac><mo>.</mo></mrow></math></div>
<pre class="latex-code"><span class="prenumber">120</span> ${\displaystyle \sum x_n}, {\textstyle \sum x_n},
<span class="prenumber">121</span> {\scriptstyle \sum x_n}, {\scriptscriptstyle \sum x_n}$
</pre>
<p class="nofirst noindent">Different sums <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mstyle scriptlevel="0" displaystyle="true"><mrow><mo>&#8721;</mo><msub><mi>x</mi> <mi>n</mi> </msub></mrow></mstyle><mo>,</mo><mstyle scriptlevel="0" displaystyle="false"><mrow><mo>&#8721;</mo><msub><mi>x</mi> <mi>n</mi> </msub></mrow></mstyle><mo>,</mo><mstyle scriptlevel="1" displaystyle="false"><mrow><mo>&#8721;</mo><msub><mi>x</mi> <mi>n</mi> </msub></mrow></mstyle><mo>,</mo><mstyle scriptlevel="2" displaystyle="false"><mrow><mo>&#8721;</mo><msub><mi>x</mi> <mi>n</mi> </msub></mrow></mstyle></mrow></math></span>. The position of the
index is unaffected by the style.</p>
<pre class="latex-code"><span class="prenumber">122</span> \[ {\displaystyle \int_{-\infty}^{\infty} \sum_{n=1}^m},
<span class="prenumber">123</span> {\textstyle \int_{-\infty}^{\infty} \sum_{n=1}^m},
<span class="prenumber">124</span> {\displaystyle\int\limits_0^{\frac{\pi}{2}} \sum\nolimits_{n=1}^m} \]
</pre>
<p class="nofirst noindent">This example demonstrates that the position of scripts depends on the style if
the kernel is a math operator, and the presence of key words like `limits´,
`nolimits´ or `displaylimits´. Scripts can be added to a MathML object using
m/sub/sup, and for an operator using m/under/over. In this last case, the
attribute movablelimits corresponds to the `displaylimits´ keyword. If set,
`under´ means `sub´ if the style is not display. <i>Tralics</i> uses `under´ or
`sub´, depending on where the indices should be placed, and never sets the
attribute. On the other hand, when TeX typesets a `under´ or `sub´, it
sometimes uses a wrong strategy. The last expression (display style sum
without limits) uses a <samp>\msubsup</samp> element; in this case, there is an
implicit <samp>\nolimits</samp>, we cannot make it explicit, because such a command
has to follow an operator, and there is no easy way to check that the first
child of the element is an operator (it is easy to see that it is a <tt class="txt">&lt;mo&gt;</tt>
element, a bit more complicated to see that it contains a Unicode character,
and quite impossible to say that its translation leaves TeX in state where
<samp>\nolimits</samp> is allowed). Note also that we could convert the argument to an
operator, but this is not always a good idea. In this example the HTML version
is correct, the Pdf version is wrong<a id="uid24" href="#note5" title="Amaya places the &#960;/2 too low"><small>(note: </small>&#10163;<small>)</small></a>.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mstyle scriptlevel="0" displaystyle="true"><mrow><msubsup><mo>&#8747;</mo> <mrow><mo>-</mo><mi>&#8734;</mi></mrow> <mi>&#8734;</mi> </msubsup><munderover><mo>&#8721;</mo> <mrow><mi>n</mi><mo>=</mo><mn>1</mn></mrow> <mi>m</mi> </munderover></mrow></mstyle><mo>,</mo><mstyle scriptlevel="0" displaystyle="false"><mrow><msubsup><mo>&#8747;</mo> <mrow><mo>-</mo><mi>&#8734;</mi></mrow> <mi>&#8734;</mi> </msubsup><msubsup><mo>&#8721;</mo> <mrow><mi>n</mi><mo>=</mo><mn>1</mn></mrow> <mi>m</mi> </msubsup></mrow></mstyle><mo>,</mo><mstyle scriptlevel="0" displaystyle="true"><mrow><munderover><mo>&#8747;</mo> <mn>0</mn> <mfrac><mi>&#960;</mi> <mn>2</mn></mfrac> </munderover><msubsup><mo>&#8721;</mo> <mrow><mi>n</mi><mo>=</mo><mn>1</mn></mrow> <mi>m</mi> </msubsup></mrow></mstyle></mrow></math></div>
<pre class="latex-code"><span class="prenumber">125</span> \[\lim_ax+\lim\nolimits_l x+\lim\limits_ax+\lim\displaylimits_ax\]
<span class="prenumber">126</span> \[\textstyle \lim_lx+\lim\nolimits_l x+\lim\limits_ax+\lim\displaylimits_lx\]
<span class="prenumber">127</span> \[\sin_lx+\sin\nolimits_l x+\sin\limits_lx+\sin\displaylimits_ax\]
<span class="prenumber">128</span> \[\textstyle \sin_lx+\sin\nolimits_l x+\sin\limits_lx+\sin\displaylimits_lx\]
</pre>
<p class="nofirst noindent">More about limits. Knuth says that <samp>\nolimits</samp><samp>\limits</samp> produces limits;
so that <samp>\sin</samp><samp>\limits</samp> produces limits; a special feature of amsmath
is that the token that follows the <samp>\sin</samp> is ignored if it is a
<samp>\limits</samp> token.
According to amsmath, an index A should be below the operator, an index L is a
normal subscript; the example here shows that <i>Tralics</i> behaves more like TeX.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munder><mo movablelimits="true" form="prefix">lim</mo> <mi>a</mi> </munder><mi>x</mi><mo>+</mo><msub><mo movablelimits="true" form="prefix">lim</mo> <mi>l</mi> </msub><mi>x</mi><mo>+</mo><munder><mo movablelimits="false" form="prefix">lim</mo> <mi>a</mi> </munder><mi>x</mi><mo>+</mo><munder><mo movablelimits="false" form="prefix">lim</mo> <mi>a</mi> </munder><mi>x</mi></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mstyle xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" scriptlevel="0" displaystyle="false"><mrow><msub><mo movablelimits="true" form="prefix">lim</mo> <mi>l</mi> </msub><mi>x</mi><mo>+</mo><msub><mo movablelimits="true" form="prefix">lim</mo> <mi>l</mi> </msub><mi>x</mi><mo>+</mo><munder><mo movablelimits="false" form="prefix">lim</mo> <mi>a</mi> </munder><mi>x</mi><mo>+</mo><msub><mo movablelimits="true" form="prefix">lim</mo> <mi>l</mi> </msub><mi>x</mi></mrow></mstyle></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mo form="prefix">sin</mo> <mi>l</mi> </msub><mi>x</mi><mo>+</mo><msub><mo form="prefix">sin</mo> <mi>l</mi> </msub><mi>x</mi><mo>+</mo><munder><mo form="prefix">sin</mo> <mi>l</mi> </munder><mi>x</mi><mo>+</mo><munder><mo form="prefix">sin</mo> <mi>a</mi> </munder><mi>x</mi></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mstyle xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" scriptlevel="0" displaystyle="false"><mrow><msub><mo form="prefix">sin</mo> <mi>l</mi> </msub><mi>x</mi><mo>+</mo><msub><mo form="prefix">sin</mo> <mi>l</mi> </msub><mi>x</mi><mo>+</mo><munder><mo form="prefix">sin</mo> <mi>l</mi> </munder><mi>x</mi><mo>+</mo><msub><mo form="prefix">sin</mo> <mi>l</mi> </msub><mi>x</mi></mrow></mstyle></math></div>
<pre class="latex-code"><span class="prenumber">129</span> \[\operatorname*{sin}_a \operatornamewithlimits{sin}_a \qopname\relax{n}{sin}_a
<span class="prenumber">130</span> \operatorname{sin}_l  \qopname\relax{o}{sin}_l
<span class="prenumber">131</span> \mathop{\rm sin}_a\mathop{\rm sin}\limits_a\]
<span class="prenumber">132</span> \[\textstyle\operatorname*{sin}_l \operatornamewithlimits{sin}_l
<span class="prenumber">133</span>  \qopname\relax{n}{sin}_l\operatorname{sin}_l  \qopname\relax{o}{sin}_l
<span class="prenumber">134</span> \mathop{\rm sin}_l\mathop{\rm sin}\limits_a\]
</pre>
<p class="nofirst noindent">These are LaTeX commands that can define operators like sin or lim:</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munder><mo form="prefix">sin</mo> <mi>a</mi> </munder><munder><mo form="prefix">sin</mo> <mi>a</mi> </munder><munder><mo form="prefix">sin</mo> <mi>a</mi> </munder><msub><mo form="prefix">sin</mo> <mi>l</mi> </msub><msub><mo form="prefix">sin</mo> <mi>l</mi> </msub><munder><mi> sin </mi> <mi>a</mi> </munder><munder><mi> sin </mi> <mi>a</mi> </munder></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mstyle xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" scriptlevel="0" displaystyle="false"><mrow><msub><mo form="prefix">sin</mo> <mi>l</mi> </msub><msub><mo form="prefix">sin</mo> <mi>l</mi> </msub><msub><mo form="prefix">sin</mo> <mi>l</mi> </msub><msub><mo form="prefix">sin</mo> <mi>l</mi> </msub><msub><mo form="prefix">sin</mo> <mi>l</mi> </msub><msub><mi> sin </mi> <mi>l</mi> </msub><munder><mi> sin </mi> <mi>a</mi> </munder></mrow></mstyle></math></div>
<pre class="latex-code"><span class="prenumber">135</span> \[\sum_{\scriptstyle0\le i\le m\atop\scriptstyle0&lt;j&lt;n}P(i,j)\qquad
<span class="prenumber">136</span> \sum_{\stackrel{0\le i\le m}{0&lt;j&lt;n}}P(i,j)\]
</pre>
<p class="nofirst noindent">In the first expression given here, and in exercise 17.9 that follows, scripts
use an explicit `script style´ command, hence should be typeset in scriptstyle
size. This is not the case in the HTML version: we have an atop in an atop,
and the style of the inner one is wrong. The second formula uses a LaTeX command, this is not the right command for stacking indices because the first
argument uses a smaller style than the second. It seems to me that the top
line of first formula, bottom line of the second formula have the right
size. Other lines are too big (in Firefox) or much too small (in Amaya).</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munder><mo>&#8721;</mo> <mfrac linethickness="0pt"><mstyle scriptlevel="1" displaystyle="false"><mrow><mn>0</mn><mo>&#8804;</mo><mi>i</mi><mo>&#8804;</mo><mi>m</mi></mrow></mstyle> <mstyle scriptlevel="1" displaystyle="false"><mrow><mn>0</mn><mo>&lt;</mo><mi>j</mi><mo>&lt;</mo><mi>n</mi></mrow></mstyle></mfrac> </munder><mi>P</mi><mrow><mo>(</mo><mi>i</mi><mo>,</mo><mi>j</mi><mo>)</mo></mrow><mo>,</mo><mspace width="2.em"></mspace><munder><mo>&#8721;</mo> <mover><mrow><mn>0</mn><mo>&lt;</mo><mi>j</mi><mo>&lt;</mo><mi>n</mi></mrow> <mrow><mn>0</mn><mo>&#8804;</mo><mi>i</mi><mo>&#8804;</mo><mi>m</mi></mrow></mover> </munder><mi>P</mi><mrow><mo>(</mo><mi>i</mi><mo>,</mo><mi>j</mi><mo>)</mo></mrow></mrow></math></div>
<p><b>Exercise 17.8:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mstyle xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" scriptlevel="0" displaystyle="true"><mrow><munderover><mo>&#8721;</mo> <mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow> <mi>p</mi> </munderover><munderover><mo>&#8721;</mo> <mrow><mi>j</mi><mo>=</mo><mn>1</mn></mrow> <mi>q</mi> </munderover><munderover><mo>&#8721;</mo> <mrow><mi>k</mi><mo>=</mo><mn>1</mn></mrow> <mi>r</mi> </munderover><msub><mi>a</mi> <mrow><mi>i</mi><mi>j</mi></mrow> </msub><msub><mi>b</mi> <mrow><mi>j</mi><mi>k</mi></mrow> </msub><msub><mi>c</mi> <mrow><mi>k</mi><mi>i</mi></mrow> </msub></mrow></mstyle></math></span>.</p>
<p><b>Exercise 17.9:</b>

<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mstyle xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" scriptlevel="0" displaystyle="true"><mrow><munder><mo>&#8721;</mo> <mfrac linethickness="0pt"><mfrac linethickness="0pt"><mstyle scriptlevel="1" displaystyle="false"><mrow><mn>1</mn><mo>&#8804;</mo><mi>i</mi><mo>&#8804;</mo><mi>n</mi></mrow></mstyle> <mstyle scriptlevel="1" displaystyle="false"><mrow><mn>1</mn><mo>&#8804;</mo><mi>j</mi><mo>&#8804;</mo><mi>q</mi></mrow></mstyle></mfrac> <mstyle scriptlevel="1" displaystyle="false"><mrow><mn>1</mn><mo>&#8804;</mo><mi>k</mi><mo>&#8804;</mo><mi>r</mi></mrow></mstyle></mfrac> </munder><msub><mi>a</mi> <mrow><mi>i</mi><mi>j</mi></mrow> </msub><msub><mi>b</mi> <mrow><mi>j</mi><mi>k</mi></mrow> </msub><msub><mi>c</mi> <mrow><mi>k</mi><mi>i</mi></mrow> </msub></mrow></mstyle></math></span> or
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mstyle xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" scriptlevel="0" displaystyle="true"><mrow><munder><mo>&#8721;</mo> <mfrac linethickness="0pt"><mstyle scriptlevel="1" displaystyle="false"><mrow><mn>1</mn><mo>&#8804;</mo><mi>i</mi><mo>&#8804;</mo><mi>n</mi></mrow></mstyle> <mfrac linethickness="0pt"><mstyle scriptlevel="1" displaystyle="false"><mrow><mn>1</mn><mo>&#8804;</mo><mi>j</mi><mo>&#8804;</mo><mi>q</mi></mrow></mstyle> <mstyle scriptlevel="1" displaystyle="false"><mrow><mn>1</mn><mo>&#8804;</mo><mi>k</mi><mo>&#8804;</mo><mi>r</mi></mrow></mstyle></mfrac></mfrac> </munder><msub><mi>a</mi> <mrow><mi>i</mi><mi>j</mi></mrow> </msub><msub><mi>b</mi> <mrow><mi>j</mi><mi>k</mi></mrow> </msub><msub><mi>c</mi> <mrow><mi>k</mi><mi>i</mi></mrow> </msub></mrow></mstyle></math></span>.</p>
<pre class="latex-code"><span class="prenumber">137</span> \[\sqrt{1+\sqrt{1+\sqrt{1+\sqrt{1+\sqrt{1+\sqrt{1+\sqrt{1+x}}}}}}}\]
</pre>

<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msqrt><mrow><mn>1</mn><mo>+</mo><msqrt><mrow><mn>1</mn><mo>+</mo><msqrt><mrow><mn>1</mn><mo>+</mo><msqrt><mrow><mn>1</mn><mo>+</mo><msqrt><mrow><mn>1</mn><mo>+</mo><msqrt><mrow><mn>1</mn><mo>+</mo><msqrt><mrow><mn>1</mn><mo>+</mo><mi>x</mi></mrow></msqrt></mrow></msqrt></mrow></msqrt></mrow></msqrt></mrow></msqrt></mrow></msqrt></mrow></msqrt><mo>.</mo></mrow></math></div>
<pre class="latex-code"><span class="prenumber">138</span> \[ \left(\left[\left\lbrack a\left\{\left\lbrace\left\lfloor b
<span class="prenumber">139</span> \left\lceil\left\langle\left/ c\left|\left\|\left\uparrow d
<span class="prenumber">140</span> \left\downarrow\left\updownarrow\frac 12 \right\Updownarrow
<span class="prenumber">141</span> \right\downarrow t
<span class="prenumber">142</span> \right\Uparrow\right\Vert\right\vert x\right\backslash\right\rangle
<span class="prenumber">143</span> \right\rceil y \right\rfloor\right\rbrace\right\} z\right\rbrack\right]\right)\]
</pre>

<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mfenced xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" open="(" close=")"><mfenced separators="" open="[" close="]"><mfenced separators="" open="[" close="]"><mi>a</mi><mfenced open="{" close="}"><mfenced separators="" open="{" close="}"><mfenced separators="" open="&#8970;" close="&#8971;"><mi>b</mi><mfenced open="&#8968;" close="&#8969;"><mfenced separators="" open="&#9001;" close="&#9002;"><mfenced separators="" open="/" close="&#8726;"><mi>c</mi><mfenced open="|" close="|"><mfenced separators="" open="&#8741;" close="&#8741;"><mfenced separators="" open="&#8593;" close="&#8657;"><mi>d</mi><mfenced open="&#8595;" close="&#8595;"><mfenced separators="" open="&#8597;" close="&#8661;"><mfrac><mn>1</mn> <mn>2</mn></mfrac></mfenced></mfenced><mi>t</mi></mfenced></mfenced></mfenced><mi>x</mi></mfenced></mfenced></mfenced><mi>y</mi></mfenced></mfenced></mfenced><mi>z</mi></mfenced></mfenced></mfenced></math></div>
<p class="nofirst noindent">We would expect all delimiters to be of the same size; but not all characters
can be indefinitely extensible. On Firefox, we see a large slash, reverse
slash and angle brackets; all other characters have maximum size. On Amaya,
slash and reverse slash have a normal size, as well as double vertical bars;
on <i>AM</i> some delimiters are replaced by a question sign, namely floor,
ceiling, angle brackets, reverse slash and arrows (on following formulas,
arrows are however visible). AF uses floor instead of ceiling and vice-versa.
On <i>FM</i> the rendering of up-down-array is wrong.</p>
<p>There are problems with slash, backslash, double vertical bar on <i>Tralics</i> 2.9.4. Concerning the double vertical bar, the following expression contains
two different characters: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8214;</mo><mo>=</mo><mo>&#8741;</mo></mrow></math></span>. The first
character is Unicode U+2016 (entity <tt class="txt">&amp;Vert;</tt> in the file
<span class="sansserif">mmlalias.ent</span>), obtained by <samp>\Vert</samp> in <i>Tralics</i> 2.9.4, accessible
as <samp>\@Vert</samp> in following versions, it is not shwon by Amaya;
the second character is Unicode U+2225
(entity <tt class="txt">&amp;DoubleVerticalBar;</tt>, <tt class="txt">&amp;parallel;</tt> and <tt class="txt">&amp;shortparallel;</tt>
in the file <span class="sansserif">mmlalias.ent</span>), obtained by <samp>\parallel</samp> in <i>Tralics</i> 2.9.4, and also by <samp>\Vert</samp> in following versions. We changed this because
the first character has fixed size as the following demonstrates
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>&#8214;</mo></mrow><mfrac><mn>1</mn> <mn>2</mn></mfrac><mrow><mo>&#8741;</mo></mrow></mrow></math></span> (the effect is only visible in HTML
with FM).</p>
<p>Translation of backslash changed: it is now Unicode U+2216, you can use
the backslash character (Unicode U+5C) by saying <samp>\char`</samp><samp>\^^5c</samp>.
Example: old is <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>X</mi><mo>\</mo><mi>Y</mi></mrow></math></span>, new is <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>X</mi><mo>&#8726;</mo><mi>Y</mi></mrow></math></span>, note the different
spacing.</p>
<p>Example of <samp>\bigl</samp> and <samp>\bigr</samp>, followed by the same code without these
operations; currently there is no difference in the HTML version; in the Pdf
there is more space in the equations on the LHS between closing brace and
opening brace (same for bracket).</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfenced separators="" open="(" close=")"><mi>x</mi> <mo>-</mo> <mi>s</mi> <mo>(</mo> <mi>x</mi> <mo>)</mo></mfenced><mfenced separators="" open="(" close=")"><mi>y</mi> <mo>-</mo> <mi>s</mi> <mo>(</mo> <mi>y</mi> <mo>)</mo></mfenced><mspace width="2.em"></mspace><mrow><mo>(</mo><mi>x</mi><mo>-</mo><mi>s</mi><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mo>)</mo></mrow><mrow><mo>(</mo><mi>y</mi><mo>-</mo><mi>s</mi><mrow><mo>(</mo><mi>y</mi><mo>)</mo></mrow><mo>)</mo></mrow></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfenced separators="" open="[" close="]"><mi>x</mi> <mo>-</mo> <mi>s</mi> <mo>[</mo> <mi>x</mi> <mo>]</mo></mfenced><mfenced separators="" open="[" close="]"><mi>y</mi> <mo>-</mo> <mi>s</mi> <mo>[</mo> <mi>y</mi> <mo>]</mo></mfenced><mspace width="2.em"></mspace><mrow><mo>[</mo><mi>x</mi><mo>-</mo><mi>s</mi><mrow><mo>[</mo><mi>x</mi><mo>]</mo></mrow><mo>]</mo></mrow><mrow><mo>[</mo><mi>y</mi><mo>-</mo><mi>s</mi><mrow><mo>[</mo><mi>y</mi><mo>]</mo></mrow><mo>]</mo></mrow></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfenced separators="" open="|" close="|"><mo>|</mo> <mi>x</mi> <mo>|</mo> <mo>-</mo> <mo>|</mo> <mi>y</mi> <mo>|</mo></mfenced><mrow><mspace width="2.em"></mspace><mo>|</mo><mo>|</mo><mi>x</mi><mo>|</mo></mrow><mo>-</mo><mrow><mo>|</mo><mi>y</mi><mo>|</mo><mo>|</mo></mrow></mrow></math></div>
<p>Example of big</p>
<pre class="latex-code"><span class="prenumber">144</span> \[ \big(\big[\big\lbrack \big\{\big\lbrace\big\lfloor
<span class="prenumber">145</span> \big\lceil\big\langle\big/ \big|\big\|\big\uparrow
<span class="prenumber">146</span> \big\downarrow\big\updownarrow\frac 12 \big\Updownarrow
<span class="prenumber">147</span> \big\downarrow \big\Uparrow\big\Vert\big\vert \big\backslash\big\rangle
<span class="prenumber">148</span> \big\rceil\big\rfloor\big\rbrace\big\}\big\rbrack\big]\big)\]
</pre>

<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mfenced xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" open="(" close=")"><mfenced open="[" close="]"><mfenced open="[" close="]"><mfenced open="{" close="}"><mfenced open="{" close="}"><mfenced open="&#8970;" close="&#8971;"><mfenced open="&#8968;" close="&#8969;"><mfenced separators="" open="&#9001;" close="&#9002;"><mo>/</mo> <mo>|</mo> <mo>&#8741;</mo> <mo>&#8593;</mo> <mo>&#8595;</mo> <mo>&#8597;</mo> <mfrac><mn>1</mn> <mn>2</mn></mfrac> <mo>&#8661;</mo> <mo>&#8595;</mo> <mo>&#8657;</mo> <mo>&#8741;</mo> <mo>|</mo> <mo>&#8726;</mo></mfenced></mfenced></mfenced></mfenced></mfenced></mfenced></mfenced></mfenced></math></div>
<p class="nofirst noindent">I see the following: every up to the slash, and starting with the backslash
is big; remaining items are small in the Pdf version, big in Firefox,
sometimes small, sometimes large in Amaya.</p>
<pre class="latex-code"><span class="prenumber">149</span> \[ \big(\bigl[\Big\lbrack \Bigl\{\bigg\lbrace\biggl\lfloor
<span class="prenumber">150</span> \Bigg\lceil\Biggl\langle /|\|\uparrow \downarrow\updownarrow\frac 12
<span class="prenumber">151</span> \Updownarrow\downarrow\Uparrow\Vert\vert\backslash
<span class="prenumber">152</span> \Biggr\rangle\Bigg\rceil\biggr\rfloor\bigg\rbrace\Bigr\}\Big\rbrack\bigr]\big)\]
</pre>
<p class="nofirst noindent">A formula with all variants</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mfenced xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" open="(" close=")"><mfenced open="[" close="]"><mfenced open="[" close="]"><mfenced open="{" close="}"><mfenced open="{" close="}"><mfenced open="&#8970;" close="&#8971;"><mfenced open="&#8968;" close="&#8969;"><mfenced separators="" open="&#9001;" close="&#9002;"><mo>/</mo> <mrow><mo>|</mo><mo>&#8741;</mo><mo>&#8593;</mo><mo>&#8595;</mo><mo>&#8597;</mo></mrow> <mfrac><mn>1</mn> <mn>2</mn></mfrac> <mrow><mo>&#8661;</mo><mo>&#8595;</mo><mo>&#8657;</mo><mo>&#8741;</mo><mo>|</mo><mo>&#8726;</mo></mrow></mfenced></mfenced></mfenced></mfenced></mfenced></mfenced></mfenced></mfenced></math></div>
<p class="nofirst noindent">Up to version 2.9.4, there was a bug in handling these big things.
Currently, <i>Tralics</i> inserts <samp>\left</samp> and <samp>\right</samp> delimiters wherever
possible. In the Pdf version, this formula is identical to the previous one.
In firefox, operators between slash and backslash (that have no big) are small
before the fraction, large after that. This is strange. In Amaya, everything
between the slash and the backslash is small, except the <samp>\vert</samp>.</p>
<p><b>Exercise 17.10:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mstyle xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" scriptlevel="0" displaystyle="true"><mrow><mfenced separators="" open="(" close=")"><mfrac><msup><mi>&#8706;</mi> <mn>2</mn> </msup> <mrow><mi>&#8706;</mi><msup><mi>x</mi> <mn>2</mn> </msup></mrow></mfrac> <mo>+</mo> <mfrac><msup><mi>&#8706;</mi> <mn>2</mn> </msup> <mrow><mi>&#8706;</mi><msup><mi>y</mi> <mn>2</mn> </msup></mrow></mfrac></mfenced><msup><mfenced separators="" open="|" close="|"><mi>&#981;</mi> <mo>(</mo> <mi>x</mi> <mo>+</mo> <mi>i</mi> <mi>y</mi> <mo>)</mo></mfenced> <mn>2</mn> </msup><mo>=</mo><mn>0</mn></mrow></mstyle></math></span>.</p>
<pre class="latex-code"><span class="prenumber">153</span> Phi is $\phi,^^^^03c6$, ^^^^03c6  and varphi is $\varphi,^^^^03d5$, ^^^^03d5,
</pre>
<p class="nofirst noindent">There is a problem in the rendering of the letter phi; the straight phi
character is Unicode U+03D5. As the example given here shows, the rendering
of phi and varphi in math mode, at least on my machine:
Phi is <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>&#966;</mi><mo>,</mo><mi>&#966;</mi></mrow></math></span>, &#966; and varphi is <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>&#981;</mi><mo>,</mo><mi>&#981;</mi></mrow></math></span>, &#981;,
epsilon is <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">&#1013;</mi></math></span>, varepsilon is <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">&#949;</mi></math></span>. We changed the
translation, so that the Firefox and Pdf versions show, in math mode, the
desired result. Note that AM shows the same characeter for phoi ad varphi in
math mode, and has trouble with epsilon(shown as a square).</p>
<pre class="latex-code"><span class="prenumber">154</span> $\bigl (x\in A(n)\bigm|x\in B(n)\bigr)$,
<span class="prenumber">155</span> $\bigcup_n X_n\bigm\|\bigcap_n Y_n$,
<span class="prenumber">156</span> $\displaystyle{ {a+1\over b}\bigg/{c+1\over d}}$
</pre>
<p class="nofirst noindent">Other big <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mfenced xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" separators="" open="(" close=")"><mi>x</mi> <mo>&#8712;</mo> <mi>A</mi> <mo>(</mo> <mi>n</mi> <mo>)</mo> <mo>|</mo> <mi>x</mi> <mo>&#8712;</mo> <mi>B</mi> <mo>(</mo> <mi>n</mi> <mo>)</mo></mfenced></math></span> and
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mo>&#8899;</mo> <mi>n</mi> </msub><msub><mi>X</mi> <mi>n</mi> </msub><mo>&#8741;</mo><msub><mo>&#8898;</mo> <mi>n</mi> </msub><msub><mi>Y</mi> <mi>n</mi> </msub></mrow></math></span> and
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mstyle xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" scriptlevel="0" displaystyle="true"><mrow><mfrac><mrow><mi>a</mi><mo>+</mo><mn>1</mn></mrow> <mi>b</mi></mfrac><mo>/</mo><mfrac><mrow><mi>c</mi><mo>+</mo><mn>1</mn></mrow> <mi>d</mi></mfrac></mrow></mstyle></math></span>.</p>
<p><b>Exercise 17.12:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfenced separators="" open="(" close=")"><mi>x</mi> <mo>+</mo> <mi>f</mi> <mo>(</mo> <mi>x</mi> <mo>)</mo></mfenced><mo>/</mo><mfenced separators="" open="(" close=")"><mi>x</mi> <mo>-</mo> <mi>f</mi> <mo>(</mo> <mi>x</mi> <mo>)</mo></mfenced></mrow></math></span>.</p>
<pre class="latex-code"><span class="prenumber">157</span> \[1+\left(\frac{1}{1-x^2}\right)^3,\qquad \pi(n)=\sum_{k=2}^n
<span class="prenumber">158</span> \left\lfloor\frac{\phi(k)}{k-1}\right\rfloor, \qquad
<span class="prenumber">159</span> \left|\left|x\right|-|\left|y\right|\right|, \qquad
<span class="prenumber">160</span> \left(\sum_{k=1}^n A_k\right),\qquad  \biggl(\sum_{k=1}^n A_k\biggr)\]
</pre>
<p><b>Exercise 17.13:</b>
Comparison between <samp>\left</samp> and <samp>\bigl</samp>; translation is the same in
<i>Tralics</i>.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>1</mn><mo>+</mo><msup><mfenced separators="" open="(" close=")"><mfrac><mn>1</mn> <mrow><mn>1</mn><mo>-</mo><msup><mi>x</mi> <mn>2</mn> </msup></mrow></mfrac></mfenced> <mn>3</mn> </msup><mo>,</mo><mspace width="2.em"></mspace><mi>&#960;</mi><mrow><mo>(</mo><mi>n</mi><mo>)</mo></mrow><mo>=</mo><munderover><mo>&#8721;</mo> <mrow><mi>k</mi><mo>=</mo><mn>2</mn></mrow> <mi>n</mi> </munderover><mfenced separators="" open="&#8970;" close="&#8971;"><mfrac><mrow><mi>&#966;</mi><mo>(</mo><mi>k</mi><mo>)</mo></mrow> <mrow><mi>k</mi><mo>-</mo><mn>1</mn></mrow></mfrac></mfenced><mo>,</mo><mspace width="2.em"></mspace><mfenced separators="" open="|" close="|"><mfenced open="|" close="|"><mi>x</mi></mfenced><mo>-</mo><mfenced open="|" close="|"><mi>y</mi></mfenced></mfenced><mo>,</mo><mspace width="2.em"></mspace><mfenced separators="" open="(" close=")"><munderover><mo>&#8721;</mo> <mrow><mi>k</mi><mo>=</mo><mn>1</mn></mrow> <mi>n</mi> </munderover><msub><mi>A</mi> <mi>k</mi> </msub></mfenced><mo>,</mo><mspace width="2.em"></mspace><mfenced separators="" open="(" close=")"><munderover><mo>&#8721;</mo> <mrow><mi>k</mi><mo>=</mo><mn>1</mn></mrow> <mi>n</mi> </munderover> <msub><mi>A</mi> <mi>k</mi> </msub></mfenced><mo>.</mo></mrow></math></div>
<p><b>Exercise 17.14:</b> was wrong in <i>Tralics</i> 2.9.4.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>&#960;</mi><mrow><mo>(</mo><mi>n</mi><mo>)</mo></mrow><mo>=</mo><munderover><mo>&#8721;</mo> <mrow><mi>m</mi><mo>=</mo><mn>2</mn></mrow> <mi>n</mi> </munderover><mfenced separators="" open="&#8970;" close="&#8971;"><msup><mfenced separators="" open="(" close=")"><munderover><mo>&#8721;</mo> <mrow><mi>k</mi><mo>=</mo><mn>1</mn></mrow> <mrow><mi>m</mi><mo>-</mo><mn>1</mn></mrow> </munderover> <mfenced separators="" open="&#8970;" close="&#8971;"><mo>(</mo> <mi>m</mi> <mo>/</mo> <mi>k</mi> <mo>)</mo> <mo>/</mo> <mo>&#8968;</mo> <mi>m</mi> <mo>/</mo> <mi>k</mi> <mo>&#8969;</mo></mfenced></mfenced> <mrow><mo>-</mo><mn>1</mn></mrow> </msup></mfenced></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>|</mo><mi>x</mi><mo>|</mo></mrow><mo>=</mo><mfenced separators="" open="{" close=""><mtable><mtr><mtd columnalign="left"><mrow><mi>x</mi><mo>,</mo></mrow></mtd><mtd columnalign="left"><mrow><mtext>if</mtext><mspace width="4.pt"></mspace><mi>x</mi><mo>&#8805;</mo><mn>0</mn></mrow></mtd></mtr><mtr><mtd columnalign="left"><mrow><mo>-</mo><mi>x</mi><mo>,</mo></mrow></mtd><mtd columnalign="left"><mrow><mtext>if</mtext><mspace width="4.pt"></mspace><mi>x</mi><mo>&lt;</mo><mn>0</mn></mrow></mtd></mtr></mtable></mfenced></mrow></math></div>
<p class="nofirst noindent">TeX sets <samp>\nulldelimiterspace</samp>, unused by <i>Tralics</i>.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfenced open="&#9001;" close="&#9002;"><mfrac><mn>1</mn> <mn>2</mn></mfrac></mfenced><mo>=</mo><mfenced separators="" open="&#9001;" close="&#9002;"><mfrac><mn>1</mn> <mn>2</mn></mfrac></mfenced><mo>=</mo><mfenced open="&#9001;" close="&#9002;"><mfrac><mn>1</mn> <mn>2</mn></mfrac></mfenced><mo>=</mo><mfenced separators="" open="&#9001;" close="&#9002;"><mfrac><mn>1</mn> <mn>2</mn></mfrac></mfenced></mrow></math></div>
<p>The <samp>\vcenter</samp> command is not implemented.
Any box can be put into a formula by simply saying
<samp>\hbox</samp> or <samp>\vbox</samp> or <samp>\vtop</samp> or <samp>\box</samp> or <samp>\copy</samp>; this is not
implemented in <i>Tralics</i>, you can insert text in math mode via <samp>\text</samp> or
<samp>\hbox</samp>.</p>
<p><b>Exercise 17.15:</b> This shows the use of <samp>\mathchoice</samp>.</p>
<pre class="latex-code"><span class="prenumber">161</span> \def\puzzle{\mathchoice{D}{T}{S}{SS}}
<span class="prenumber">162</span> \[\puzzle{\puzzle \over\puzzle^{\puzzle^\puzzle}} \qquad
<span class="prenumber">163</span> \frac{\puzzle}{\puzzle^{\puzzle^\puzzle}} \]
</pre>

<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>D</mi><mfrac><mi>T</mi> <msup><mi>T</mi> <msup><mi>S</mi> <mrow><mi>S</mi><mi>S</mi></mrow> </msup> </msup></mfrac><mspace width="2.em"></mspace><mfrac><mi>T</mi> <msup><mi>T</mi> <msup><mi>S</mi> <mrow><mi>S</mi><mi>S</mi></mrow> </msup> </msup></mfrac></mrow></math></div>
<p><b>Exercise 17.16:</b> The <samp>\square</samp> command is built-in: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">&#9633;</mo></math></span>.</p>
<p>The <samp>\mathpalette</samp> command is introduced in <i>Tralics</i> 2.9.5, not tested
yet.</p>
<pre class="latex-code"><span class="prenumber">164</span> \def\legendre{\overwithdelims()}\def\Legendre{\genfrac(){}{}}
<span class="prenumber">165</span> \def\euler{\atopwithdelims&lt;&gt;}\def\Euler{\genfrac&lt;&gt;{0pt}{}}
<span class="prenumber">166</span> \def\grimm{\abovewithdelims][4pt}\def\Grimm{\genfrac][{4pt}{}}
<span class="prenumber">167</span> \[{a\legendre b}, \Legendre{a}{b}, {n \euler k}, \Euler{n}{k},
<span class="prenumber">168</span> {\dfrac ab \grimm \dfrac cd}\Grimm{x}{y} \]
</pre>
<p><b>Exercise 17.17:</b> Knuth says: the size of the surrounding delimiters depends only on
the size, not on the size of the fractions, this is false for <i>Tralics</i>:</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfenced separators="" open="(" close=")"><mfrac><mi>a</mi> <mi>b</mi></mfrac></mfenced><mo>,</mo><mfenced separators="" open="(" close=")"><mfrac><mi>a</mi> <mi>b</mi></mfrac></mfenced><mo>,</mo><mfenced separators="" open="&#9001;" close="&#9002;"><mfrac linethickness="0pt"><mi>n</mi> <mi>k</mi></mfrac></mfenced><mo>,</mo><mfenced separators="" open="&#9001;" close="&#9002;"><mfrac linethickness="0.0pt"><mi>n</mi> <mi>k</mi></mfrac></mfenced><mo>,</mo><mfenced separators="" open="]" close="["><mfrac linethickness="4pt"><mstyle scriptlevel="0" displaystyle="true"><mfrac><mi>a</mi> <mi>b</mi></mfrac></mstyle> <mstyle scriptlevel="0" displaystyle="true"><mfrac><mi>c</mi> <mi>d</mi></mfrac></mstyle></mfrac></mfenced><mfenced separators="" open="]" close="["><mfrac linethickness="4.0pt"><mi>x</mi> <mi>y</mi></mfrac></mfenced></mrow></math></div>
<p>If <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">f</mi></math></span> is the value of <samp>\delimiterfactor</samp> and <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">&#948;</mi></math></span> the value of
<samp>\delimitershortfall</samp>, and we have a formula that extents <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msub xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi> <mn>1</mn> </msub></math></span> units
above the axis, and <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msub xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi> <mn>2</mn> </msub></math></span> units below, if <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi><mo>=</mo><mn>2</mn><mo movablelimits="true" form="prefix">max</mo><mo>(</mo><msub><mi>y</mi> <mn>1</mn> </msub><mo>,</mo><msub><mi>y</mi> <mn>2</mn> </msub><mo>)</mo></mrow></math></span>, then the
delimiter size is at least <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi><mo>·</mo><mi>f</mi><mo>/</mo><mn>1000</mn></mrow></math></span>, and at least <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi><mo>-</mo><mi>&#948;</mi></mrow></math></span>.
This does not apply to <i>Tralics</i>.</p>
<p>The remainder of the chapter discusses some low-level commands that are not
fully implemented in <i>Tralics</i>. The commands <samp>\textfont</samp>, <samp>\scriptfont</samp>
and <samp>\scriptscriptfont</samp> take a small number as argument, and provide a
reference to a font. The following code</p>
<pre class="latex-code"><span class="prenumber">169</span> \font\tenrm=somefont at 12pt
<span class="prenumber">170</span> \font\Helvetica=someotherfont scaled 1013
<span class="prenumber">171</span> \textfont0=\tenrm
<span class="prenumber">172</span> \scriptscriptfont2=\scriptfont3
<span class="prenumber">173</span> \the\fontdimen3\scriptscriptfont15
<span class="prenumber">174</span> $\textfont0=\tenrm 9\hbox{$9\textfont0=\Helvetica$}$%
<span class="prenumber">175</span> ${\textfont0=\Helvetica 9}$ % exercise 17.18
</pre>
<p class="nofirst noindent">gives:
0.0pt<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>9</mn><mn>9</mn></mrow></math></span><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mn xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">9</mn></math></span>. The dimension should be
zero, and the math formula contains three identical digits. Exercise 17.18
says that the fonts used by TeX in the last case is not Helvetica.</p>
<p>You cannot use more than 16 different math fonts in a formula. Assume that you
need symbol A from font a; you can say that <samp>\textfont6</samp> is your font a,
and your symbol is character 137 in that font. What if you want
symbol B from font b? you can use font number 7, but this is obviously not the
solution. We explain here the amsmath strategy by telling what happens if you
use <samp>\tt</samp> in a math formula. First of all, in a formula, this evaluates to
<samp>\mathtt</samp>, and the real command is <samp>\@mathtt</samp>. This is a self-modifying
command; after first use it is equivalent to <samp>\fam9</samp> (this means that
normal characters in text size use the <samp>\textfont9</samp>). The first use
allocates the number 9, and defines the font, moreover the font information is
remembered (the font <samp>\textfont9</samp> will be defined for all subsequent math
formulas). Note that the value of <samp>\textfont9</samp> can be cmtt12, but this is
recomputed if the current font size changes. For most other commands, the
number is allocated when the font is declared, this means that a slot is
allocated even when the font is never used.</p>
<p>Four slots are preallocated, with the names operators, letters, symbols and
largesymbols. If you load packages amsmath, amscd, amssymb, and bm, four
other slots are used, and there are only 8 slots remaining. In the case of
this document, we test all 14 MathML fonts. How is this possible?
In fact some characters are typeset outside math mode (sans-serif characters
for instance) and in some cases poor-man-bold is used. Moreover, we had to
remove some font families (these are commented out in the file
<span class="sansserif">raweb-uni.sty</span>).</p>
<p><b>Exercise 17.19:</b> Math code are not implemented in <i>Tralics</i>, <samp>\oplus</samp> is character
U+2295 and <samp>\bullet</samp> is character U+2022.</p>
<pre class="latex-code"><span class="prenumber">176</span> \mathcode`&lt;="2203 \mathcode`*="313C
<span class="prenumber">177</span> \mathcode`a="8000 {\catcode`a=13 \gdef a{A}}
<span class="prenumber">178</span> $a&lt;b*c$
<span class="prenumber">179</span> %\mathchardef\@M=10000
</pre>
<p class="nofirst noindent">In TeX, the previous code is equivalent to <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>A</mi><mo>*</mo><mi>b</mi><mo>&lt;</mo><mi>c</mi></mrow></math></span>, in <i>Tralics</i>, it gives:

<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>A</mi><mo>&lt;</mo><mi>b</mi><mo>*</mo><mi>c</mi></mrow></math></span>. Since version 2.9.10, a capital letter A is produced.
The last line is commented out: the assignment is done at bootstrap.
You should use <samp>\@M</samp> as the constant 10000, not as control-P in family 7
(binary operation).</p>
<p>Following code is unlikely to work</p>
<pre class="latex-code"><span class="prenumber">180</span> \def\sum\{\mathchar"1350}
<span class="prenumber">181</span> \mathchardef\sum"1350
<span class="prenumber">182</span> \def\n@space{\nulldelimiterspace\z@ \m@th}
<span class="prenumber">183</span> \newdimen\p@ \p@=1pt
<span class="prenumber">184</span> \def\bigl#{\mathopen{\hbox{$\left#1\vbox to8.5\p@{}\right.\n@space$}}}
<span class="prenumber">185</span> \delcode `x="123456
<span class="prenumber">186</span> \def\langle{\delimiter"426830A }
<span class="prenumber">187</span> \bigl\delimiter"426830A
<span class="prenumber">188</span> \def\sqrt{\radical"270370 }
<span class="prenumber">189</span> \def\idehat{\mathaccent"362 }
</pre>

<h2 id="uid25">2.3. Fine points of Mathematics Typing, TB 18</h2>
<h3 id="uid26">2.3.1. Punctuation</h3>
<p>Say: If <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>&lt;</mo><mn>0</mn></mrow></math></span>, we have shown that</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi><mo>=</mo><mi>f</mi><mo>(</mo><mi>x</mi><mo>)</mo><mo>.</mo></mrow></math></div>
<p class="nofirst noindent">Do not say: for <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>=</mo><mi>a</mi><mo>,</mo><mi>b</mi></mrow></math></span>, or <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">c</mi></math></span>, but: for <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>=</mo><mi>a</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">b</mi></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">c</mi></math></span>, or use a tie:
or <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">c</mi></math></span>.</p>
<p><b>Exercise 18.1:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>R</mi><mrow><mo>(</mo><mi>n</mi><mo>,</mo><mi>t</mi><mo>)</mo></mrow><mo>=</mo><mi>O</mi><mrow><mo>(</mo><msup><mi>t</mi> <mrow><mi>n</mi><mo>/</mo><mn>2</mn></mrow> </msup><mo>)</mo></mrow></mrow></math></span>, as <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>t</mi><mo>&#8594;</mo><msup><mn>0</mn> <mo>+</mo> </msup></mrow></math></span>. Adding braces improves the Html version: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mi>R</mi><mo>(</mo><mi>n</mi><mo>,</mo><mi>t</mi><mo>)</mo></mrow><mo>=</mo><mi>O</mi><mo>(</mo><msup><mi>t</mi> <mrow><mi>n</mi><mo>/</mo><mn>2</mn></mrow> </msup><mo>)</mo></mrow></math></span>.</p>

<h3 id="uid27">2.3.2. Non-italics letters in formulas</h3>
<p>TeX has 32 predefined operators, some of them behave like sums according to
the placement of limits.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mo form="prefix">arccos</mo> <mi>x</mi> </msub><mo>+</mo><msub><mo form="prefix">arcsin</mo> <mi>x</mi> </msub><mo>+</mo><msub><mo form="prefix">arctan</mo> <mi>x</mi> </msub><mo>+</mo><msub><mo form="prefix">arg</mo> <mi>x</mi> </msub><mo>+</mo><msub><mo form="prefix">cos</mo> <mi>x</mi> </msub><mo>+</mo><msub><mo form="prefix">cosh</mo> <mi>x</mi> </msub><mo>+</mo><msub><mo form="prefix">cot</mo> <mi>x</mi> </msub><mo>+</mo><msub><mo form="prefix">coth</mo> <mi>x</mi> </msub><mo>+</mo><msub><mo form="prefix">csc</mo> <mi>x</mi> </msub><mo>+</mo><msub><mo form="prefix">deg</mo> <mi>x</mi> </msub></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munder><mo movablelimits="true" form="prefix">det</mo> <mi>x</mi> </munder><mo>+</mo><msub><mo form="prefix">dim</mo> <mi>x</mi> </msub><mo>+</mo><msub><mo form="prefix">exp</mo> <mi>x</mi> </msub><mo>+</mo><munder><mo movablelimits="true" form="prefix">gcd</mo> <mi>x</mi> </munder><mo>+</mo><msub><mo form="prefix">hom</mo> <mi>x</mi> </msub><mo>+</mo><munder><mo movablelimits="true" form="prefix">inf</mo> <mi>x</mi> </munder><mo>+</mo><msub><mo form="prefix">ker</mo> <mi>x</mi> </msub><mo>+</mo><msub><mo form="prefix">lg</mo> <mi>x</mi> </msub><mo>+</mo><munder><mo movablelimits="true" form="prefix">lim</mo> <mi>x</mi> </munder><mo>+</mo><munder><mo movablelimits="true" form="prefix">lim inf</mo> <mi>x</mi> </munder></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munder><mo movablelimits="true" form="prefix">lim sup</mo> <mi>x</mi> </munder><mo>+</mo><msub><mo form="prefix">ln</mo> <mi>x</mi> </msub><mo>+</mo><msub><mo form="prefix">log</mo> <mi>x</mi> </msub><mo>+</mo><munder><mo movablelimits="true" form="prefix">max</mo> <mi>x</mi> </munder><mo>+</mo><munder><mo movablelimits="true" form="prefix">min</mo> <mi>x</mi> </munder><mo>+</mo><msub><mo form="prefix">Pr</mo> <mi>x</mi> </msub><mo>+</mo><msub><mo form="prefix">sec</mo> <mi>x</mi> </msub><mo>+</mo><msub><mo form="prefix">sin</mo> <mi>x</mi> </msub><mo>+</mo><msub><mo form="prefix">sinh</mo> <mi>x</mi> </msub><mo>+</mo><munder><mo movablelimits="true" form="prefix">sup</mo> <mi>x</mi> </munder></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mo form="prefix">tan</mo> <mi>x</mi> </msub><mo>+</mo><msub><mo form="prefix">tanh</mo> <mi>x</mi> </msub><mo>+</mo><munder><mo movablelimits="true" form="prefix">inj lim</mo> <mi>x</mi> </munder><mo>+</mo><munder><mo movablelimits="true" form="prefix">proj lim</mo> <mi>x</mi> </munder></mrow></math></div>
<p class="nofirst noindent">The last two operators are defined by amsmath. Variants shown later. More
formulas (there should be small space around these operators, that is
invisibile on my browser).</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd><mrow><mo form="prefix">sin</mo><mn>2</mn><mi>&#952;</mi><mo>=</mo><mn>2</mn><mo form="prefix">sin</mo><mi>&#952;</mi><mo form="prefix">cos</mo><mi>&#952;</mi></mrow></mtd></mtr><mtr><mtd><mrow><mi>O</mi><mo>(</mo><mi>n</mi><mo form="prefix">log</mo><mi>n</mi><mo form="prefix">log</mo><mo form="prefix">log</mo><mi>n</mi><mo>)</mo></mrow></mtd></mtr><mtr><mtd><mrow><mi>P</mi><mi>r</mi><mo>(</mo><mi>X</mi><mo>&gt;</mo><mi>x</mi><mo>)</mo><mo>=</mo><mo form="prefix">exp</mo><mo>(</mo><mo>-</mo><mi>x</mi><mo>/</mo><mi>&#956;</mi><mo>)</mo></mrow></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><munder><mo movablelimits="true" form="prefix">max</mo> <mrow><mn>1</mn><mo>&#8804;</mo><mi>n</mi><mo>&#8804;</mo><mi>m</mi></mrow> </munder><msub><mo form="prefix">log</mo> <mn>2</mn> </msub><msub><mi>P</mi> <mi>n</mi> </msub></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><munder><mo movablelimits="true" form="prefix">lim</mo> <mrow><mi>x</mi><mo>&#8594;</mo><mn>0</mn></mrow> </munder><mfrac><mrow><mo form="prefix">sin</mo><mi>x</mi></mrow> <mi>x</mi></mfrac><mo>=</mo><mn>1</mn></mrow></mstyle></mtd></mtr></mtable></math></div>
<p><b>Exercise 18.2:</b></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>p</mi> <mn>1</mn> </msub><mrow><mo>(</mo><mi>n</mi><mo>)</mo></mrow><mo>=</mo><munder><mo movablelimits="true" form="prefix">lim</mo> <mrow><mi>m</mi><mo>&#8594;</mo><mi>&#8734;</mi></mrow> </munder><munderover><mo>&#8721;</mo> <mrow><mi>&#957;</mi><mo>=</mo><mn>0</mn></mrow> <mi>&#8734;</mi> </munderover><mfenced separators="" open="(" close=")"><mn>1</mn> <mo>-</mo> <msup><mo form="prefix">cos</mo> <mrow><mn>2</mn><mi>m</mi></mrow> </msup> <mrow><mo>(</mo><mi>&#957;</mi><msup><mo>!</mo> <mi>n</mi> </msup><mi>&#960;</mi><mo>/</mo><mi>n</mi><mo>)</mo></mrow></mfenced></mrow></math></div>
<p class="nofirst noindent">Example of formulas using <samp>\rm</samp>:
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msqrt xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mi> Var </mi><mo>(</mo><mi>X</mi><mo>)</mo></mrow></msqrt></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>x</mi> <mi> max </mi> </msub><mo>-</mo><msub><mi>x</mi> <mi> min </mi> </msub></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi> LL </mi><mo>(</mo><mi>k</mi><mo>)</mo><mo>&#8658;</mo><mi> LR </mi><mo>(</mo><mi>k</mi><mo>)</mo></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo form="prefix">exp</mo><mo>(</mo><mi>x</mi><mo>+</mo><mi> constant </mi><mo>)</mo></mrow></math></span>,
and <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>x</mi> <mn>3</mn> </msup><mo>+</mo><mrow><mi> lower </mi><mspace width="4pt"></mspace><mi> order </mi><mspace width="4pt"></mspace><mi> terms </mi></mrow></mrow></math></span>.</p>
<p>Some formulas using <samp>\hbox</samp> for roman font:
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msqrt xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mtext>Var</mtext><mo>(</mo><mi>X</mi><mo>)</mo></mrow></msqrt></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtext>LL</mtext><mo>(</mo><mi>k</mi><mo>)</mo><mo>&#8658;</mo><mtext>LR</mtext><mo>(</mo><mi>k</mi><mo>)</mo></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo form="prefix">exp</mo><mo>(</mo><mi>x</mi><mo>+</mo><mtext>constant</mtext><mo>)</mo></mrow></math></span>,
and <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>x</mi> <mn>3</mn> </msup><mo>+</mo><mtext>lower</mtext><mspace width="4.pt"></mspace><mtext>order</mtext><mspace width="4.pt"></mspace><mtext>terms</mtext></mrow></math></span>.</p>
<p>The same formulas using <samp>\text</samp> for roman font:
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msqrt xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mtext>Var</mtext><mo>(</mo><mi>X</mi><mo>)</mo></mrow></msqrt></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtext>LL</mtext><mo>(</mo><mi>k</mi><mo>)</mo><mo>&#8658;</mo><mtext>LR</mtext><mo>(</mo><mi>k</mi><mo>)</mo></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo form="prefix">exp</mo><mo>(</mo><mi>x</mi><mo>+</mo><mtext>constant</mtext><mo>)</mo></mrow></math></span>,
and <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>x</mi> <mn>3</mn> </msup><mo>+</mo><mtext>lower</mtext><mspace width="4.pt"></mspace><mtext>order</mtext><mspace width="4.pt"></mspace><mtext>terms</mtext></mrow></math></span>.</p>
<pre class="latex-code"><span class="prenumber">190</span> \def\Varliminf{\mathop{\underline{\mathmo{lim}}}}
<span class="prenumber">191</span> \def\Varlimsup{\mathop{\overline{\mathmo{lim}}}}
<span class="prenumber">192</span> \[\lim_{n\to\infty}x_n\text{ exists}\iff
<span class="prenumber">193</span> \Varlimsup_{n\to\infty}x_n=\Varliminf_{n\to\infty}x_n.\]
</pre>
<p><b>Exercise 18.3:</b></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munder><mo movablelimits="true" form="prefix">lim</mo> <mrow><mi>n</mi><mo>&#8594;</mo><mi>&#8734;</mi></mrow> </munder><msub><mi>x</mi> <mi>n</mi> </msub><mspace width="4.pt"></mspace><mtext>exists</mtext><mo>&#8660;</mo><munder><mo movablelimits="true" form="prefix">lim sup</mo> <mrow><mi>n</mi><mo>&#8594;</mo><mi>&#8734;</mi></mrow> </munder><msub><mi>x</mi> <mi>n</mi> </msub><mo>=</mo><munder><mo movablelimits="true" form="prefix">lim inf</mo> <mrow><mi>n</mi><mo>&#8594;</mo><mi>&#8734;</mi></mrow> </munder><msub><mi>x</mi> <mi>n</mi> </msub><mo>.</mo></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munder><mo movablelimits="true" form="prefix">lim</mo> <mrow><mi>n</mi><mo>&#8594;</mo><mi>&#8734;</mi></mrow> </munder><msub><mi>x</mi> <mi>n</mi> </msub><mspace width="4.pt"></mspace><mtext>exists</mtext><mo>&#8660;</mo><munder><mover><mo>lim</mo> <mo>¯</mo></mover> <mrow><mi>n</mi><mo>&#8594;</mo><mi>&#8734;</mi></mrow> </munder><msub><mi>x</mi> <mi>n</mi> </msub><mo>=</mo><munder><munder><mo>lim</mo> <mo>&#818;</mo></munder> <mrow><mi>n</mi><mo>&#8594;</mo><mi>&#8734;</mi></mrow> </munder><msub><mi>x</mi> <mi>n</mi> </msub><mo>.</mo></mrow></math></div>
<p>The code above is wrong, because `lim´ is a known operator, with movable
limits, hence, in non-display mode, both the underline and the real subscript
will move. The real definitions adds
<span class="sansserif">movablelimits</span> = `false´ to the operator.</p>
<pre class="latex-code"><span class="prenumber">194</span> $\gcd(m,n)=\gcd(n,m\bmod n)$, or $x\equiv y+1\pmod{m^2}$
<span class="prenumber">195</span> $x\equiv0(\pmod y^n)$.
</pre>
<p class="nofirst noindent">Modulo: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mi>m</mi><mo>,</mo><mi>n</mi><mo>)</mo><mo>=</mo><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mi>n</mi><mo>,</mo><mi>m</mi><mspace width="0.277778em"></mspace><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><mi>n</mi><mo>)</mo></mrow></math></span>, or <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>&#8801;</mo><mi>y</mi><mo>+</mo><mn>1</mn><mspace width="4.44443pt"></mspace><mo>(</mo><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><msup><mi>m</mi> <mn>2</mn> </msup><mo>)</mo></mrow></math></span></p>
<p><b>Exercise 18.4:</b> B.L. User got the unexpected formula <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>&#8801;</mo><mn>0</mn><mo>(</mo><mspace width="4.44443pt"></mspace><msup><mrow><mo>(</mo><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><mi>y</mi><mo>)</mo></mrow> <mi>n</mi> </msup><mo>)</mo></mrow></math></span>.</p>
<p><b>Exercise 18.5:</b> In this example, there are braces around <samp>n/p</samp>, but not
<samp>k/p</samp>; this can affect the size of the slash operator (HTML version only).</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mi>n</mi> <mi>k</mi></mfrac></mfenced><mo>&#8801;</mo><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mrow><mo>&#8970;</mo><mrow><mi>n</mi><mo>/</mo><mi>p</mi></mrow><mo>&#8971;</mo></mrow> <mrow><mo>&#8970;</mo><mi>k</mi><mo>/</mo><mi>p</mi><mo>&#8971;</mo></mrow></mfrac></mfenced><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mrow><mi>n</mi><mspace width="0.277778em"></mspace><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><mi>p</mi></mrow> <mrow><mi>k</mi><mspace width="0.277778em"></mspace><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><mi>p</mi></mrow></mfrac></mfenced><mspace width="10.0pt"></mspace><mrow><mo>(</mo><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><mi>p</mi><mo>)</mo></mrow></mrow></math></div>
<p>Example of bold face <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="bold">a</mi><mo>+</mo><mi mathvariant="bold">b</mi><mo>=</mo><msub><mi>&#934;</mi> <mi mathvariant="bold">m</mi> </msub></mrow></math></span>; normal Phi is U+03A6, bold Phi is
U+1D6BD, italic Phi is U+1D6F7, bold italic Phi is U+1D731, sans serif bold
Phi is U+1D76B, sans serif bold italic Phi is U+1D7A5. In the current version
of <i>Tralics</i>, font changes apply only to ASCII letters. Commands like <samp>\cal</samp>
are robust, so that
<samp>$\cal Ab\Phi$</samp> produces <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="script">Ab</mi><mi>&#934;</mi></mrow></math></span>;
command <samp>\mit</samp> is not implemented. Note that in some cases, digits and
lower case letters do not exist in the font, and may be replaced by random
glyphs.</p>
<p><b>Exercise 18.6:</b> If you want
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mover accent="true"><mi mathvariant="bold">x</mi> <mo>¯</mo></mover> <mi mathvariant="normal">T</mi> </msup><mi mathvariant="bold">Mx</mi><mo>=</mo><mn>0</mn><mo>&#8660;</mo><mi mathvariant="bold">x</mi><mo>=</mo><mn mathvariant="bold">0</mn></mrow></math></span> in
<i>Tralics</i> 2.9.4, you have to explicitly say that you want a bold face zero,
and an upright T, see below. In version 2.9.5, nothing special needed.
Note how we use colon-equal here.</p>
<pre class="latex-code"><span class="prenumber">196</span> $\bf\bar x^{\mathmo{T}}Mx={\rm0}\iff x=\mathmn[mathvariant][bold]{0}$
<span class="prenumber">197</span> Compare $This\ is\ math\ italics$ with {\it This is text italics}.
<span class="prenumber">198</span> Compare $different$ and $\it different$. We have also
<span class="prenumber">199</span> $\it last\mathmo{:=}first$, $\it x\_coord(point\_2)$
</pre>
<p class="nofirst noindent">Compare <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>T</mi><mi>h</mi><mi>i</mi><mi>s</mi><mspace width="4pt"></mspace><mi>i</mi><mi>s</mi><mspace width="4pt"></mspace><mi>m</mi><mi>a</mi><mi>t</mi><mi>h</mi><mspace width="4pt"></mspace><mi>i</mi><mi>t</mi><mi>a</mi><mi>l</mi><mi>i</mi><mi>c</mi><mi>s</mi></mrow></math></span> with <i>This is text italics</i>.
Compare <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>d</mi><mi>i</mi><mi>f</mi><mi>f</mi><mi>e</mi><mi>r</mi><mi>e</mi><mi>n</mi><mi>t</mi></mrow></math></span> and <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" mathvariant="italic">different</mi></math></span>. We have also
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="italic">last</mi><mo>:=</mo><mi mathvariant="italic">first</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="italic">x</mi><mo>_</mo><mi mathvariant="italic">coord</mi><mo>(</mo><mi mathvariant="italic">point</mi><mo>_</mo><mn mathvariant="italic">2</mn><mo>)</mo></mrow></math></span>.</p>
<p><b>Exercise 18.8:</b> We use <samp>\mathit</samp> instead of <samp>\it</samp> here.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="italic">available</mi><mo>+</mo><munderover><mo>&#8721;</mo> <mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow> <mi>n</mi> </munderover><mo movablelimits="true" form="prefix">max</mo><mrow><mo>(</mo><mi mathvariant="italic">full</mi><mrow><mo>(</mo><mi>i</mi><mo>)</mo></mrow><mo>,</mo><mi mathvariant="italic">reserved</mi><mrow><mo>(</mo><mi>i</mi><mo>)</mo></mrow><mo>)</mo></mrow><mo>=</mo><mi mathvariant="italic">capacity</mi></mrow></math></div>
<p><b>Exercise 18.9:</b>
The following code was obtaining by taking the answer from the TeXbook, with the following modifications: the <samp>\sfcode</samp> of the semi colon not
changed; math formulas put outside scope of <samp>\bf</samp>, because my browser shows
letters (not digits) in bold face otherwise. Note that the XML to HTML
processor converted the whole environment (seven paragraphs) into a single
paragraph
with <tt class="txt">&lt;br&gt;</tt> as separator (inter-paragraph width too big), and a huge
left margin (for fun). We show here the start of the code:</p>
<pre class="latex-code"><span class="prenumber">200</span> \begin{xmlelement+}{pseudocode}\XMLaddatt{leftskip}{5cm}
<span class="prenumber">201</span> \obeylines
<span class="prenumber">202</span> \def\coleq{\mathmo{:=}}
<span class="prenumber">203</span> \textbf{for} $j\coleq 2$ \textbf{step} $1$ \textbf{until} $n$ \textbf{do}
<span class="prenumber">204</span> ...
<span class="prenumber">205</span> \end{xmlelement+}
</pre>
<p><p class="nofirst noindent" style="margin-left:5cm"><b>for</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>j</mi><mo>:=</mo><mn>2</mn></mrow></math></span> <b>step</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mn xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">1</mn></math></span> <b>until</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">n</mi></math></span> <b>do</b>
<br />   <b>begin</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="italic">accum</mi><mo>:=</mo><mi>A</mi><mo>[</mo><mi>j</mi><mo>]</mo></mrow></math></span>; <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>k</mi><mo>:=</mo><mi>j</mi><mo>-</mo><mn>1</mn></mrow></math></span>; <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>A</mi><mo>[</mo><mn>0</mn><mo>]</mo><mo>:=</mo><mi mathvariant="italic">accum</mi></mrow></math></span>;
<br />   <b>while</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>A</mi><mo>[</mo><mi>k</mi><mo>]</mo><mo>&gt;</mo><mi mathvariant="italic">accum</mi></mrow></math></span> <b>do</b>
<br />      <b>begin</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>A</mi><mo>[</mo><mi>k</mi><mo>+</mo><mn>1</mn><mo>]</mo><mo>:=</mo><mi>A</mi><mo>[</mo><mi>k</mi><mo>]</mo></mrow></math></span>; <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>k</mi><mo>:=</mo><mi>k</mi><mo>-</mo><mn>1</mn></mrow></math></span>;
<br />      <b>end</b>;
<br />   <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>A</mi><mo>[</mo><mi>k</mi><mo>+</mo><mn>1</mn><mo>]</mo><mo>:=</mo><mi mathvariant="italic">accum</mi></mrow></math></span>;
<br />   <b>end</b>.
<br /></p></p>

<h3 id="uid28">2.3.3. Spacing between formulas</h3>
<p>Compare</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>F</mi> <mi>n</mi> </msub><mo>=</mo><msub><mi>F</mi> <mrow><mi>n</mi><mo>-</mo><mn>1</mn></mrow> </msub><mo>+</mo><msub><mi>F</mi> <mrow><mi>n</mi><mo>-</mo><mn>2</mn></mrow> </msub><mo>,</mo><mi>n</mi><mo>&#8805;</mo><mn>2</mn><mo>.</mo></mrow></math></div>
<p class="nofirst noindent">with (lot of white space in the formula)</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>F</mi> <mi>n</mi> </msub><mo>=</mo><msub><mi>F</mi> <mrow><mi>n</mi><mo>-</mo><mn>1</mn></mrow> </msub><mo>+</mo><msub><mi>F</mi> <mrow><mi>n</mi><mo>-</mo><mn>2</mn></mrow> </msub><mo>,</mo><mspace width="2.em"></mspace><mi>n</mi><mo>&#8805;</mo><mn>2</mn><mo>.</mo></mrow></math></div>
<p class="nofirst noindent">and (no unnecessary white space in the formula)</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>F</mi> <mi>n</mi> </msub><mo>=</mo><msub><mi>F</mi> <mrow><mi>n</mi><mo>-</mo><mn>1</mn></mrow> </msub><mo>+</mo><msub><mi>F</mi> <mrow><mi>n</mi><mo>-</mo><mn>2</mn></mrow> </msub><mo>,</mo><mspace width="20.0pt"></mspace><mi>n</mi><mo>&#8805;</mo><mn>2</mn><mo>.</mo></mrow></math></div>
<p class="nofirst noindent">Normally, the spacing should be the same in the last two formulas.
In fact, Knuth says that <samp>\quad</samp> is the same as <samp>\hskip 1em</samp><samp>\relax</samp>.
The translation of a <samp>\quad</samp> in math mode is <tt class="txt">&lt;mspace width="1.em"&gt;</tt>,
but the <samp>\hskip</samp> command reads a dimension, and converts one em into ten
points<a id="uid29" href="#note6" title="Maybe, one day, Tralics will have an em that depends on the context"><small>(note: </small>&#10163;<small>)</small></a>.</p>
<p><b>Exercise 18.10:</b> Three versions:</p>
<p>Let <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">H</mi></math></span> be a Hilbert space,  <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">C</mi></math></span> a closed bounded convex subset
of <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">H</mi></math></span>,  <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">T</mi></math></span> a non-expansive self map of <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">C</mi></math></span>. Suppose that as
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>n</mi><mo>&#8594;</mo><mi>&#8734;</mi></mrow></math></span>,  <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>a</mi> <mrow><mi>n</mi><mo>,</mo><mi>k</mi></mrow> </msub><mo>&#8594;</mo><mn>0</mn></mrow></math></span> for each <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">k</mi></math></span>, and
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>&#947;</mi> <mi>n</mi> </msub><mo>=</mo><msubsup><mo>&#8721;</mo> <mrow><mi>k</mi><mo>=</mo><mn>0</mn></mrow> <mi>&#8734;</mi> </msubsup><msup><mrow><mo>(</mo><msub><mi>a</mi> <mrow><mi>n</mi><mo>,</mo><mi>k</mi><mo>+</mo><mn>1</mn></mrow> </msub><mo>-</mo><msub><mi>a</mi> <mrow><mi>n</mi><mo>,</mo><mi>k</mi></mrow> </msub><mo>)</mo></mrow> <mo>+</mo> </msup><mo>&#8594;</mo><mn>0</mn></mrow></math></span>.
Then for each <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">x</mi></math></span> in <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">C</mi></math></span>,  <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>A</mi> <mi>n</mi> </msub><mi>x</mi><mo>=</mo><msubsup><mo>&#8721;</mo> <mrow><mi>k</mi><mo>=</mo><mn>0</mn></mrow> <mi>&#8734;</mi> </msubsup><msub><mi>a</mi> <mrow><mi>n</mi><mo>,</mo><mi>k</mi></mrow> </msub><msup><mi>T</mi> <mi>k</mi> </msup><mi>x</mi></mrow></math></span> converges
weakly to a fixed point of <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">T</mi></math></span>.</p>
<p>Let <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">H</mi></math></span> be a Hilbert space,  <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">C</mi></math></span> a closed bounded convex subset
of <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">H</mi></math></span>,  <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">T</mi></math></span> a non-expansive self map of <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">C</mi></math></span>. Suppose that as
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>n</mi><mo>&#8594;</mo><mi>&#8734;</mi></mrow></math></span>,  <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>a</mi> <mrow><mi>n</mi><mo>,</mo><mi>k</mi></mrow> </msub><mo>&#8594;</mo><mn>0</mn></mrow></math></span> for each <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">k</mi></math></span>, and
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>&#947;</mi> <mi>n</mi> </msub><mo>=</mo><msubsup><mo>&#8721;</mo> <mrow><mi>k</mi><mo>=</mo><mn>0</mn></mrow> <mi>&#8734;</mi> </msubsup><msup><mrow><mo>(</mo><msub><mi>a</mi> <mrow><mi>n</mi><mo>,</mo><mi>k</mi><mo>+</mo><mn>1</mn></mrow> </msub><mo>-</mo><msub><mi>a</mi> <mrow><mi>n</mi><mo>,</mo><mi>k</mi></mrow> </msub><mo>)</mo></mrow> <mo>+</mo> </msup><mo>&#8594;</mo><mn>0</mn></mrow></math></span>.
Then for each <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">x</mi></math></span> in <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">C</mi></math></span>,  <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>A</mi> <mi>n</mi> </msub><mi>x</mi><mo>=</mo><msubsup><mo>&#8721;</mo> <mrow><mi>k</mi><mo>=</mo><mn>0</mn></mrow> <mi>&#8734;</mi> </msubsup><msub><mi>a</mi> <mrow><mi>n</mi><mo>,</mo><mi>k</mi></mrow> </msub><msup><mi>T</mi> <mi>k</mi> </msup><mi>x</mi></mrow></math></span> converges
weakly to a fixed point of <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">T</mi></math></span>.</p>
<p>Let <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">C</mi></math></span> be a closed, bounded, convex subset of a Hilbert space <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">H</mi></math></span>,
and let <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">T</mi></math></span> be a non-expansive self map of <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">C</mi></math></span>. Suppose that as
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>n</mi><mo>&#8594;</mo><mi>&#8734;</mi></mrow></math></span>, we have <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>a</mi> <mrow><mi>n</mi><mo>,</mo><mi>k</mi></mrow> </msub><mo>&#8594;</mo><mn>0</mn></mrow></math></span> for each <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">k</mi></math></span>, and
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>&#947;</mi> <mi>n</mi> </msub><mo>=</mo><msubsup><mo>&#8721;</mo> <mrow><mi>k</mi><mo>=</mo><mn>0</mn></mrow> <mi>&#8734;</mi> </msubsup><msup><mrow><mo>(</mo><msub><mi>a</mi> <mrow><mi>n</mi><mo>,</mo><mi>k</mi><mo>+</mo><mn>1</mn></mrow> </msub><mo>-</mo><msub><mi>a</mi> <mrow><mi>n</mi><mo>,</mo><mi>k</mi></mrow> </msub><mo>)</mo></mrow> <mo>+</mo> </msup><mo>&#8594;</mo><mn>0</mn></mrow></math></span>.
Then for each <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">x</mi></math></span> in <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">C</mi></math></span>, the infinite sum
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>A</mi> <mi>n</mi> </msub><mi>x</mi><mo>=</mo><msubsup><mo>&#8721;</mo> <mrow><mi>k</mi><mo>=</mo><mn>0</mn></mrow> <mi>&#8734;</mi> </msubsup><msub><mi>a</mi> <mrow><mi>n</mi><mo>,</mo><mi>k</mi></mrow> </msub><msup><mi>T</mi> <mi>k</mi> </msup><mi>x</mi></mrow></math></span> converges weakly to a fixed point of <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">T</mi></math></span>.</p>
<p>Comments: the translation of the three characters: space, backslash, space is
formed of two spaces. Such a construct is used four times in the first
version. This produces a nice dvi file, but HTML interprets the double space
the same as a single space. In the second version, we have used a double tilde
character. This inhibits line breaks. (My browser does not seem to honor this).
No special characters appear in the last example.</p>

<h3 id="uid30">2.3.4. Spacing within formulas</h3>
<pre class="latex-code"><span class="prenumber">206</span> $a\,b\&gt;c\;d\!e\quad f\qquad g\ h$~j
<span class="prenumber">207</span> %\the\thinmuskip\the\medmuskip\the\thickmuskip
</pre>
<p class="nofirst noindent">The math spacing commands: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>a</mi><mspace width="0.166667em"></mspace><mi>b</mi><mspace width="0.222222em"></mspace><mi>c</mi><mspace width="0.277778em"></mspace><mi>d</mi><mspace width="-0.166667em"></mspace><mi>e</mi><mspace width="1.em"></mspace><mi>f</mi><mspace width="2.em"></mspace><mi>g</mi><mspace width="4pt"></mspace><mi>h</mi><mspace width="3.33333pt"></mspace><mi>j</mi></mrow></math></span>.
In TeX, the value of the glue inserted depends on three registers:
<samp>\thinmuskip</samp> (3mu), <samp>\medmuskip</samp>
(4mu plus 2mu minus 4mu) and <samp>\thickmuskip</samp> (5mu plus 5mu). You can try to
execute the line above that is commented out: all dimensions come out as 0mu
in <i>Tralics</i>, but the math formula contains 0.166667em, 0.222222em, 0.277778em,
etc, this is the same as 3mu, 4mu and 5mu, because 1em=18mu. In <i>Tralics</i>,
<samp>\mskip 18mu</samp> is equivalent to <samp>\hskip1em</samp>, and, as said above, this is
the same as <samp>\hskip10pt</samp>. The same is true for <samp>\mkern18mu</samp>; the
translation is an empty <tt class="txt">&lt;mspace&gt;</tt> element, with attribute
<span class="sansserif">value</span> = `10.0pt´. The amount of space given by backslash-space changed
from 6pt to 4pt (this is the same amount of space used by the <samp>\text</samp>
command).</p>
<pre class="latex-code"><span class="prenumber">208</span> $\int_0^\infty f(x)\,dx$, $y\,dx-x\,dy$, $dx\,dy=r\,dr\,d\theta$, $x\,dy/dx$
</pre>
<p class="nofirst noindent">Translation <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mo>&#8747;</mo> <mn>0</mn> <mi>&#8734;</mi> </msubsup><mi>f</mi><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi>d</mi><mi>x</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>x</mi><mo>-</mo><mi>x</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>y</mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>d</mi><mi>x</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>y</mi><mo>=</mo><mi>r</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>r</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>&#952;</mi></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>y</mi><mo>/</mo><mi>d</mi><mi>x</mi></mrow></math></span>.</p>
<p><b>Exercise 18.11:</b></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mo>&#8747;</mo> <mn>1</mn> <mi>x</mi> </msubsup><mfrac><mrow><mi>d</mi><mi>t</mi></mrow> <mi>t</mi></mfrac><mspace width="2.em"></mspace><msubsup><mo>&#8747;</mo> <mn>0</mn> <mi>&#8734;</mi> </msubsup><mfrac><mrow><mi>t</mi><mo>-</mo><mi>i</mi><mi>b</mi></mrow> <mrow><msup><mi>t</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>b</mi> <mn>2</mn> </msup></mrow></mfrac><msup><mi>e</mi> <mrow><mi>i</mi><mi>a</mi><mi>t</mi></mrow> </msup><mspace width="0.166667em"></mspace><mi>d</mi><mi>t</mi><mo>=</mo><msup><mi>e</mi> <mrow><mi>a</mi><mi>b</mi></mrow> </msup><msub><mi>E</mi> <mn>1</mn> </msub><mrow><mo>(</mo><mi>a</mi><mi>b</mi><mo>)</mo></mrow><mo>,</mo><mspace width="2.em"></mspace><mi>a</mi><mo>,</mo><mi>b</mi><mo>&gt;</mo><mn>0</mn></mrow></math></div>
<pre class="latex-code"><span class="prenumber">209</span> $55\,\mathrm{mi/hr}$, $g=9.8\,\mathrm{m/sec}^2$,
<span class="prenumber">210</span> $1\mathrm{ml}=1.000028\,\mathrm{cc}$
</pre>
<p class="nofirst noindent">Units: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>55</mn><mspace width="0.166667em"></mspace><mi> mi </mi><mo>/</mo><mi> hr </mi></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>g</mi><mo>=</mo><mn>9</mn><mo>.</mo><mn>8</mn><mspace width="0.166667em"></mspace><mi mathvariant="normal">m</mi><mo>/</mo><msup><mi> sec </mi> <mn>2</mn> </msup></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>1</mn><mi> ml </mi><mo>=</mo><mn>1</mn><mo>.</mo><mn>000028</mn><mspace width="0.166667em"></mspace><mi> cc </mi></mrow></math></span>. Note that digits are outside the scope
of <samp>\mathrm</samp>.</p>
<p><b>Exercise 18.12:</b> Inline math, displaystyle:
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mstyle xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" scriptlevel="0" displaystyle="true"><mrow><mi>&#8463;</mi><mo>=</mo><mn>1</mn><mo>.</mo><mn>054</mn><mo>×</mo><msup><mn>10</mn> <mrow><mo>-</mo><mn>27</mn></mrow> </msup><mspace width="0.166667em"></mspace><mi> erg </mi><mspace width="0.166667em"></mspace><mi> sec </mi><mo>.</mo></mrow></mstyle></math></span></p>
<pre class="latex-code"><span class="prenumber">211</span> $(2n)!/\bigl(n!\,(n+1)!\bigr)$, $\sqrt2\,x$,
<span class="prenumber">212</span> $\sqrt{\,\log x}$, $O\bigl(1/\sqrt n\,\bigr)$,
<span class="prenumber">213</span> $[\,0,1)$, $\log n\,(\log\log n)^2$, $x^2\!/2$, $n/\!\log n$,
<span class="prenumber">214</span> $\Gamma_{\!2}+\Delta^{\!2}$, $R_i{}^j{}_{\!kl}$, $\int_0^x\!\int_0^y dF(u,v)$
<span class="prenumber">215</span>  \[\frac{52!}{13!\,13!\,26!}\qquad \int\!\!\!\int_D dx\,dy\]
</pre>
<p class="nofirst noindent">Test:
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>(</mo><mn>2</mn><mi>n</mi><mo>)</mo></mrow><mo>!</mo><mo>/</mo><mfenced separators="" open="(" close=")"><mi>n</mi> <mo>!</mo> <mspace width="0.166667em"></mspace> <mo>(</mo> <mi>n</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> <mo>!</mo></mfenced></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msqrt><mn>2</mn></msqrt><mspace width="0.166667em"></mspace><mi>x</mi></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msqrt xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mspace width="0.166667em"></mspace><mo form="prefix">log</mo><mi>x</mi></mrow></msqrt></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>O</mi><mfenced separators="" open="(" close=")"><mn>1</mn> <mo>/</mo> <msqrt><mi>n</mi></msqrt> <mspace width="0.166667em"></mspace></mfenced></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>[</mo><mspace width="0.166667em"></mspace><mn>0</mn><mo>,</mo><mn>1</mn><mo>)</mo></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo form="prefix">log</mo><mi>n</mi><mspace width="0.166667em"></mspace><msup><mrow><mo>(</mo><mo form="prefix">log</mo><mo form="prefix">log</mo><mi>n</mi><mo>)</mo></mrow> <mn>2</mn> </msup></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>x</mi> <mn>2</mn> </msup><mspace width="-0.166667em"></mspace><mo>/</mo><mn>2</mn></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>n</mi><mo>/</mo><mspace width="-0.166667em"></mspace><mo form="prefix">log</mo><mi>n</mi></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>&#915;</mi> <mrow><mspace width="-0.166667em"></mspace><mn>2</mn></mrow> </msub><mo>+</mo><msup><mi>&#916;</mi> <mrow><mspace width="-0.166667em"></mspace><mn>2</mn></mrow> </msup></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>R</mi> <mi>i</mi> </msub><msup><mrow></mrow> <mi>j</mi> </msup><msub><mrow></mrow> <mrow><mspace width="-0.166667em"></mspace><mi>k</mi><mi>l</mi></mrow> </msub></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mo>&#8747;</mo> <mn>0</mn> <mi>x</mi> </msubsup><mspace width="-0.166667em"></mspace><msubsup><mo>&#8747;</mo> <mn>0</mn> <mi>y</mi> </msubsup><mi>d</mi><mi>F</mi><mrow><mo>(</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>)</mo></mrow></mrow></math></span></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mrow><mn>52</mn><mo>!</mo></mrow> <mrow><mn>13</mn><mo>!</mo><mspace width="0.166667em"></mspace><mn>13</mn><mo>!</mo><mspace width="0.166667em"></mspace><mn>26</mn><mo>!</mo></mrow></mfrac><mspace width="2.em"></mspace><mo>&#8747;</mo><mspace width="-0.166667em"></mspace><mspace width="-0.166667em"></mspace><mspace width="-0.166667em"></mspace><msub><mo>&#8747;</mo> <mi>D</mi> </msub><mi>d</mi><mi>x</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>y</mi></mrow></math></div>
<p class="nofirst noindent">Same formulas, without thin spaces</p>
<p class="nofirst noindent">Test:
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>(</mo><mn>2</mn><mi>n</mi><mo>)</mo></mrow><mo>!</mo><mo>/</mo><mfenced separators="" open="(" close=")"><mi>n</mi> <mo>!</mo> <mo>(</mo> <mi>n</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> <mo>!</mo></mfenced></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msqrt><mn>2</mn></msqrt><mi>x</mi></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msqrt xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo form="prefix">log</mo><mi>x</mi></mrow></msqrt></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>O</mi><mfenced separators="" open="(" close=")"><mn>1</mn> <mo>/</mo> <msqrt><mi>n</mi></msqrt></mfenced></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>[</mo><mn>0</mn><mo>,</mo><mn>1</mn><mo>)</mo></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo form="prefix">log</mo><mi>n</mi><msup><mrow><mo>(</mo><mo form="prefix">log</mo><mo form="prefix">log</mo><mi>n</mi><mo>)</mo></mrow> <mn>2</mn> </msup></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>x</mi> <mn>2</mn> </msup><mo>/</mo><mn>2</mn></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>n</mi><mo>/</mo><mo form="prefix">log</mo><mi>n</mi></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>&#915;</mi> <mn>2</mn> </msub><mo>+</mo><msup><mi>&#916;</mi> <mn>2</mn> </msup></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>R</mi> <mi>i</mi> </msub><msup><mrow></mrow> <mi>j</mi> </msup><msub><mrow></mrow> <mrow><mi>k</mi><mi>l</mi></mrow> </msub></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mo>&#8747;</mo> <mn>0</mn> <mi>x</mi> </msubsup><msubsup><mo>&#8747;</mo> <mn>0</mn> <mi>y</mi> </msubsup><mi>d</mi><mi>F</mi><mrow><mo>(</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>)</mo></mrow></mrow></math></span></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mrow><mn>52</mn><mo>!</mo></mrow> <mrow><mn>13</mn><mo>!</mo><mn>13</mn><mo>!</mo><mn>26</mn><mo>!</mo></mrow></mfrac><mspace width="2.em"></mspace><mo>&#8747;</mo><msub><mo>&#8747;</mo> <mi>D</mi> </msub><mi>d</mi><mi>x</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>y</mi></mrow></math></div>
<p>Amaya shows a strange behavior here. Without the space the first integral is
larger than the second. In thee case of negative space, the absolute value is
used.</p>
<p><b>Exercise 18.14:</b> intervals with left/right:
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfenced separators="" open="]" close="["><mo>-</mo><mi>&#8734;</mi><mo>,</mo><mi>T</mi></mfenced><mo>×</mo><mfenced separators="" open="]" close="["><mo>-</mo><mi>&#8734;</mi><mo>,</mo><mi>T</mi></mfenced></mrow></math></span>;
with mathopen, mathclose
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>]</mo><mo>-</mo><mi>&#8734;</mi><mo>,</mo><mi>T</mi><mo>[</mo><mo>×</mo><mo>]</mo><mo>-</mo><mi>&#8734;</mi><mo>,</mo><mi>T</mi><mo>[</mo></mrow></math></span>;
with nothing <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>]</mo><mo>-</mo><mi>&#8734;</mi><mo>,</mo><mi>T</mi><mo>[</mo><mo>×</mo><mo>]</mo><mo>-</mo><mi>&#8734;</mi><mo>,</mo><mi>T</mi><mo>[</mo></mrow></math></span>. And with left/right:
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfenced separators="" open="]" close="["><mo>-</mo><mi>&#8734;</mi><mo>,</mo><mfrac><mn>3</mn> <mn>4</mn></mfrac></mfenced><mo>×</mo><mfenced separators="" open="]" close="["><mo>-</mo><mi>&#8734;</mi><mo>,</mo><mfrac><mn>3</mn> <mn>4</mn></mfrac></mfenced></mrow></math></span>;
with mathopen, mathclose
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>]</mo><mo>-</mo><mi>&#8734;</mi><mo>,</mo><mfrac><mn>3</mn> <mn>4</mn></mfrac><mo>[</mo></mrow><mo>×</mo><mrow><mo>]</mo><mo>-</mo><mi>&#8734;</mi><mo>,</mo><mfrac><mn>3</mn> <mn>4</mn></mfrac><mo>[</mo></mrow></mrow></math></span>;
with nothing <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>]</mo><mo>-</mo><mi>&#8734;</mi><mo>,</mo></mrow><mfrac><mn>3</mn> <mn>4</mn></mfrac><mrow><mo>[</mo><mo>×</mo><mo>]</mo></mrow><mo>-</mo><mi>&#8734;</mi><mo>,</mo><mfrac><mn>3</mn> <mn>4</mn></mfrac><mrow><mo>[</mo></mrow></mrow></math></span>.</p>
<p><b>Exercise 18.15:</b> The spacing in <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>+</mo><mo>+</mo><mn>1</mn></mrow></math></span> differs between TeX and MathML.</p>

<h3 id="uid31">2.3.5. Ellipses</h3>
<pre class="latex-code"><span class="prenumber">216</span> $x_1+\cdots+x_n$, $x_1=\cdots=x_n=0$, $A_1\times\cdots\times A_n$,
<span class="prenumber">217</span> $f(x_1,\ldots,x_n)$, $x_1x_2\ldots x_n$, $(1-x)(1-x^2)\ldots(1-x^n)$,
<span class="prenumber">218</span> $n(n-1)\ldots(1)$.
</pre>
<p class="nofirst noindent">Translation of these formulas <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>x</mi> <mn>1</mn> </msub><mo>+</mo><mo>&#8943;</mo><mo>+</mo><msub><mi>x</mi> <mi>n</mi> </msub></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>x</mi> <mn>1</mn> </msub><mo>=</mo><mo>&#8943;</mo><mo>=</mo><msub><mi>x</mi> <mi>n</mi> </msub><mo>=</mo><mn>0</mn></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>A</mi> <mn>1</mn> </msub><mo>×</mo><mo>&#8943;</mo><mo>×</mo><msub><mi>A</mi> <mi>n</mi> </msub></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>f</mi><mo>(</mo><msub><mi>x</mi> <mn>1</mn> </msub><mo>,</mo><mo>...</mo><mo>,</mo><msub><mi>x</mi> <mi>n</mi> </msub><mo>)</mo></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>x</mi> <mn>1</mn> </msub><msub><mi>x</mi> <mn>2</mn> </msub><mo>...</mo><msub><mi>x</mi> <mi>n</mi> </msub></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>(</mo><mn>1</mn><mo>-</mo><mi>x</mi><mo>)</mo></mrow><mrow><mo>(</mo><mn>1</mn><mo>-</mo><msup><mi>x</mi> <mn>2</mn> </msup><mo>)</mo></mrow><mo>...</mo><mrow><mo>(</mo><mn>1</mn><mo>-</mo><msup><mi>x</mi> <mi>n</mi> </msup><mo>)</mo></mrow></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>n</mi><mo>(</mo><mi>n</mi><mo>-</mo><mn>1</mn><mo>)</mo><mo>...</mo><mo>(</mo><mn>1</mn><mo>)</mo></mrow></math></span>.</p>
<p><b>Exercise 18.16:</b> Answer <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>x</mi> <mn>1</mn> </msub><mo>+</mo><msub><mi>x</mi> <mn>1</mn> </msub><msub><mi>x</mi> <mn>2</mn> </msub><mo>+</mo><mo>&#8943;</mo><mo>+</mo><msub><mi>x</mi> <mn>1</mn> </msub><msub><mi>x</mi> <mn>2</mn> </msub><mo>...</mo><msub><mi>x</mi> <mi>n</mi> </msub></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>(</mo><msub><mi>x</mi> <mn>1</mn> </msub><mo>,</mo><mo>...</mo><mo>,</mo><msub><mi>x</mi> <mi>n</mi> </msub><mo>)</mo></mrow><mo>·</mo><mrow><mo>(</mo><msub><mi>y</mi> <mn>1</mn> </msub><mo>,</mo><mo>...</mo><mo>,</mo><msub><mi>y</mi> <mi>n</mi> </msub><mo>)</mo></mrow><mo>=</mo><msub><mi>x</mi> <mn>1</mn> </msub><msub><mi>y</mi> <mn>1</mn> </msub><mo>+</mo><mo>&#8943;</mo><mo>+</mo><msub><mi>x</mi> <mi>n</mi> </msub><msub><mi>y</mi> <mi>n</mi> </msub></mrow></math></span>.
Prove that <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mrow><mo>(</mo><mn>1</mn><mo>-</mo><mi>x</mi><mo>)</mo></mrow> <mrow><mo>-</mo><mn>1</mn></mrow> </msup><mo>=</mo><mn>1</mn><mo>+</mo><mi>x</mi><mo>+</mo><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><mo>&#8943;</mo><mspace width="0.166667em"></mspace></mrow></math></span>. Clearly <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>a</mi> <mi>i</mi> </msub><mo>&lt;</mo><msub><mi>b</mi> <mi>i</mi> </msub></mrow></math></span>, for <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>i</mi><mo>=</mo><mn>1</mn></mrow></math></span>, 2,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>...</mo><mspace width="0.166667em"></mspace></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">n</mi></math></span>. The coefficients <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msub xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>c</mi> <mn>0</mn> </msub></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msub xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>c</mi> <mn>1</mn> </msub></math></span>, ..., <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msub xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>c</mi> <mi>n</mi> </msub></math></span> are positive.
With braces surrounding the LHS: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mrow><mo>(</mo><mn>1</mn><mo>-</mo><mi>x</mi><mo>)</mo></mrow> <mrow><mo>-</mo><mn>1</mn></mrow> </msup><mo>=</mo><mn>1</mn><mo>+</mo><mi>x</mi><mo>+</mo><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><mo>&#8943;</mo><mspace width="0.166667em"></mspace></mrow></math></span>.</p>
<p><b>Exercise 18.17:</b> Clearly <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>a</mi> <mi>i</mi> </msub><mo>&lt;</mo><msub><mi>b</mi> <mi>i</mi> </msub></mrow></math></span>, for <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>i</mi><mo>=</mo><mn>1</mn><mo>,</mo><mn>2</mn><mo>,</mo><mo>...</mo><mo>,</mo><mi>n</mi></mrow></math></span>. Note that the `2´ here is
a math digit, while it is text digit in the sentence above.</p>
<p><b>Exercise 18.18:</b> Knuth used <samp>\dots</samp>.</p>

<h3 id="uid32">2.3.6. Line breaking</h3>
<p>The TeX book explains how TeX can break a math formula. This does not
apply to <i>Tralics</i>. Commands <samp>\nobreak</samp> and <samp>\allowbreak</samp>
do nothing in math mode.</p>

<h3 id="uid33">2.3.7. Braces</h3>
<p>You should use braces only for grouping. You can use a brace character via
<samp>\{</samp> in text or math mode. This character is a delimiter (it can be
preceded by <samp>\left</samp> or <samp>\big</samp>).</p>
<pre class="latex-code"><span class="prenumber">219</span> $\{a,b,c\}$, $\{1,2,\ldots,n\}$, $\{\mathrm{red,white,blue}\}$
<span class="prenumber">220</span> $\{\,x\mid x&gt;5\,\}$, $\{\,x:x&gt;5\,\}$,
<span class="prenumber">221</span> $\bigl\{\,\bigl(x,f(x)\bigr)\bigm|x\in D\,\big\}$
<span class="prenumber">222</span> $\bigl\{\,\bigl(x,f(x)\bigr)\bigm\mid x \in D\,\big\}$
<span class="prenumber">223</span> $\bigl\{\,\bigl(x,f(x)\bigr)\mid x\in D\,\big\}$
</pre>
<p>Translation
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>{</mo><mi>a</mi><mo>,</mo><mi>b</mi><mo>,</mo><mi>c</mi><mo>}</mo></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>{</mo><mn>1</mn><mo>,</mo><mn>2</mn><mo>,</mo><mo>...</mo><mo>,</mo><mi>n</mi><mo>}</mo></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>{</mo><mi> red </mi><mo>,</mo><mi> white </mi><mo>,</mo><mi> blue </mi><mo>}</mo></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>{</mo><mspace width="0.166667em"></mspace><mi>x</mi><mo>&#8739;</mo><mi>x</mi><mo>&gt;</mo><mn>5</mn><mspace width="0.166667em"></mspace><mo>}</mo></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>{</mo><mspace width="0.166667em"></mspace><mi>x</mi><mo>:</mo><mi>x</mi><mo>&gt;</mo><mn>5</mn><mspace width="0.166667em"></mspace><mo>}</mo></mrow></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mfenced xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" separators="" open="{" close="}"><mspace width="0.166667em"></mspace> <mfenced separators="" open="(" close=")"><mi>x</mi> <mo>,</mo> <mi>f</mi> <mo>(</mo> <mi>x</mi> <mo>)</mo></mfenced> <mo>|</mo> <mi>x</mi> <mo>&#8712;</mo> <mi>D</mi> <mspace width="0.166667em"></mspace></mfenced></math></span>
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mfenced xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" separators="" open="{" close="}"><mspace width="0.166667em"></mspace> <mfenced separators="" open="(" close=")"><mi>x</mi> <mo>,</mo> <mi>f</mi> <mo>(</mo> <mi>x</mi> <mo>)</mo></mfenced> <mrow><mo>|</mo><mi>x</mi><mo>&#8712;</mo><mi>D</mi><mspace width="0.166667em"></mspace></mrow></mfenced></math></span>.
Note that <samp>\mid</samp> gives better spacing than a single bar
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mfenced xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" separators="" open="{" close="}"><mspace width="0.166667em"></mspace> <mfenced separators="" open="(" close=")"><mi>x</mi> <mo>,</mo> <mi>f</mi> <mo>(</mo> <mi>x</mi> <mo>)</mo></mfenced> <mo>&#8739;</mo> <mi>x</mi> <mo>&#8712;</mo> <mi>D</mi> <mspace width="0.166667em"></mspace></mfenced></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mfenced xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" separators="" open="{" close="}"><mspace width="0.166667em"></mspace> <mfenced separators="" open="(" close=")"><mi>x</mi> <mo>,</mo> <mi>f</mi> <mo>(</mo> <mi>x</mi> <mo>)</mo></mfenced> <mo>&#8739;</mo> <mi>x</mi> <mo>&#8712;</mo> <mi>D</mi> <mspace width="0.166667em"></mspace></mfenced></math></span>.</p>
<p><b>Exercise 18.21:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mfenced xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" separators="" open="{" close="}"><msup><mi>x</mi> <mn>3</mn> </msup> <mo>&#8739;</mo> <mi>h</mi> <mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow> <mo>&#8712;</mo> <mrow><mo>{</mo><mo>-</mo><mn>1</mn><mo>,</mo><mn>0</mn><mo>,</mo><mo>+</mo><mn>1</mn><mo>}</mo></mrow> <mspace width="0.166667em"></mspace></mfenced></math></span></p>
<p><b>Exercise 18.22:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>{</mo><mspace width="0.166667em"></mspace><mi>p</mi><mo>&#8739;</mo><mi>p</mi></mrow></math></span> and <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>p</mi><mo>+</mo><mn>2</mn></mrow></math></span> are prime<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mspace width="0.166667em"></mspace><mo>}</mo></mrow></math></span>.</p>
<p>We show here the use of the cases enviroment, this is a two-column cmatrix,
with a left brace delimiter on the left.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>|</mo><mi>x</mi><mo>|</mo></mrow><mo>=</mo><mfenced separators="" open="{" close=""><mtable><mtr><mtd columnalign="left"><mrow><mi>x</mi><mo>,</mo></mrow></mtd><mtd columnalign="left"><mrow><mtext>if</mtext><mspace width="4.pt"></mspace><mi>x</mi><mo>&#8805;</mo><mn>0</mn><mo>;</mo></mrow></mtd></mtr><mtr><mtd columnalign="left"><mrow><mo>-</mo><mi>x</mi><mo>,</mo></mrow></mtd><mtd columnalign="left"><mrow><mtext>otherwise</mtext><mo>.</mo></mrow></mtd></mtr></mtable></mfenced></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>f</mi><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mo>=</mo><mfenced separators="" open="{" close=""><mtable><mtr><mtd columnalign="left"><mrow><mn>1</mn><mo>/</mo><mn>3</mn></mrow></mtd><mtd columnalign="left"><mrow><mtext>if</mtext><mspace width="4.pt"></mspace><mn>0</mn><mo>&#8804;</mo><mi>x</mi><mo>&#8804;</mo><mn>1</mn><mo>;</mo></mrow></mtd></mtr><mtr><mtd columnalign="left"><mrow><mn>2</mn><mo>/</mo><mn>3</mn></mrow></mtd><mtd columnalign="left"><mrow><mtext>if</mtext><mspace width="4.pt"></mspace><mn>3</mn><mo>&#8804;</mo><mi>x</mi><mo>&#8804;</mo><mn>4</mn><mo>;</mo></mrow></mtd></mtr><mtr><mtd columnalign="left"><mrow><mn>1</mn><mo>/</mo><mn>3</mn></mrow></mtd><mtd columnalign="left"><mrow><mtext>elsewhere</mtext><mo>;</mo></mrow></mtd></mtr></mtable></mfenced></mrow></math></div>
<p><b>Exercise 18.23:</b> The <samp>\cases</samp> command is not implemented, but there is
a environment. You cannot use <samp>\noalign</samp>. After a double backslash you can
put a dimension in brackets, but this is currently ignored.</p>
<pre class="latex-code"><span class="prenumber">224</span> \[\overbrace{x+\cdots+x}^{k\; \textrm{times}} \qquad \underbrace{x+y+z}_{&gt;\,0}\]
</pre>
<p class="nofirst noindent">We show here braces can stretch horizontally, when used as over-accent or
under-accent.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mover><mover accent="true"><mrow><mi>x</mi><mo>+</mo><mo>&#8943;</mo><mo>+</mo><mi>x</mi></mrow> <mo>&#65079;</mo></mover> <mrow><mi>k</mi><mspace width="0.277778em"></mspace><mi> times </mi></mrow> </mover><mspace width="2.em"></mspace><munder><munder accentunder="true"><mrow><mi>x</mi><mo>+</mo><mi>y</mi><mo>+</mo><mi>z</mi></mrow> <mo>&#65080;</mo></munder> <mrow><mo>&gt;</mo><mspace width="0.166667em"></mspace><mn>0</mn></mrow> </munder></mrow></math></div>

<h3 id="uid34">2.3.8. Matrices</h3>
<p>The plain TeX command <samp>\matrix</samp> should not be used. The `array´
environment can be used in math mode, and you must specify for each column the
alignment method. The `matrix´ environment can be used, cells are centered. He
we use `pmatrix´, because it adds automatically parentheses.</p>
<pre class="latex-code"><span class="prenumber">225</span> \[A=\begin{pmatrix}x-\lambda&amp;1&amp;0\\0&amp;x-\lambda&amp;1\\0&amp;0&amp;x-\lambda\end{pmatrix}\]
<span class="prenumber">226</span> \[\begin{pmatrix}a&amp;b&amp;c\\d&amp;e&amp;f\end{pmatrix}
<span class="prenumber">227</span> \begin{pmatrix}u&amp;x\\v&amp;y\\w&amp;z\end{pmatrix}\]
</pre>

<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>A</mi><mo>=</mo><mfenced open="(" close=")"><mtable><mtr><mtd><mrow><mi>x</mi><mo>-</mo><mi>&#955;</mi></mrow></mtd><mtd><mn>1</mn></mtd><mtd><mn>0</mn></mtd></mtr><mtr><mtd><mn>0</mn></mtd><mtd><mrow><mi>x</mi><mo>-</mo><mi>&#955;</mi></mrow></mtd><mtd><mn>1</mn></mtd></mtr><mtr><mtd><mn>0</mn></mtd><mtd><mn>0</mn></mtd><mtd><mrow><mi>x</mi><mo>-</mo><mi>&#955;</mi></mrow></mtd></mtr></mtable></mfenced></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfenced open="(" close=")"><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd><mtd><mi>c</mi></mtd></mtr><mtr><mtd><mi>d</mi></mtd><mtd><mi>e</mi></mtd><mtd><mi>f</mi></mtd></mtr></mtable></mfenced><mfenced open="(" close=")"><mtable><mtr><mtd><mi>u</mi></mtd><mtd><mi>x</mi></mtd></mtr><mtr><mtd><mi>v</mi></mtd><mtd><mi>y</mi></mtd></mtr><mtr><mtd><mi>w</mi></mtd><mtd><mi>z</mi></mtd></mtr></mtable></mfenced></mrow></math></div>
<p><b>Exercise 18.24:</b> This looks bad in the HTML version, but it OK is Pdf. Delimiters
are <samp>\lgroup</samp> and <samp>\rgroup</samp>.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfenced separators="" open="&#12308;" close="&#12309;"><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd><mtd><mi>c</mi></mtd></mtr><mtr><mtd><mi>d</mi></mtd><mtd><mi>e</mi></mtd><mtd><mi>f</mi></mtd></mtr></mtable></mfenced><mfenced separators="" open="&#12308;" close="&#12309;"><mtable><mtr><mtd><mi>u</mi></mtd><mtd><mi>x</mi></mtd></mtr><mtr><mtd><mi>v</mi></mtd><mtd><mi>y</mi></mtd></mtr><mtr><mtd><mi>w</mi></mtd><mtd><mi>z</mi></mtd></mtr></mtable></mfenced></mrow></math></div>
<p><b>Exercise 18.25:</b></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>A</mi><mo>=</mo><mfenced open="(" close=")"><mtable><mtr><mtd><msub><mi>a</mi> <mn>11</mn> </msub></mtd><mtd><msub><mi>a</mi> <mn>12</mn> </msub></mtd><mtd><mo>...</mo></mtd><mtd><msub><mi>a</mi> <mrow><mn>1</mn><mi>n</mi></mrow> </msub></mtd></mtr><mtr><mtd><msub><mi>a</mi> <mn>21</mn> </msub></mtd><mtd><msub><mi>a</mi> <mn>22</mn> </msub></mtd><mtd><mo>...</mo></mtd><mtd><msub><mi>a</mi> <mrow><mn>2</mn><mi>n</mi></mrow> </msub></mtd></mtr><mtr><mtd><mo>&#8942;</mo></mtd><mtd><mo>&#8942;</mo></mtd><mtd><mo>&#8945;</mo></mtd><mtd><mo>&#8942;</mo></mtd></mtr><mtr><mtd><msub><mi>a</mi> <mrow><mi>m</mi><mn>1</mn></mrow> </msub></mtd><mtd><msub><mi>a</mi> <mrow><mi>m</mi><mn>2</mn></mrow> </msub></mtd><mtd><mo>...</mo></mtd><mtd><msub><mi>a</mi> <mrow><mi>m</mi><mi>n</mi></mrow> </msub></mtd></mtr></mtable></mfenced><mspace width="2.em"></mspace><mfenced open="(" close=")"><mtable><mtr><mtd><msub><mi>y</mi> <mn>1</mn> </msub></mtd></mtr><mtr><mtd><mo>&#8942;</mo></mtd></mtr><mtr><mtd><msub><mi>y</mi> <mi>k</mi> </msub></mtd></mtr></mtable></mfenced></mrow></math></div>
<p>Border matrix<a id="uid35" href="#note7" title="Command \bordermatrix not yet implemented"><small>(note: </small>&#10163;<small>)</small></a></p>
<p>Small matrices <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mfenced xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" separators="" open="(" close=")"><mfrac linethickness="0pt"><mrow><mn>1</mn><mspace width="0.166667em"></mspace><mn>1</mn></mrow> <mrow><mn>0</mn><mspace width="0.166667em"></mspace><mn>0</mn></mrow></mfrac></mfenced></math></span> and <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mfenced xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" separators="" open="(" close=")"><mfrac linethickness="0.0pt"><mi>a</mi> <mi>l</mi></mfrac> <mfrac linethickness="0.0pt"><mi>b</mi> <mi>m</mi></mfrac> <mfrac linethickness="0.0pt"><mi>c</mi> <mi>n</mi></mfrac></mfenced></math></span>. Note that horizontal alignment is
only approximative.</p>

<h3 id="uid36">2.3.9. Vertical Spacing</h3>
<pre class="latex-code"><span class="prenumber">228</span> \def\Limsup{\mathop{\smash\limsup\vphantom\liminf}}
<span class="prenumber">229</span> $\Limsup\limits_3=\limsup\limits_3$
</pre>
<p class="nofirst noindent">
Compare: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munder><mrow><mpadded height="0pt" depth="0pt"><mo movablelimits="true" form="prefix">lim sup</mo></mpadded><mphantom><mpadded width="0pt"><mo movablelimits="true" form="prefix">lim inf</mo></mpadded></mphantom></mrow> <mn>3</mn> </munder><mo>=</mo><munder><mo movablelimits="false" form="prefix">lim sup</mo> <mn>3</mn> </munder></mrow></math></span>! The second index should be lower
than the first.</p>
<p>Commands <samp>\raise</samp> and <samp>\lower</samp> not yet implemented.
Commands <samp>\llap</samp> and <samp>\rlap</samp> not yet implemented.<a id="uid37" href="#note8" title="Fixme"><small>(note: </small>&#10163;<small>)</small></a></p>
<pre class="latex-code"><span class="prenumber">230</span> \def\undertext#1{$\underline{\hbox{#1}}$}
<span class="prenumber">231</span> \undertext{This} \undertext{does} \undertext{not} \undertext{always}
<span class="prenumber">232</span> \undertext{work} \undertext{right}.
<span class="prenumber">233</span> \def\undertext#1{$\underline{\smash{\hbox{#1}}}$}
<span class="prenumber">234</span> \undertext{This} \undertext{does} \undertext{not} \undertext{always}
<span class="prenumber">235</span> \undertext{work} \undertext{right}.
</pre>
<p><b>Exercise 18.26:</b>
 A sentence where each word is an
underlined math formula (text only):
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munder xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtext>This</mtext> <mo>&#818;</mo></munder></math></span> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munder xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtext>does</mtext> <mo>&#818;</mo></munder></math></span> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munder xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtext>not</mtext> <mo>&#818;</mo></munder></math></span> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munder xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtext>always</mtext> <mo>&#818;</mo></munder></math></span>
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munder xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtext>work</mtext> <mo>&#818;</mo></munder></math></span> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munder xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtext>right</mtext> <mo>&#818;</mo></munder></math></span>. The same, where the <samp>\smash</samp> is used to
hide the depth of the text (all lines vertically aligned):

<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munder xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mpadded height="0pt" depth="0pt"><mtext>This</mtext></mpadded> <mo>&#818;</mo></munder></math></span> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munder xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mpadded height="0pt" depth="0pt"><mtext>does</mtext></mpadded> <mo>&#818;</mo></munder></math></span> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munder xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mpadded height="0pt" depth="0pt"><mtext>not</mtext></mpadded> <mo>&#818;</mo></munder></math></span> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munder xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mpadded height="0pt" depth="0pt"><mtext>always</mtext></mpadded> <mo>&#818;</mo></munder></math></span>
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munder xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mpadded height="0pt" depth="0pt"><mtext>work</mtext></mpadded> <mo>&#818;</mo></munder></math></span> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munder xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mpadded height="0pt" depth="0pt"><mtext>right</mtext></mpadded> <mo>&#818;</mo></munder></math></span>.</p>
<pre class="latex-code"><span class="prenumber">236</span> $\rm Fe_2^{+2}Cr_2^{\vphantom{+2}}O_4^{\vphantom{+2}}$
</pre>
<p class="nofirst noindent">Use of phantoms: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mi> Fe </mi> <mn>2</mn> <mrow><mo>+</mo><mn>2</mn></mrow> </msubsup><msubsup><mi> Cr </mi> <mn>2</mn> <mphantom><mpadded width="0pt"><mo>+</mo><mn>2</mn></mpadded></mphantom> </msubsup><msubsup><mi mathvariant="normal">O</mi> <mn>4</mn> <mphantom><mpadded width="0pt"><mo>+</mo><mn>2</mn></mpadded></mphantom> </msubsup></mrow></math></span></p>

<h3 id="uid38">2.3.10. Special features for math hackers</h3>
<p>Commands <samp>\nonscript</samp>, <samp>\everymath</samp> and <samp>\everydisplay</samp> are OK.</p>
<pre class="latex-code"><span class="prenumber">237</span> {\everydisplay{a}\everymath{b} \def\X{x\nonscript\qquad y}
<span class="prenumber">238</span> \[u = \text{ v $w$ }\frac{\X}{\textstyle\X} \]}
</pre>

<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>a</mi><mi>u</mi><mo>=</mo><mspace width="4.pt"></mspace><mtext>v</mtext><mspace width="4.pt"></mspace><mrow><mi>b</mi><mi>w</mi></mrow><mspace width="4.pt"></mspace><mstyle scriptlevel="0" displaystyle="false"><mfrac><mstyle scriptlevel="1" displaystyle="false"><mrow><mi>x</mi><mi>y</mi></mrow></mstyle> <mstyle scriptlevel="0" displaystyle="false"><mrow><mi>x</mi><mspace width="2.em"></mspace><mi>y</mi></mrow></mstyle></mfrac></mstyle></mrow></math></div>

<h3 id="uid39">2.3.11. Summary</h3>
<p><b>Exercise 18.27:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>n</mi> <mi> th </mi> </msup></math></span> from the TeXbook, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>n</mi> <mi> th </mi> </msup></math></span> is LaTeX, and
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">n</mi></math></span><sup>th</sup> is textsuperscript.</p>
<p><b>Exercise 18.28:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi mathvariant="bold">S</mi> <mrow><mo>-</mo><mn>1</mn></mrow> </msup><mi mathvariant="bold">TS</mi><mo>=</mo><mi mathvariant="bold">dg</mi><mrow><mo>(</mo><msub><mi>&#969;</mi> <mn>1</mn> </msub><mo>,</mo><mo>...</mo><mo>,</mo><msub><mi>&#969;</mi> <mi>n</mi> </msub><mo>)</mo></mrow><mi>&#923;</mi></mrow></math></span>, uses <samp>\mathnormal</samp>, no bf lambda?</p>
<p><b>Exercise 18.29:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo form="prefix">Pr</mo><mo>(</mo><mspace width="0.166667em"></mspace><mi>m</mi><mo>=</mo><mi>n</mi><mo>&#8739;</mo><mi>m</mi><mo>+</mo><mi>n</mi><mo>=</mo><mn>3</mn><mspace width="0.166667em"></mspace><mo>)</mo></mrow></math></span>.</p>
<p><b>Exercise 18.30:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo form="prefix">sin</mo><msup><mn>18</mn> <mo>&#8728;</mo> </msup><mo>=</mo><mfrac><mn>1</mn> <mn>4</mn></mfrac><mrow><mo>(</mo><msqrt><mn>5</mn></msqrt><mo>-</mo><mn>1</mn><mo>)</mo></mrow></mrow></math></span>.</p>
<p><b>Exercise 18.31:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>k</mi><mo>=</mo><mn>1</mn><mo>.</mo><mn>38</mn><mo>×</mo><msup><mn>10</mn> <mrow><mo>-</mo><mn>16</mn></mrow> </msup><mspace width="0.166667em"></mspace><mi> erg </mi><msup><mo>/</mo> <mo>&#8728;</mo> </msup><mi mathvariant="normal">K</mi></mrow></math></span>.</p>
<p><b>Exercise 18.32:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mover accent="true"><mi>&#934;</mi> <mo>¯</mo></mover><mo>&#8834;</mo><mi>N</mi><msubsup><mi>L</mi> <mn>1</mn> <mo>*</mo> </msubsup><mo>/</mo><mi>N</mi><mo>=</mo><msubsup><mover accent="true"><mi>L</mi> <mo>¯</mo></mover> <mn>1</mn> <mo>*</mo> </msubsup><mo>&#8838;</mo><mo>&#8943;</mo><mo>&#8838;</mo><mi>N</mi><msubsup><mi>L</mi> <mi>n</mi> <mo>*</mo> </msubsup><mo>/</mo><mi>N</mi><mo>=</mo><msubsup><mover accent="true"><mi>L</mi> <mo>¯</mo></mover> <mi>n</mi> <mo>*</mo> </msubsup></mrow></math></span>.</p>
<p><b>Exercise 18.33:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>I</mi><mrow><mo>(</mo><mi>&#955;</mi><mo>)</mo></mrow><mo>=</mo><mo>&#8747;</mo><mspace width="-0.166667em"></mspace><mspace width="-0.166667em"></mspace><msub><mo>&#8747;</mo> <mi>D</mi> </msub><mi>g</mi><mrow><mo>(</mo><mi>x</mi><mo>,</mo><mi>y</mi><mo>)</mo></mrow><msup><mi>e</mi> <mrow><mi>i</mi><mi>&#955;</mi><mi>h</mi><mo>(</mo><mi>x</mi><mo>,</mo><mi>y</mi><mo>)</mo></mrow> </msup><mspace width="0.166667em"></mspace><mi>d</mi><mi>x</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>y</mi></mrow></math></span>.</p>
<p><b>Exercise 18.34:</b> <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mo>&#8747;</mo> <mn>0</mn> <mn>1</mn> </msubsup><mspace width="-0.166667em"></mspace><mo>&#8943;</mo><msubsup><mo>&#8747;</mo> <mn>0</mn> <mn>1</mn> </msubsup><mi>f</mi><mrow><mo>(</mo><msub><mi>x</mi> <mn>1</mn> </msub><mo>,</mo><mo>...</mo><mo>,</mo><msub><mi>x</mi> <mi>n</mi> </msub><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi>d</mi><msub><mi>x</mi> <mn>1</mn> </msub><mo>...</mo><mspace width="0.166667em"></mspace><mi>d</mi><msub><mi>x</mi> <mi>n</mi> </msub></mrow></math></span>.
Note: Firefox shows small integral signs, and larger ones in the previous
exercise.</p>
<p><b>Exercise 18.35:</b> Using cases environment</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>x</mi> <mrow><mn>2</mn><mi>m</mi></mrow> </msub><mo>&#8801;</mo><mfenced separators="" open="{" close=""><mtable><mtr><mtd columnalign="left"><mrow><mi>Q</mi><mrow><mo>(</mo><msubsup><mi>X</mi> <mi>m</mi> <mn>2</mn> </msubsup><mo>-</mo><msub><mi>P</mi> <mn>2</mn> </msub><msubsup><mi>W</mi> <mi>m</mi> <mn>2</mn> </msubsup><mo>)</mo></mrow><mo>-</mo><mn>2</mn><msup><mi>S</mi> <mn>2</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>(</mo><mi>m</mi><mspace width="4.pt"></mspace><mtext>odd</mtext><mo>)</mo></mrow></mtd></mtr><mtr><mtd columnalign="left"><mrow><msubsup><mi>P</mi> <mn>2</mn> <mn>2</mn> </msubsup><mrow><mo>(</mo><msubsup><mi>X</mi> <mi>m</mi> <mn>2</mn> </msubsup><mo>-</mo><msub><mi>P</mi> <mn>2</mn> </msub><msubsup><mi>W</mi> <mi>m</mi> <mn>2</mn> </msubsup><mo>)</mo></mrow><mo>-</mo><mn>2</mn><msup><mi>S</mi> <mn>2</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>(</mo><mi>m</mi><mspace width="4.pt"></mspace><mtext>even</mtext><mo>)</mo></mrow></mtd></mtr></mtable></mfenced><mspace width="10.0pt"></mspace><mrow><mo>(</mo><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><mi>N</mi><mo>)</mo></mrow><mo>.</mo></mrow></math></div>
<p><b>Exercise 18.36:</b> with a <samp>\frac</samp></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>(</mo><mn>1</mn><mo>+</mo><msub><mi>x</mi> <mn>1</mn> </msub><mi>z</mi><mo>+</mo><msubsup><mi>x</mi> <mn>1</mn> <mn>2</mn> </msubsup><mi>z</mi><mo>+</mo><mo>&#8943;</mo><mspace width="0.166667em"></mspace><mo>)</mo></mrow><mo>...</mo><mrow><mo>(</mo><mn>1</mn><mo>+</mo><msub><mi>x</mi> <mi>n</mi> </msub><mi>z</mi><mo>+</mo><msubsup><mi>x</mi> <mi>n</mi> <mn>2</mn> </msubsup><msup><mi>z</mi> <mn>2</mn> </msup><mo>+</mo><mo>&#8943;</mo><mspace width="0.166667em"></mspace><mo>)</mo></mrow><mo>=</mo><mfrac><mn>1</mn> <mrow><mrow><mo>(</mo><mn>1</mn><mo>-</mo><msub><mi>x</mi> <mn>1</mn> </msub><mi>z</mi><mo>)</mo></mrow><mo>...</mo><mrow><mo>(</mo><mn>1</mn><mo>-</mo><msub><mi>x</mi> <mi>n</mi> </msub><mi>z</mi><mo>)</mo></mrow></mrow></mfrac></mrow></math></div>
<p><b>Exercise 18.37:</b></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munder><mo>&#8719;</mo> <mrow><mi>j</mi><mo>&#8805;</mo><mn>0</mn></mrow> </munder><mfenced separators="" open="(" close=")"><munder><mo>&#8721;</mo> <mrow><mi>k</mi><mo>&#8805;</mo><mn>0</mn></mrow> </munder> <msub><mi>a</mi> <mrow><mi>j</mi><mi>k</mi></mrow> </msub> <msup><mi>z</mi> <mi>k</mi> </msup></mfenced><mo>=</mo><munder><mo>&#8721;</mo> <mrow><mi>n</mi><mo>&#8805;</mo><mn>0</mn></mrow> </munder><msup><mi>z</mi> <mi>n</mi> </msup><mspace width="0.166667em"></mspace><mfenced separators="" open="(" close=")"><munder><mo>&#8721;</mo> <mfrac linethickness="0pt"><mstyle scriptlevel="1" displaystyle="false"><mrow><msub><mi>k</mi> <mn>0</mn> </msub><mo>,</mo><msub><mi>k</mi> <mn>1</mn> </msub><mo>,</mo><mo>...</mo><mo>&#8805;</mo><mn>0</mn></mrow></mstyle> <mstyle scriptlevel="1" displaystyle="false"><mrow><msub><mi>k</mi> <mn>0</mn> </msub><mo>+</mo><msub><mi>k</mi> <mn>1</mn> </msub><mo>+</mo><mo>&#8943;</mo><mo>=</mo><mi>n</mi></mrow></mstyle></mfrac> </munder> <msub><mi>a</mi> <mrow><mn>0</mn><msub><mi>k</mi> <mn>0</mn> </msub></mrow> </msub> <msub><mi>a</mi> <mrow><mn>1</mn><msub><mi>k</mi> <mn>1</mn> </msub></mrow> </msub> <mo>...</mo> <mspace width="0.166667em"></mspace></mfenced><mo>.</mo></mrow></math></div>
<p><b>Exercise 18.38:</b> Using <samp>\frac</samp> and <samp>\binom</samp></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mrow><mo>(</mo><msub><mi>n</mi> <mn>1</mn> </msub><mo>+</mo><msub><mi>n</mi> <mn>2</mn> </msub><mo>+</mo><mo>&#8943;</mo><mo>+</mo><msub><mi>n</mi> <mi>m</mi> </msub><mo>)</mo><mo>!</mo></mrow> <mrow><msub><mi>n</mi> <mn>1</mn> </msub><mo>!</mo><mspace width="0.166667em"></mspace><msub><mi>n</mi> <mn>2</mn> </msub><mo>!</mo><mo>...</mo><msub><mi>n</mi> <mi>m</mi> </msub><mo>!</mo></mrow></mfrac><mo>=</mo><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mrow><msub><mi>n</mi> <mn>1</mn> </msub><mo>+</mo><msub><mi>n</mi> <mn>2</mn> </msub></mrow> <msub><mi>n</mi> <mn>2</mn> </msub></mfrac></mfenced><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mrow><msub><mi>n</mi> <mn>1</mn> </msub><mo>+</mo><msub><mi>n</mi> <mn>2</mn> </msub><mo>+</mo><msub><mi>n</mi> <mn>3</mn> </msub></mrow> <msub><mi>n</mi> <mn>3</mn> </msub></mfrac></mfenced><mo>...</mo><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mrow><msub><mi>n</mi> <mn>1</mn> </msub><mo>+</mo><msub><mi>n</mi> <mn>2</mn> </msub><mo>+</mo><mo>&#8943;</mo><mo>+</mo><msub><mi>n</mi> <mi>m</mi> </msub></mrow> <msub><mi>n</mi> <mi>m</mi> </msub></mfrac></mfenced><mo>.</mo></mrow></math></div>
<p><b>Exercise 18.39:</b> Using <samp>\genfrac</samp></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>&#928;</mi> <mi>R</mi> </msub><mfenced separators="" open="[" close="]"><mfrac linethickness="0.0pt"><mrow><msub><mi>a</mi> <mn>1</mn> </msub><mo>,</mo><msub><mi>a</mi> <mn>2</mn> </msub><mo>,</mo><mo>...</mo><mo>,</mo><msub><mi>a</mi> <mi>M</mi> </msub></mrow> <mrow><msub><mi>b</mi> <mn>1</mn> </msub><mo>,</mo><msub><mi>b</mi> <mn>2</mn> </msub><mo>,</mo><mo>...</mo><mo>,</mo><msub><mi>b</mi> <mi>M</mi> </msub></mrow></mfrac></mfenced><mo>=</mo><munderover><mo>&#8719;</mo> <mrow><mi>n</mi><mo>=</mo><mn>0</mn></mrow> <mi>R</mi> </munderover><mfrac><mrow><mrow><mo>(</mo><mn>1</mn><mo>-</mo><msup><mi>q</mi> <mrow><msub><mi>a</mi> <mn>1</mn> </msub><mo>+</mo><mi>n</mi></mrow> </msup><mo>)</mo></mrow><mrow><mo>(</mo><mn>1</mn><mo>-</mo><msup><mi>q</mi> <mrow><msub><mi>a</mi> <mn>2</mn> </msub><mo>+</mo><mi>n</mi></mrow> </msup><mo>)</mo></mrow><mo>...</mo><mrow><mo>(</mo><mn>1</mn><mo>-</mo><msup><mi>q</mi> <mrow><msub><mi>a</mi> <mi>M</mi> </msub><mo>+</mo><mi>n</mi></mrow> </msup><mo>)</mo></mrow></mrow> <mrow><mrow><mo>(</mo><mn>1</mn><mo>-</mo><msup><mi>q</mi> <mrow><msub><mi>b</mi> <mn>1</mn> </msub><mo>+</mo><mi>n</mi></mrow> </msup><mo>)</mo></mrow><mrow><mo>(</mo><mn>1</mn><mo>-</mo><msup><mi>q</mi> <mrow><msub><mi>b</mi> <mn>2</mn> </msub><mo>+</mo><mi>n</mi></mrow> </msup><mo>)</mo></mrow><mo>...</mo><mrow><mo>(</mo><mn>1</mn><mo>-</mo><msup><mi>q</mi> <mrow><msub><mi>b</mi> <mi>N</mi> </msub><mo>+</mo><mi>n</mi></mrow> </msup><mo>)</mo></mrow></mrow></mfrac><mo>.</mo></mrow></math></div>
<p><b>Exercise 18.40:</b></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munder><mo>&#8721;</mo> <mrow><mi>p</mi><mspace width="0.277778em"></mspace><mi> prime </mi></mrow> </munder><mi>f</mi><mrow><mo>(</mo><mi>p</mi><mo>)</mo></mrow><mo>=</mo><msub><mo>&#8747;</mo> <mrow><mi>t</mi><mo>&gt;</mo><mn>1</mn></mrow> </msub><mi>f</mi><mrow><mo>(</mo><mi>t</mi><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi>d</mi><mi>&#960;</mi><mrow><mo>(</mo><mi>t</mi><mo>)</mo></mrow><mo>.</mo></mrow></math></div>
<pre class="latex-code"><span class="prenumber">239</span> \def\X{\char`'}
<span class="prenumber">240</span> \[{
<span class="prenumber">241</span> \{\underbrace{\overbrace{\mathstrut a,\ldots,a}^{k\;a\X\mathrm{s}},
<span class="prenumber">242</span>   \overbrace{\mathstrut
<span class="prenumber">243</span>     b,\ldots,b}^{l\;b\X\mathrm{s}}}_{k+l\;\mathrm{elements}}\}
<span class="prenumber">244</span> }\quad\text{vs}\qquad {
<span class="prenumber">245</span> {\{\,}\underbrace{\overbrace{\mathstrut a,\ldots,a}^{k\;a'\mathrm{s}},
<span class="prenumber">246</span>   \overbrace{\mathstrut
<span class="prenumber">247</span>     b,\ldots,b}^{l\;b'\mathrm{s}}}_{k+l\;\mathrm{elements}}{\}\,}.}\]
</pre>
<p><b>Exercise 18.41:</b> In this formula, we want the denote the plural of the token <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">a</mi></math></span> by
as apostrophe followed by the letter s. The first attempt is not good. The
second is a bit better, because it is a-prime followed by s. The first
expression is formed of open brace, underbraced formula, closing brace; and this
produces large braces in the HTML version; small braces are obtaing by
replacing the first token by a list, containing the brace and little bit space.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>{</mo><munder><munder accentunder="true"><mrow><msup><mover accent="true"><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mi>a</mi><mo>,</mo><mo>...</mo><mo>,</mo><mi>a</mi></mrow> <mo>&#65079;</mo></mover> <mrow><mi>k</mi><mspace width="0.277778em"></mspace><mi>a</mi><mo>'</mo><mi mathvariant="normal">s</mi></mrow> </msup><mo>,</mo><msup><mover accent="true"><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mi>b</mi><mo>,</mo><mo>...</mo><mo>,</mo><mi>b</mi></mrow> <mo>&#65079;</mo></mover> <mrow><mi>l</mi><mspace width="0.277778em"></mspace><mi>b</mi><mo>'</mo><mi mathvariant="normal">s</mi></mrow> </msup></mrow> <mo>&#65080;</mo></munder> <mrow><mi>k</mi><mo>+</mo><mi>l</mi><mspace width="0.277778em"></mspace><mi> elements </mi></mrow> </munder><mo>}</mo></mrow><mspace width="1.em"></mspace><mtext>vs</mtext><mspace width="2.em"></mspace><mrow><mrow><mo>{</mo><mspace width="0.166667em"></mspace></mrow><munder><munder accentunder="true"><mrow><msup><mover accent="true"><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mi>a</mi><mo>,</mo><mo>...</mo><mo>,</mo><mi>a</mi></mrow> <mo>&#65079;</mo></mover> <mrow><mi>k</mi><mspace width="0.277778em"></mspace><msup><mi>a</mi> <mo>'</mo> </msup><mi mathvariant="normal">s</mi></mrow> </msup><mo>,</mo><msup><mover accent="true"><mrow><mphantom><mpadded width="0pt"><mo>(</mo></mpadded></mphantom><mi>b</mi><mo>,</mo><mo>...</mo><mo>,</mo><mi>b</mi></mrow> <mo>&#65079;</mo></mover> <mrow><mi>l</mi><mspace width="0.277778em"></mspace><msup><mi>b</mi> <mo>'</mo> </msup><mi mathvariant="normal">s</mi></mrow> </msup></mrow> <mo>&#65080;</mo></munder> <mrow><mi>k</mi><mo>+</mo><mi>l</mi><mspace width="0.277778em"></mspace><mi> elements </mi></mrow> </munder><mrow><mo>}</mo><mspace width="0.166667em"></mspace></mrow><mo>.</mo></mrow></mrow></math></div>
<p><b>Exercise 18.42:</b></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfenced open="(" close=")"><mtable><mtr><mtd><mfenced open="(" close=")"><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mfenced></mtd><mtd><mfenced open="(" close=")"><mtable><mtr><mtd><mi>e</mi></mtd><mtd><mi>f</mi></mtd></mtr><mtr><mtd><mi>g</mi></mtd><mtd><mi>h</mi></mtd></mtr></mtable></mfenced></mtd></mtr><mtr><mtd><mn>0</mn></mtd><mtd><mfenced open="(" close=")"><mtable><mtr><mtd><mi>i</mi></mtd><mtd><mi>j</mi></mtd></mtr><mtr><mtd><mi>k</mi></mtd><mtd><mi>k</mi></mtd></mtr></mtable></mfenced></mtd></mtr></mtable></mfenced><mo>.</mo></mrow></math></div>
<p>A non trivial question: what is the distance <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">X</mi></math></span> between two lines in a matrix
like these? or said otherwise, what is the vertical glue <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">Y</mi></math></span> added between two
lines? Let <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">x</mi></math></span> be the value of <samp>\baselineskip</samp>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">y</mi></math></span> the value of
<samp>\lineskiplimit</samp> and <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">z</mi></math></span> the value of <samp>\lineskip</samp>. Then, the quantity
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">y</mi></math></span> is computed so that <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>X</mi><mo>=</mo><mi>x</mi></mrow></math></span>, unless this gives <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>Y</mi><mo>&lt;</mo><mi>y</mi></mrow></math></span>, case where <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">z</mi></math></span> is used
instead. Typically, for a normal paragraph, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>=</mo><mn>12</mn></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi><mo>=</mo><mn>0</mn></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>z</mi><mo>=</mo><mn>1</mn></mrow></math></span>, and for a
`align´ environment, we have <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi><mo>=</mo><mn>15</mn></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi><mo>=</mo><mn>3</mn></mrow></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>z</mi><mo>=</mo><mn>4</mn></mrow></math></span>. In the case of an array,
all three values are zero. This means: normal baseline in a paragraph is 12pt,
but there is at least one pt between two lines, and in the case of multiline
equations, the baseline is larger, as well as the clearance. In the case of an
array, no extra space is added. However, a strut is added to each line, this
is an invisible rule; as a consequence, the total height plus depth of each
line is the matrix is at least 12pt, hence <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">X</mi></math></span> is at least 12pt.</p>
<p>This has as consequence that, in the big matrix above, parentheses do touch.
We changed, in the file <span class="sansserif">raweb-cfg.sty</span>, the code of the <samp>\@array</samp> command:
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>z</mi><mo>=</mo><mn>5</mn></mrow></math></span>, and <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">y</mi></math></span> is 3 or 5, depending on whether the `displaystyle´ attribute
array of the array is true (if the attribute is true, then all entries are
typeset in <samp>\display</samp> mode; this is the case for all environments like
`gather´ or `align´ that are translated by <i>Tralics</i> as an array).</p>
<p><b>Exercise 18.43:</b> Note: entries are left aligned because of explicit <samp>\hfil</samp>.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo movablelimits="true" form="prefix">det</mo><mfenced open="|" close="|"><mtable><mtr><mtd columnalign="left"><msub><mi>c</mi> <mn>0</mn> </msub></mtd><mtd columnalign="left"><msub><mi>c</mi> <mn>1</mn> </msub></mtd><mtd columnalign="left"><msub><mi>c</mi> <mn>2</mn> </msub></mtd><mtd><mo>...</mo></mtd><mtd columnalign="left"><msub><mi>c</mi> <mi>n</mi> </msub></mtd></mtr><mtr><mtd columnalign="left"><msub><mi>c</mi> <mn>1</mn> </msub></mtd><mtd columnalign="left"><msub><mi>c</mi> <mn>2</mn> </msub></mtd><mtd columnalign="left"><msub><mi>c</mi> <mn>3</mn> </msub></mtd><mtd><mo>...</mo></mtd><mtd columnalign="left"><msub><mi>c</mi> <mrow><mi>n</mi><mo>+</mo><mn>1</mn></mrow> </msub></mtd></mtr><mtr><mtd columnalign="left"><msub><mi>c</mi> <mn>2</mn> </msub></mtd><mtd columnalign="left"><msub><mi>c</mi> <mn>3</mn> </msub></mtd><mtd columnalign="left"><msub><mi>c</mi> <mn>4</mn> </msub></mtd><mtd><mo>...</mo></mtd><mtd columnalign="left"><msub><mi>c</mi> <mrow><mi>n</mi><mo>+</mo><mn>2</mn></mrow> </msub></mtd></mtr><mtr><mtd columnalign="left"><mo>&#8942;</mo></mtd><mtd columnalign="left"><mo>&#8942;</mo></mtd><mtd columnalign="left"><mo>&#8942;</mo></mtd><mtd></mtd><mtd columnalign="left"><mo>&#8942;</mo></mtd></mtr><mtr><mtd columnalign="left"><msub><mi>c</mi> <mi>n</mi> </msub></mtd><mtd columnalign="left"><msub><mi>c</mi> <mrow><mi>n</mi><mo>+</mo><mn>1</mn></mrow> </msub></mtd><mtd><msub><mi>c</mi> <mrow><mi>n</mi><mo>+</mo><mn>2</mn></mrow> </msub></mtd><mtd><mo>...</mo></mtd><mtd columnalign="left"><msub><mi>c</mi> <mrow><mn>2</mn><mi>n</mi></mrow> </msub></mtd></mtr></mtable></mfenced></mrow></math></div>
<p><b>Exercise 18.44:</b></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munder><mrow><msup><mrow><mo>&#8721;</mo></mrow> <mo>'</mo> </msup></mrow> <mrow><mi>x</mi><mo>&#8712;</mo><mi>A</mi></mrow> </munder><mi>f</mi><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mover><mo>=</mo> <mi> def </mi> </mover><munder><mo>&#8721;</mo> <mfrac linethickness="0pt"><mstyle scriptlevel="1" displaystyle="false"><mrow><mi>x</mi><mo>&#8712;</mo><mi>A</mi></mrow></mstyle> <mstyle scriptlevel="1" displaystyle="false"><mrow><mi>x</mi><mo>&#8800;</mo><mn>0</mn></mrow></mstyle></mfrac> </munder><mi>f</mi><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mo>.</mo></mrow></math></div>
<p><b>Exercise 18.45:</b> This is not so nice</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mn>2</mn><mo>&#8593;</mo><mo>&#8593;</mo><mi>k</mi></mrow><mo>&#8797;</mo><msup><mn>2</mn> <msup><mn>2</mn> <msup><mn>2</mn> <msup><mo>·</mo> <msup><mo>·</mo> <msup><mo>·</mo> <mn>2</mn> </msup> </msup> </msup> </msup> </msup> </msup><mfenced open="" close="}"><mphantom><mpadded width="0pt"><mfrac><mn>1</mn> <mn>2</mn></mfrac></mpadded></mphantom></mfenced><mi>k</mi></mrow></math></div>
<p><b>Exercise 18.46:</b> Vertical arrow centered via the use of phantom on the left;
command <samp>\hidewidth</samp> not used (the purpose of the command is to make
<samp>\halign</samp> believe that the cell has a very small width; this will produce
an overfull box, but who cares: there is enough white space at both ends).</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtr><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd><mn>0</mn></mtd></mtr><mtr><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd><mrow><mphantom><mpadded depth="0pt" height="0pt"><mstyle scriptlevel="1" displaystyle="false"><mrow></mrow></mstyle></mpadded></mphantom><mo>&#8595;</mo><mstyle scriptlevel="1" displaystyle="false"><mrow></mrow></mstyle></mrow></mtd></mtr><mtr><mtd><mn>0</mn></mtd><mtd><mpadded height="0pt" depth="0pt"><mover><mo>&#8594;</mo> <mrow></mrow> </mover></mpadded></mtd><mtd><msub><mi mathvariant="script">O</mi> <mi>k</mi> </msub></mtd><mtd><mpadded height="0pt" depth="0pt"><mover><mo>&#8594;</mo> <mi>&#953;</mi> </mover></mpadded></mtd><mtd><mi mathvariant="script">E</mi></mtd><mtd><mpadded height="0pt" depth="0pt"><mover><mo>&#8594;</mo> <mi>&#961;</mi> </mover></mpadded></mtd><mtd><mi mathvariant="script">L</mi></mtd><mtd><mpadded height="0pt" depth="0pt"><mover><mo>&#8594;</mo> <mrow></mrow> </mover></mpadded></mtd><mtd><mn>0</mn></mtd></mtr><mtr><mtd></mtd><mtd></mtd><mtd><mo>&#8741;</mo></mtd><mtd></mtd><mtd><mrow><mphantom><mpadded depth="0pt" height="0pt"><mstyle scriptlevel="1" displaystyle="false"><mi>&#966;</mi></mstyle></mpadded></mphantom><mo>&#8595;</mo><mstyle scriptlevel="1" displaystyle="false"><mi>&#966;</mi></mstyle></mrow></mtd><mtd></mtd><mtd><mrow><mphantom><mpadded depth="0pt" height="0pt"><mstyle scriptlevel="1" displaystyle="false"><mi>&#968;</mi></mstyle></mpadded></mphantom><mo>&#8595;</mo><mstyle scriptlevel="1" displaystyle="false"><mi>&#968;</mi></mstyle></mrow></mtd></mtr><mtr><mtd><mn>0</mn></mtd><mtd><mpadded height="0pt" depth="0pt"><mover><mo>&#8594;</mo> <mrow></mrow> </mover></mpadded></mtd><mtd><msub><mi mathvariant="script">O</mi> <mi>C</mi> </msub></mtd><mtd><mpadded height="0pt" depth="0pt"><mover><mo>&#8594;</mo> <mrow></mrow> </mover></mpadded></mtd><mtd><mrow><msub><mi>&#960;</mi> <mo>*</mo> </msub><msub><mi mathvariant="script">O</mi> <mi>D</mi> </msub></mrow></mtd><mtd><mpadded height="0pt" depth="0pt"><mover><mo>&#8594;</mo> <mi>&#948;</mi> </mover></mpadded></mtd><mtd><mrow><msup><mi>R</mi> <mn>1</mn> </msup><msub><mi>f</mi> <mo>*</mo> </msub><msub><mi mathvariant="script">O</mi> <mi>V</mi> </msub><mrow><mo>(</mo><mo>-</mo><mi>D</mi><mo>)</mo></mrow></mrow></mtd><mtd><mpadded height="0pt" depth="0pt"><mover><mo>&#8594;</mo> <mrow></mrow> </mover></mpadded></mtd><mtd><mn>0</mn></mtd></mtr><mtr><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd><mrow><mrow><mphantom><mpadded depth="0pt" height="0pt"><mstyle scriptlevel="1" displaystyle="false"><mrow><msub><mi>&#952;</mi> <mi>i</mi> </msub><mo>&#8855;</mo><msup><mi>&#947;</mi> <mrow><mo>-</mo><mn>1</mn></mrow> </msup></mrow></mstyle></mpadded></mphantom><mo>&#8595;</mo></mrow><mstyle scriptlevel="1" displaystyle="false"><mrow><msub><mi>&#952;</mi> <mi>i</mi> </msub><mo>&#8855;</mo><msup><mi>&#947;</mi> <mrow><mo>-</mo><mn>1</mn></mrow> </msup></mrow></mstyle></mrow></mtd></mtr><mtr><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd><mrow><msup><mi>R</mi> <mn>1</mn> </msup><msub><mi>f</mi> <mo>*</mo> </msub><mfenced separators="" open="(" close=")"><msub><mi mathvariant="script">O</mi> <mi>V</mi> </msub> <mrow><mo>(</mo><mo>-</mo><mi>i</mi><mi>M</mi><mo>)</mo></mrow></mfenced><mo>&#8855;</mo><msup><mi>&#947;</mi> <mrow><mo>-</mo><mn>1</mn></mrow> </msup></mrow></mtd></mtr><mtr><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd><mrow><mphantom><mpadded depth="0pt" height="0pt"><mstyle scriptlevel="1" displaystyle="false"><mrow></mrow></mstyle></mpadded></mphantom><mo>&#8595;</mo><mstyle scriptlevel="1" displaystyle="false"><mrow></mrow></mstyle></mrow></mtd></mtr><mtr><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd><mn>0</mn></mtd></mtr></mtable></math></div>

<h2 id="uid40">2.4. Displayed Equations, TB19</h2>
<h3 id="uid41">2.4.1. One-line displays</h3>
<p>Example of a display, containing only text</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtext>Displayed</mtext><mspace width="4.pt"></mspace><mtext>Text</mtext></mrow></math></div>
<p class="nofirst noindent">Another one, with text and math</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>X</mi> <mi>n</mi> </msub><mo>=</mo><msub><mi>X</mi> <mi>k</mi> </msub><mspace width="2.em"></mspace><mtext>if</mtext><mspace width="4.pt"></mspace><mtext>and</mtext><mspace width="4.pt"></mspace><mtext>only</mtext><mspace width="4.pt"></mspace><mtext>if</mtext><mspace width="2.em"></mspace><msub><mi>Y</mi> <mi>n</mi> </msub><mo>=</mo><msub><mi>Y</mi> <mi>k</mi> </msub><mspace width="1.em"></mspace><mtext>and</mtext><mspace width="1.em"></mspace><msub><mi>Z</mi> <mi>n</mi> </msub><mo>=</mo><msub><mi>Z</mi> <mi>k</mi> </msub><mo>.</mo></mrow></math></div>
<p>Compare the following two examples: the translation is the same, but you cannot
put arbitrary text in a math formula!</p>
<pre class="latex-code"><span class="prenumber">248</span> $$Y_n=X_n\bmod p \quad\hbox{and}\quad Z_n=X_n\bmod q \qquad\hbox{for all }n\ge 0.$$
<span class="prenumber">249</span> $$Y_n=X_n\bmod p \quad\hbox{and}\quad Z_n=X_n\bmod q\qquad\hbox{for all $n\ge0$}.$$
</pre>

<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>Y</mi> <mi>n</mi> </msub><mo>=</mo><msub><mi>X</mi> <mi>n</mi> </msub><mspace width="0.277778em"></mspace><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><mi>p</mi><mspace width="1.em"></mspace><mtext>and</mtext><mspace width="1.em"></mspace><msub><mi>Z</mi> <mi>n</mi> </msub><mo>=</mo><msub><mi>X</mi> <mi>n</mi> </msub><mspace width="0.277778em"></mspace><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><mi>q</mi><mspace width="2.em"></mspace><mtext>for</mtext><mspace width="4.pt"></mspace><mtext>all</mtext><mspace width="4.pt"></mspace><mi>n</mi><mo>&#8805;</mo><mn>0</mn><mo>.</mo></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>Y</mi> <mi>n</mi> </msub><mo>=</mo><msub><mi>X</mi> <mi>n</mi> </msub><mspace width="0.277778em"></mspace><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><mi>p</mi><mspace width="1.em"></mspace><mtext>and</mtext><mspace width="1.em"></mspace><msub><mi>Z</mi> <mi>n</mi> </msub><mo>=</mo><msub><mi>X</mi> <mi>n</mi> </msub><mspace width="0.277778em"></mspace><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><mi>q</mi><mspace width="2.em"></mspace><mtext>for</mtext><mspace width="4.pt"></mspace><mtext>all</mtext><mspace width="4.pt"></mspace><mrow><mi>n</mi><mo>&#8805;</mo><mn>0</mn></mrow><mo>.</mo></mrow></math></div>
<p><b>Exercise 19.1:</b> The exercise contains four formulas; for the first three ones, we
give a LaTeX variant. For the first formula, the delimiters hace different
sizes.</p>
<pre class="latex-code"><span class="prenumber">250</span> $$\sum_{n=0}^\infty a_nz^n\qquad \hbox{converges if}\qquad |z| &lt;
<span class="prenumber">251</span> \Bigl(\limsup_{n\to\infty}\root n\!\of{|a_n|}\,\Bigr)^{-1}.$$
<span class="prenumber">252</span> \[\sum_{n=0}^\infty a_nz^n\qquad \text{converges if} \qquad |z| &lt;
<span class="prenumber">253</span> (\limsup_{n\to\infty}\sqrt[n\!]{|a_n|}{\,)}^{-1}. \]
<span class="prenumber">254</span> \[\sum_{n=0}^\infty a_nz^n\qquad \text{converges if} \qquad |z| &lt;
<span class="prenumber">255</span> (\limsup_{n\to\infty}\sqrt[n\!]{|a_n|}\,)^{-1}. \]
</pre>

<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munderover><mo>&#8721;</mo> <mrow><mi>n</mi><mo>=</mo><mn>0</mn></mrow> <mi>&#8734;</mi> </munderover><msub><mi>a</mi> <mi>n</mi> </msub><msup><mi>z</mi> <mi>n</mi> </msup><mspace width="2.em"></mspace><mtext>converges</mtext><mspace width="4.pt"></mspace><mtext>if</mtext><mspace width="2.em"></mspace><mrow><mo>|</mo><mi>z</mi><mo>|</mo></mrow><mo>&lt;</mo><msup><mfenced separators="" open="(" close=")"><munder><mo movablelimits="true" form="prefix">lim sup</mo> <mrow><mi>n</mi><mo>&#8594;</mo><mi>&#8734;</mi></mrow> </munder> <mroot><mrow><mrow><mo>|</mo></mrow><msub><mi>a</mi> <mi>n</mi> </msub><mrow><mo>|</mo></mrow></mrow> <mrow><mi>n</mi><mspace width="-0.166667em"></mspace></mrow></mroot> <mspace width="0.166667em"></mspace></mfenced> <mrow><mo>-</mo><mn>1</mn></mrow> </msup><mo>.</mo></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munderover><mo>&#8721;</mo> <mrow><mi>n</mi><mo>=</mo><mn>0</mn></mrow> <mi>&#8734;</mi> </munderover><msub><mi>a</mi> <mi>n</mi> </msub><msup><mi>z</mi> <mi>n</mi> </msup><mrow><mspace width="2.em"></mspace><mtext>converges</mtext><mspace width="4.pt"></mspace><mtext>if</mtext><mspace width="2.em"></mspace><mo>|</mo><mi>z</mi><mo>|</mo><mo>&lt;</mo><mo>(</mo></mrow><munder><mo movablelimits="true" form="prefix">lim sup</mo> <mrow><mi>n</mi><mo>&#8594;</mo><mi>&#8734;</mi></mrow> </munder><mroot><mrow><mrow><mo>|</mo></mrow><msub><mi>a</mi> <mi>n</mi> </msub><mrow><mo>|</mo></mrow></mrow> <mrow><mi>n</mi><mspace width="-0.166667em"></mspace></mrow></mroot><msup><mrow><mspace width="0.166667em"></mspace><mo>)</mo></mrow> <mrow><mo>-</mo><mn>1</mn></mrow> </msup><mo>.</mo></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munderover><mo>&#8721;</mo> <mrow><mi>n</mi><mo>=</mo><mn>0</mn></mrow> <mi>&#8734;</mi> </munderover><msub><mi>a</mi> <mi>n</mi> </msub><msup><mi>z</mi> <mi>n</mi> </msup><mspace width="2.em"></mspace><mtext>converges</mtext><mspace width="4.pt"></mspace><mtext>if</mtext><mspace width="2.em"></mspace><mrow><mo>|</mo><mi>z</mi><mo>|</mo></mrow><mo>&lt;</mo><msup><mrow><mo>(</mo><munder><mo movablelimits="true" form="prefix">lim sup</mo> <mrow><mi>n</mi><mo>&#8594;</mo><mi>&#8734;</mi></mrow> </munder><mroot><mrow><mrow><mo>|</mo></mrow><msub><mi>a</mi> <mi>n</mi> </msub><mrow><mo>|</mo></mrow></mrow> <mrow><mi>n</mi><mspace width="-0.166667em"></mspace></mrow></mroot><mspace width="0.166667em"></mspace><mo>)</mo></mrow> <mrow><mo>-</mo><mn>1</mn></mrow> </msup><mo>.</mo></mrow></math></div>
<p>Next two formulas.</p>
<pre class="latex-code"><span class="prenumber">256</span> $${f(x+\Delta x)-f(x)\over\Delta x}\to f'(x)\qquad \hbox{as $\Delta\to0$.}$$
<span class="prenumber">257</span> \[\frac{f(x+\Delta x)-f(x)}{\Delta x}\to f'(x)\qquad \text{as }\Delta\to0.\]
<span class="prenumber">258</span> $$\|u_i\|=1,\qquad u_i\cdot u_j=0\quad\hbox{if $i\ne j$.}$$
<span class="prenumber">259</span> \[\|u_i\|=1,\qquad u_i\cdot u_j=0\quad\text{if } i\ne j.\]
</pre>

<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mrow><mi>f</mi><mo>(</mo><mi>x</mi><mo>+</mo><mi>&#916;</mi><mi>x</mi><mo>)</mo><mo>-</mo><mi>f</mi><mo>(</mo><mi>x</mi><mo>)</mo></mrow> <mrow><mi>&#916;</mi><mi>x</mi></mrow></mfrac><mo>&#8594;</mo><msup><mi>f</mi> <mo>'</mo> </msup><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mspace width="2.em"></mspace><mtext>as</mtext><mspace width="4.pt"></mspace><mrow><mi>&#916;</mi><mo>&#8594;</mo><mn>0</mn></mrow><mtext>.</mtext></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mrow><mi>f</mi><mo>(</mo><mi>x</mi><mo>+</mo><mi>&#916;</mi><mi>x</mi><mo>)</mo><mo>-</mo><mi>f</mi><mo>(</mo><mi>x</mi><mo>)</mo></mrow> <mrow><mi>&#916;</mi><mi>x</mi></mrow></mfrac><mo>&#8594;</mo><msup><mi>f</mi> <mo>'</mo> </msup><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mspace width="2.em"></mspace><mtext>as</mtext><mspace width="4.pt"></mspace><mi>&#916;</mi><mo>&#8594;</mo><mn>0</mn><mo>.</mo></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>&#8741;</mo></mrow><msub><mi>u</mi> <mi>i</mi> </msub><mrow><mo>&#8741;</mo><mo>=</mo><mn>1</mn><mo>,</mo><mspace width="2.em"></mspace></mrow><msub><mi>u</mi> <mi>i</mi> </msub><mo>·</mo><msub><mi>u</mi> <mi>j</mi> </msub><mo>=</mo><mn>0</mn><mspace width="1.em"></mspace><mtext>if</mtext><mspace width="4.pt"></mspace><mrow><mi>i</mi><mo>&#8800;</mo><mi>j</mi></mrow><mtext>.</mtext></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>&#8741;</mo></mrow><msub><mi>u</mi> <mi>i</mi> </msub><mrow><mo>&#8741;</mo><mo>=</mo><mn>1</mn><mo>,</mo><mspace width="2.em"></mspace></mrow><msub><mi>u</mi> <mi>i</mi> </msub><mo>·</mo><msub><mi>u</mi> <mi>j</mi> </msub><mo>=</mo><mn>0</mn><mspace width="1.em"></mspace><mtext>if</mtext><mspace width="4.pt"></mspace><mi>i</mi><mo>&#8800;</mo><mi>j</mi><mo>.</mo></mrow></math></div>
<p class="nofirst noindent">Last formula; you cannot use the <samp>\matrix</samp> command defined by plain TeX,
but you have to use the <samp>matrix</samp> environment.</p>
<pre class="latex-code"><span class="prenumber">260</span> \[\it\text{The confluent image of}\quad
<span class="prenumber">261</span> \begin{Bmatrix}\text{an arc}\hfill\\\text{a circle}\hfill\\\text{a fan}\hfill
<span class="prenumber">262</span> \end{Bmatrix}
<span class="prenumber">263</span> \quad\text{is}\quad
<span class="prenumber">264</span> \begin{Bmatrix}\text{an arc}\hfill\\\text{an arc or a circle}\hfill\\
<span class="prenumber">265</span> \text{a fan or an arc}\hfill\end{Bmatrix}.\]
</pre>

<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtext mathvariant="italic">The</mtext><mspace width="4.pt"></mspace><mtext mathvariant="italic">confluent</mtext><mspace width="4.pt"></mspace><mtext mathvariant="italic">image</mtext><mspace width="4.pt"></mspace><mtext mathvariant="italic">of</mtext><mspace width="1.em"></mspace><mfenced open="{" close="}"><mtable><mtr><mtd columnalign="left"><mrow><mtext mathvariant="italic">an</mtext><mspace width="4.pt"></mspace><mtext mathvariant="italic">arc</mtext></mrow></mtd></mtr><mtr><mtd columnalign="left"><mrow><mtext mathvariant="italic">a</mtext><mspace width="4.pt"></mspace><mtext mathvariant="italic">circle</mtext></mrow></mtd></mtr><mtr><mtd columnalign="left"><mrow><mtext mathvariant="italic">a</mtext><mspace width="4.pt"></mspace><mtext mathvariant="italic">fan</mtext></mrow></mtd></mtr></mtable></mfenced><mspace width="1.em"></mspace><mtext mathvariant="italic">is</mtext><mspace width="1.em"></mspace><mfenced open="{" close="}"><mtable><mtr><mtd columnalign="left"><mrow><mtext mathvariant="italic">an</mtext><mspace width="4.pt"></mspace><mtext mathvariant="italic">arc</mtext></mrow></mtd></mtr><mtr><mtd columnalign="left"><mrow><mtext mathvariant="italic">an</mtext><mspace width="4.pt"></mspace><mtext mathvariant="italic">arc</mtext><mspace width="4.pt"></mspace><mtext mathvariant="italic">or</mtext><mspace width="4.pt"></mspace><mtext mathvariant="italic">a</mtext><mspace width="4.pt"></mspace><mtext mathvariant="italic">circle</mtext></mrow></mtd></mtr><mtr><mtd columnalign="left"><mrow><mtext mathvariant="italic">a</mtext><mspace width="4.pt"></mspace><mtext mathvariant="italic">fan</mtext><mspace width="4.pt"></mspace><mtext mathvariant="italic">or</mtext><mspace width="4.pt"></mspace><mtext mathvariant="italic">an</mtext><mspace width="4.pt"></mspace><mtext mathvariant="italic">arc</mtext></mrow></mtd></mtr></mtable></mfenced><mo>.</mo></mrow></math></div>
<p>Since version 2.9.5, you can use font changes in <samp>\text</samp> commands and
friends (the previous formula is in italics). This is a more elaborate example</p>
<pre class="latex-code"><span class="prenumber">266</span> $\hbox{upright} \it \text{Italic\bf Boldface} {\tt \text{x = y$^2$}}$
</pre>
<p class="nofirst noindent">Translation: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtext>upright</mtext><mtext mathvariant="italic">Italic</mtext><mtext mathvariant="bold">Boldface</mtext><mrow><mtext mathvariant="monospace">x</mtext><mspace width="4.pt"></mspace><mtext mathvariant="monospace">=</mtext><mspace width="4.pt"></mspace><mtext mathvariant="monospace">y</mtext><msup><mrow></mrow> <mn mathvariant="monospace">2</mn> </msup></mrow></mrow></math></span>.</p>
<p><b>Exercise 19.2:</b> Compare B. L. User´s solution, Knuth´s solutions and <samp>\tfrac</samp>:</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi><mo>=</mo><mfrac><mstyle scriptlevel="1" displaystyle="false"><mn>1</mn></mstyle> <mstyle scriptlevel="1" displaystyle="false"><mn>2</mn></mstyle></mfrac><mi>x</mi><mspace width="1.em"></mspace><mtext>vs</mtext><mspace width="1.em"></mspace><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>y</mi><mo>=</mo><mfrac><mn>1</mn> <mn>2</mn></mfrac><mi>x</mi></mrow></mstyle><mspace width="1.em"></mspace><mtext>vs</mtext><mspace width="1.em"></mspace><mstyle scriptlevel="0" displaystyle="false"><mfrac><mn>1</mn> <mn>2</mn></mfrac></mstyle><mi>x</mi></mrow></math></div>
<p><b>Exercise 19.3:</b> We demonstrate in this example that using
<samp>$$<samp>\hbox</samp><samp>{$formula$}</samp>$$</samp> is non-trivial.</p>
<pre class="latex-code"><span class="prenumber">267</span> \everymath={A}
<span class="prenumber">268</span> \everyhbox={B}
<span class="prenumber">269</span> \def\X{\ifhmode H\else \ifvmode V \else \ifmmode M \else U\fi\fi\fi}
<span class="prenumber">270</span> \def\Y{\X\ensuremath{\beta}}
<span class="prenumber">271</span> $$ \Y\hbox{\X$\Y $\X}\Y \text{\X}$$
</pre>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>M</mi><mi>&#946;</mi><mtext>BH</mtext><mrow><mi>A</mi><mi>M</mi><mi>&#946;</mi></mrow><mtext>H</mtext><mi>M</mi><mi>&#946;</mi><mtext>H</mtext></mrow></math></div>
<p class="nofirst noindent">Guess what happens if <samp>\X</samp> were replaced by <samp>\Y</samp>? the problem might be
solved in a future version. Note that <samp>\text</samp> does not insert the
every-hbox token list.</p>
<p><b>Exercise 19.4:</b> Look at these four identical formulas.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>1</mn><mo>-</mo><mfrac><mn>1</mn> <mn>2</mn></mfrac><mo>+</mo><mfrac><mn>1</mn> <mn>3</mn></mfrac><mo>-</mo><mfrac><mn>1</mn> <mn>4</mn></mfrac><mo>+</mo><mo>&#8943;</mo><mo>=</mo><mo form="prefix">ln</mo><mn>2</mn></mrow></math></div>
<div class="mathdisplay"><table width="100%"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>1</mn><mo>-</mo><mfrac><mn>1</mn> <mn>2</mn></mfrac><mo>+</mo><mfrac><mn>1</mn> <mn>3</mn></mfrac><mo>-</mo><mfrac><mn>1</mn> <mn>4</mn></mfrac><mo>+</mo><mo>&#8943;</mo><mo>=</mo><mo form="prefix">ln</mo><mn>2</mn></mrow></math></td><td class="eqno">(14)</td></tr></table></div>
<div><table id="" width="100%"><tr valign="middle"><td class="leqno"></td><td class="leftequation" align="left"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>1</mn><mo>-</mo><mfrac><mn>1</mn> <mn>2</mn></mfrac><mo>+</mo><mfrac><mn>1</mn> <mn>3</mn></mfrac><mo>-</mo><mfrac><mn>1</mn> <mn>4</mn></mfrac><mo>+</mo><mo>&#8943;</mo><mo>=</mo><mo form="prefix">ln</mo><mn>2</mn></mrow></math></td><td class="eqno">(14)</td></tr></table></div>
<div class="mathdisplay"><table with="100%"><tr valign="middle"><td class="leqno"></td><td style="text-align:left"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>1</mn><mo>-</mo><mfrac><mn>1</mn> <mn>2</mn></mfrac><mo>+</mo><mfrac><mn>1</mn> <mn>3</mn></mfrac><mo>-</mo><mfrac><mn>1</mn> <mn>4</mn></mfrac><mo>+</mo><mo>&#8943;</mo><mo>=</mo><mo form="prefix">ln</mo><mn>2</mn></mrow></math></td><td class="eqno"></td></tr></table></div>
<p>In TeX, equations are centered, and an equation number is added to the left
or the right. In the HTML version, an equation-with-number is a 3-column
table, columns 1 and 3 are of width 4em (this is defined in the CSS file),
one of them contains the equation number. If the equation number is big, the
width of the column might be larger than 4em, columns 1 and 3 could have
different widths, so that column 2 is not centered. Otherwise it is centered,
and the equation is centered in column 2 (is there a way to do this better?)</p>
<p>Normally, there should be a way to put the equation at some position (say 3cm
from the left margin). This is done in LaTeX via a package option (can we
easily modify LaTeX so that each equation can be centered or not?). In this
examples, first two formulas should be centered, other ones should flushed
left. Equations two and three have a number.</p>
<p><b>Note on Equation Numbering</b> For a very long time, I have used the
<samp>\eqno</samp> command without any difficulty; of course, you have to be very
careful if you introduce an equation between equations (11) and (12), you
have to change every reference for any equation starting with 12. A big
advantage of LaTeX is its automatic numbering scheme; more precisely if
you flag an equation with <samp>\label</samp><samp>{eq+12}</samp>, you can get its number
via <samp>\ref</samp><samp>{eq+12}</samp> (the only difficulty then is to find mnemonic
tag names). In a first pass, LaTeX computes the value of the label, and
stores it in a file, in a second pass, it reads the file, and uses this
number. No number is computed by <i>Tralics</i>, in some cases, this can be
annoying. A side effect of the translation of the <samp>\label</samp> command is the
addition of an id (for instance `id12´ to the equation<a id="uid42" href="#note9" title="The label name provided by the user cannot be used since it is an invalid XML id in this case"><small>(note: </small>&#10163;<small>)</small></a>), and translation of
the <samp>\ref</samp> is a <tt class="txt">&lt;ref&gt;</tt> element with a reference to the id.</p>
<p>Equation numbers are computed by the XML-to-whathever processor.
In fact, in the case of conversion from XML to HTML, the style sheet computes
the equation number twice: once when the equation is converted, and once when
the <tt class="txt">&lt;ref&gt;</tt> is converted. In the case of XML to XSL/FO, a number is computed
only for <tt class="txt">&lt;ref&gt;</tt>, the equation number is added to the equation by LaTeX,
when the XSL/FO is converted to Pdf (this is not really important, because
nobody looks at the FO file).</p>
<p>Assume that you have hundreds of equations, and you want to refer the previous
one; very often it is tagged `(*)´, in some cases `(**)´. Some people use
`(***)´. Exercise 19.7 that follows says that, in math mode, these come out as
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mo>*</mo><mo>)</mo></mrow></math></span>, in some cases <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mo>*</mo><mo>*</mo><mo>)</mo></mrow></math></span> and <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mo>*</mo><mo>*</mo><mo>*</mo><mo>)</mo></mrow></math></span>. In particular, a non-trivial question
is: should equation numbers by typeset as math or as text? In <i>Tralics</i>, we
implemented <samp>\eqno</samp> and <samp>\tag</samp>; that´s a bit tricky, let´s explain
some difficulties.</p>
<ul>
<li id="uid43"><p class="nofirst noindent">The MathML recommendation says: automatic equation numbering and
automatically resolving references to equations is outside the scope of
MathML, but can be done by use of style sheets or other means. &#8220;The
<tt class="txt">&lt;mlabeledtr&gt;</tt> construction provides support for both of these functions in
a way that is intended to facilitate XSLT processing&#8221;. The idea is to
construct an array, the first column contains equation numbers, with an
attribute that says if the tag should be on the left or the right.
This allows more than one tag per formula (there can be more than one row).
The problem is that my browser ignores the whole line. This is bad news.</p>
</li>
<li id="uid44"><p class="nofirst noindent">The current implementation is: if the formula has a label, it has an
equation number. It cannot have more than one label/id/equation number.
(here `formula´ designates the element that contains the translated math
formula). The style sheet computes the equation number via
<tt class="txt">&lt;xsl:number</tt> <tt class="txt">level=´any´</tt> <tt class="txt">count=´formula[@id]´</tt> <tt class="txt">/&gt;</tt>.</p>
</li>
<li id="uid45"><p class="nofirst noindent">What happens if a formula has a tag and a label? Currently the tag is
ignored. What we should do is modify the template above (count all formulas
with id and without tags), this gives a value if the equation has no tag,
and use the value of the tag otherwise. Note that, if you say
<samp>\tag</samp><samp>{x}</samp>, this gives <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mi>x</mi><mo>)</mo></mrow></math></span> as equation number, and <samp>\eqref</samp>
gives this value back. On the other hand, <samp>\eqno(x)</samp> is equivalent to
<samp>\tag*</samp><samp>{(x)}</samp>.</p>
</li>
<li id="uid46"><p class="nofirst noindent">If a tag is part of a math formula, it can consist in any math
construct. In our implementation, it may be an attribute so that only
characters are allowed. You cannot use <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">&#945;</mi></math></span> or <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">&#946;</mi></math></span> as tag.
In LaTeX, tags are typeset in text mode, and math shift characters are
sometimes used. These are removed by <i>Tralics</i>.</p>
</li>
<li id="uid47"><p class="nofirst noindent">A tag can appear anywhere in a formula, and more than one tag can be
used. Thus <i>Tralics</i> reads all tags and merges them (it complains if more
than one label appears in a formula).</p>
</li>
<li id="uid48"><p class="nofirst noindent">The final tag, after merge, removal of special characters, etc., is
passed to a command; you can redefine it. In general it will either typeset
the tag, or convert it to an attribute.</p>
</li></ul>
<p>Summary: There are three ways to obtain an equation number.
First, if an equation has a label, an equation number will be assigned to it
automatically, when converting from XML to HTML, or whatever. The second method
consists in using the amsmath command <samp>\tag</samp>, described below. Finally, you
can use the TeX command <samp>\eqno</samp>. This command reads everything up to the
end of the formula, expanding tokens when needed; if this yields <samp>foo</samp>,
then <samp>\y@tag</samp><samp>{foo}</samp> is evaluated again; this the same as if you said
<samp>\tag*</samp><samp>{foo}</samp>. Its effect by default is to convert the tag as an
attribute to the formula.
Moreover, the attribute <tt class="txt">eqnpos</tt> is added to the
formula, with a value of <tt class="txt">left</tt> and <tt class="txt">right</tt>, depending on whether
<samp>\leqno</samp> or <samp>\eqno</samp> has been used. The equals signs should be aligned
for the five next formulas.</p>
<div class="mathdisplay"><table width="100%"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>x</mi> <mn>2</mn> </msup><mo>-</mo><msup><mi>y</mi> <mn>2</mn> </msup><mo>=</mo><mrow><mo>(</mo><mi>x</mi><mo>+</mo><mi>y</mi><mo>)</mo></mrow><mrow><mo>(</mo><mi>x</mi><mo>-</mo><mi>y</mi><mo>)</mo></mrow><mo>.</mo></mrow></math></td><td class="eqno">(15R)</td></tr></table></div>
<div class="mathdisplay"><table width="100%"><tr valign="middle"><td class="leqno">(15L)</td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>x</mi> <mn>2</mn> </msup><mo>-</mo><msup><mi>y</mi> <mn>2</mn> </msup><mo>=</mo><mrow><mo>(</mo><mi>x</mi><mo>+</mo><mi>y</mi><mo>)</mo></mrow><mrow><mo>(</mo><mi>x</mi><mo>-</mo><mi>y</mi><mo>)</mo></mrow><mo>.</mo></mrow></math></td><td class="eqno"></td></tr></table></div>
<p>Equation number of (<a href="#uid49">7</a>) is on the left, of (<a href="#uid50">8</a>) on the
right, and (<a href="#uid51">9</a>) depends on the class option.</p>
<div class="mathdisplay"><table width="100%" id="uid49"><tr valign="middle"><td class="leqno">(7)</td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>x</mi> <mn>2</mn> </msup><mo>-</mo><msup><mi>y</mi> <mn>2</mn> </msup><mo>=</mo><mrow><mo>(</mo><mi>x</mi><mo>+</mo><mi>y</mi><mo>)</mo></mrow><mrow><mo>(</mo><mi>x</mi><mo>-</mo><mi>y</mi><mo>)</mo></mrow><mo>.</mo></mrow></math></td><td class="eqno"></td></tr></table></div>
<div class="mathdisplay"><table width="100%" id="uid50"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>x</mi> <mn>2</mn> </msup><mo>-</mo><msup><mi>y</mi> <mn>2</mn> </msup><mo>=</mo><mrow><mo>(</mo><mi>x</mi><mo>+</mo><mi>y</mi><mo>)</mo></mrow><mrow><mo>(</mo><mi>x</mi><mo>-</mo><mi>y</mi><mo>)</mo></mrow><mo>.</mo></mrow></math></td><td class="eqno">(8)</td></tr></table></div>
<div class="mathdisplay"><table width="100%" id="uid51"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>x</mi> <mn>2</mn> </msup><mo>-</mo><msup><mi>y</mi> <mn>2</mn> </msup><mo>=</mo><mrow><mo>(</mo><mi>x</mi><mo>+</mo><mi>y</mi><mo>)</mo></mrow><mrow><mo>(</mo><mi>x</mi><mo>-</mo><mi>y</mi><mo>)</mo></mrow><mo>.</mo></mrow></math></td><td class="eqno">(9)</td></tr></table></div>
<p><b>Exercise 19.5:</b></p>
<div class="mathdisplay"><table width="100%"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munder><mo>&#8719;</mo> <mrow><mi>k</mi><mo>&#8805;</mo><mn>0</mn></mrow> </munder><mfrac><mn>1</mn> <mrow><mn>1</mn><mo>-</mo><msup><mi>q</mi> <mi>k</mi> </msup><mi>z</mi></mrow></mfrac><mo>=</mo><munder><mo>&#8721;</mo> <mrow><mi>n</mi><mo>&#8805;</mo><mn>0</mn></mrow> </munder><msup><mi>z</mi> <mi>n</mi> </msup><mo>/</mo><mspace width="0.166667em"></mspace><mspace width="0.166667em"></mspace><munder><mo>&#8719;</mo> <mrow><mn>1</mn><mo>&#8804;</mo><mi>k</mi><mo>&#8804;</mo><mi>n</mi></mrow> </munder><mrow><mo>(</mo><mn>1</mn><mo>-</mo><msup><mi>q</mi> <mi>k</mi> </msup><mo>)</mo></mrow><mo>.</mo></mrow></math></td><td class="eqno">(16´)</td></tr></table></div>
<p><b>Exercise 19.6:</b> In TeX, you can put an en-dash in an equation number by using
<samp>\hbox</samp>. This is not allowed in <i>Tralics</i>: the equation <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>1</mn><mo>=</mo><mn>1</mn></mrow></math></span> below gives an
error. On the other hand, any character can be put in an equation number; the
case of an apostrophe is a bit special: it is not converted to an exponent,
but replaced by <samp>\apostrophe</samp>.</p>
<p>The example below illustrates one complexity. The end of the tag (via
<samp>\eqno</samp>) is the end of the formula. In order to get the end of the formula,
all tokens have to be expanded. The question is what to do with <samp>\char</samp>:
remember that this command reads and typesets a character. In this case it
cannot typeset a character; assume that we delay its interpretation. In this
case, the command that follows the backquote will be expanded (this is wrong:
we do not want to put an acute accent somewhere). Hence, the <samp>\char</samp>
command reads a character, and pushes back a character token, with the same
value, but category code 12. We explained above that <samp>\mathchar</samp> is not
implemented. This means that there is one and only one active math character:
the apostrophe, it produces a prime exponent even when it has category code
12. This is not desired: a tag should consist in characters only. This
explains why something special is done. You can define the <samp>\apostrophe</samp>
command as you like (the default value is character U+B4, but you can use an
apostrophe, case where an exponent will be created when the token list is read
again; formula <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>2</mn><mo>=</mo><mn>2</mn></mrow></math></span> gives a double superscript error, guess why).
Note how we insert an en-dash (of course <samp>\textendash</samp> is a
non-math command, we had to modify some files in order to allow this character
in the Pdf).</p>
<pre class="latex-code"><span class="prenumber">272</span> \[1=1\eqno\hbox{(3--1)} \]
<span class="prenumber">273</span> \[0=0\eqno(*,{**},{***},16'\char`\'\char`\^,3^^^^20131)\]
<span class="prenumber">274</span> \[\def\apostrophe{'} 2=2\eqno(16'\char`\')\]
<span class="prenumber">275</span> \[\def\apostrophe{'} 3=3\eqno(16')\]
</pre>

<div class="mathdisplay"><table width="100%"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>0</mn><mo>=</mo><mn>0</mn></mrow></math></td><td class="eqno">(*,**,***,16´´^,3&#8211;1)</td></tr></table></div>
<p><b>Exercise 19.7:</b> It is possible to insert the equation number in the formula.
What you can see here is that the spacing for two and three stars is the same:
Knuth says that TeX converts binary star to type Ord, in the case of three
stars, the middle one is of type Ord.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>0</mn><mo>=</mo><mn>0</mn><mspace width="2.em"></mspace><mo>(</mo><mo>*</mo><mo>,</mo><mrow><mo>*</mo><mo>*</mo></mrow><mo>,</mo><mrow><mo>*</mo><mo>*</mo><mo>*</mo></mrow><mo>,</mo><mn>16</mn><mi>´</mi><mi>´</mi><mo>^</mo><mo>,</mo><mn>3</mn><mi>&#8211;</mi><mn>1</mn><mo>)</mo></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>3</mn><mo>=</mo><mn>3</mn><mspace width="2.em"></mspace><mo>(</mo><msup><mn>16</mn> <mo>'</mo> </msup><mo>)</mo></mrow></math></div>
<p class="nofirst noindent"><b>Exercise 19.8:</b> Knuth says: if <samp>\hsize</samp> is less than 10000pt, then the natural
width of the equation will be too large. <i>Tralics</i> ignores the shrink part of
the glue. In the case of the HTML document, the
text will flush in the right margin (and the equation number will be far
away). We have replaced 10000 by 600, this should be big enough to see
something.</p>
<pre class="latex-code"><span class="prenumber">276</span> \[\quad x=y\hskip10000pt minus 1fill\eqno(5)\]
</pre>

<div class="mathdisplay"><table width="100%"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mspace width="1.em"></mspace><mi>x</mi><mo>=</mo><mi>y</mi><mspace width="600.0pt"></mspace></mrow></math></td><td class="eqno">(5)</td></tr></table></div>

<h3 id="uid52">2.4.2. Multi-line displays</h3>
<p><b>Exercise 19.9:</b> The <samp>\eqalign</samp> feature of plain TeX is not implemented; you can
use the <samp>align</samp> environment like here:</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mrow><mi>T</mi><mrow><mo>(</mo><mi>n</mi><mo>)</mo></mrow><mo>&#8804;</mo><mi>T</mi><mrow><mo>(</mo><msup><mn>2</mn> <mrow><mo>&#8968;</mo><mo form="prefix">lg</mo><mi>n</mi><mo>&#8969;</mo></mrow> </msup><mo>)</mo></mrow></mrow></mtd><mtd columnalign="left"><mrow><mo>&#8804;</mo><mi>c</mi><mrow><mo>(</mo><msup><mn>3</mn> <mrow><mo>&#8968;</mo><mo form="prefix">lg</mo><mi>n</mi><mo>&#8969;</mo></mrow> </msup><mo>)</mo></mrow><mo>-</mo><mi>c</mi><mrow><mo>(</mo><msup><mn>2</mn> <mrow><mo>&#8968;</mo><mo form="prefix">lg</mo><mi>n</mi><mo>&#8969;</mo></mrow> </msup><mo>)</mo></mrow></mrow></mtd></mtr><mtr><mtd></mtd><mtd columnalign="left"><mrow><mo>&lt;</mo><mn>3</mn><mi>c</mi><mo>·</mo><msup><mn>3</mn> <mrow><mo form="prefix">lg</mo><mi>n</mi></mrow> </msup></mrow></mtd></mtr><mtr><mtd></mtd><mtd columnalign="left"><mrow><mo>=</mo><mn>3</mn><mi>c</mi><mspace width="0.166667em"></mspace><msup><mi>n</mi> <mrow><mo form="prefix">lg</mo><mn>3</mn></mrow> </msup><mo>.</mo></mrow></mtd></mtr></mtable></math></div>
<p class="nofirst noindent">Using <samp>aligned</samp>, you can get</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfenced separators="" open="{" close="}"><mtable displaystyle="true"><mtr><mtd columnalign="right"><mi>&#945;</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>f</mi><mo>(</mo><mi>z</mi><mo>)</mo></mrow></mtd></mtr><mtr><mtd columnalign="right"><mi>&#946;</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>f</mi><mo>(</mo><msup><mi>z</mi> <mn>2</mn> </msup><mo>)</mo></mrow></mtd></mtr><mtr><mtd columnalign="right"><mi>&#947;</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>f</mi><mo>(</mo><msup><mi>z</mi> <mn>3</mn> </msup><mo>)</mo></mrow></mtd></mtr></mtable></mfenced><mspace width="2.em"></mspace><mfenced separators="" open="{" close="}"><mtable displaystyle="true"><mtr><mtd columnalign="right"><mi>x</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>&#945;</mi> <mn>2</mn> </msup><mo>-</mo><mi>&#946;</mi></mrow></mtd></mtr><mtr><mtd columnalign="right"><mi>y</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mn>2</mn><mi>&#947;</mi></mrow></mtd></mtr></mtable></mfenced></mrow></math></div>
<p><b>Exercise 19.10:</b></p>
<div class="mathdisplay"><table width="100%" id="uid53"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mrow><mi>P</mi><mo>(</mo><mi>x</mi><mo>)</mo></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msub><mi>a</mi> <mn>0</mn> </msub><mo>+</mo><msub><mi>a</mi> <mn>1</mn> </msub><mi>x</mi><mo>+</mo><msub><mi>a</mi> <mn>2</mn> </msub><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><mo>&#8943;</mo><mo>+</mo><msub><mi>a</mi> <mi>n</mi> </msub><msup><mi>x</mi> <mi>n</mi> </msup><mo>,</mo></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><mi>P</mi><mo>(</mo><mo>-</mo><mi>x</mi><mo>)</mo></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msub><mi>a</mi> <mn>0</mn> </msub><mo>-</mo><msub><mi>a</mi> <mn>1</mn> </msub><mi>x</mi><mo>+</mo><msub><mi>a</mi> <mn>2</mn> </msub><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><mo>&#8943;</mo><mo>+</mo><msup><mrow><mo>(</mo><mo>-</mo><mn>1</mn><mo>)</mo></mrow> <mi>n</mi> </msup><msub><mi>a</mi> <mi>n</mi> </msub><msup><mi>x</mi> <mi>n</mi> </msup><mo>.</mo></mrow></mtd></mtr></mtable></math></td><td class="eqno">(10)</td></tr></table></div>
<p>Currently, the following code does not work.</p>
<pre class="latex-code"><span class="prenumber">277</span> \begin{eqalignno}
<span class="prenumber">278</span> (x+y)(x-y)&amp;=x^2-xy+yx-y^2\\
<span class="prenumber">279</span> &amp;=x^2-y^2;&amp;(4)\\
<span class="prenumber">280</span> (x+y)^2&amp;=x^2+2xy+y^2 ;
<span class="prenumber">281</span> \end{eqalignno}
<span class="prenumber">282</span> \begin{leqalignno}
<span class="prenumber">283</span> (x+y)(x-y)&amp;=x^2-xy+yx-y^2\\
<span class="prenumber">284</span> &amp;=x^2-y^2;&amp;(4)\\
<span class="prenumber">285</span> (x+y)^2&amp;=x^2+2xy+y^2 .
<span class="prenumber">286</span> \end{leqalignno}
</pre>
<p class="nofirst noindent">The best we can do is using phantoms:</p>
<pre class="latex-code"><span class="prenumber">287</span> \def\xcenter#1#2#3{\phantom{#3}{#1#2#3}\phantom{#1}}
<span class="prenumber">288</span> \[\xcenter{(x+y)(x-y)}{=}{x^2-xy+yx-y^2} \]
<span class="prenumber">289</span> \[\xcenter{{}}{=}{x^2-y^2;}\label{192-0}\]
<span class="prenumber">290</span> \[\xcenter{{(x+y)^2}}{=}{x^2+2xy+y^2 .}\label{192-5}\]
</pre>

<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mphantom><msup><mi>x</mi> <mn>2</mn> </msup><mo>-</mo><mi>x</mi><mi>y</mi><mo>+</mo><mi>y</mi><mi>x</mi><mo>-</mo><msup><mi>y</mi> <mn>2</mn> </msup></mphantom><mrow><mrow><mo>(</mo><mi>x</mi><mo>+</mo><mi>y</mi><mo>)</mo></mrow><mrow><mo>(</mo><mi>x</mi><mo>-</mo><mi>y</mi><mo>)</mo></mrow><mo>=</mo><msup><mi>x</mi> <mn>2</mn> </msup><mo>-</mo><mi>x</mi><mi>y</mi><mo>+</mo><mi>y</mi><mi>x</mi><mo>-</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow><mphantom><mo>(</mo><mi>x</mi><mo>+</mo><mi>y</mi><mo>)</mo><mo>(</mo><mi>x</mi><mo>-</mo><mi>y</mi><mo>)</mo></mphantom></mrow></math></div>
<div class="mathdisplay"><table width="100%" id="uid54"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mphantom><msup><mi>x</mi> <mn>2</mn> </msup><mo>-</mo><msup><mi>y</mi> <mn>2</mn> </msup><mo>;</mo></mphantom><mrow><mrow></mrow><mo>=</mo><msup><mi>x</mi> <mn>2</mn> </msup><mo>-</mo><msup><mi>y</mi> <mn>2</mn> </msup><mo>;</mo></mrow><mphantom><mrow></mrow></mphantom></mrow></math></td><td class="eqno">(11)</td></tr></table></div>
<div class="mathdisplay"><table width="100%" id="uid55"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mphantom><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><mn>2</mn><mi>x</mi><mi>y</mi><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup><mo>.</mo></mphantom><mrow><msup><mrow><mo>(</mo><mi>x</mi><mo>+</mo><mi>y</mi><mo>)</mo></mrow> <mn>2</mn> </msup><mo>=</mo><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><mn>2</mn><mi>x</mi><mi>y</mi><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup><mo>.</mo></mrow><mphantom><msup><mrow><mo>(</mo><mi>x</mi><mo>+</mo><mi>y</mi><mo>)</mo></mrow> <mn>2</mn> </msup></mphantom></mrow></math></td><td class="eqno">(12)</td></tr></table></div>
<p><b>Exercise 19.12:</b> First two equations use <samp>\leqno</samp>,
Equations (<a href="#uid56">13</a>) and (<a href="#uid57">14</a>) have a label.</p>
<div class="mathdisplay"><table width="100%"><tr valign="middle"><td class="leqno">(9)</td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mphantom><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mi>v</mi><mo>,</mo><mi>u</mi><mo>)</mo><mo>;</mo></mphantom><mrow><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>)</mo><mo>=</mo><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mi>v</mi><mo>,</mo><mi>u</mi><mo>)</mo><mo>;</mo></mrow><mphantom><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>)</mo></mphantom></mrow></math></td><td class="eqno"></td></tr></table></div>
<div class="mathdisplay"><table width="100%"><tr valign="middle"><td class="leqno">(10)</td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mphantom><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mo>-</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>)</mo><mo>.</mo></mphantom><mrow><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>)</mo><mo>=</mo><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mo>-</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>)</mo><mo>.</mo></mrow><mphantom><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>)</mo></mphantom></mrow></math></td><td class="eqno"></td></tr></table></div>
<div class="mathdisplay"><table width="100%" id="uid56"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mphantom><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mi>v</mi><mo>,</mo><mi>u</mi><mo>)</mo><mo>;</mo></mphantom><mrow><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>)</mo><mo>=</mo><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mi>v</mi><mo>,</mo><mi>u</mi><mo>)</mo><mo>;</mo></mrow><mphantom><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>)</mo></mphantom></mrow></math></td><td class="eqno">(13)</td></tr></table></div>
<div class="mathdisplay"><table width="100%" id="uid57"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mphantom><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mo>-</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>)</mo><mo>.</mo></mphantom><mrow><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>)</mo><mo>=</mo><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mo>-</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>)</mo><mo>.</mo></mrow><mphantom><mo movablelimits="true" form="prefix">gcd</mo><mo>(</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>)</mo></mphantom></mrow></math></td><td class="eqno">(14)</td></tr></table></div>
<p><b>Exercise 19.13:</b> Note: Knuth has a small space before the first <samp>dx</samp>, this seems
unnecessary. Some operators are big by default in MathML, so that no <samp>\big</samp>
is required. However, there is a rule in <i>Tralics</i> that says that small
parentheses are used in <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8747;</mo><mi>f</mi><mo>(</mo><mi>x</mi><mo>)</mo><mi>d</mi><mi>x</mi></mrow></math></span>, even when the integral has limits.
In this cases, this mechanism produces small parentheses. The remedy is to put
<samp>f(x)</samp> in a group; the size of the parentheses depend only on what is in
the group. In a case like <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup><mo>)</mo></mrow></math></span>, large parentheses are used. If you want
small ones, you must use the <samp>\smash</samp> command, and you get
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mpadded height="0pt" depth="0pt"><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup></mpadded><mo>)</mo></mrow></math></span>. In the pdf version, the vertical bar is too small.</p>
<pre class="latex-code"><span class="prenumber">291</span> \[\xcenter{\left(\int_{-\infty}^{\infty}e^{-x^2}dx\right)^2}{=}
<span class="prenumber">292</span> {\int_{-\infty}^{\infty}\int_{-\infty}^{\infty}e^{-(\smash{x^2+y^2})}dx\,dy}\]
<span class="prenumber">293</span> \[\xcenter{}{=}{\int_0^{2\pi}\int_0^\infty e^{-r^2}r\,dr\,d\theta}\]
<span class="prenumber">294</span> \[\xcenter{}{=}{\int_0^{2\pi}{\left(-\frac{e^{-r^2}}{2}|
<span class="prenumber">295</span>         _{r=0}^{r=\infty}\right)}\,d\theta}\]
<span class="prenumber">296</span> \[\xcenter{}{=}{\pi.}\label{e19.13}\]
</pre>

<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mphantom><msubsup><mo>&#8747;</mo> <mrow><mo>-</mo><mi>&#8734;</mi></mrow> <mi>&#8734;</mi> </msubsup><msubsup><mo>&#8747;</mo> <mrow><mo>-</mo><mi>&#8734;</mi></mrow> <mi>&#8734;</mi> </msubsup><msup><mi>e</mi> <mrow><mo>-</mo><mo>(</mo><mpadded height="0pt" depth="0pt"><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup></mpadded><mo>)</mo></mrow> </msup><mi>d</mi><mi>x</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>y</mi></mphantom><mrow><msup><mfenced separators="" open="(" close=")"><msubsup><mo>&#8747;</mo> <mrow><mo>-</mo><mi>&#8734;</mi></mrow> <mi>&#8734;</mi> </msubsup><msup><mi>e</mi> <mrow><mo>-</mo><msup><mi>x</mi> <mn>2</mn> </msup></mrow> </msup><mi>d</mi><mi>x</mi></mfenced> <mn>2</mn> </msup><mo>=</mo><msubsup><mo>&#8747;</mo> <mrow><mo>-</mo><mi>&#8734;</mi></mrow> <mi>&#8734;</mi> </msubsup><msubsup><mo>&#8747;</mo> <mrow><mo>-</mo><mi>&#8734;</mi></mrow> <mi>&#8734;</mi> </msubsup><msup><mi>e</mi> <mrow><mo>-</mo><mo>(</mo><mpadded height="0pt" depth="0pt"><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup></mpadded><mo>)</mo></mrow> </msup><mi>d</mi><mi>x</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>y</mi></mrow><mphantom><msup><mfenced separators="" open="(" close=")"><msubsup><mo>&#8747;</mo> <mrow><mo>-</mo><mi>&#8734;</mi></mrow> <mi>&#8734;</mi> </msubsup><msup><mi>e</mi> <mrow><mo>-</mo><msup><mi>x</mi> <mn>2</mn> </msup></mrow> </msup><mi>d</mi><mi>x</mi></mfenced> <mn>2</mn> </msup></mphantom></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mphantom><msubsup><mo>&#8747;</mo> <mn>0</mn> <mrow><mn>2</mn><mi>&#960;</mi></mrow> </msubsup><msubsup><mo>&#8747;</mo> <mn>0</mn> <mi>&#8734;</mi> </msubsup><msup><mi>e</mi> <mrow><mo>-</mo><msup><mi>r</mi> <mn>2</mn> </msup></mrow> </msup><mi>r</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>r</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>&#952;</mi></mphantom><mrow><mo>=</mo><msubsup><mo>&#8747;</mo> <mn>0</mn> <mrow><mn>2</mn><mi>&#960;</mi></mrow> </msubsup><msubsup><mo>&#8747;</mo> <mn>0</mn> <mi>&#8734;</mi> </msubsup><msup><mi>e</mi> <mrow><mo>-</mo><msup><mi>r</mi> <mn>2</mn> </msup></mrow> </msup><mi>r</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>r</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>&#952;</mi></mrow><mphantom></mphantom></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mphantom><msubsup><mo>&#8747;</mo> <mn>0</mn> <mrow><mn>2</mn><mi>&#960;</mi></mrow> </msubsup><mfenced separators="" open="(" close=")"><mo>-</mo><mfrac><msup><mi>e</mi> <mrow><mo>-</mo><msup><mi>r</mi> <mn>2</mn> </msup></mrow> </msup> <mn>2</mn></mfrac><msubsup><mrow><mo>|</mo></mrow> <mrow><mi>r</mi><mo>=</mo><mn>0</mn></mrow> <mrow><mi>r</mi><mo>=</mo><mi>&#8734;</mi></mrow> </msubsup></mfenced><mspace width="0.166667em"></mspace><mi>d</mi><mi>&#952;</mi></mphantom><mrow><mo>=</mo><msubsup><mo>&#8747;</mo> <mn>0</mn> <mrow><mn>2</mn><mi>&#960;</mi></mrow> </msubsup><mfenced separators="" open="(" close=")"><mo>-</mo><mfrac><msup><mi>e</mi> <mrow><mo>-</mo><msup><mi>r</mi> <mn>2</mn> </msup></mrow> </msup> <mn>2</mn></mfrac><msubsup><mrow><mo>|</mo></mrow> <mrow><mi>r</mi><mo>=</mo><mn>0</mn></mrow> <mrow><mi>r</mi><mo>=</mo><mi>&#8734;</mi></mrow> </msubsup></mfenced><mspace width="0.166667em"></mspace><mi>d</mi><mi>&#952;</mi></mrow><mphantom></mphantom></mrow></math></div>
<div class="mathdisplay"><table width="100%" id="uid58"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mphantom><mi>&#960;</mi><mo>.</mo></mphantom><mrow><mo>=</mo><mi>&#960;</mi><mo>.</mo></mrow><mphantom></mphantom></mrow></math></td><td class="eqno">(15)</td></tr></table></div>
<p><b>Exercise 19.14:</b> Knuth explains that <samp>eqalign</samp> and <samp>eqalignno</samp> environments
are based on <samp>\halign</samp>, so that <samp>\noalign</samp> can be used. In environments
like <samp>gather</samp>, you can try <samp>\multicolumn</samp>. As you can see here, the word
`and´ occurs at the left of the table, not at the left margin; this is the same
as what happens with <samp>\eqalign</samp>.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd><mrow><mi>x</mi><mo>=</mo><mi>y</mi><mo>+</mo><mi>z</mi></mrow></mtd></mtr><mtr><mtd columnalign="left" columnspan="1"><mtext>and</mtext></mtd></mtr><mtr><mtd><mrow><msup><mi>x</mi> <mn>2</mn> </msup><mo>=</mo><msup><mi>y</mi> <mn>2</mn> </msup><msup><mi>z</mi> <mn>2</mn> </msup></mrow></mtd></mtr></mtable></math></div>
<p><b>Exercise 19.16:</b> This uses <samp>\gather</samp>. There are no equation numbers, because
<samp>\hfil</samp>, <samp>\hfill</samp> or <samp>\hfilneg</samp> are not allowed.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd><mrow><mi>x</mi><mo>&#8801;</mo><mi>x</mi></mrow></mtd></mtr><mtr><mtd><mrow><mtext>if</mtext><mspace width="1.em"></mspace><mi>x</mi><mo>&#8801;</mo><mi>y</mi><mspace width="1.em"></mspace><mtext>then</mtext><mspace width="1.em"></mspace><mi>y</mi><mo>&#8801;</mo><mi>x</mi></mrow></mtd></mtr><mtr><mtd><mrow><mtext>if</mtext><mspace width="1.em"></mspace><mi>x</mi><mo>&#8801;</mo><mi>y</mi><mspace width="1.em"></mspace><mtext>and</mtext><mspace width="1.em"></mspace><mi>y</mi><mo>&#8801;</mo><mi>z</mi><mspace width="1.em"></mspace><mtext>then</mtext><mspace width="1.em"></mspace><mi>x</mi><mo>&#8801;</mo><mi>z</mi><mo>.</mo></mrow></mtd></mtr></mtable></math></div>

<h3 id="uid59">2.4.3. Long formulas</h3>
<p>The long formula is</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>&#963;</mi><mrow><mo>(</mo><msup><mn>2</mn> <mn>34</mn> </msup><mo>-</mo><mn>1</mn><mo>,</mo><msup><mn>2</mn> <mn>35</mn> </msup><mo>,</mo><mn>1</mn><mo>)</mo></mrow><mo>=</mo><mo>-</mo><mn>3</mn><mo>+</mo><mrow><mo>(</mo><msup><mn>2</mn> <mn>34</mn> </msup><mo>-</mo><mn>1</mn><mo>)</mo></mrow><mo>/</mo><msup><mn>2</mn> <mn>35</mn> </msup><mo>+</mo><msup><mn>2</mn> <mn>35</mn> </msup><mspace width="-0.166667em"></mspace><mo>/</mo><mrow><mo>(</mo><msup><mn>2</mn> <mn>34</mn> </msup><mo>-</mo><mn>1</mn><mo>)</mo></mrow><mo>+</mo><mn>7</mn><mo>/</mo><msup><mn>2</mn> <mn>35</mn> </msup><mrow><mo>(</mo><msup><mn>2</mn> <mn>34</mn> </msup><mo>-</mo><mn>1</mn><mo>)</mo></mrow><mo>-</mo><mi>&#963;</mi><mrow><mo>(</mo><msup><mn>2</mn> <mn>35</mn> </msup><mo>,</mo><msup><mn>2</mn> <mn>34</mn> </msup><mo>-</mo><mn>1</mn><mo>,</mo><mn>1</mn><mo>)</mo></mrow><mo>.</mo></mrow></math></div>
<p class="nofirst noindent">It can be split as</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mrow><mi>&#963;</mi><mo>(</mo><msup><mn>2</mn> <mn>34</mn> </msup><mo>-</mo><mn>1</mn><mo>,</mo><msup><mn>2</mn> <mn>35</mn> </msup><mo>,</mo><mn>1</mn><mo>)</mo></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mo>-</mo><mn>3</mn><mo>+</mo><mrow><mo>(</mo><msup><mn>2</mn> <mn>34</mn> </msup><mo>-</mo><mn>1</mn><mo>)</mo></mrow><mo>/</mo><msup><mn>2</mn> <mn>35</mn> </msup><mo>+</mo><msup><mn>2</mn> <mn>35</mn> </msup><mspace width="-0.166667em"></mspace><mo>/</mo><mrow><mo>(</mo><msup><mn>2</mn> <mn>34</mn> </msup><mo>-</mo><mn>1</mn><mo>)</mo></mrow></mrow></mtd></mtr><mtr><mtd></mtd><mtd columnalign="left"><mrow><mspace width="2.em"></mspace><mrow></mrow><mo>+</mo><mn>7</mn><mo>/</mo><msup><mn>2</mn> <mn>35</mn> </msup><mrow><mo>(</mo><msup><mn>2</mn> <mn>34</mn> </msup><mo>-</mo><mn>1</mn><mo>)</mo></mrow><mo>-</mo><mi>&#963;</mi><mrow><mo>(</mo><msup><mn>2</mn> <mn>35</mn> </msup><mo>,</mo><msup><mn>2</mn> <mn>34</mn> </msup><mo>-</mo><mn>1</mn><mo>,</mo><mn>1</mn><mo>)</mo></mrow><mo>.</mo></mrow></mtd></mtr></mtable></math></div>
<p><b>Exercise 19.17:</b></p>
<div class="mathdisplay"><table width="100%" id="uid60"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mrow><msub><mi>x</mi> <mi>n</mi> </msub><msub><mi>u</mi> <mn>1</mn> </msub><mo>+</mo><mo>&#8943;</mo><mo>+</mo><msub><mi>x</mi> <mrow><mi>n</mi><mo>+</mo><mi>t</mi><mo>-</mo><mn>1</mn></mrow> </msub><msub><mi>u</mi> <mi>t</mi> </msub></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msub><mi>x</mi> <mi>n</mi> </msub><msub><mi>u</mi> <mn>1</mn> </msub><mo>+</mo><mrow><mo>(</mo><mi>a</mi><msub><mi>x</mi> <mi>n</mi> </msub><mo>+</mo><mi>c</mi><mo>)</mo></mrow><msub><mi>u</mi> <mn>2</mn> </msub><mo>+</mo><mo>&#8943;</mo></mrow></mtd></mtr><mtr><mtd></mtd><mtd columnalign="left"><mrow><mspace width="2.em"></mspace><mrow></mrow><mo>+</mo><mrow><mo>(</mo><msup><mi>a</mi> <mrow><mi>t</mi><mo>-</mo><mn>1</mn></mrow> </msup><msub><mi>x</mi> <mi>n</mi> </msub><mo>+</mo><mi>c</mi><mrow><mo>(</mo><msup><mi>a</mi> <mrow><mi>t</mi><mo>-</mo><mn>2</mn></mrow> </msup><mo>+</mo><mo>&#8943;</mo><mo>+</mo><mn>1</mn><mo>)</mo></mrow><mo>)</mo></mrow><msub><mi>u</mi> <mi>t</mi> </msub></mrow></mtd></mtr><mtr><mtd></mtd><mtd columnalign="left"><mrow><mo>=</mo><mrow><mo>(</mo><msub><mi>u</mi> <mn>1</mn> </msub><mo>+</mo><mi>a</mi><msub><mi>u</mi> <mn>2</mn> </msub><mo>+</mo><mo>&#8943;</mo><mo>+</mo><msup><mi>a</mi> <mrow><mi>t</mi><mo>-</mo><mn>1</mn></mrow> </msup><msub><mi>u</mi> <mi>t</mi> </msub><mo>)</mo></mrow><msub><mi>x</mi> <mi>n</mi> </msub><mo>+</mo><mi>h</mi><mrow><mo>(</mo><msub><mi>u</mi> <mn>1</mn> </msub><mo>,</mo><mo>...</mo><mo>,</mo><msub><mi>u</mi> <mi>t</mi> </msub><mo>)</mo></mrow><mo>.</mo></mrow></mtd></mtr></mtable></math></td><td class="eqno">(16)</td></tr></table></div>
<p>Attempt to use <samp>multline</samp> for the long formula.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="left"><mrow><mi>&#963;</mi><mrow><mo>(</mo><msup><mn>2</mn> <mn>34</mn> </msup><mo>-</mo><mn>1</mn><mo>,</mo><msup><mn>2</mn> <mn>35</mn> </msup><mo>,</mo><mn>1</mn><mo>)</mo></mrow><mo>=</mo><mo>-</mo><mn>3</mn><mo>+</mo><mrow><mo>(</mo><msup><mn>2</mn> <mn>34</mn> </msup><mo>-</mo><mn>1</mn><mo>)</mo></mrow><mo>/</mo><msup><mn>2</mn> <mn>35</mn> </msup><mo>+</mo><msup><mn>2</mn> <mn>35</mn> </msup><mspace width="-0.166667em"></mspace><mo>/</mo><mrow><mo>(</mo><msup><mn>2</mn> <mn>34</mn> </msup><mo>-</mo><mn>1</mn><mo>)</mo></mrow></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><mrow></mrow><mo>+</mo><mn>7</mn><mo>/</mo><msup><mn>2</mn> <mn>35</mn> </msup><mrow><mo>(</mo><msup><mn>2</mn> <mn>34</mn> </msup><mo>-</mo><mn>1</mn><mo>)</mo></mrow><mo>-</mo><mi>&#963;</mi><mrow><mo>(</mo><msup><mn>2</mn> <mn>35</mn> </msup><mo>,</mo><msup><mn>2</mn> <mn>34</mn> </msup><mo>-</mo><mn>1</mn><mo>,</mo><mn>1</mn><mo>)</mo></mrow><mo>.</mo></mrow></mtd></mtr></mtable></math></div>
<p><b>Exercise 19.18:</b></p>
<div class="mathdisplay"><table width="100%" id="uid61"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="left"><mrow><munder><mo>&#8721;</mo> <mrow><mn>1</mn><mo>&#8804;</mo><mi>j</mi><mo>&#8804;</mo><mi>n</mi></mrow> </munder><mfrac><mn>1</mn> <mrow><mrow><mo>(</mo><msub><mi>x</mi> <mi>j</mi> </msub><mo>-</mo><msub><mi>x</mi> <mn>1</mn> </msub><mo>)</mo></mrow><mo>...</mo><mrow><mo>(</mo><msub><mi>x</mi> <mi>j</mi> </msub><mo>-</mo><msub><mi>x</mi> <mrow><mi>j</mi><mo>-</mo><mn>1</mn></mrow> </msub><mo>)</mo></mrow><mrow><mo>(</mo><mi>x</mi><mo>-</mo><msub><mi>x</mi> <mi>j</mi> </msub><mo>)</mo></mrow><mrow><mo>(</mo><msub><mi>x</mi> <mi>j</mi> </msub><mo>-</mo><msub><mi>x</mi> <mrow><mi>j</mi><mo>+</mo><mn>1</mn></mrow> </msub><mo>)</mo></mrow><mo>...</mo><mrow><mo>(</mo><msub><mi>x</mi> <mi>j</mi> </msub><mo>-</mo><msub><mi>x</mi> <mi>n</mi> </msub><mo>)</mo></mrow></mrow></mfrac></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><mo>=</mo><mfrac><mn>1</mn> <mrow><mrow><mo>(</mo><mi>x</mi><mo>-</mo><msub><mi>x</mi> <mn>1</mn> </msub><mo>)</mo></mrow><mo>...</mo><mrow><mo>(</mo><mi>x</mi><mo>-</mo><msub><mi>x</mi> <mi>n</mi> </msub><mo>)</mo></mrow></mrow></mfrac><mo>.</mo></mrow></mtd></mtr></mtable></math></td><td class="eqno">(17)</td></tr></table></div>
<p class="nofirst noindent"><b>Exercise 19.19:</b> This is a silly expression. It is formed of A and B over C.
We show here the code of A, B and C, using the shorthands of Knuth. We redefine
locally the <samp>\\</samp> command. The <samp>\Paren</samp> command puts
parentheses around the argument., the <samp>\Slash</samp> command produces a slash.</p>
<pre class="latex-code"><span class="prenumber">297</span> {
<span class="prenumber">298</span> \def\\#1;{\noexpand\Paren{#1;q^2}_\infty}
<span class="prenumber">299</span> \xdef\formA{q^{\frac 12 n(n+1)}\\ea;\\eq\noexpand\Slash a;}
<span class="prenumber">300</span> \xdef\formB{\\caq\noexpand\Slash e;\\cq^2\!\noexpand\Slash ae;}
<span class="prenumber">301</span> \xdef\formC{(e;q)_\infty(cq/e;q)_\infty}
<span class="prenumber">302</span> }
</pre>
<p>The question is: What is the size of the parentheses?
In the case of <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8747;</mo><mi>f</mi><mo>(</mo><mi>x</mi><mo>)</mo><mi>d</mi><mi>x</mi></mrow></math></span> some browsers show parentheses whose size are the
same as that of the current group; if nothing special is done, it includes the
integral sign and the bounds, this is wrong. For this reason, <i>Tralics</i> inserts some braces for opening and closing delimiters. If a group is created
for the parenthesis, it contains no big objects (e.g., something with
exponents). If possible, opening and closing parentheses are part of the same
group. The algorithm is not obvious: consider what should be done if <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">x</mi></math></span> or
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>f</mi><mo>(</mo><mi>x</mi><mo>)</mo></mrow></math></span> is replaced by its square. The following exercise is interesting. Note:
in the Pdf version, all formulas look the same, this is because parentheses
have fixed size. See also discussion after exercise 16.2: there are no
multiple scripts here.</p>
<p>We give here four
variants. In case one, there is no group, and the size of the parentheses is
given by the exponent of the q. Hence they are too big. <i>Tralics</i> tries to
compensate, but this does not work well, because of the index attached to
parenthesis; there are two parts <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mi>e</mi><mi>a</mi><mo>;</mo></mrow></math></span> and <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>q</mi> <mn>2</mn> </msup><msub><mrow><mo>)</mo></mrow> <mi>&#8734;</mi> </msub></mrow></math></span>.
In the second case, we have added an empty group. In this case,
we have a group with <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mi>e</mi><mi>a</mi><mo>;</mo></mrow></math></span> followed by <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>q</mi> <mn>2</mn> </msup></math></span> followed by a group with <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">)</mo></math></span>
followed by <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msub xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow></mrow> <mi>&#8734;</mi> </msub></math></span>. This gives small parentheses. Variant three is
logically better: we put the parentheses in a group, so that its size depends
only on the content of the group; in this case <i>Tralics</i> leaves the formula
unchanged. If you feel that the parentheses are too big, you can reduce them:
variant four uses <samp>\smash</samp>.</p>
<p>A non trivial point is that the size of the slash character is also
variable. In the case where a group is used (variant 3 and 4), it size depends
on the <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>q</mi> <mn>2</mn> </msup></math></span> that follows. Otherwise, when <i>Tralics</i> tries to insert a group,
in order to reduce the size of the parentheses, it uses a complicated
algorithm: when a group is created for the parentheses, it does not include
big objects. In particular, since each semi-colon is followed by <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>q</mi> <mn>2</mn> </msup></math></span>, this
group cannot contain both parentheses. Expressions can be split after binary
operators or relations, in the case of <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>a</mi><mo>/</mo><mi>b</mi><mo>=</mo><mi>c</mi></mrow></math></span>, only the equals sign is
considered. Understanding exactly where the expression is split is not
easy. Obviously, in the case when there are two <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>q</mi> <mn>2</mn> </msup></math></span> in the expression, none
of them is in a group. Since the slash character is between these two
expressions, it is outside of the group, its size is affected by the exponent
of the first <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mi xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML">q</mi></math></span>. This gives a very big slash (in the case of the Pdf version,
only small characters are used).</p>
<p>One fundamental change in <i>Tralics</i> 2.10.8 concerns the case where a
superscript or subscript is attatched to a parenthesis. In this case, the
script is detached, the soliiting algorithme is called, and the script is
attached to what preceeds. An like <samp>(x)^2</samp>, will be converted into
<samp>(x)<samp>{}</samp>^2</samp>, that can be converted into
<samp>(x)<samp>{}</samp>^2</samp>, and after removal of the dummy group into
<samp>(x)^2</samp>.</p>
<pre class="latex-code"><span class="prenumber">303</span> \def\Paren#1{(#1)}
<span class="prenumber">304</span> \def\Paren#1{(#1){}}
<span class="prenumber">305</span> \def\Paren#1{{(#1)}}
<span class="prenumber">306</span> \def\Paren#1{{(\smash{#1})}}
<span class="prenumber">307</span> \def\Slash{/}
<span class="prenumber">308</span> \[ \frac{\formA\formB}{\formC} \]
<span class="prenumber">309</span> \[ \frac{\textstyle\formA\qquad \atop\hfill\textstyle\formB}{\formC} \]
</pre>
<p>The whole formula version 1</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mfrac xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msup><mi>q</mi> <mrow><mfrac><mn>1</mn> <mn>2</mn></mfrac><mi>n</mi><mrow><mo>(</mo><mi>n</mi><mo>+</mo><mn>1</mn><mo>)</mo></mrow></mrow> </msup><msub><mrow><mo>(</mo><mi>e</mi><mi>a</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>e</mi><mi>q</mi><mo>/</mo><mi>a</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>c</mi><mi>a</mi><mi>q</mi><mo>/</mo><mi>e</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>c</mi><msup><mi>q</mi> <mn>2</mn> </msup><mspace width="-0.166667em"></mspace><mo>/</mo><mi>a</mi><mi>e</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mi>&#8734;</mi> </msub></mrow> <mrow><msub><mrow><mo>(</mo><mi>e</mi><mo>;</mo><mi>q</mi><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>c</mi><mi>q</mi><mo>/</mo><mi>e</mi><mo>;</mo><mi>q</mi><mo>)</mo></mrow> <mi>&#8734;</mi> </msub></mrow></mfrac></math></div>
<p class="nofirst noindent">Version two</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mfrac xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msup><mi>q</mi> <mrow><mfrac><mn>1</mn> <mn>2</mn></mfrac><mi>n</mi><mrow><mo>(</mo><mi>n</mi><mo>+</mo><mn>1</mn><mo>)</mo></mrow></mrow> </msup><mrow><mo>(</mo><mi>e</mi><mi>a</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow><msub><mrow></mrow> <mi>&#8734;</mi> </msub><mrow><mo>(</mo><mi>e</mi><mi>q</mi><mo>/</mo><mi>a</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow><msub><mrow></mrow> <mi>&#8734;</mi> </msub><mrow><mo>(</mo><mi>c</mi><mi>a</mi><mi>q</mi><mo>/</mo><mi>e</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow><msub><mrow></mrow> <mi>&#8734;</mi> </msub><mrow><mo>(</mo><mi>c</mi><msup><mi>q</mi> <mn>2</mn> </msup><mspace width="-0.166667em"></mspace><mo>/</mo><mi>a</mi><mi>e</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow><msub><mrow></mrow> <mi>&#8734;</mi> </msub></mrow> <mrow><msub><mrow><mo>(</mo><mi>e</mi><mo>;</mo><mi>q</mi><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>c</mi><mi>q</mi><mo>/</mo><mi>e</mi><mo>;</mo><mi>q</mi><mo>)</mo></mrow> <mi>&#8734;</mi> </msub></mrow></mfrac></math></div>
<p class="nofirst noindent">Version 3</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mfrac xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msup><mi>q</mi> <mrow><mfrac><mn>1</mn> <mn>2</mn></mfrac><mi>n</mi><mrow><mo>(</mo><mi>n</mi><mo>+</mo><mn>1</mn><mo>)</mo></mrow></mrow> </msup><msub><mrow><mo>(</mo><mi>e</mi><mi>a</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>e</mi><mi>q</mi><mo>/</mo><mi>a</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>c</mi><mi>a</mi><mi>q</mi><mo>/</mo><mi>e</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>c</mi><msup><mi>q</mi> <mn>2</mn> </msup><mspace width="-0.166667em"></mspace><mo>/</mo><mi>a</mi><mi>e</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mi>&#8734;</mi> </msub></mrow> <mrow><msub><mrow><mo>(</mo><mi>e</mi><mo>;</mo><mi>q</mi><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>c</mi><mi>q</mi><mo>/</mo><mi>e</mi><mo>;</mo><mi>q</mi><mo>)</mo></mrow> <mi>&#8734;</mi> </msub></mrow></mfrac></math></div>
<p class="nofirst noindent">Version 4</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mfrac xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msup><mi>q</mi> <mrow><mfrac><mn>1</mn> <mn>2</mn></mfrac><mi>n</mi><mrow><mo>(</mo><mi>n</mi><mo>+</mo><mn>1</mn><mo>)</mo></mrow></mrow> </msup><msub><mrow><mo>(</mo><mpadded height="0pt" depth="0pt"><mi>e</mi><mi>a</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup></mpadded><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mpadded height="0pt" depth="0pt"><mi>e</mi><mi>q</mi><mo>/</mo><mi>a</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup></mpadded><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mpadded height="0pt" depth="0pt"><mi>c</mi><mi>a</mi><mi>q</mi><mo>/</mo><mi>e</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup></mpadded><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mpadded height="0pt" depth="0pt"><mi>c</mi><msup><mi>q</mi> <mn>2</mn> </msup><mspace width="-0.166667em"></mspace><mo>/</mo><mi>a</mi><mi>e</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup></mpadded><mo>)</mo></mrow> <mi>&#8734;</mi> </msub></mrow> <mrow><msub><mrow><mo>(</mo><mi>e</mi><mo>;</mo><mi>q</mi><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>c</mi><mi>q</mi><mo>/</mo><mi>e</mi><mo>;</mo><mi>q</mi><mo>)</mo></mrow> <mi>&#8734;</mi> </msub></mrow></mfrac></math></div>
<p class="nofirst noindent">
The split formula</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mfrac xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac denomalign="right" linethickness="0pt"><mstyle scriptlevel="0" displaystyle="false"><mrow><msup><mi>q</mi> <mrow><mfrac><mn>1</mn> <mn>2</mn></mfrac><mi>n</mi><mrow><mo>(</mo><mi>n</mi><mo>+</mo><mn>1</mn><mo>)</mo></mrow></mrow> </msup><msub><mrow><mo>(</mo><mi>e</mi><mi>a</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>e</mi><mi>q</mi><mo>/</mo><mi>a</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><mspace width="2.em"></mspace></mrow></mstyle> <mstyle scriptlevel="0" displaystyle="false"><mrow><msub><mrow><mo>(</mo><mi>c</mi><mi>a</mi><mi>q</mi><mo>/</mo><mi>e</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>c</mi><msup><mi>q</mi> <mn>2</mn> </msup><mspace width="-0.166667em"></mspace><mo>/</mo><mi>a</mi><mi>e</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mi>&#8734;</mi> </msub></mrow></mstyle></mfrac> <mrow><msub><mrow><mo>(</mo><mi>e</mi><mo>;</mo><mi>q</mi><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>c</mi><mi>q</mi><mo>/</mo><mi>e</mi><mo>;</mo><mi>q</mi><mo>)</mo></mrow> <mi>&#8734;</mi> </msub></mrow></mfrac></math></div>
<p>One trick in order to get a smaller slash: define <samp>\Slash</samp> to be a group
consisting of a slash (and something else, here a <samp>\kern</samp> of width minus 1pt).

The whole formula version two</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mfrac xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msup><mi>q</mi> <mrow><mfrac><mn>1</mn> <mn>2</mn></mfrac><mi>n</mi><mrow><mo>(</mo><mi>n</mi><mo>+</mo><mn>1</mn><mo>)</mo></mrow></mrow> </msup><mrow><mo>(</mo><mi>e</mi><mi>a</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow><msub><mrow></mrow> <mi>&#8734;</mi> </msub><mrow><mo>(</mo><mi>e</mi><mi>q</mi><mrow><mspace width="-1.0pt"></mspace><mo>/</mo></mrow><mi>a</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow><msub><mrow></mrow> <mi>&#8734;</mi> </msub><mrow><mo>(</mo><mi>c</mi><mi>a</mi><mi>q</mi><mrow><mspace width="-1.0pt"></mspace><mo>/</mo></mrow><mi>e</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow><msub><mrow></mrow> <mi>&#8734;</mi> </msub><mrow><mo>(</mo><mi>c</mi><msup><mi>q</mi> <mn>2</mn> </msup><mspace width="-0.166667em"></mspace><mrow><mspace width="-1.0pt"></mspace><mo>/</mo></mrow><mi>a</mi><mi>e</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow><msub><mrow></mrow> <mi>&#8734;</mi> </msub></mrow> <mrow><msub><mrow><mo>(</mo><mi>e</mi><mo>;</mo><mi>q</mi><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>c</mi><mi>q</mi><mo>/</mo><mi>e</mi><mo>;</mo><mi>q</mi><mo>)</mo></mrow> <mi>&#8734;</mi> </msub></mrow></mfrac></math></div>
<p class="nofirst noindent">Version 4</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mfrac xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msup><mi>q</mi> <mrow><mfrac><mn>1</mn> <mn>2</mn></mfrac><mi>n</mi><mrow><mo>(</mo><mi>n</mi><mo>+</mo><mn>1</mn><mo>)</mo></mrow></mrow> </msup><msub><mrow><mo>(</mo><mpadded height="0pt" depth="0pt"><mi>e</mi><mi>a</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup></mpadded><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mpadded height="0pt" depth="0pt"><mi>e</mi><mi>q</mi><mrow><mspace width="-1.0pt"></mspace><mo>/</mo></mrow><mi>a</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup></mpadded><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mpadded height="0pt" depth="0pt"><mi>c</mi><mi>a</mi><mi>q</mi><mrow><mspace width="-1.0pt"></mspace><mo>/</mo></mrow><mi>e</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup></mpadded><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mpadded height="0pt" depth="0pt"><mi>c</mi><msup><mi>q</mi> <mn>2</mn> </msup><mspace width="-0.166667em"></mspace><mrow><mspace width="-1.0pt"></mspace><mo>/</mo></mrow><mi>a</mi><mi>e</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup></mpadded><mo>)</mo></mrow> <mi>&#8734;</mi> </msub></mrow> <mrow><msub><mrow><mo>(</mo><mi>e</mi><mo>;</mo><mi>q</mi><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>c</mi><mi>q</mi><mo>/</mo><mi>e</mi><mo>;</mo><mi>q</mi><mo>)</mo></mrow> <mi>&#8734;</mi> </msub></mrow></mfrac></math></div>
<p class="nofirst noindent">
The split formula, version 4</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mfrac xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac denomalign="right" linethickness="0pt"><mstyle scriptlevel="0" displaystyle="false"><mrow><msup><mi>q</mi> <mrow><mfrac><mn>1</mn> <mn>2</mn></mfrac><mi>n</mi><mrow><mo>(</mo><mi>n</mi><mo>+</mo><mn>1</mn><mo>)</mo></mrow></mrow> </msup><msub><mrow><mo>(</mo><mi>e</mi><mi>a</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>e</mi><mi>q</mi><mrow><mspace width="-1.0pt"></mspace><mo>/</mo></mrow><mi>a</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><mspace width="2.em"></mspace></mrow></mstyle> <mstyle scriptlevel="0" displaystyle="false"><mrow><msub><mrow><mo>(</mo><mi>c</mi><mi>a</mi><mi>q</mi><mrow><mspace width="-1.0pt"></mspace><mo>/</mo></mrow><mi>e</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>c</mi><msup><mi>q</mi> <mn>2</mn> </msup><mspace width="-0.166667em"></mspace><mrow><mspace width="-1.0pt"></mspace><mo>/</mo></mrow><mi>a</mi><mi>e</mi><mo>;</mo><msup><mi>q</mi> <mn>2</mn> </msup><mo>)</mo></mrow> <mi>&#8734;</mi> </msub></mrow></mstyle></mfrac> <mrow><msub><mrow><mo>(</mo><mi>e</mi><mo>;</mo><mi>q</mi><mo>)</mo></mrow> <mi>&#8734;</mi> </msub><msub><mrow><mo>(</mo><mi>c</mi><mi>q</mi><mo>/</mo><mi>e</mi><mo>;</mo><mi>q</mi><mo>)</mo></mrow> <mi>&#8734;</mi> </msub></mrow></mfrac></math></div>

<h1 id="uid62">3. Higher Mathematics, TLC2</h1>
<p>In this chapter we present examples from the LaTeX companion, second
edition, chapter 8; the book is distributed with a CDrom containing all
examples. These examples are formed of two parts; black and blue, the blue
part contains material to be inserted before the
<samp>\begin</samp><samp>{document}</samp>; whenever needed, we shall explain what these
commands are assumed to do, what they do, and how the feature might be
implemented. Unless stated otherwise, the black part is taken verbatim.</p>
<h2 id="uid63">3.1. Introduction to amslatex</h2>
<p>The following packages are defined for use with <i>Tralics</i>:</p>
<ul>
<li id="uid64"><p class="nofirst noindent">amsmath is the main package, it loads amstext, amsbsy, amsopn; Options
are sumlimits, nosumlimits, namelimits, nonamelimits, centertags, tbtags,
cmex10, and fleqn.</p>
</li>
<li id="uid65"><p class="nofirst noindent">amsgen contains some useful commands (currently unused).</p>
</li>
<li id="uid66"><p class="nofirst noindent">amstext defines the <samp>\text</samp> command, which is built-in in <i>Tralics</i>.</p>
</li>
<li id="uid67"><p class="nofirst noindent">amsbsy loads amsgen. It provides <samp>\boldsymbol</samp> and <samp>\bm</samp>, which do
nothing in <i>Tralics</i>.</p>
</li>
<li id="uid68"><p class="nofirst noindent">amsopn, no options. The package defines commands like <samp>\lim</samp>, that
are built-in in <i>Tralics</i>.</p>
</li>
<li id="uid69"><p class="nofirst noindent">amscd, implementes commutative diagrams.</p>
</li>
<li id="uid70"><p class="nofirst noindent">amsthm, not yet implemented (theorems are built-in in <i>Tralics</i>).</p>
</li>
<li id="uid71"><p class="nofirst noindent">amsxtra, not yet implemented.</p>
</li>
<li id="uid72"><p class="nofirst noindent">upref, not yet implemented.</p>
</li>
<li id="uid73"><p class="nofirst noindent">amsfonts, not yet implemented; this package and the following recognize
options psamsfonts.</p>
</li>
<li id="uid74"><p class="nofirst noindent">amssymb. The package defines 204 symbols, all of them implemented in the
<i>Tralics</i> kernel, except the following one, that are declared undefined by
the amsmath package: <samp>\vartriangle</samp>, <samp>\doublebarwedge</samp>,
<samp>\varpropto</samp>, <samp>\smallsmile</samp>, <samp>\smallfrown</samp>, <samp>\lvertneqq</samp>
<samp>\gvertneqq</samp>, <samp>\npreceq</samp>, <samp>\nsucceq</samp>, <samp>\varsubsetneq(q)</samp>
<samp>\varsupsetneq(q)</samp>, <samp>\nsubseteqq</samp>,
<samp>\nsupseteqq</samp>, <samp>\(n)shortmid</samp>, <samp>\(n)shortparallel</samp>.</p>
</li>
<li id="uid75"><p class="nofirst noindent">eufrak. The package defines family <samp>\Eufrak</samp> (this command is
<samp>\mathfrak</samp> in <i>Tralics</i>), this is assumed to use the font family `euf´.
The eufrak package is redundant if the amsfonts package is used.</p>
</li>
<li id="uid76"><p class="nofirst noindent">eucal.
The package defines family <samp>\Euscript</samp> (this command is <samp>\mathcal</samp> in
<i>Tralics</i>), this is assumed to use the font family `eus´.
Accepts options `mathcal´ and `mathscr´ (this make <samp>\mathscr</samp>
equivalent to <samp>\mathcal</samp>.</p>
</li></ul>
<p>All undefined math symbols are defined to be <samp>\ams@unimp</samp>, a command that
expands to an undefined command, the one defined here to produce a red X.</p>
<pre class="latex-code"><span class="prenumber">310</span> \def\UnimplementedOperator{\mathbox{mstyle}[color][red]{X}}
</pre>

<h2 id="uid77">3.2. Display and alignment structures for equations</h2>
<p>Source code for some formulas used below:</p>
<pre class="latex-code"><span class="prenumber">311</span> \begin{equation} (a+b)^2 = a^2+2ab+b^2\end{equation}
<span class="prenumber">312</span> \[  \sin^2\eta+\cos^2\eta = 1  \]
<span class="prenumber">313</span> \begin{equation} x^2 + y^2  =  z^2 \end{equation}
<span class="prenumber">314</span> \begin{align} x^2 + y^2 &amp;=  z^2 \\ x^3 + y^3 &amp;&lt;  z^3 \end{align}
<span class="prenumber">315</span> \begin{eqnarray} x^2 + y^2 &amp;=&amp; z^2 \\ x^3 + y^3 &amp;&lt;&amp; z^3 \end{eqnarray}
<span class="prenumber">316</span> \begin{equation*}  n^2 + m^2 = k^2 \end{equation*}
<span class="prenumber">317</span> \begin{equation} n^p +m^p \neq k^p  \qquad p &gt; 2 \end{equation}
<span class="prenumber">318</span> \begin{multline}  \tag{2}
<span class="prenumber">319</span>   \sum_{t \in \mathbf{T}} \int_a^t
<span class="prenumber">320</span>     \biggl\lbrace \int_a^t f(t - x)^2 \,
<span class="prenumber">321</span>             g(y)^2 \,dx \biggr\rbrace \,dy \\
<span class="prenumber">322</span>   = \sum_{t \notin \mathbf{T}} \int_t^a
<span class="prenumber">323</span>       \biggl\lbrace g(y)^2 \int_t^a
<span class="prenumber">324</span>         f(x)^2 \,dx \biggr\rbrace \,dy
<span class="prenumber">325</span> \end{multline}
</pre>
<p>Example 8-2-1. This uses the `leqno´ option of the amsmath package,
that is assumed to put equation numbers on the left. In <i>Tralics</i>, this will
set the attribute <span class="sansserif">equation-number</span> = `left´ of the document element.</p>
<p>In <i>Tralics</i>, if a formula has no <samp>\label</samp>, no number
is associated to it. Here we have a formula using the <samp>equation</samp>
environment, or a displaymath formula enclosed in a <samp>\[</samp>, <samp>\]</samp> pair.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow> <mn>2</mn> </msup><mo>=</mo><msup><mi>a</mi> <mn>2</mn> </msup><mo>+</mo><mn>2</mn><mi>a</mi><mi>b</mi><mo>+</mo><msup><mi>b</mi> <mn>2</mn> </msup></mrow></math></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mo form="prefix">sin</mo> <mn>2</mn> </msup><mi>&#951;</mi><mo>+</mo><msup><mo form="prefix">cos</mo> <mn>2</mn> </msup><mi>&#951;</mi><mo>=</mo><mn>1</mn></mrow></math></div>
<p>Example 8-2-2. This uses options `reqno´ option of the amsmath package
(equations to the right), it puts
<span class="sansserif">equation-number</span> = `left´ on the document element. It uses also
`fleqn´, that sets <span class="sansserif">flushed-equation</span> = `true´; in LaTeX, you must
define <samp>\mathindent</samp>, here to 1pc, as the distance between the left margin
and the formula; ignored by <i>Tralics</i>. Same formulas as above, with a label
added, in order to show the difference.</p>
<div class="mathdisplay"><table width="100%" id="uid78"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow> <mn>2</mn> </msup><mo>=</mo><msup><mi>a</mi> <mn>2</mn> </msup><mo>+</mo><mn>2</mn><mi>a</mi><mi>b</mi><mo>+</mo><msup><mi>b</mi> <mn>2</mn> </msup></mrow></math></td><td class="eqno">(18)</td></tr></table></div>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mo form="prefix">sin</mo> <mn>2</mn> </msup><mi>&#951;</mi><mo>+</mo><msup><mo form="prefix">cos</mo> <mn>2</mn> </msup><mi>&#951;</mi><mo>=</mo><mn>1</mn></mrow></math></div>
<p>Example 8-2-3. The code was modified in order to add labels; you see three 3
numbers; one per environment, equation, align, and eqnarray. Also text added
between the groups of equations. First environment is <samp>equation</samp>:</p>
<div class="mathdisplay"><table width="100%" id="uid79"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup><mo>=</mo><msup><mi>z</mi> <mn>2</mn> </msup></mrow></math></td><td class="eqno">(19)</td></tr></table></div>
<p class="nofirst noindent">Second environment is <samp>align</samp>:</p>
<div class="mathdisplay"><table width="100%" id="uid80"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>z</mi> <mn>2</mn> </msup></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>3</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>3</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>&lt;</mo><msup><mi>z</mi> <mn>3</mn> </msup></mrow></mtd></mtr></mtable></math></td><td class="eqno">(20)</td></tr></table></div>
<p class="nofirst noindent">Third environment is <samp>eqnarray</samp>:</p>
<div class="mathdisplay"><table width="100%" id="uid81"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow></mtd><mtd><mo>=</mo></mtd><mtd columnalign="left"><msup><mi>z</mi> <mn>2</mn> </msup></mtd></mtr><mtr><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>3</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>3</mn> </msup></mrow></mtd><mtd><mo>&lt;</mo></mtd><mtd columnalign="left"><msup><mi>z</mi> <mn>3</mn> </msup></mtd></mtr></mtable></math></td><td class="eqno">(21)</td></tr></table></div>
<p>Note: amsmath adds a new complexity to how spaces are handled: spaces after
<samp>\\</samp> are no more ignored. This mechanism is not implemented in
<i>Tralics</i>.</p>
<p>Example 8-2-4. We modified the examples by adding a label; you can see that
this produces an equation number for <samp>equation*</samp>, (<a href="#uid82">22</a>)
as well as <samp>equation</samp>, (<a href="#uid83">23</a>).</p>
<div class="mathdisplay"><table width="100%" id="uid82"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>n</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>m</mi> <mn>2</mn> </msup><mo>=</mo><msup><mi>k</mi> <mn>2</mn> </msup></mrow></math></td><td class="eqno">(22)</td></tr></table></div>
<div class="mathdisplay"><table width="100%" id="uid83"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>n</mi> <mi>p</mi> </msup><mo>+</mo><msup><mi>m</mi> <mi>p</mi> </msup><mo>&#8800;</mo><msup><mi>k</mi> <mi>p</mi> </msup><mspace width="2.em"></mspace><mi>p</mi><mo>&gt;</mo><mn>2</mn></mrow></math></td><td class="eqno">(23)</td></tr></table></div>
<p>Example 8-2-5. Translation of <samp>\multline</samp>
is a table, elements are centered, except first, last, and lines using
<samp>\shoveleft</samp> or <samp>\shoveright</samp>.
No <tt>&amp;</tt>
should be given; last line should not be terminated with <tt>\\</tt>.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="left"><mrow><mtext>First</mtext><mspace width="4.pt"></mspace><mtext>line</mtext><mspace width="4.pt"></mspace><mtext>of</mtext><mspace width="4.pt"></mspace><mtext>a</mtext><mspace width="4.pt"></mspace><mtext>multline</mtext></mrow></mtd></mtr><mtr><mtd><mrow><mtext>Centered</mtext><mspace width="4.pt"></mspace><mtext>Middle</mtext><mspace width="4.pt"></mspace><mtext>line</mtext></mrow></mtd></mtr><mtr><mtd columnalign="right" columnspan="1"><mrow><mtext>A</mtext><mspace width="4.pt"></mspace><mtext>right</mtext><mspace width="4.pt"></mspace><mtext>Middle</mtext></mrow></mtd></mtr><mtr><mtd><mrow><mtext>Another</mtext><mspace width="4.pt"></mspace><mtext>centered</mtext><mspace width="4.pt"></mspace><mtext>Middle</mtext></mrow></mtd></mtr><mtr><mtd><mrow><mtext>Yet</mtext><mspace width="4.pt"></mspace><mtext>another</mtext><mspace width="4.pt"></mspace><mtext>centered</mtext><mspace width="4.pt"></mspace><mtext>Middle</mtext></mrow></mtd></mtr><mtr><mtd columnalign="left" columnspan="1"><mrow><mtext>A</mtext><mspace width="4.pt"></mspace><mtext>left</mtext><mspace width="4.pt"></mspace><mtext>Middle</mtext></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><mtext>Last</mtext><mspace width="4.pt"></mspace><mtext>line</mtext><mspace width="4.pt"></mspace><mtext>of</mtext><mspace width="4.pt"></mspace><mtext>the</mtext><mspace width="4.pt"></mspace><mtext>multline</mtext></mrow></mtd></mtr></mtable></math></div>
<p>Example 8-2-6. This is the default behavior for tags.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="left"><mrow><munder><mo>&#8721;</mo> <mrow><mi>t</mi><mo>&#8712;</mo><mi mathvariant="bold">T</mi></mrow> </munder><msubsup><mo>&#8747;</mo> <mi>a</mi> <mi>t</mi> </msubsup><mfenced separators="" open="{" close="}"><msubsup><mo>&#8747;</mo> <mi>a</mi> <mi>t</mi> </msubsup> <mi>f</mi> <msup><mrow><mo>(</mo><mi>t</mi><mo>-</mo><mi>x</mi><mo>)</mo></mrow> <mn>2</mn> </msup> <mspace width="0.166667em"></mspace> <mi>g</mi> <msup><mrow><mo>(</mo><mi>y</mi><mo>)</mo></mrow> <mn>2</mn> </msup> <mspace width="0.166667em"></mspace> <mi>d</mi> <mi>x</mi></mfenced><mspace width="0.166667em"></mspace><mi>d</mi><mi>y</mi></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><mo>=</mo><munder><mo>&#8721;</mo> <mrow><mi>t</mi><mo>&#8713;</mo><mi mathvariant="bold">T</mi></mrow> </munder><msubsup><mo>&#8747;</mo> <mi>t</mi> <mi>a</mi> </msubsup><mfenced separators="" open="{" close="}"><mi>g</mi> <msup><mrow><mo>(</mo><mi>y</mi><mo>)</mo></mrow> <mn>2</mn> </msup> <msubsup><mo>&#8747;</mo> <mi>t</mi> <mi>a</mi> </msubsup> <mi>f</mi> <msup><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow> <mn>2</mn> </msup> <mspace width="0.166667em"></mspace> <mi>d</mi> <mi>x</mi></mfenced><mspace width="0.166667em"></mspace><mi>d</mi><mi>y</mi><mspace width="2.em"></mspace><mrow><mo>(</mo><mn>2</mn><mo>)</mo></mrow></mrow></mtd></mtr></mtable></math></div>
<p>Same formulas, with <samp>\multlinegap</samp> set to zero. This has no effect in
<i>Tralics</i></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="left"><mrow><munder><mo>&#8721;</mo> <mrow><mi>t</mi><mo>&#8712;</mo><mi mathvariant="bold">T</mi></mrow> </munder><msubsup><mo>&#8747;</mo> <mi>a</mi> <mi>t</mi> </msubsup><mfenced separators="" open="{" close="}"><msubsup><mo>&#8747;</mo> <mi>a</mi> <mi>t</mi> </msubsup> <mi>f</mi> <msup><mrow><mo>(</mo><mi>t</mi><mo>-</mo><mi>x</mi><mo>)</mo></mrow> <mn>2</mn> </msup> <mspace width="0.166667em"></mspace> <mi>g</mi> <msup><mrow><mo>(</mo><mi>y</mi><mo>)</mo></mrow> <mn>2</mn> </msup> <mspace width="0.166667em"></mspace> <mi>d</mi> <mi>x</mi></mfenced><mspace width="0.166667em"></mspace><mi>d</mi><mi>y</mi></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><mo>=</mo><munder><mo>&#8721;</mo> <mrow><mi>t</mi><mo>&#8713;</mo><mi mathvariant="bold">T</mi></mrow> </munder><msubsup><mo>&#8747;</mo> <mi>t</mi> <mi>a</mi> </msubsup><mfenced separators="" open="{" close="}"><mi>g</mi> <msup><mrow><mo>(</mo><mi>y</mi><mo>)</mo></mrow> <mn>2</mn> </msup> <msubsup><mo>&#8747;</mo> <mi>t</mi> <mi>a</mi> </msubsup> <mi>f</mi> <msup><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow> <mn>2</mn> </msup> <mspace width="0.166667em"></mspace> <mi>d</mi> <mi>x</mi></mfenced><mspace width="0.166667em"></mspace><mi>d</mi><mi>y</mi><mspace width="2.em"></mspace><mrow><mo>(</mo><mn>2</mn><mo>)</mo></mrow></mrow></mtd></mtr></mtable></math></div>
<p>From now on, we redefine the <samp>\tag</samp> command via <samp>\tagasattribute</samp>;
the second equation with a tag gives:</p>
<div class="mathdisplay"><table width="100%"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msup><mo form="prefix">sin</mo> <mn>2</mn> </msup><mi>&#951;</mi><mo>+</mo><msup><mo form="prefix">cos</mo> <mn>2</mn> </msup><mi>&#951;</mi><mo>=</mo><mn>1</mn></mrow></math></td><td class="eqno">(3)</td></tr></table></div>
<p>The magic is that this uses <samp>\formulaattribute</samp>, a command added in
<i>Tralics</i> 2.9.5 that adds an attribute pair to the formula; our style sheet
handles a formula with a tag in the same way as a formula with an id (after
converting the id into a tag). There are four commands of the form <samp>\XXattribute</samp>
that add an attribute to an element under construction: the math formula, the
math expression, the current row, the current cell. In these cases
<samp>\mathattribute</samp> cannot be used (it adds an attribute to the last element
created). It is not possible to use <samp>\XMLaddatt</samp> in math mode, and it is
not possible to use this command after a math formula in order to add an
attribute (If the token that follows a display math formula is not a
<samp>\par</samp>, then <samp>\noindent</samp> is inserted, thus, if this token is
<samp>\XMLaddatt</samp>, the current element is an empty paragraph). Example</p>
<pre class="latex-code"><span class="prenumber">326</span> \begin{align}
<span class="prenumber">327</span> \formulaattribute{tag}{8-2-3}
<span class="prenumber">328</span> \thismathattribute{background}{white}
<span class="prenumber">329</span> \rowattribute{mathvariant}{bold} x^2 + y^2+100 &amp;=  z^2 \\
<span class="prenumber">330</span> \cellattribute{columnalign}{left}  x^3 + y^3+1 &amp;&lt;  z^3
<span class="prenumber">331</span> \end{align}
</pre>
<p>Translation (bold attribute ignored in the Pdf version):</p>
<div class="mathdisplay"><table width="100%"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" background="white" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr mathvariant="bold"><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup><mo>+</mo><mn>100</mn></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>z</mi> <mn>2</mn> </msup></mrow></mtd></mtr><mtr><mtd columnalign="left"><mrow><msup><mi>x</mi> <mn>3</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>3</mn> </msup><mo>+</mo><mn>1</mn></mrow></mtd><mtd columnalign="left"><mrow><mo>&lt;</mo><msup><mi>z</mi> <mn>3</mn> </msup></mrow></mtd></mtr></mtable></math></td><td class="eqno">8-2-3</td></tr></table></div>
<pre class="latex-code"><span class="prenumber">332</span> \begin{equation} \begin{split} % 8-2-7
<span class="prenumber">333</span>  (a + b)^4
<span class="prenumber">334</span>    &amp;= (a + b)^2 (a + b)^2      \\
<span class="prenumber">335</span>    &amp;= (a^2 + 2ab + b^2)   (a^2 + 2ab + b^2)        \\
<span class="prenumber">336</span>    &amp;= a^4 + 4a^3b + 6a^2b^2 + 4ab^3 + b^4
<span class="prenumber">337</span>  \end{split}\end{equation}
<span class="prenumber">338</span> \begin{equation} \begin{split} % 8-2-8
<span class="prenumber">339</span>   (a + b)^3 &amp;= (a + b) (a + b)^2        \\
<span class="prenumber">340</span>             &amp;= (a + b)(a^2 + 2ab + b^2) \\
<span class="prenumber">341</span>             &amp;= a^3 + 3a^2b + 3ab^2 + b^3
<span class="prenumber">342</span>  \end{split}\end{equation}
</pre>
<p>Example 8.2.7 Single equation on several lines with alignment</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><msup><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow> <mn>4</mn> </msup></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow> <mn>2</mn> </msup><msup><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow> <mn>2</mn> </msup></mrow></mtd></mtr><mtr><mtd></mtd><mtd columnalign="left"><mrow><mo>=</mo><mrow><mo>(</mo><msup><mi>a</mi> <mn>2</mn> </msup><mo>+</mo><mn>2</mn><mi>a</mi><mi>b</mi><mo>+</mo><msup><mi>b</mi> <mn>2</mn> </msup><mo>)</mo></mrow><mrow><mo>(</mo><msup><mi>a</mi> <mn>2</mn> </msup><mo>+</mo><mn>2</mn><mi>a</mi><mi>b</mi><mo>+</mo><msup><mi>b</mi> <mn>2</mn> </msup><mo>)</mo></mrow></mrow></mtd></mtr><mtr><mtd></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>a</mi> <mn>4</mn> </msup><mo>+</mo><mn>4</mn><msup><mi>a</mi> <mn>3</mn> </msup><mi>b</mi><mo>+</mo><mn>6</mn><msup><mi>a</mi> <mn>2</mn> </msup><msup><mi>b</mi> <mn>2</mn> </msup><mo>+</mo><mn>4</mn><mi>a</mi><msup><mi>b</mi> <mn>3</mn> </msup><mo>+</mo><msup><mi>b</mi> <mn>4</mn> </msup></mrow></mtd></mtr></mtable></math></div>
<p>Example 8.2.8. The LaTeX companion explains that the amsmath
package can be loaded
with options `centertags´ or `tbtags´. In the first case, tags centered with
the formula (left or right), in the second case, tags are on the first line
(on the left) or last line (on the right). By default, <i>Tralics</i> does
nothing, and in the case of `tbtags´, it sets <span class="sansserif">split-tags</span> = `tb´ on the
root element.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><msup><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow> <mn>3</mn> </msup></mtd><mtd columnalign="left"><mrow><mo>=</mo><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow><msup><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow> <mn>2</mn> </msup></mrow></mtd></mtr><mtr><mtd></mtd><mtd columnalign="left"><mrow><mo>=</mo><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow><mrow><mo>(</mo><msup><mi>a</mi> <mn>2</mn> </msup><mo>+</mo><mn>2</mn><mi>a</mi><mi>b</mi><mo>+</mo><msup><mi>b</mi> <mn>2</mn> </msup><mo>)</mo></mrow></mrow></mtd></mtr><mtr><mtd></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>a</mi> <mn>3</mn> </msup><mo>+</mo><mn>3</mn><msup><mi>a</mi> <mn>2</mn> </msup><mi>b</mi><mo>+</mo><mn>3</mn><mi>a</mi><msup><mi>b</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>b</mi> <mn>3</mn> </msup></mrow></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">343</span> \newcommand\relphantom[1]{\mathrel{\phantom{#1}}}
<span class="prenumber">344</span> \newcommand\ve{\varepsilon}  \newcommand\tve{t_{\varepsilon}}
<span class="prenumber">345</span> \newcommand\vf{\varphi}      \newcommand\yvf{y_{\varphi}}
<span class="prenumber">346</span> \newcommand\bfE{\mathbf{E}}
<span class="prenumber">347</span>  
<span class="prenumber">348</span> \begin{equation} \begin{split}
<span class="prenumber">349</span>   f_{h, \ve}(x, y)
<span class="prenumber">350</span>     &amp;= \ve \bfE_{x, y} \int_0^{\tve} L_{x, \yvf(\ve u)} \vf(x) \,du  \\
<span class="prenumber">351</span>     &amp;= h \int L_{x, z} \vf(x) \rho_x(dz)                             \\
<span class="prenumber">352</span>     &amp;\relphantom{=} {} + h \biggl[
<span class="prenumber">353</span>        \frac{1}{\tve}
<span class="prenumber">354</span>        \biggl( \bfE_{y} \int_0^{\tve}  L_{x, y^x(s)} \vf(x) \,ds
<span class="prenumber">355</span>                - \tve \int L_{x, z} \vf(x) \rho_x(dz)      \biggr) + \\
<span class="prenumber">356</span>     &amp;\relphantom{=} \phantom{{} + h \biggl[ }
<span class="prenumber">357</span>        \frac{1}{\tve}
<span class="prenumber">358</span>        \biggl( \bfE_{y} \int_0^{\tve}  L_{x, y^x(s)} \vf(x) \,ds
<span class="prenumber">359</span>                - \bfE_{x, y} \int_0^{\tve} L_{x, \yvf(\ve s)}
<span class="prenumber">360</span>                                             \vf(x) \,ds    \biggr) \biggr]
<span class="prenumber">361</span> \end{split} \end{equation}
</pre>
<p>Example 8-2-9</p>
<div class="mathdisplay"><table width="100%" id="uid84"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mrow><msub><mi>f</mi> <mrow><mi>h</mi><mo>,</mo><mi>&#949;</mi></mrow> </msub><mrow><mo>(</mo><mi>x</mi><mo>,</mo><mi>y</mi><mo>)</mo></mrow></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>&#949;</mi><msub><mi mathvariant="bold">E</mi> <mrow><mi>x</mi><mo>,</mo><mi>y</mi></mrow> </msub><msubsup><mo>&#8747;</mo> <mn>0</mn> <msub><mi>t</mi> <mi>&#949;</mi> </msub> </msubsup><msub><mi>L</mi> <mrow><mi>x</mi><mo>,</mo><msub><mi>y</mi> <mi>&#981;</mi> </msub><mrow><mo>(</mo><mi>&#949;</mi><mi>u</mi><mo>)</mo></mrow></mrow> </msub><mi>&#981;</mi><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi>d</mi><mi>u</mi></mrow></mtd></mtr><mtr><mtd></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>h</mi><mo>&#8747;</mo><msub><mi>L</mi> <mrow><mi>x</mi><mo>,</mo><mi>z</mi></mrow> </msub><mi>&#981;</mi><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><msub><mi>&#961;</mi> <mi>x</mi> </msub><mrow><mo>(</mo><mi>d</mi><mi>z</mi><mo>)</mo></mrow></mrow></mtd></mtr><mtr><mtd></mtd><mtd columnalign="left"><mrow><mphantom><mo>=</mo></mphantom><mrow></mrow><mo>+</mo><mi>h</mi><mo>[</mo><mfrac><mn>1</mn> <msub><mi>t</mi> <mi>&#949;</mi> </msub></mfrac><mfenced separators="" open="(" close=")"><msub><mi mathvariant="bold">E</mi> <mi>y</mi> </msub> <msubsup><mo>&#8747;</mo> <mn>0</mn> <msub><mi>t</mi> <mi>&#949;</mi> </msub> </msubsup> <msub><mi>L</mi> <mrow><mi>x</mi><mo>,</mo><msup><mi>y</mi> <mi>x</mi> </msup><mrow><mo>(</mo><mi>s</mi><mo>)</mo></mrow></mrow> </msub> <mi>&#981;</mi> <mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow> <mspace width="0.166667em"></mspace> <mi>d</mi> <mi>s</mi> <mo>-</mo> <msub><mi>t</mi> <mi>&#949;</mi> </msub> <mo>&#8747;</mo> <msub><mi>L</mi> <mrow><mi>x</mi><mo>,</mo><mi>z</mi></mrow> </msub> <mi>&#981;</mi> <mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow> <msub><mi>&#961;</mi> <mi>x</mi> </msub> <mrow><mo>(</mo><mi>d</mi><mi>z</mi><mo>)</mo></mrow></mfenced><mo>+</mo></mrow></mtd></mtr><mtr><mtd></mtd><mtd columnalign="left"><mrow><mphantom><mo>=</mo></mphantom><mphantom><mrow></mrow><mo>+</mo><mi>h</mi><mo>[</mo></mphantom><mfrac><mn>1</mn> <msub><mi>t</mi> <mi>&#949;</mi> </msub></mfrac><mfenced separators="" open="(" close=")"><msub><mi mathvariant="bold">E</mi> <mi>y</mi> </msub> <msubsup><mo>&#8747;</mo> <mn>0</mn> <msub><mi>t</mi> <mi>&#949;</mi> </msub> </msubsup> <msub><mi>L</mi> <mrow><mi>x</mi><mo>,</mo><msup><mi>y</mi> <mi>x</mi> </msup><mrow><mo>(</mo><mi>s</mi><mo>)</mo></mrow></mrow> </msub> <mi>&#981;</mi> <mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow> <mspace width="0.166667em"></mspace> <mi>d</mi> <mi>s</mi> <mo>-</mo> <msub><mi mathvariant="bold">E</mi> <mrow><mi>x</mi><mo>,</mo><mi>y</mi></mrow> </msub> <msubsup><mo>&#8747;</mo> <mn>0</mn> <msub><mi>t</mi> <mi>&#949;</mi> </msub> </msubsup> <msub><mi>L</mi> <mrow><mi>x</mi><mo>,</mo><msub><mi>y</mi> <mi>&#981;</mi> </msub><mrow><mo>(</mo><mi>&#949;</mi><mi>s</mi><mo>)</mo></mrow></mrow> </msub> <mi>&#981;</mi> <mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow> <mspace width="0.166667em"></mspace> <mi>d</mi> <mi>s</mi></mfenced><mo>]</mo></mrow></mtd></mtr></mtable></math></td><td class="eqno">(24)</td></tr></table></div>
<pre class="latex-code"><span class="prenumber">362</span> \begin{gather}
<span class="prenumber">363</span>   (a + b)^2 = a^2 + 2ab + b^2          \\
<span class="prenumber">364</span>   (a + b) \cdot (a - b) = a^2 - b^2
<span class="prenumber">365</span> \end{gather}
</pre>
<p class="nofirst noindent">Example 8-2-10, equation groups without alignment.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd><mrow><msup><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow> <mn>2</mn> </msup><mo>=</mo><msup><mi>a</mi> <mn>2</mn> </msup><mo>+</mo><mn>2</mn><mi>a</mi><mi>b</mi><mo>+</mo><msup><mi>b</mi> <mn>2</mn> </msup></mrow></mtd></mtr><mtr><mtd><mrow><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow><mo>·</mo><mrow><mo>(</mo><mi>a</mi><mo>-</mo><mi>b</mi><mo>)</mo></mrow><mo>=</mo><msup><mi>a</mi> <mn>2</mn> </msup><mo>-</mo><msup><mi>b</mi> <mn>2</mn> </msup></mrow></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">366</span> \begin{gather}
<span class="prenumber">367</span>   D(a,r) \equiv \{ z \in \mathbf{C}   \colon |z - a| &lt; r \}    \notag \\
<span class="prenumber">368</span>   \operatorname{seg} (a, r) \equiv    \{ z \in \mathbf{C} \colon
<span class="prenumber">369</span>       \Im z &lt; \Im a, \ |z - a| &lt; r \}    \\
<span class="prenumber">370</span>     C (E, \theta, r) \equiv    \bigcup_{e \in E} c (e, \theta, r)
<span class="prenumber">371</span> \end{gather}
</pre>
<p class="nofirst noindent">Example 8-2-11</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd><mrow><mi>D</mi><mo>(</mo><mi>a</mi><mo>,</mo><mi>r</mi><mo>)</mo><mo>&#8801;</mo><mo>{</mo><mi>z</mi><mo>&#8712;</mo><mi mathvariant="bold">C</mi><mo lspace="0pt">:</mo><mo>|</mo><mi>z</mi><mo>-</mo><mi>a</mi><mo>|</mo><mo>&lt;</mo><mi>r</mi><mo>}</mo></mrow></mtd></mtr><mtr><mtd><mrow><mo form="prefix">seg</mo><mo>(</mo><mi>a</mi><mo>,</mo><mi>r</mi><mo>)</mo><mo>&#8801;</mo><mo>{</mo><mi>z</mi><mo>&#8712;</mo><mi mathvariant="bold">C</mi><mo lspace="0pt">:</mo><mi>&#8465;</mi><mi>z</mi><mo>&lt;</mo><mi>&#8465;</mi><mi>a</mi><mo>,</mo><mspace width="4pt"></mspace><mo>|</mo><mi>z</mi><mo>-</mo><mi>a</mi><mo>|</mo><mo>&lt;</mo><mi>r</mi><mo>}</mo></mrow></mtd></mtr><mtr><mtd><mrow><mi>C</mi><mrow><mo>(</mo><mi>E</mi><mo>,</mo><mi>&#952;</mi><mo>,</mo><mi>r</mi><mo>)</mo></mrow><mo>&#8801;</mo><munder><mo>&#8899;</mo> <mrow><mi>e</mi><mo>&#8712;</mo><mi>E</mi></mrow> </munder><mi>c</mi><mrow><mo>(</mo><mi>e</mi><mo>,</mo><mi>&#952;</mi><mo>,</mo><mi>r</mi><mo>)</mo></mrow></mrow></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">372</span> \begin{align}
<span class="prenumber">373</span>   (a + b)^3  &amp;= (a + b) (a + b)^2        \\
<span class="prenumber">374</span>              &amp;= (a + b)(a^2 + 2ab + b^2) \\
<span class="prenumber">375</span>              &amp;= a^3 + 3a^2b + 3ab^2 + b^3
<span class="prenumber">376</span> \end{align}
<span class="prenumber">377</span> \begin{align} x^2  + y^2 &amp; = 1 \\ x  &amp; = \sqrt{1-y^2}\end{align}
</pre>
<p class="nofirst noindent">Example 8-2-12</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><msup><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow> <mn>3</mn> </msup></mtd><mtd columnalign="left"><mrow><mo>=</mo><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow><msup><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow> <mn>2</mn> </msup></mrow></mtd></mtr><mtr><mtd></mtd><mtd columnalign="left"><mrow><mo>=</mo><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow><mrow><mo>(</mo><msup><mi>a</mi> <mn>2</mn> </msup><mo>+</mo><mn>2</mn><mi>a</mi><mi>b</mi><mo>+</mo><msup><mi>b</mi> <mn>2</mn> </msup><mo>)</mo></mrow></mrow></mtd></mtr><mtr><mtd></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>a</mi> <mn>3</mn> </msup><mo>+</mo><mn>3</mn><msup><mi>a</mi> <mn>2</mn> </msup><mi>b</mi><mo>+</mo><mn>3</mn><mi>a</mi><msup><mi>b</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>b</mi> <mn>3</mn> </msup></mrow></mtd></mtr></mtable></math></div>
<p class="nofirst noindent">and</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mn>1</mn></mrow></mtd></mtr><mtr><mtd columnalign="right"><mi>x</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><msqrt><mrow><mn>1</mn><mo>-</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow></msqrt></mrow></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">378</span> \begin{align}
<span class="prenumber">379</span>  \text{Compare } x^2 + y^2 &amp;= 1 &amp;  x^3 + y^3 &amp;= 1 \\
<span class="prenumber">380</span>   x &amp;= \sqrt   {1-y^2} &amp; x &amp;= \sqrt[3]{1-y^3}
<span class="prenumber">381</span> \end{align}
<span class="prenumber">382</span> \begin{align}
<span class="prenumber">383</span> x&amp;= y &amp; X  &amp;= Y  &amp;a  &amp;= b+c \\
<span class="prenumber">384</span> x' &amp;= y'&amp; X' &amp;= Y' &amp;a' &amp;= b\\
<span class="prenumber">385</span>  x + x' &amp;= y + y'  &amp;  X + X' &amp;= Y + Y' &amp; a'b &amp;= c'b
<span class="prenumber">386</span> \end{align}
</pre>
<p>Example 8-2-13.
This example has two column-pairs.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mrow><mtext>Compare</mtext><mspace width="4.pt"></mspace><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mn>1</mn></mrow></mtd><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>3</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>3</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mn>1</mn></mrow></mtd></mtr><mtr><mtd columnalign="right"><mi>x</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><msqrt><mrow><mn>1</mn><mo>-</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow></msqrt></mrow></mtd><mtd columnalign="right"><mi>x</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mroot><mrow><mn>1</mn><mo>-</mo><msup><mi>y</mi> <mn>3</mn> </msup></mrow> <mn>3</mn></mroot></mrow></mtd></mtr></mtable></math></div>
<p class="nofirst noindent">This example has three column-pairs.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mi>x</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>y</mi></mrow></mtd><mtd columnalign="right"><mi>X</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>Y</mi></mrow></mtd><mtd columnalign="right"><mi>a</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>b</mi><mo>+</mo><mi>c</mi></mrow></mtd></mtr><mtr><mtd columnalign="right"><msup><mi>x</mi> <mo>'</mo> </msup></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>y</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="right"><msup><mi>X</mi> <mo>'</mo> </msup></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>Y</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="right"><msup><mi>a</mi> <mo>'</mo> </msup></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>b</mi></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><mi>x</mi><mo>+</mo><msup><mi>x</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>y</mi><mo>+</mo><msup><mi>y</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="right"><mrow><mi>X</mi><mo>+</mo><msup><mi>X</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>Y</mi><mo>+</mo><msup><mi>Y</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="right"><mrow><msup><mi>a</mi> <mo>'</mo> </msup><mi>b</mi></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>c</mi> <mo>'</mo> </msup><mi>b</mi></mrow></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">387</span> \begin{flalign}  \text{Compare }
<span class="prenumber">388</span>   x^2 + y^2 &amp;= 1               &amp;  x^3 + y^3 &amp;= 1               \\
<span class="prenumber">389</span>   x         &amp;= \sqrt   {1-y^2} &amp;  x         &amp;= \sqrt[3]{1-y^3}
<span class="prenumber">390</span> \end{flalign}
<span class="prenumber">391</span> \begin{flalign}
<span class="prenumber">392</span>     x    &amp;= y      &amp; X  &amp;= Y  &amp;      a  &amp;= b+c               \\
<span class="prenumber">393</span>     x'   &amp;= y'     &amp; X' &amp;= Y' &amp;      a' &amp;= b                 \\
<span class="prenumber">394</span>   x + x' &amp;= y + y'            &amp;  X + X' &amp;= Y + Y' &amp; a'b &amp;= c'b
<span class="prenumber">395</span> \end{flalign}
</pre>
<p class="nofirst noindent">Example 8-2-14
This example has two column-pairs.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mrow><mtext>Compare</mtext><mspace width="4.pt"></mspace><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mn>1</mn></mrow></mtd><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>3</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>3</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mn>1</mn></mrow></mtd></mtr><mtr><mtd columnalign="right"><mi>x</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><msqrt><mrow><mn>1</mn><mo>-</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow></msqrt></mrow></mtd><mtd columnalign="right"><mi>x</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mroot><mrow><mn>1</mn><mo>-</mo><msup><mi>y</mi> <mn>3</mn> </msup></mrow> <mn>3</mn></mroot></mrow></mtd></mtr></mtable></math></div>
<p class="nofirst noindent">This example has three column-pairs.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mi>x</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>y</mi></mrow></mtd><mtd columnalign="right"><mi>X</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>Y</mi></mrow></mtd><mtd columnalign="right"><mi>a</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>b</mi><mo>+</mo><mi>c</mi></mrow></mtd></mtr><mtr><mtd columnalign="right"><msup><mi>x</mi> <mo>'</mo> </msup></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>y</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="right"><msup><mi>X</mi> <mo>'</mo> </msup></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>Y</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="right"><msup><mi>a</mi> <mo>'</mo> </msup></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>b</mi></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><mi>x</mi><mo>+</mo><msup><mi>x</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>y</mi><mo>+</mo><msup><mi>y</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="right"><mrow><mi>X</mi><mo>+</mo><msup><mi>X</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>Y</mi><mo>+</mo><msup><mi>Y</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="right"><mrow><msup><mi>a</mi> <mo>'</mo> </msup><mi>b</mi></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>c</mi> <mo>'</mo> </msup><mi>b</mi></mrow></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">396</span> \renewcommand\minalignsep{0pt}
<span class="prenumber">397</span> \begin{align}    \text{Compare }
<span class="prenumber">398</span>   x^2 + y^2 &amp;= 1               &amp;  x^3 + y^3 &amp;= 1              \\
<span class="prenumber">399</span>   x         &amp;= \sqrt   {1-y^2} &amp;  x         &amp;= \sqrt[3]{1-y^3}
<span class="prenumber">400</span> \end{align}
<span class="prenumber">401</span> \renewcommand\minalignsep{15pt}
<span class="prenumber">402</span> \begin{flalign}
<span class="prenumber">403</span>     x    &amp;= y      &amp; X  &amp;= Y  &amp;      a  &amp;= b+c              \\
<span class="prenumber">404</span>     x'   &amp;= y'     &amp; X' &amp;= Y' &amp;      a' &amp;= b                \\
<span class="prenumber">405</span>   x + x' &amp;= y + y'            &amp;  X + X' &amp;= Y + Y' &amp; a'b &amp;= c'b
<span class="prenumber">406</span> \end{flalign}
</pre>
<p class="nofirst noindent">Example 8-2-15
This example has two column-pairs.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mrow><mtext>Compare</mtext><mspace width="4.pt"></mspace><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mn>1</mn></mrow></mtd><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>3</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>3</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mn>1</mn></mrow></mtd></mtr><mtr><mtd columnalign="right"><mi>x</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><msqrt><mrow><mn>1</mn><mo>-</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow></msqrt></mrow></mtd><mtd columnalign="right"><mi>x</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mroot><mrow><mn>1</mn><mo>-</mo><msup><mi>y</mi> <mn>3</mn> </msup></mrow> <mn>3</mn></mroot></mrow></mtd></mtr></mtable></math></div>
<p class="nofirst noindent">This example has three column-pairs.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mi>x</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>y</mi></mrow></mtd><mtd columnalign="right"><mi>X</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>Y</mi></mrow></mtd><mtd columnalign="right"><mi>a</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>b</mi><mo>+</mo><mi>c</mi></mrow></mtd></mtr><mtr><mtd columnalign="right"><msup><mi>x</mi> <mo>'</mo> </msup></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>y</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="right"><msup><mi>X</mi> <mo>'</mo> </msup></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>Y</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="right"><msup><mi>a</mi> <mo>'</mo> </msup></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>b</mi></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><mi>x</mi><mo>+</mo><msup><mi>x</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>y</mi><mo>+</mo><msup><mi>y</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="right"><mrow><mi>X</mi><mo>+</mo><msup><mi>X</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>Y</mi><mo>+</mo><msup><mi>Y</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="right"><mrow><msup><mi>a</mi> <mo>'</mo> </msup><mi>b</mi></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>c</mi> <mo>'</mo> </msup><mi>b</mi></mrow></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">407</span> \renewcommand\minalignsep{2em}
<span class="prenumber">408</span> \begin{align}
<span class="prenumber">409</span>   x      &amp;= y      &amp;&amp; \text{by hypothesis} \\
<span class="prenumber">410</span>       x' &amp;= y'     &amp;&amp; \text{by definition} \\
<span class="prenumber">411</span>   x + x' &amp;= y + y' &amp;&amp; \text{by Axiom 1}
<span class="prenumber">412</span> \end{align}
</pre>
<p class="nofirst noindent">Example 8-2-16</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mi>x</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>y</mi></mrow></mtd><mtd></mtd><mtd columnalign="left"><mrow><mtext>by</mtext><mspace width="4.pt"></mspace><mtext>hypothesis</mtext></mrow></mtd></mtr><mtr><mtd columnalign="right"><msup><mi>x</mi> <mo>'</mo> </msup></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>y</mi> <mo>'</mo> </msup></mrow></mtd><mtd></mtd><mtd columnalign="left"><mrow><mtext>by</mtext><mspace width="4.pt"></mspace><mtext>definition</mtext></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><mi>x</mi><mo>+</mo><msup><mi>x</mi> <mo>'</mo> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>y</mi><mo>+</mo><msup><mi>y</mi> <mo>'</mo> </msup></mrow></mtd><mtd></mtd><mtd columnalign="left"><mrow><mtext>by</mtext><mspace width="4.pt"></mspace><mtext>Axiom</mtext><mspace width="4.pt"></mspace><mtext>1</mtext></mrow></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">413</span> \begin{equation}
<span class="prenumber">414</span> \begin{aligned}
<span class="prenumber">415</span>   x^2 + y^2  &amp;= 1 \\ x &amp;= \sqrt{1-y^2} \\ \text{and also }y &amp;= \sqrt{1-x^2}
<span class="prenumber">416</span> \end{aligned}               \qquad
<span class="prenumber">417</span> \begin{gathered}
<span class="prenumber">418</span>  (a + b)^2 = a^2 + 2ab + b^2    \\ (a + b) \cdot (a - b) = a^2 - b^2
<span class="prenumber">419</span> \end{gathered}      \end{equation}
</pre>
<p class="nofirst noindent">Example 8-2-17</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtable displaystyle="true"><mtr><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mn>1</mn></mrow></mtd></mtr><mtr><mtd columnalign="right"><mi>x</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><msqrt><mrow><mn>1</mn><mo>-</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow></msqrt></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><mtext>and</mtext><mspace width="4.pt"></mspace><mtext>also</mtext><mspace width="4.pt"></mspace><mi>y</mi></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msqrt><mrow><mn>1</mn><mo>-</mo><msup><mi>x</mi> <mn>2</mn> </msup></mrow></msqrt></mrow></mtd></mtr></mtable><mspace width="2.em"></mspace><mtable><mtr><mtd><mrow><msup><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow> <mn>2</mn> </msup><mo>=</mo><msup><mi>a</mi> <mn>2</mn> </msup><mo>+</mo><mn>2</mn><mi>a</mi><mi>b</mi><mo>+</mo><msup><mi>b</mi> <mn>2</mn> </msup></mrow></mtd></mtr><mtr><mtd><mrow><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow><mo>·</mo><mrow><mo>(</mo><mi>a</mi><mo>-</mo><mi>b</mi><mo>)</mo></mrow><mo>=</mo><msup><mi>a</mi> <mn>2</mn> </msup><mo>-</mo><msup><mi>b</mi> <mn>2</mn> </msup></mrow></mtd></mtr></mtable></mrow></math></div>
<pre class="latex-code"><span class="prenumber">420</span> \begin{equation}
<span class="prenumber">421</span> \begin{aligned}[b]
<span class="prenumber">422</span>   x^2 + y^2  &amp;= 1\\ x &amp;= \sqrt{1-y^2}    \\ \text{and also }y &amp;= \sqrt{1-x^2}
<span class="prenumber">423</span> \end{aligned}               \qquad
<span class="prenumber">424</span> \begin{gathered}[t]
<span class="prenumber">425</span>  (a + b)^2 = a^2 + 2ab + b^2    \\ (a + b) \cdot (a - b) = a^2 - b^2
<span class="prenumber">426</span> \end{gathered}\end{equation}
</pre>
<p class="nofirst noindent">Example 8-2-18 <a id="uid85" href="#note10" title="We should do something with the optional argument"><small>(note: </small>&#10163;<small>)</small></a></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtable displaystyle="true"><mtr><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mn>1</mn></mrow></mtd></mtr><mtr><mtd columnalign="right"><mi>x</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><msqrt><mrow><mn>1</mn><mo>-</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow></msqrt></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><mtext>and</mtext><mspace width="4.pt"></mspace><mtext>also</mtext><mspace width="4.pt"></mspace><mi>y</mi></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msqrt><mrow><mn>1</mn><mo>-</mo><msup><mi>x</mi> <mn>2</mn> </msup></mrow></msqrt></mrow></mtd></mtr></mtable><mspace width="2.em"></mspace><mtable><mtr><mtd><mrow><msup><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow> <mn>2</mn> </msup><mo>=</mo><msup><mi>a</mi> <mn>2</mn> </msup><mo>+</mo><mn>2</mn><mi>a</mi><mi>b</mi><mo>+</mo><msup><mi>b</mi> <mn>2</mn> </msup></mrow></mtd></mtr><mtr><mtd><mrow><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow><mo>·</mo><mrow><mo>(</mo><mi>a</mi><mo>-</mo><mi>b</mi><mo>)</mo></mrow><mo>=</mo><msup><mi>a</mi> <mn>2</mn> </msup><mo>-</mo><msup><mi>b</mi> <mn>2</mn> </msup></mrow></mtd></mtr></mtable></mrow></math></div>
<pre class="latex-code"><span class="prenumber">427</span> \newenvironment{rcase}{\left.\begin{aligned}} {\end{aligned}\right\rbrace}
<span class="prenumber">428</span> \begin{equation*}
<span class="prenumber">429</span>   \begin{rcase}
<span class="prenumber">430</span>     B' &amp;= -\partial\times E  \\  E' &amp;=  \partial\times B - 4\pi j \,
<span class="prenumber">431</span>   \end{rcase}
<span class="prenumber">432</span>   \quad \text {Maxwell's equations}
<span class="prenumber">433</span> \end{equation*}
<span class="prenumber">434</span>  
</pre>
<p class="nofirst noindent">Example 8-2-19<a id="uid86" href="#note11" title="Translation/rendering of apostrophe not always correct"><small>(note: </small>&#10163;<small>)</small></a></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfenced separators="" open="" close="}"><mtable displaystyle="true"><mtr><mtd columnalign="right"><msup><mi>B</mi> <mo>'</mo> </msup></mtd><mtd columnalign="left"><mrow><mo>=</mo><mo>-</mo><mi>&#8706;</mi><mo>×</mo><mi>E</mi></mrow></mtd></mtr><mtr><mtd columnalign="right"><msup><mi>E</mi> <mo>'</mo> </msup></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>&#8706;</mi><mo>×</mo><mi>B</mi><mo>-</mo><mn>4</mn><mi>&#960;</mi><mi>j</mi><mspace width="0.166667em"></mspace></mrow></mtd></mtr></mtable></mfenced><mspace width="1.em"></mspace><mtext>Maxwell's</mtext><mspace width="4.pt"></mspace><mtext>equations</mtext></mrow></math></div>
<pre class="latex-code"><span class="prenumber">435</span> \renewcommand\minalignsep{5pt}
<span class="prenumber">436</span> \begin{equation} \begin{aligned}
<span class="prenumber">437</span>   V_j &amp;= v_j &amp;  X_i &amp;= x_i - q_i x_j &amp;      &amp;= u_j + \sum_{i\ne j} q_i \\
<span class="prenumber">438</span>   V_i &amp;= v_i - q_i v_j &amp;  X_j &amp;= x_j &amp;  U_i &amp;= u_i
<span class="prenumber">439</span> \end{aligned} \end{equation}
</pre>
<p class="nofirst noindent">Example 8-2-20</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><msub><mi>V</mi> <mi>j</mi> </msub></mtd><mtd columnalign="left"><mrow><mo>=</mo><msub><mi>v</mi> <mi>j</mi> </msub></mrow></mtd><mtd columnalign="right"><msub><mi>X</mi> <mi>i</mi> </msub></mtd><mtd columnalign="left"><mrow><mo>=</mo><msub><mi>x</mi> <mi>i</mi> </msub><mo>-</mo><msub><mi>q</mi> <mi>i</mi> </msub><msub><mi>x</mi> <mi>j</mi> </msub></mrow></mtd><mtd></mtd><mtd columnalign="left"><mrow><mo>=</mo><msub><mi>u</mi> <mi>j</mi> </msub><mo>+</mo><munder><mo>&#8721;</mo> <mrow><mi>i</mi><mo>&#8800;</mo><mi>j</mi></mrow> </munder><msub><mi>q</mi> <mi>i</mi> </msub></mrow></mtd></mtr><mtr><mtd columnalign="right"><msub><mi>V</mi> <mi>i</mi> </msub></mtd><mtd columnalign="left"><mrow><mo>=</mo><msub><mi>v</mi> <mi>i</mi> </msub><mo>-</mo><msub><mi>q</mi> <mi>i</mi> </msub><msub><mi>v</mi> <mi>j</mi> </msub></mrow></mtd><mtd columnalign="right"><msub><mi>X</mi> <mi>j</mi> </msub></mtd><mtd columnalign="left"><mrow><mo>=</mo><msub><mi>x</mi> <mi>j</mi> </msub></mrow></mtd><mtd columnalign="right"><msub><mi>U</mi> <mi>i</mi> </msub></mtd><mtd columnalign="left"><mrow><mo>=</mo><msub><mi>u</mi> <mi>i</mi> </msub></mrow></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">440</span> \begin{align}
<span class="prenumber">441</span>   A_1 &amp;= N_0 (\lambda ; \Omega') -  \phi ( \lambda ; \Omega')   \\
<span class="prenumber">442</span>   A_2 &amp;= \phi (\lambda ; \Omega') \phi (\lambda ; \Omega)     \\
<span class="prenumber">443</span> \intertext{and finally}
<span class="prenumber">444</span>   A_3 &amp;= \mathcal{N} (\lambda ; \omega)
<span class="prenumber">445</span> \end{align}
</pre>
<p class="nofirst noindent">Example 8-2-21</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><msub><mi>A</mi> <mn>1</mn> </msub></mtd><mtd columnalign="left"><mrow><mo>=</mo><msub><mi>N</mi> <mn>0</mn> </msub><mrow><mo>(</mo><mi>&#955;</mi><mo>;</mo><msup><mi>&#937;</mi> <mo>'</mo> </msup><mo>)</mo></mrow><mo>-</mo><mi>&#966;</mi><mrow><mo>(</mo><mi>&#955;</mi><mo>;</mo><msup><mi>&#937;</mi> <mo>'</mo> </msup><mo>)</mo></mrow></mrow></mtd></mtr><mtr><mtd columnalign="right"><msub><mi>A</mi> <mn>2</mn> </msub></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>&#966;</mi><mrow><mo>(</mo><mi>&#955;</mi><mo>;</mo><msup><mi>&#937;</mi> <mo>'</mo> </msup><mo>)</mo></mrow><mi>&#966;</mi><mrow><mo>(</mo><mi>&#955;</mi><mo>;</mo><mi>&#937;</mi><mo>)</mo></mrow></mrow></mtd></mtr><mtr><mtd columnalign="left" columnspan="2"><mrow><mtext>and</mtext><mspace width="4.pt"></mspace><mtext>finally</mtext></mrow></mtd></mtr><mtr><mtd columnalign="right"><msub><mi>A</mi> <mn>3</mn> </msub></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi mathvariant="script">N</mi><mo>(</mo><mi>&#955;</mi><mo>;</mo><mi>&#969;</mi><mo>)</mo></mrow></mtd></mtr></mtable></math></div>
<p>Example 8-2-22, 8-2-23, 8-2-24 explain that spacing around equations can be
wrong; we omit them.</p>
<pre class="latex-code"><span class="prenumber">446</span> \begin{align}
<span class="prenumber">447</span>   x^2+y^2 &amp;= z^2 \label{eq:A}            \\
<span class="prenumber">448</span>   x^3+y^3 &amp;= z^3 \notag                  \\
<span class="prenumber">449</span>   x^4+y^4 &amp;= r^4 \tag{$*$}               \\
<span class="prenumber">450</span>   x^5+y^5 &amp;= r^5 \tag*{$*$}              \\
<span class="prenumber">451</span>   x^6+y^6 &amp;= r^6 \tag{\ref{eq:A}$'$}     \\
<span class="prenumber">452</span>       A_1 &amp;= N_0 (\lambda ; \Omega')
<span class="prenumber">453</span>              - \phi ( \lambda ; \Omega') \\
<span class="prenumber">454</span>       A_2 &amp;= \phi (\lambda ; \Omega')
<span class="prenumber">455</span>              \, \phi (\lambda ; \Omega)
<span class="prenumber">456</span>              \tag*{ALSO (\theequation)}  \\
<span class="prenumber">457</span>       A_3 &amp;= \mathcal{N} (\lambda ; \omega)
<span class="prenumber">458</span> \end{align}
</pre>
<p>Example 8-2-25. In the Companion, first equation is numbered <samp>(1)</samp>,
second equation has no number, third is <samp>(*)</samp>, then come <samp>*</samp>,
<samp>(1´)</samp>, <samp>(2)</samp>, <samp>ALSO (2)</samp> and <samp>(3)</samp>. Since <i>Tralics</i> does not
compute equation numbers, you will not see <samp>(1)</samp>, <samp>(2)</samp>, <samp>(3)</samp>.
Since <samp>(1´)</samp> is obtained by a reference to the first equation, the whole
set of equations is numbered, namely (<a href="#uid87">25</a>). It is currently impossible
to use a reference, we locally change <samp>\ref</samp>, so that it produces a
number, here 17. This is also the current value of the equation counter.
Hence, the full tag, concatenation of all four tags is
<samp>*,*,17x,ALSO (17)</samp>; we have replaced the apostrophe by x, because
of a bug in current <i>Tralics</i>. This full tag is put on the math formula.</p>
<p><b>Note:</b> the style sheet that converts XML to HTML attributes a number
to each equation that has a label, and <samp>\ref</samp> uses this number. If the
equation has a tag, no number should be attributed, and <samp>\ref</samp> should use
the tag. This might change.</p>
<p><b>Note:</b> LaTeX uses <samp>\text</samp> to format the tag, and as a
consequence, spaces are not ignored. In <i>Tralics</i>, nothing special is done, and
they are ignored. Should be fixed some day.</p>
<div class="mathdisplay"><table width="100%" id="uid87"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>z</mi> <mn>2</mn> </msup></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>3</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>3</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>z</mi> <mn>3</mn> </msup></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>4</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>4</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>r</mi> <mn>4</mn> </msup></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>5</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>5</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>r</mi> <mn>5</mn> </msup></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>6</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>6</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>r</mi> <mn>6</mn> </msup></mrow></mtd></mtr><mtr><mtd columnalign="right"><msub><mi>A</mi> <mn>1</mn> </msub></mtd><mtd columnalign="left"><mrow><mo>=</mo><msub><mi>N</mi> <mn>0</mn> </msub><mrow><mo>(</mo><mi>&#955;</mi><mo>;</mo><msup><mi>&#937;</mi> <mo>'</mo> </msup><mo>)</mo></mrow><mo>-</mo><mi>&#966;</mi><mrow><mo>(</mo><mi>&#955;</mi><mo>;</mo><msup><mi>&#937;</mi> <mo>'</mo> </msup><mo>)</mo></mrow></mrow></mtd></mtr><mtr><mtd columnalign="right"><msub><mi>A</mi> <mn>2</mn> </msub></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>&#966;</mi><mrow><mo>(</mo><mi>&#955;</mi><mo>;</mo><msup><mi>&#937;</mi> <mo>'</mo> </msup><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi>&#966;</mi><mrow><mo>(</mo><mi>&#955;</mi><mo>;</mo><mi>&#937;</mi><mo>)</mo></mrow></mrow></mtd></mtr><mtr><mtd columnalign="right"><msub><mi>A</mi> <mn>3</mn> </msub></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi mathvariant="script">N</mi><mo>(</mo><mi>&#955;</mi><mo>;</mo><mi>&#969;</mi><mo>)</mo></mrow></mtd></mtr></mtable></math></td><td class="eqno">(25)</td></tr></table></div>
<p>Same example, with default behavior of <samp>\tag</samp>. Note that the equation
number is still the same. The equation has an another label, it is now
equation (17), but <samp>\ref</samp> is still defined to be 17.</p>
<div class="mathdisplay"><table width="100%" id="uid88"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>2</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>2</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>z</mi> <mn>2</mn> </msup></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>3</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>3</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>z</mi> <mn>3</mn> </msup></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>4</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>4</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>r</mi> <mn>4</mn> </msup><mspace width="2.em"></mspace><mrow><mo>(</mo><mo>*</mo><mo>)</mo></mrow></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>5</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>5</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>r</mi> <mn>5</mn> </msup><mspace width="2.em"></mspace><mo>*</mo></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><msup><mi>x</mi> <mn>6</mn> </msup><mo>+</mo><msup><mi>y</mi> <mn>6</mn> </msup></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>r</mi> <mn>6</mn> </msup><mspace width="2.em"></mspace><mrow><mo>(</mo><msup><mn>17</mn> <mo>'</mo> </msup><mo>)</mo></mrow></mrow></mtd></mtr><mtr><mtd columnalign="right"><msub><mi>A</mi> <mn>1</mn> </msub></mtd><mtd columnalign="left"><mrow><mo>=</mo><msub><mi>N</mi> <mn>0</mn> </msub><mrow><mo>(</mo><mi>&#955;</mi><mo>;</mo><msup><mi>&#937;</mi> <mo>'</mo> </msup><mo>)</mo></mrow><mo>-</mo><mi>&#966;</mi><mrow><mo>(</mo><mi>&#955;</mi><mo>;</mo><msup><mi>&#937;</mi> <mo>'</mo> </msup><mo>)</mo></mrow></mrow></mtd></mtr><mtr><mtd columnalign="right"><msub><mi>A</mi> <mn>2</mn> </msub></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>&#966;</mi><mrow><mo>(</mo><mi>&#955;</mi><mo>;</mo><msup><mi>&#937;</mi> <mo>'</mo> </msup><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi>&#966;</mi><mrow><mo>(</mo><mi>&#955;</mi><mo>;</mo><mi>&#937;</mi><mo>)</mo></mrow><mspace width="2.em"></mspace><mi> ALSO </mi><mrow><mo>(</mo><mn>17</mn><mo>)</mo></mrow></mrow></mtd></mtr><mtr><mtd columnalign="right"><msub><mi>A</mi> <mn>3</mn> </msub></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi mathvariant="script">N</mi><mo>(</mo><mi>&#955;</mi><mo>;</mo><mi>&#969;</mi><mo>)</mo></mrow></mtd></mtr></mtable></math></td><td class="eqno">(26)</td></tr></table></div>
<pre class="latex-code"><span class="prenumber">459</span> \begin{equation}  \begin{split} \label{e-8-2-26}
<span class="prenumber">460</span>   \lvert I_2 \rvert  &amp;=    \left\lvert \int_{0}^T \psi(t)
<span class="prenumber">461</span>       \left\{  u(a, t) - \int_{\gamma(t)}^a \frac{d\theta}{k}
<span class="prenumber">462</span>         (\theta, t) \int_{a}^\theta c (\xi) u_t (\xi, t) \,d\xi
<span class="prenumber">463</span>       \right\} dt \right\rvert                                     \\
<span class="prenumber">464</span>                      &amp;\le  C_6  \Biggl\lvert
<span class="prenumber">465</span>       \left\lvert f \int_\Omega \left\lvert
<span class="prenumber">466</span>           \widetilde{S}^{-1,0}_{a,-} W_2(\Omega, \Gamma_l)
<span class="prenumber">467</span>         \right\rvert \ \right\rvert
<span class="prenumber">468</span>       \left\lvert \lvert u \rvert
<span class="prenumber">469</span>         \overset{\circ}{\to} W_2^{\widetilde{A}} (\Omega; \Gamma_r,T)
<span class="prenumber">470</span>       \right\rvert              \Biggr\rvert
<span class="prenumber">471</span> \end{split} \end{equation}
</pre>
<p class="nofirst noindent">Example 8-2-26. The book explains that the tag is not correctly positioned.
We modified the example by adding a label, and this gives an equation number
in the HTML file. This number is vertically centered, whatever the size of
the formula.</p>
<div class="mathdisplay"><table width="100%" id="uid89"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mrow><mo>|</mo><msub><mi>I</mi> <mn>2</mn> </msub><mo>|</mo></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mfenced separators="" open="|" close="|"><msubsup><mo>&#8747;</mo> <mrow><mn>0</mn></mrow> <mi>T</mi> </msubsup><mi>&#968;</mi><mrow><mo>(</mo><mi>t</mi><mo>)</mo></mrow><mfenced separators="" open="{" close="}"><mi>u</mi><mrow><mo>(</mo><mi>a</mi><mo>,</mo><mi>t</mi><mo>)</mo></mrow><mo>-</mo><msubsup><mo>&#8747;</mo> <mrow><mi>&#947;</mi><mo>(</mo><mi>t</mi><mo>)</mo></mrow> <mi>a</mi> </msubsup><mfrac><mrow><mi>d</mi><mi>&#952;</mi></mrow> <mi>k</mi></mfrac><mrow><mo>(</mo><mi>&#952;</mi><mo>,</mo><mi>t</mi><mo>)</mo></mrow><msubsup><mo>&#8747;</mo> <mrow><mi>a</mi></mrow> <mi>&#952;</mi> </msubsup><mi>c</mi><mrow><mo>(</mo><mi>&#958;</mi><mo>)</mo></mrow><msub><mi>u</mi> <mi>t</mi> </msub><mrow><mo>(</mo><mi>&#958;</mi><mo>,</mo><mi>t</mi><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi>d</mi><mi>&#958;</mi></mfenced><mi>d</mi><mi>t</mi></mfenced></mrow></mtd></mtr><mtr><mtd></mtd><mtd columnalign="left"><mrow><mo>&#8804;</mo><msub><mi>C</mi> <mn>6</mn> </msub><mfenced separators="" open="|" close="|"><mfenced separators="" open="|" close="|"><mi>f</mi><msub><mo>&#8747;</mo> <mi>&#937;</mi> </msub><mfenced separators="" open="|" close="|"><msubsup><mover accent="true"><mi>S</mi> <mo>&#732;</mo></mover> <mrow><mi>a</mi><mo>,</mo><mo>-</mo></mrow> <mrow><mo>-</mo><mn>1</mn><mo>,</mo><mn>0</mn></mrow> </msubsup><msub><mi>W</mi> <mn>2</mn> </msub><mrow><mo>(</mo><mi>&#937;</mi><mo>,</mo><msub><mi>&#915;</mi> <mi>l</mi> </msub><mo>)</mo></mrow></mfenced><mspace width="4pt"></mspace></mfenced> <mfenced separators="" open="|" close="|"><mrow><mo>|</mo><mi>u</mi><mo>|</mo></mrow><mover><mo>&#8594;</mo> <mo>&#8728;</mo></mover><msubsup><mi>W</mi> <mn>2</mn> <mover accent="true"><mi>A</mi> <mo>&#732;</mo></mover> </msubsup><mrow><mo>(</mo><mi>&#937;</mi><mo>;</mo><msub><mi>&#915;</mi> <mi>r</mi> </msub><mo>,</mo><mi>T</mi><mo>)</mo></mrow></mfenced></mfenced></mrow></mtd></mtr></mtable></math></td><td class="eqno">(27)</td></tr></table></div>
<p>Example 8-2-27. Equation (<a href="#uid90">28</a>) should be the same as
(<a href="#uid89">27</a>); but in order to test our algorithm we have replaced some
<samp>\lvert</samp> and <samp>\rvert</samp> by <samp>\lVert</samp> and <samp>\rVert</samp>, that are the same
as <samp>\Vert</samp>, but declared as mathopen and mathclose symbols</p>
<div class="mathdisplay"><table width="100%" id="uid90"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mrow><mo>|</mo><msub><mi>I</mi> <mn>2</mn> </msub><mo>|</mo></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mfenced separators="" open="|" close="|"><msubsup><mo>&#8747;</mo> <mrow><mn>0</mn></mrow> <mi>T</mi> </msubsup><mi>&#968;</mi><mrow><mo>(</mo><mi>t</mi><mo>)</mo></mrow><mfenced separators="" open="{" close="}"><mi>u</mi><mrow><mo>(</mo><mi>a</mi><mo>,</mo><mi>t</mi><mo>)</mo></mrow><mo>-</mo><msubsup><mo>&#8747;</mo> <mrow><mi>&#947;</mi><mo>(</mo><mi>t</mi><mo>)</mo></mrow> <mi>a</mi> </msubsup><mfrac><mrow><mi>d</mi><mi>&#952;</mi></mrow> <mi>k</mi></mfrac><mrow><mo>(</mo><mi>&#952;</mi><mo>,</mo><mi>t</mi><mo>)</mo></mrow><msubsup><mo>&#8747;</mo> <mrow><mi>a</mi></mrow> <mi>&#952;</mi> </msubsup><mi>c</mi><mrow><mo>(</mo><mi>&#958;</mi><mo>)</mo></mrow><msub><mi>u</mi> <mi>t</mi> </msub><mrow><mo>(</mo><mi>&#958;</mi><mo>,</mo><mi>t</mi><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi>d</mi><mi>&#958;</mi></mfenced><mi>d</mi><mi>t</mi></mfenced></mrow></mtd></mtr><mtr><mtd></mtd><mtd columnalign="left"><mrow><mo>&#8804;</mo><msub><mi>C</mi> <mn>6</mn> </msub><mfenced separators="" open="&#8741;" close="&#8741;"><mfenced separators="" open="|" close="|"><mi>f</mi><msub><mo>&#8747;</mo> <mi>&#937;</mi> </msub><mfenced separators="" open="|" close="|"><msubsup><mover accent="true"><mi>S</mi> <mo>&#732;</mo></mover> <mrow><mi>a</mi><mo>,</mo><mo>-</mo></mrow> <mrow><mo>-</mo><mn>1</mn><mo>,</mo><mn>0</mn></mrow> </msubsup><msub><mi>W</mi> <mn>2</mn> </msub><mrow><mo>(</mo><mi>&#937;</mi><mo>,</mo><msub><mi>&#915;</mi> <mi>l</mi> </msub><mo>)</mo></mrow></mfenced><mspace width="4pt"></mspace></mfenced> <mfenced separators="" open="|" close="|"><mrow><mo>|</mo><mi>u</mi><mo>|</mo></mrow><mover><mo>&#8594;</mo> <mo>&#8728;</mo></mover><msubsup><mi>W</mi> <mn>2</mn> <mover accent="true"><mi>A</mi> <mo>&#732;</mo></mover> </msubsup><mrow><mo>(</mo><mi>&#937;</mi><mo>;</mo><msub><mi>&#915;</mi> <mi>r</mi> </msub><mo>,</mo><mi>T</mi><mo>)</mo></mrow></mfenced></mfenced></mrow></mtd></mtr></mtable></math></td><td class="eqno">(28)</td></tr></table></div>
<pre class="latex-code"><span class="prenumber">472</span> \begin{gather}   \raisetag{-40pt}
<span class="prenumber">473</span>  \text{The sign function: \ } \mathcal{S}(x) =
<span class="prenumber">474</span>  \begin{cases}-1   &amp;  x &lt; 0 \\ 0   &amp;  x = 0 \\ 1   &amp;  x &gt; 0\end{cases}
<span class="prenumber">475</span> \end{gather}
</pre>
<p class="nofirst noindent">Example 8-2-28, showing the command <samp>\raisetag</samp>.
It is defined as doing nothing in <i>Tralics</i> (the tag, i.e., the equation
number, is inserted by the style sheet that converts from XML to HTML.)
We have redefined here the command as follows</p>
<pre class="latex-code"><span class="prenumber">476</span> \def\raisetag#1{%
<span class="prenumber">477</span> \dimen0=#1\relax
<span class="prenumber">478</span> \ifdim\dimen0&lt;0pt
<span class="prenumber">479</span>   \dimen0=-\dimen0
<span class="prenumber">480</span>    \formulaattribute{tag-down}{\the\dimen0}%
<span class="prenumber">481</span> \else
<span class="prenumber">482</span> \formulaattribute{tag-up}{\the\dimen0}\fi}
</pre>
<p>Thus <samp>\raisetag</samp> with a value of <samp>-10pt</samp> will add
<span class="sansserif">tag-down</span> = `10pt´ to the formula element. In this case, the style sheet
adds <span class="sansserif">style</span> = `padding-top:10pt´ to the cell containing the equation
number. In the case of a positive value, padding-bottom is used instead.
In this example, we use 40pt.</p>
<div class="mathdisplay"><table width="100%" id="uid91"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd><mrow><mtext>The</mtext><mspace width="4.pt"></mspace><mtext>sign</mtext><mspace width="4.pt"></mspace><mtext>function:</mtext><mspace width="4.pt"></mspace><mspace width="4.pt"></mspace><mi mathvariant="script">S</mi><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mo>=</mo><mfenced separators="" open="{" close=""><mtable><mtr><mtd columnalign="left"><mrow><mo>-</mo><mn>1</mn></mrow></mtd><mtd columnalign="left"><mrow><mi>x</mi><mo>&lt;</mo><mn>0</mn></mrow></mtd></mtr><mtr><mtd columnalign="left"><mn>0</mn></mtd><mtd columnalign="left"><mrow><mi>x</mi><mo>=</mo><mn>0</mn></mrow></mtd></mtr><mtr><mtd columnalign="left"><mn>1</mn></mtd><mtd columnalign="left"><mrow><mi>x</mi><mo>&gt;</mo><mn>0</mn></mrow></mtd></mtr></mtable></mfenced></mrow></mtd></mtr></mtable></math></td><td class="eqno" style="padding-top:40.0pt">(29)</td></tr></table></div>
<pre class="latex-code"><span class="prenumber">483</span> begin{subequations}  \label{eq:1}
<span class="prenumber">484</span> \begin{align}  f  &amp;= g            \label{eq:1A} \\
<span class="prenumber">485</span>                f' &amp;= g'           \label{eq:1B} \\
<span class="prenumber">486</span>     \mathcal{L}f  &amp;= \mathcal{L}g \label{eq:1C}
<span class="prenumber">487</span> \end{align}
<span class="prenumber">488</span> \end{subequations}
<span class="prenumber">489</span> \begin{subequations}  \label{eq:2}
<span class="prenumber">490</span> \renewcommand\theequation{\theparentequation\roman{equation}}
<span class="prenumber">491</span> \begin{align}  f  &amp;= g            \label{eq:2A} \\
<span class="prenumber">492</span>                f' &amp;= g'           \label{eq:2B} \\
<span class="prenumber">493</span>     \mathcal{L}f  &amp;= \mathcal{L}g + K  \label{eq:2C}
<span class="prenumber">494</span> \end{align}
<span class="prenumber">495</span> \end{subequations}
<span class="prenumber">496</span> Note the relationship between~\eqref{eq:1}
<span class="prenumber">497</span> and~\eqref{eq:2}: only~\ref{eq:1C} and~\ref{eq:2C} differ.
</pre>
<p class="nofirst noindent">Example 8-2-29: the amsmath package provides a <samp>subequations</samp> environment
to support &#8220;equation subnumbering&#8221; with tags of the form (2a), (2b), (2c),
and so on. All the tagged equations within it use this sub-numbering scheme
based on two normal LaTeX counters <samp>parentequation</samp> and <samp>equation</samp>.
First group, with only labels <samp>eq:1</samp> and <samp>eq1:C</samp></p>
<div class="mathdisplay"><table width="100%" id="uid92"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mi>f</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>g</mi></mrow></mtd></mtr><mtr><mtd columnalign="right"><msup><mi>f</mi> <mo>'</mo> </msup></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>g</mi> <mo>'</mo> </msup></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><mi mathvariant="script">L</mi><mi>f</mi></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi mathvariant="script">L</mi><mi>g</mi></mrow></mtd></mtr></mtable></math></td><td class="eqno">(30)</td></tr></table></div>
<p class="nofirst noindent">
The <i>Tralics</i> implementation is trivial: the environment does nothing.
Thus, the <samp>\label</samp> command in the <samp>subequations</samp> corresponds to the
current section. Second group, with only labels <samp>eq:2</samp> and <samp>eq2:C</samp></p>
<div class="mathdisplay"><table width="100%" id="uid93"><tr valign="middle"><td class="leqno"></td><td><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mi>f</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>g</mi></mrow></mtd></mtr><mtr><mtd columnalign="right"><msup><mi>f</mi> <mo>'</mo> </msup></mtd><mtd columnalign="left"><mrow><mo>=</mo><msup><mi>g</mi> <mo>'</mo> </msup></mrow></mtd></mtr><mtr><mtd columnalign="right"><mrow><mi mathvariant="script">L</mi><mi>f</mi></mrow></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi mathvariant="script">L</mi><mi>g</mi><mo>+</mo><mi>K</mi></mrow></mtd></mtr></mtable></math></td><td class="eqno">(31)</td></tr></table></div>
<p class="nofirst noindent">
We have removed two <samp>\label</samp>s from the <samp>align</samp>,
because it produces a single equation number and accepts a single label.
Thus, the text after the equations reads:
<i>Note the relationship between (<a href="#uid77" title="Display and alignment structures for equations">3.2</a>)
and (<a href="#uid77" title="Display and alignment structures for equations">3.2</a>): only <a href="#uid92">30</a> and <a href="#uid93">31</a> differ.</i></p>

<h2 id="uid94">3.3. Matrix-like environments</h2>
<pre class="latex-code"><span class="prenumber">498</span> \begin{equation}    P_{r - j} =
<span class="prenumber">499</span>  \begin{cases}
<span class="prenumber">500</span>     0   &amp;  \text{if $r - j$ is odd,} \\
<span class="prenumber">501</span>     r! \, (-1)^{(r - j)/2}
<span class="prenumber">502</span>         &amp;  \text{if $r - j$ is even.}
<span class="prenumber">503</span>  \end{cases}                \end{equation}
</pre>
<p class="nofirst noindent">Example 8-3-1</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>P</mi> <mrow><mi>r</mi><mo>-</mo><mi>j</mi></mrow> </msub><mo>=</mo><mfenced separators="" open="{" close=""><mtable><mtr><mtd columnalign="left"><mn>0</mn></mtd><mtd columnalign="left"><mrow><mtext>if</mtext><mspace width="4.pt"></mspace><mrow><mi>r</mi><mo>-</mo><mi>j</mi></mrow><mspace width="4.pt"></mspace><mtext>is</mtext><mspace width="4.pt"></mspace><mtext>odd,</mtext></mrow></mtd></mtr><mtr><mtd columnalign="left"><mrow><mi>r</mi><mo>!</mo><mspace width="0.166667em"></mspace><msup><mrow><mo>(</mo><mo>-</mo><mn>1</mn><mo>)</mo></mrow> <mrow><mo>(</mo><mi>r</mi><mo>-</mo><mi>j</mi><mo>)</mo><mo>/</mo><mn>2</mn></mrow> </msup></mrow></mtd><mtd columnalign="left"><mrow><mtext>if</mtext><mspace width="4.pt"></mspace><mrow><mi>r</mi><mo>-</mo><mi>j</mi></mrow><mspace width="4.pt"></mspace><mtext>is</mtext><mspace width="4.pt"></mspace><mtext>even.</mtext></mrow></mtd></mtr></mtable></mfenced></mrow></math></div>
<pre class="latex-code"><span class="prenumber">504</span> \begin{gather*}
<span class="prenumber">505</span>   \begin{matrix}  0 &amp;  1 \\ 1 &amp;  0 \end{matrix}  \quad
<span class="prenumber">506</span>   \begin{pmatrix} 0 &amp; -i \\ i &amp;  0 \end{pmatrix} \\
<span class="prenumber">507</span>   \begin{bmatrix} 0 &amp; -1 \\ 1 &amp;  0 \end{bmatrix} \quad
<span class="prenumber">508</span>   \begin{Bmatrix} 1 &amp;  0 \\ 0 &amp; -1 \end{Bmatrix} \\
<span class="prenumber">509</span>   \begin{vmatrix} a &amp;  b \\ c &amp;  d \end{vmatrix} \quad
<span class="prenumber">510</span>   \begin{Vmatrix} i &amp;  0 \\ 0 &amp; -i \end{Vmatrix}
<span class="prenumber">511</span> \end{gather*}
</pre>
<p>Example 8-3-2, using a single equation<a id="uid95" href="#note12" title="The delimiter for Vmatrix is badly rendered by Amaya"><small>(note: </small>&#10163;<small>)</small></a></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtable><mtr><mtd><mn>0</mn></mtd><mtd><mn>1</mn></mtd></mtr><mtr><mtd><mn>1</mn></mtd><mtd><mn>0</mn></mtd></mtr></mtable><mspace width="1.em"></mspace><mfenced open="(" close=")"><mtable><mtr><mtd><mn>0</mn></mtd><mtd><mrow><mo>-</mo><mi>i</mi></mrow></mtd></mtr><mtr><mtd><mi>i</mi></mtd><mtd><mn>0</mn></mtd></mtr></mtable></mfenced><mspace width="1.em"></mspace><mfenced open="[" close="]"><mtable><mtr><mtd><mn>0</mn></mtd><mtd><mrow><mo>-</mo><mn>1</mn></mrow></mtd></mtr><mtr><mtd><mn>1</mn></mtd><mtd><mn>0</mn></mtd></mtr></mtable></mfenced><mspace width="1.em"></mspace><mfenced open="{" close="}"><mtable><mtr><mtd><mn>1</mn></mtd><mtd><mn>0</mn></mtd></mtr><mtr><mtd><mn>0</mn></mtd><mtd><mrow><mo>-</mo><mn>1</mn></mrow></mtd></mtr></mtable></mfenced><mspace width="1.em"></mspace><mfenced open="|" close="|"><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mfenced><mspace width="1.em"></mspace><mfenced open="&#8741;" close="&#8741;"><mtable><mtr><mtd><mi>i</mi></mtd><mtd><mn>0</mn></mtd></mtr><mtr><mtd><mn>0</mn></mtd><mtd><mrow><mo>-</mo><mi>i</mi></mrow></mtd></mtr></mtable></mfenced></mrow></math></div>
<pre class="latex-code"><span class="prenumber">512</span> \newcommand\hdotsfor[2][x]{\multicolumn{5}{c}{.\ .\ .\ .\ .\ .\ .\ .\ .}}
<span class="prenumber">513</span> \setcounter{MaxMatrixCols}{20}
<span class="prenumber">514</span> \[
<span class="prenumber">515</span>  \begin{Vmatrix}
<span class="prenumber">516</span>   \,a&amp;b&amp;c&amp;d&amp;e&amp;f&amp;g&amp;h&amp;i&amp;j &amp;\cdots\,{} \\
<span class="prenumber">517</span>      &amp;a&amp;b&amp;c&amp;d&amp;e&amp;f&amp;g&amp;h&amp;i &amp;\cdots\,{} \\
<span class="prenumber">518</span>      &amp; &amp;a&amp;b&amp;c&amp;d&amp;e&amp;f&amp;g&amp;h &amp;\cdots\,{} \\
<span class="prenumber">519</span>      &amp; &amp; &amp;a&amp;b&amp;c&amp;d&amp;e&amp;f&amp;g &amp;\cdots\,{} \\
<span class="prenumber">520</span>      &amp; &amp; &amp; &amp;\ddots&amp;\ddots&amp;\hdotsfor[2]{5}%\,{}
<span class="prenumber">521</span>  \end{Vmatrix} \]
</pre>
<p class="nofirst noindent">Example 8-3-3.
The example uses <samp>\hdotsfor</samp>, a command equivalent to
<samp>\multicolumn</samp><samp>{5}</samp><samp>{c}</samp><samp>{leaders}</samp>. Leaders cannot be
implemented in MathML, so that the command is redefined in this case.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mfenced xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" open="&#8741;" close="&#8741;"><mtable><mtr><mtd><mrow><mspace width="0.166667em"></mspace><mi>a</mi></mrow></mtd><mtd><mi>b</mi></mtd><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd><mtd><mi>e</mi></mtd><mtd><mi>f</mi></mtd><mtd><mi>g</mi></mtd><mtd><mi>h</mi></mtd><mtd><mi>i</mi></mtd><mtd><mi>j</mi></mtd><mtd><mrow><mo>&#8943;</mo><mspace width="0.166667em"></mspace><mrow></mrow></mrow></mtd></mtr><mtr><mtd></mtd><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd><mtd><mi>e</mi></mtd><mtd><mi>f</mi></mtd><mtd><mi>g</mi></mtd><mtd><mi>h</mi></mtd><mtd><mi>i</mi></mtd><mtd><mrow><mo>&#8943;</mo><mspace width="0.166667em"></mspace><mrow></mrow></mrow></mtd></mtr><mtr><mtd></mtd><mtd></mtd><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd><mtd><mi>e</mi></mtd><mtd><mi>f</mi></mtd><mtd><mi>g</mi></mtd><mtd><mi>h</mi></mtd><mtd><mrow><mo>&#8943;</mo><mspace width="0.166667em"></mspace><mrow></mrow></mrow></mtd></mtr><mtr><mtd></mtd><mtd></mtd><mtd></mtd><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd><mtd><mi>e</mi></mtd><mtd><mi>f</mi></mtd><mtd><mi>g</mi></mtd><mtd><mrow><mo>&#8943;</mo><mspace width="0.166667em"></mspace><mrow></mrow></mrow></mtd></mtr><mtr><mtd></mtd><mtd></mtd><mtd></mtd><mtd></mtd><mtd><mo>&#8945;</mo></mtd><mtd><mo>&#8945;</mo></mtd><mtd columnspan="5"><mrow><mo>.</mo><mspace width="4pt"></mspace><mo>.</mo><mspace width="4pt"></mspace><mo>.</mo><mspace width="4pt"></mspace><mo>.</mo><mspace width="4pt"></mspace><mo>.</mo><mspace width="4pt"></mspace><mo>.</mo><mspace width="4pt"></mspace><mo>.</mo><mspace width="4pt"></mspace><mo>.</mo><mspace width="4pt"></mspace><mo>.</mo></mrow></mtd></mtr></mtable></mfenced></math></div>
<p class="nofirst noindent">In the example above, there was a <samp>\,</samp><samp>{}</samp> at the end of each
line. We had to remove it on the last line, because <i>Tralics</i> complains if a
cell contains <samp>\multicolumns</samp> and additional commands. The following
example is refused by <i>Tralics</i>; but LaTeX is happy with it, but x is typeset
outside math mode. Thus the question: what is the exact effect of the last
<samp>\,</samp><samp>{}</samp> in the LaTeX case?</p>
<pre class="latex-code"><span class="prenumber">522</span> $\begin{array}{ccc}
<span class="prenumber">523</span> 111&amp;222&amp;333\\
<span class="prenumber">524</span> \hdotsfor{2}x&amp;t\\
<span class="prenumber">525</span> \end{array}$
</pre>
<p>Example 8-3-4. This example uses the environment <samp>smallmatrix</samp>, which is
defined by <i>Tralics</i> to be the same as <samp>matrix</samp>, i.e., a matrix without
delimiters, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtr><mtd><mn>1</mn></mtd><mtd><mn>0</mn></mtd></mtr><mtr><mtd><mn>0</mn></mtd><mtd><mrow><mo>-</mo><mn>1</mn></mrow></mtd></mtr></mtable></math></span>
the same with <samp>\left</samp> and <samp>\right</samp> parentheses
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mfenced xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" separators="" open="(" close=")"><mtable><mtr><mtd><mn>1</mn></mtd><mtd><mn>0</mn></mtd></mtr><mtr><mtd><mn>0</mn></mtd><mtd><mrow><mo>-</mo><mn>1</mn></mrow></mtd></mtr></mtable></mfenced></math></span>.
There is some text after the matrix. It happens that matrices in text style
are badly rendered by Firefox. There is a huge amount of white space on the
left of each column.</p>
<pre class="latex-code"><span class="prenumber">526</span> \begin{gather}
<span class="prenumber">527</span>   \sum_{\substack{0 \le i \le m \\ 0 &lt; j &lt; n}} P(i, j) \\
<span class="prenumber">528</span>   \sum_{\begin{subarray}{l}  i \in \Lambda   \\
<span class="prenumber">529</span>                              0 \le i \le m   \\
<span class="prenumber">530</span>                              0 &lt; j &lt; n
<span class="prenumber">531</span>         \end{subarray}}  P(i, j)
<span class="prenumber">532</span> \end{gather}
</pre>
<p class="nofirst noindent">Example 8-3-5. The style of the subarray should be smaller</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd><mrow><munder><mo>&#8721;</mo> <mtable><mtr><mtd><mrow><mn>0</mn><mo>&#8804;</mo><mi>i</mi><mo>&#8804;</mo><mi>m</mi></mrow></mtd></mtr><mtr><mtd><mrow><mn>0</mn><mo>&lt;</mo><mi>j</mi><mo>&lt;</mo><mi>n</mi></mrow></mtd></mtr></mtable> </munder><mi>P</mi><mrow><mo>(</mo><mi>i</mi><mo>,</mo><mi>j</mi><mo>)</mo></mrow></mrow></mtd></mtr><mtr><mtd><mrow><munder><mo>&#8721;</mo> <mstyle scriptlevel="1" displaystyle="false"><mtable><mtr><mtd><mrow><mi>i</mi><mo>&#8712;</mo><mi>&#923;</mi></mrow></mtd></mtr><mtr><mtd><mrow><mn>0</mn><mo>&#8804;</mo><mi>i</mi><mo>&#8804;</mo><mi>m</mi></mrow></mtd></mtr><mtr><mtd><mrow><mn>0</mn><mo>&lt;</mo><mi>j</mi><mo>&lt;</mo><mi>n</mi></mrow></mtd></mtr></mtable></mstyle> </munder><mi>P</mi><mrow><mo>(</mo><mi>i</mi><mo>,</mo><mi>j</mi><mo>)</mo></mrow></mrow></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">533</span> \DeclareMathOperator\add{add}
<span class="prenumber">534</span> \DeclareMathOperator\cf {cf}
<span class="prenumber">535</span> \DeclareMathOperator\cov{cov}
<span class="prenumber">536</span> \DeclareMathOperator\non{non}
<span class="prenumber">537</span> \DeclareMathOperator\End{End}
<span class="prenumber">538</span> \[ \begin{CD}
<span class="prenumber">539</span>      \cov (L) @&gt;&gt;&gt; \non (K) @&gt;&gt;&gt; \cf (K)  \\
<span class="prenumber">540</span>        @VVV          @AAA          @AAA   \\
<span class="prenumber">541</span>      \add (L) @&gt;&gt;&gt; \add (K) @&gt;&gt;&gt; \cov (K) \\
<span class="prenumber">542</span>    \end{CD} \]
</pre>
<p class="nofirst noindent">Example 8-3-6. You must be careful with the CD environment, because the
at-sign is an active character, that reads some text, depending on the
character that follows; more examples are given below.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtr><mtd><mrow><mo form="prefix">cov</mo><mo>(</mo><mi>L</mi><mo>)</mo></mrow></mtd><mtd><mover><mo>&#8594;</mo> <mrow></mrow></mover></mtd><mtd><mrow><mo form="prefix">non</mo><mo>(</mo><mi>K</mi><mo>)</mo></mrow></mtd><mtd><mover><mo>&#8594;</mo> <mrow></mrow></mover></mtd><mtd><mrow><mo form="prefix">cf</mo><mo>(</mo><mi>K</mi><mo>)</mo></mrow></mtd></mtr><mtr><mtd><mo>&#8595;</mo></mtd><mtd></mtd><mtd><mo>&#8593;</mo></mtd><mtd></mtd><mtd><mo>&#8593;</mo></mtd><mtd></mtd><mtd></mtd></mtr><mtr><mtd><mrow><mo form="prefix">add</mo><mo>(</mo><mi>L</mi><mo>)</mo></mrow></mtd><mtd><mover><mo>&#8594;</mo> <mrow></mrow></mover></mtd><mtd><mrow><mo form="prefix">add</mo><mo>(</mo><mi>K</mi><mo>)</mo></mrow></mtd><mtd><mover><mo>&#8594;</mo> <mrow></mrow></mover></mtd><mtd><mrow><mo form="prefix">cov</mo><mo>(</mo><mi>K</mi><mo>)</mo></mrow></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">543</span> \[ \begin{CD}
<span class="prenumber">544</span>      S^{W_\Lambda}\otimes T @&gt;j&gt;&gt;      T       \\
<span class="prenumber">545</span>       @VVV                        @VV{\End P}V \\
<span class="prenumber">546</span>     (S \otimes T)/I         @=   (Z\otimes T)/J
<span class="prenumber">547</span>    \end{CD} \]
</pre>
<p class="nofirst noindent">Example 8-3-7</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtr><mtd><mrow><msup><mi>S</mi> <msub><mi>W</mi> <mi>&#923;</mi> </msub> </msup><mo>&#8855;</mo><mi>T</mi></mrow></mtd><mtd><mover><mo>&#8594;</mo> <mi>j</mi></mover></mtd><mtd><mi>T</mi></mtd></mtr><mtr><mtd><mo>&#8595;</mo></mtd><mtd></mtd><mtd><mrow><mphantom><mstyle scriptlevel="1" displaystyle="false"><mo form="prefix">End</mo><mi>P</mi></mstyle></mphantom><mo>&#8595;</mo><mstyle scriptlevel="1" displaystyle="false"><mrow><mo form="prefix">End</mo><mi>P</mi></mrow></mstyle></mrow></mtd><mtd></mtd><mtd></mtd></mtr><mtr><mtd><mrow><mo>(</mo><mi>S</mi><mo>&#8855;</mo><mi>T</mi><mo>)</mo><mo>/</mo><mi>I</mi></mrow></mtd><mtd><mo>=</mo></mtd><mtd><mrow><mo>(</mo><mi>Z</mi><mo>&#8855;</mo><mi>T</mi><mo>)</mo><mo>/</mo><mi>J</mi></mrow></mtd></mtr></mtable></math></div>
<p>Example 8-3-8. This uses <samp>\longrightarrow</samp>, that produces character
U+27F9, unknown to <i>FM</i>.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mtr><mtd><mrow><msup><mi>S</mi> <msub><mi mathvariant="script">W</mi> <mi>&#923;</mi> </msub> </msup><mo>&#8855;</mo><mi>T</mi></mrow></mtd><mtd><mover><mo>&#10230;</mo> <mi>j</mi></mover></mtd><mtd><mi>T</mi></mtd></mtr><mtr><mtd><mo>&#8595;</mo></mtd><mtd></mtd><mtd><mrow><mphantom><mstyle scriptlevel="1" displaystyle="false"><mo form="prefix">End</mo><mi>P</mi></mstyle></mphantom><mo>&#8595;</mo><mstyle scriptlevel="1" displaystyle="false"><mrow><mo form="prefix">End</mo><mi>P</mi></mrow></mstyle></mrow></mtd></mtr><mtr><mtd><mrow><mo>(</mo><mi>S</mi><mo>&#8855;</mo><mi>T</mi><mo>)</mo><mo>/</mo><mi>I</mi></mrow></mtd><mtd><mo>=</mo></mtd><mtd><mrow><mo>(</mo><mi>Z</mi><mo>&#8855;</mo><mi>T</mi><mo>)</mo><mo>/</mo><mi>J</mi></mrow></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">548</span> \[ \mathcal{Q} =
<span class="prenumber">549</span> \begin{delarray}[t] ( {cc} ) X &amp; Y \end{delarray}
<span class="prenumber">550</span> \begin{delarray}[t] [ {cc} ] A &amp; B \\ C &amp; D   \end{delarray}
<span class="prenumber">551</span> \begin{delarray}[b] \lgroup{cc}\rgroup L \\ M \end{delarray}
<span class="prenumber">552</span> \]
</pre>
<p class="nofirst noindent">Example 8-3-9. This example uses the <samp>delarray</samp> package that changes
the meaning of the <samp>array</samp> environment. In the current version of <i>Tralics</i>,
there is no <samp>\array</samp> command, hence no possibility to redefine it.
The <span class="sansserif">delarray.plt</span> file defines a <samp>delarray</samp> environment that is
used here.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="script">Q</mi><mo>=</mo><mfenced open="(" close=")"><mtable><mtr><mtd><mi>X</mi></mtd><mtd><mi>Y</mi></mtd></mtr></mtable></mfenced><mfenced separators="" open="[" close="]"><mtable><mtr><mtd><mi>A</mi></mtd><mtd><mi>B</mi></mtd></mtr><mtr><mtd><mi>C</mi></mtd><mtd><mi>D</mi></mtd></mtr></mtable></mfenced><mfenced separators="" open="&#12308;" close="&#12309;"><mtable><mtr><mtd><mi>L</mi></mtd></mtr><mtr><mtd><mi>M</mi></mtd></mtr></mtable></mfenced></mrow></math></div>

<h2 id="uid96">3.4. Compound structures and decorations</h2>
<pre class="latex-code"><span class="prenumber">553</span> \[   0 \xleftarrow [\zeta]{}  F \times \Delta (n - 1)
<span class="prenumber">554</span>      \xrightarrow {\partial_0 \alpha(b)} E^{\partial_0 b}\]
</pre>
<p class="nofirst noindent">Example 8-4-1</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>0</mn><munder><mo>&#8592;</mo> <mi>&#950;</mi></munder><mi>F</mi><mo>×</mo><mi>&#916;</mi><mrow><mo>(</mo><mi>n</mi><mo>-</mo><mn>1</mn><mo>)</mo></mrow><mover><mo>&#8594;</mo> <mrow><msub><mi>&#8706;</mi> <mn>0</mn> </msub><mi>&#945;</mi><mrow><mo>(</mo><mi>b</mi><mo>)</mo></mrow></mrow></mover><msup><mi>E</mi> <mrow><msub><mi>&#8706;</mi> <mn>0</mn> </msub><mi>b</mi></mrow> </msup></mrow></math></div>
<pre class="latex-code"><span class="prenumber">555</span> \begin{equation*}
<span class="prenumber">556</span> \cfrac {1}{\sqrt{2} +
<span class="prenumber">557</span>  \cfrac {1}{\sqrt{3} +
<span class="prenumber">558</span>   \cfrac {1}{\sqrt{4} +
<span class="prenumber">559</span>    \cfrac[r] {1}{\sqrt{5} +
<span class="prenumber">560</span>     \cfrac[l] {1}{\sqrt{6} + \dotsb }
<span class="prenumber">561</span>    }}}}
<span class="prenumber">562</span> \end{equation*}
</pre>
<p>Example 8-4-2</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mfrac xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mn>1</mn> <mrow><msqrt><mn>2</mn></msqrt><mo>+</mo><mfrac><mn>1</mn> <mrow><msqrt><mn>3</mn></msqrt><mo>+</mo><mfrac><mn>1</mn> <mrow><msqrt><mn>4</mn></msqrt><mo>+</mo><mfrac numalign="right"><mn>1</mn> <mrow><msqrt><mn>5</mn></msqrt><mo>+</mo><mfrac numalign="left"><mn>1</mn> <mrow><msqrt><mn>6</mn></msqrt><mo>+</mo><mo>&#8943;</mo></mrow></mfrac></mrow></mfrac></mrow></mfrac></mrow></mfrac></mrow></mfrac></math></div>
<pre class="latex-code"><span class="prenumber">563</span> \begin{equation} \boxed { W_t - F \subseteq V(P_i) \subseteq W_t }\end{equation}
</pre>
<p class="nofirst noindent">Example 8-4-3</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" frame="solid"><mtr><mtd><msub><mi>W</mi> <mi>t</mi> </msub><mo>-</mo><mi>F</mi><mo>&#8838;</mo><mi>V</mi><mrow><mo>(</mo><msub><mi>P</mi> <mi>i</mi> </msub><mo>)</mo></mrow><mo>&#8838;</mo><msub><mi>W</mi> <mi>t</mi> </msub></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">564</span> \[  \sum_{i=1}^n \qquad \int_0^\infty \qquad \lim_{n \to 0} \]
<span class="prenumber">565</span> Text: $\sum_{i=1}^n$, $\int_0^\infty$, $\lim_{n \to 0}$.
</pre>
<p class="nofirst noindent">Example 8-4-4</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munderover><mo>&#8721;</mo> <mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow> <mi>n</mi> </munderover><mspace width="2.em"></mspace><msubsup><mo>&#8747;</mo> <mn>0</mn> <mi>&#8734;</mi> </msubsup><mspace width="2.em"></mspace><munder><mo movablelimits="true" form="prefix">lim</mo> <mrow><mi>n</mi><mo>&#8594;</mo><mn>0</mn></mrow> </munder></mrow></math></div>
<p class="nofirst noindent">Text: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msubsup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8721;</mo> <mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow> <mi>n</mi> </msubsup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msubsup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8747;</mo> <mn>0</mn> <mi>&#8734;</mi> </msubsup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msub xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo movablelimits="true" form="prefix">lim</mo> <mrow><mi>n</mi><mo>&#8594;</mo><mn>0</mn></mrow> </msub></math></span>.</p>
<pre class="latex-code"><span class="prenumber">566</span> \[
<span class="prenumber">567</span>    \sum\nolimits_{i=1}^n \qquad \int\limits_0^\infty
<span class="prenumber">568</span>    \qquad  \lim\displaylimits_{n \to 0}
<span class="prenumber">569</span> \]
<span class="prenumber">570</span> Text: $\sum\nolimits_{i=1}^n$, $\int\limits_0^\infty$,
<span class="prenumber">571</span> $\lim\displaylimits_{n \to 0}$.
</pre>
<p class="nofirst noindent">Example 8-4-5 (limits placement is wrong in the Pdf version, text style).</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msubsup><mo>&#8721;</mo> <mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow> <mi>n</mi> </msubsup><mspace width="2.em"></mspace><munderover><mo>&#8747;</mo> <mn>0</mn> <mi>&#8734;</mi> </munderover><mspace width="2.em"></mspace><munder><mo movablelimits="false" form="prefix">lim</mo> <mrow><mi>n</mi><mo>&#8594;</mo><mn>0</mn></mrow> </munder></mrow></math></div>
<p class="nofirst noindent">Text: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msubsup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8721;</mo> <mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow> <mi>n</mi> </msubsup></math></span>, <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munderover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8747;</mo> <mn>0</mn> <mi>&#8734;</mi> </munderover></math></span>,
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msub xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo movablelimits="true" form="prefix">lim</mo> <mrow><mi>n</mi><mo>&#8594;</mo><mn>0</mn></mrow> </msub></math></span>.</p>
<pre class="latex-code"><span class="prenumber">572</span> \begin{gather*}
<span class="prenumber">573</span>  \xiint     \limits _V \mu(v,w)   \,du \,dv  \quad
<span class="prenumber">574</span>  \xiiint    \limits _V \mu(u,v,w)   \,du \,dv \,dw  \quad
<span class="prenumber">575</span>  \xiiiint   \limits _V \mu(t,u,v,w)   \,dt \,du \,dv \,dw  \\
<span class="prenumber">576</span>  \idotsint \limits _V \mu(z_1, \dots, z_k)   \,\mathbf{dz}\\
<span class="prenumber">577</span>  \iint     \limits _V \mu(v,w)   \,du \,dv \qquad
<span class="prenumber">578</span>  \iiint    \limits _V \mu(u,v,w)   \,du \,dv \,dw  \qquad
<span class="prenumber">579</span>  \iiiint   \limits _V \mu(t,u,v,w)    \,dt \,du \,dv \,dw  \\ \textstyle
<span class="prenumber">580</span>  \iint     \limits _V \mu(v,w)   \,du \,dv \qquad
<span class="prenumber">581</span>  \iiint    \limits _V \mu(u,v,w)   \,du \,dv \,dw  \qquad
<span class="prenumber">582</span>  \iiiint   \limits _V \mu(t,u,v,w)   \,dt \,du \,dv \,dw
<span class="prenumber">583</span> \end{gather*}
</pre>
<p class="nofirst noindent">Example 8-4-6. Modified, using <samp>\xiint</samp>, <samp>\xiiint</samp>, <samp>\xiiiint</samp>
command that produce Unicode character U+222c, U+222D and U+2A0C,
or simple integrals.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd><mrow><munder><mo>&#8748;</mo> <mi>V</mi> </munder><mi>&#956;</mi><mrow><mo>(</mo><mi>v</mi><mo>,</mo><mi>w</mi><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi>d</mi><mi>u</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>v</mi><mspace width="1.em"></mspace><munder><mo>&#8749;</mo> <mi>V</mi> </munder><mi>&#956;</mi><mrow><mo>(</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>,</mo><mi>w</mi><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi>d</mi><mi>u</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>v</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>w</mi><mspace width="1.em"></mspace><munder><mo>&#10764;</mo> <mi>V</mi> </munder><mi>&#956;</mi><mrow><mo>(</mo><mi>t</mi><mo>,</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>,</mo><mi>w</mi><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi>d</mi><mi>t</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>u</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>v</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>w</mi></mrow></mtd></mtr><mtr><mtd><mrow><munder><mrow><mo>&#8747;</mo><mo>...</mo><mo>&#8747;</mo></mrow> <mi>V</mi> </munder><mi>&#956;</mi><mrow><mo>(</mo><msub><mi>z</mi> <mn>1</mn> </msub><mo>,</mo><mo>&#8943;</mo><mo>,</mo><msub><mi>z</mi> <mi>k</mi> </msub><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi mathvariant="bold">dz</mi></mrow></mtd></mtr><mtr><mtd><mrow><munder><mrow><mspace width="0.277778em"></mspace><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mspace width="0.277778em"></mspace></mrow> <mi>V</mi> </munder><mi>&#956;</mi><mrow><mo>(</mo><mi>v</mi><mo>,</mo><mi>w</mi><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi>d</mi><mi>u</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>v</mi><mspace width="2.em"></mspace><munder><mrow><mspace width="0.277778em"></mspace><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mspace width="0.277778em"></mspace></mrow> <mi>V</mi> </munder><mi>&#956;</mi><mrow><mo>(</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>,</mo><mi>w</mi><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi>d</mi><mi>u</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>v</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>w</mi><mspace width="2.em"></mspace><munder><mrow><mspace width="0.277778em"></mspace><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mspace width="0.277778em"></mspace></mrow> <mi>V</mi> </munder><mi>&#956;</mi><mrow><mo>(</mo><mi>t</mi><mo>,</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>,</mo><mi>w</mi><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi>d</mi><mi>t</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>u</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>v</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>w</mi></mrow></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><munder><mrow><mspace width="0.277778em"></mspace><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mspace width="0.277778em"></mspace></mrow> <mi>V</mi> </munder><mi>&#956;</mi><mrow><mo>(</mo><mi>v</mi><mo>,</mo><mi>w</mi><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi>d</mi><mi>u</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>v</mi><mspace width="2.em"></mspace><munder><mrow><mspace width="0.277778em"></mspace><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mspace width="0.277778em"></mspace></mrow> <mi>V</mi> </munder><mi>&#956;</mi><mrow><mo>(</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>,</mo><mi>w</mi><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi>d</mi><mi>u</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>v</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>w</mi><mspace width="2.em"></mspace><munder><mrow><mspace width="0.277778em"></mspace><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mpadded width="-3pt"><mo>&#8747;</mo></mpadded><mspace width="0.277778em"></mspace></mrow> <mi>V</mi> </munder><mi>&#956;</mi><mrow><mo>(</mo><mi>t</mi><mo>,</mo><mi>u</mi><mo>,</mo><mi>v</mi><mo>,</mo><mi>w</mi><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mi>d</mi><mi>t</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>u</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>v</mi><mspace width="0.166667em"></mspace><mi>d</mi><mi>w</mi></mrow></mstyle></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">584</span> \begin{align*}
<span class="prenumber">585</span>   u &amp; \equiv v + 1 \mod{n^2}  \\
<span class="prenumber">586</span>   u &amp; \equiv v + 1 \bmod{n^2} \\
<span class="prenumber">587</span>   u &amp;   =    v + 1 \pmod{n^2} \\
<span class="prenumber">588</span>   u &amp;   =    v + 1 \pod{n^2}
<span class="prenumber">589</span> \end{align*}
<span class="prenumber">590</span> The in-text layout: $ u = v + 1 \pmod{n^2} $
<span class="prenumber">591</span> \begin{gather*}
<span class="prenumber">592</span>    (m \bmod n) = k^2 \, ; \quad
<span class="prenumber">593</span>   x \equiv y \pmod b \, ;     \\
<span class="prenumber">594</span>   x \equiv y \mod c \, ;  \quad
<span class="prenumber">595</span>   x \equiv y \pod d\, .
<span class="prenumber">596</span> \end{gather*}
</pre>
<p class="nofirst noindent">Example 8-4-7</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mi>u</mi></mtd><mtd columnalign="left"><mrow><mo>&#8801;</mo><mi>v</mi><mo>+</mo><mn>1</mn><mspace width="3.33333pt"></mspace><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><msup><mi>n</mi> <mn>2</mn> </msup></mrow></mtd></mtr><mtr><mtd columnalign="right"><mi>u</mi></mtd><mtd columnalign="left"><mrow><mo>&#8801;</mo><mi>v</mi><mo>+</mo><mn>1</mn><mspace width="0.277778em"></mspace><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><msup><mi>n</mi> <mn>2</mn> </msup></mrow></mtd></mtr><mtr><mtd columnalign="right"><mi>u</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>v</mi><mo>+</mo><mn>1</mn><mspace width="10.0pt"></mspace><mo>(</mo><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><msup><mi>n</mi> <mn>2</mn> </msup><mo>)</mo></mrow></mtd></mtr><mtr><mtd columnalign="right"><mi>u</mi></mtd><mtd columnalign="left"><mrow><mo>=</mo><mi>v</mi><mo>+</mo><mn>1</mn><mspace width="10.0pt"></mspace><mo>(</mo><msup><mi>n</mi> <mn>2</mn> </msup><mo>)</mo></mrow></mtd></mtr></mtable></math></div>
<p class="nofirst noindent">The in-text layout: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mi>u</mi><mo>=</mo><mi>v</mi><mo>+</mo><mn>1</mn><mspace width="4.44443pt"></mspace><mo>(</mo><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><msup><mi>n</mi> <mn>2</mn> </msup><mo>)</mo></mrow></math></span></p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd><mrow><mrow><mo>(</mo><mi>m</mi><mspace width="0.277778em"></mspace><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><mi>n</mi><mo>)</mo></mrow><mo>=</mo><msup><mi>k</mi> <mn>2</mn> </msup><mspace width="0.166667em"></mspace><mo>;</mo><mspace width="1.em"></mspace><mi>x</mi><mo>&#8801;</mo><mi>y</mi><mspace width="10.0pt"></mspace><mrow><mo>(</mo><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><mi>b</mi><mo>)</mo></mrow><mspace width="0.166667em"></mspace><mo>;</mo></mrow></mtd></mtr><mtr><mtd><mrow><mi>x</mi><mo>&#8801;</mo><mi>y</mi><mspace width="3.33333pt"></mspace><mo form="prefix">mod</mo><mspace width="0.277778em"></mspace><mi>c</mi><mspace width="0.166667em"></mspace><mo>;</mo><mspace width="1.em"></mspace><mi>x</mi><mo>&#8801;</mo><mi>y</mi><mspace width="10.0pt"></mspace><mo>(</mo><mi>d</mi><mo>)</mo><mspace width="0.166667em"></mspace><mo>.</mo></mrow></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">597</span> \begin{equation} \frac{1}{k} \log_2 c(f)
<span class="prenumber">598</span>           \quad \tfrac{1}{k} \log_2 c(f) \end{equation}
<span class="prenumber">599</span> Text: $ \sqrt{ \frac{1}{k} \log_2 c(f) } \quad
<span class="prenumber">600</span>         \sqrt{ \dfrac{1}{k} \log_2 c(f) }\, $.
</pre>
<p class="nofirst noindent">Example 8-4-8</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mn>1</mn> <mi>k</mi></mfrac><msub><mo form="prefix">log</mo> <mn>2</mn> </msub><mi>c</mi><mrow><mo>(</mo><mi>f</mi><mo>)</mo></mrow><mspace width="1.em"></mspace><mstyle scriptlevel="0" displaystyle="false"><mfrac><mn>1</mn> <mi>k</mi></mfrac></mstyle><msub><mo form="prefix">log</mo> <mn>2</mn> </msub><mi>c</mi><mrow><mo>(</mo><mi>f</mi><mo>)</mo></mrow></mrow></math></div>
<p class="nofirst noindent">Text: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msqrt><mrow><mfrac><mn>1</mn> <mi>k</mi></mfrac><msub><mo form="prefix">log</mo> <mn>2</mn> </msub><mi>c</mi><mrow><mo>(</mo><mi>f</mi><mo>)</mo></mrow></mrow></msqrt><mspace width="1.em"></mspace><msqrt><mrow><mstyle scriptlevel="0" displaystyle="true"><mfrac><mn>1</mn> <mi>k</mi></mfrac></mstyle><msub><mo form="prefix">log</mo> <mn>2</mn> </msub><mi>c</mi><mrow><mo>(</mo><mi>f</mi><mo>)</mo></mrow></mrow></msqrt><mspace width="0.166667em"></mspace></mrow></math></span>.</p>
<pre class="latex-code"><span class="prenumber">601</span> \begin{equation} \binom{k}{2} 2^{k - 1}
<span class="prenumber">602</span>           + \tbinom{k - 1}{2} 2^{k - 2} \end{equation}
<span class="prenumber">603</span> Text: $ \binom{k}{2} 2^{k - 1} + \dbinom{k - 1}{2} 2^{k - 2} $.
<span class="prenumber">604</span> $ \dot{S} \quad \ddot{P} \quad \dddot{Q} \quad \ddddot{R} $
</pre>
<p class="nofirst noindent">Example 8-4-9</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mi>k</mi> <mn>2</mn></mfrac></mfenced><msup><mn>2</mn> <mrow><mi>k</mi><mo>-</mo><mn>1</mn></mrow> </msup><mo>+</mo><mfenced open="(" close=")"><mstyle scriptlevel="0" displaystyle="false"><mfrac linethickness="0pt"><mrow><mi>k</mi><mo>-</mo><mn>1</mn></mrow> <mn>2</mn></mfrac></mstyle></mfenced><msup><mn>2</mn> <mrow><mi>k</mi><mo>-</mo><mn>2</mn></mrow> </msup></mrow></math></div>
<p class="nofirst noindent">Text: <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mfenced separators="" open="(" close=")"><mfrac linethickness="0pt"><mi>k</mi> <mn>2</mn></mfrac></mfenced><msup><mn>2</mn> <mrow><mi>k</mi><mo>-</mo><mn>1</mn></mrow> </msup><mo>+</mo><mfenced open="(" close=")"><mstyle scriptlevel="0" displaystyle="true"><mfrac linethickness="0pt"><mrow><mi>k</mi><mo>-</mo><mn>1</mn></mrow> <mn>2</mn></mfrac></mstyle></mfenced><msup><mn>2</mn> <mrow><mi>k</mi><mo>-</mo><mn>2</mn></mrow> </msup></mrow></math></span>.</p>
<p>Example 8-4-10: Four dots above: character unknown by FM.
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mover accent="true"><mi>S</mi> <mo>&#729;</mo></mover><mspace width="1.em"></mspace><mover accent="true"><mi>P</mi> <mo>¨</mo></mover><mspace width="1.em"></mspace><mover accent="true"><mi>Q</mi> <mo>&#8411;</mo></mover><mspace width="1.em"></mspace><mover accent="true"><mi>R</mi> <mo>&#8412;</mo></mover></mrow></math></span></p>
<pre class="latex-code"><span class="prenumber">605</span> \[ \accentset{\ast}{X}                 \quad
<span class="prenumber">606</span>    \hat{\accentset{\star}{\hat h}}     \quad
<span class="prenumber">607</span>    \underaccent{\diamond}{\mathcal{M}} \quad
<span class="prenumber">608</span>    \undertilde{C}\quad\undertilde{M}\quad\undertilde{ABC} \]
</pre>
<p>Example 8-4-11. Commands <samp>\accentset</samp> and <samp>\underaccent</samp>
are defined in the amsmath.plt file, they produce a <tt class="txt">&lt;munder&gt;</tt> or
<tt class="txt">&lt;mover&gt;</tt> element, with attribute accent or mathaccent set to true.
Note that accents might be too big.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mover accent="true"><mi>X</mi> <mo>*</mo></mover><mspace width="1.em"></mspace><mover accent="true"><mover accent="true"><mover accent="true"><mi>h</mi> <mo>^</mo></mover> <mo>&#9734;</mo></mover> <mo>^</mo></mover><mspace width="1.em"></mspace><munder accentunder="true"><mi mathvariant="script">M</mi> <mo>&#8900;</mo></munder><mspace width="1.em"></mspace><munder accentunder="true"><mi>C</mi> <mo>&#732;</mo></munder><mspace width="1.em"></mspace><munder accentunder="true"><mi>M</mi> <mo>&#732;</mo></munder><mspace width="1.em"></mspace><munder accentunder="true"><mrow><mi>A</mi><mi>B</mi><mi>C</mi></mrow> <mo>&#732;</mo></munder></mrow></math></div>
<pre class="latex-code"><span class="prenumber">609</span> $(xyz)\spdddot$ \quad $(xyz)\spddot$ \quad $(xyz)\spdot$
<span class="prenumber">610</span> $(xyz)\spbreve$ \quad $(xyz)\spcheck$
<span class="prenumber">611</span> $(xyz)\sphat$   \quad $(xyz)\sptilde$
</pre>
<p>Example 8-4-12. (breve and hat are invisible on Firefox, too high on Amaya).
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>(</mo><mi>x</mi><mi>y</mi><mi>z</mi><mo>)</mo></mrow> <mrow><mo>.</mo><mo>.</mo><mo>.</mo></mrow> </msup></math></span>    <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>(</mo><mi>x</mi><mi>y</mi><mi>z</mi><mo>)</mo></mrow> <mrow><mo>.</mo><mo>.</mo></mrow> </msup></math></span>    <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>(</mo><mi>x</mi><mi>y</mi><mi>z</mi><mo>)</mo></mrow> <mo>.</mo> </msup></math></span>    <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>(</mo><mi>x</mi><mi>y</mi><mi>z</mi><mo>)</mo></mrow><mover accent="true"><mrow></mrow> <mo>&#728;</mo></mover></mrow></math></span>    <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>(</mo><mi>x</mi><mi>y</mi><mi>z</mi><mo>)</mo></mrow> <mo>&#8744;</mo> </msup></math></span>    <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>(</mo><mi>x</mi><mi>y</mi><mi>z</mi><mo>)</mo></mrow><mover accent="true"><mrow></mrow> <mo>^</mo></mover></mrow></math></span>    <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msup xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mo>(</mo><mi>x</mi><mi>y</mi><mi>z</mi><mo>)</mo></mrow> <mo>&#8764;</mo> </msup></math></span></p>
<pre class="latex-code"><span class="prenumber">612</span> \[ \overset{*}{X} &gt; \underset{*}{X}
<span class="prenumber">613</span>      \iff \sideset{}{'}\sum_{a,b \in \mathbf{R^*}}
<span class="prenumber">614</span>                        \overset{a}{\underset{b}{X}} = X \]
</pre>
<p class="nofirst noindent">Example 8-4-13. Commands <samp>\overset</samp> and <samp>\underset</samp>
are defined in the <span class="sansserif">amsmath.plt</span> file, they produce a <tt class="txt">&lt;munder&gt;</tt> or
<tt class="txt">&lt;mover&gt;</tt> element.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mover><mi>X</mi> <mo>*</mo></mover><mo>&gt;</mo><munder><mi>X</mi> <mo>*</mo></munder><mo>&#8660;</mo><munder><mmultiscripts><mo>&#8721;</mo><none></none><mo>'</mo></mmultiscripts> <mrow><mi>a</mi><mo>,</mo><mi>b</mi><mo>&#8712;</mo><msup><mi mathvariant="bold">R</mi> <mo>*</mo> </msup></mrow> </munder><mover><munder><mi>X</mi> <mi>b</mi></munder> <mi>a</mi></mover><mo>=</mo><mi>X</mi></mrow></math></div>
<pre class="latex-code"><span class="prenumber">615</span> \[ \sideset{_{i = 1}^n}{_{j = 2}^m}\prod_{k &gt; 1}  \mathcal{T}_{i, j}^k \]
</pre>
<p class="nofirst noindent">Example 8-4-14.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><munder><mmultiscripts><mo>&#8719;</mo><mrow><mi>j</mi><mo>=</mo><mn>2</mn></mrow><mi>m</mi><mprescripts></mprescripts><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>n</mi></mmultiscripts> <mrow><mi>k</mi><mo>&gt;</mo><mn>1</mn></mrow> </munder><msubsup><mi mathvariant="script">T</mi> <mrow><mi>i</mi><mo>,</mo><mi>j</mi></mrow> <mi>k</mi> </msubsup></mrow></math></div>

<h2 id="uid97">3.5. Variable symbol commands</h2>
<pre class="latex-code"><span class="prenumber">616</span> A series $H_1, H_2, \dots, H_n$, a sum
<span class="prenumber">617</span> $H_1 + H_2 + \dots + H_n$, an orthogonal product
<span class="prenumber">618</span> $H_1 \times H_2 \times \dots \times H_n$.
<span class="prenumber">619</span> A series $H_1, H_2, \dotsc\,$, a sum
<span class="prenumber">620</span> $H_1 + H_2 + \dotsb\,$, an orthogonal product
<span class="prenumber">621</span> $H_1 \times H_2 \times \dotsm\,$, and an infinite
<span class="prenumber">622</span> integral:   \[ \int_{H_1} \int_{H_2} \dotsi \;  {-\Gamma}\, d\Theta \]
</pre>
<p>Example 8-5-1.
A series <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>H</mi> <mn>1</mn> </msub><mo>,</mo><msub><mi>H</mi> <mn>2</mn> </msub><mo>,</mo><mo>&#8943;</mo><mo>,</mo><msub><mi>H</mi> <mi>n</mi> </msub></mrow></math></span>, a sum
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>H</mi> <mn>1</mn> </msub><mo>+</mo><msub><mi>H</mi> <mn>2</mn> </msub><mo>+</mo><mo>&#8943;</mo><mo>+</mo><msub><mi>H</mi> <mi>n</mi> </msub></mrow></math></span>, an orthogonal product
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>H</mi> <mn>1</mn> </msub><mo>×</mo><msub><mi>H</mi> <mn>2</mn> </msub><mo>×</mo><mo>&#8943;</mo><mo>×</mo><msub><mi>H</mi> <mi>n</mi> </msub></mrow></math></span>.</p>
<p>Example 8-5-2.
A series <span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>H</mi> <mn>1</mn> </msub><mo>,</mo><msub><mi>H</mi> <mn>2</mn> </msub><mo>,</mo><mo>&#8943;</mo><mspace width="0.166667em"></mspace></mrow></math></span>, a sum
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>H</mi> <mn>1</mn> </msub><mo>+</mo><msub><mi>H</mi> <mn>2</mn> </msub><mo>+</mo><mo>&#8943;</mo><mspace width="0.166667em"></mspace></mrow></math></span>, an orthogonal product
<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mi>H</mi> <mn>1</mn> </msub><mo>×</mo><msub><mi>H</mi> <mn>2</mn> </msub><mo>×</mo><mo>&#8943;</mo><mspace width="0.166667em"></mspace></mrow></math></span>, and an infinite
integral:</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mo>&#8747;</mo> <msub><mi>H</mi> <mn>1</mn> </msub> </msub><msub><mo>&#8747;</mo> <msub><mi>H</mi> <mn>2</mn> </msub> </msub><mo>&#8943;</mo><mspace width="0.277778em"></mspace><mrow><mo>-</mo><mi>&#915;</mi></mrow><mspace width="0.166667em"></mspace><mi>d</mi><mi>&#920;</mi></mrow></math></div>
<pre class="latex-code"><span class="prenumber">623</span> \begin{align*}
<span class="prenumber">624</span> \widehat  {\psi_\delta(t) E_t h} &amp;= \widetilde   {\psi_\delta(t) E_t h}    \\
<span class="prenumber">625</span> \overline  {\psi_\delta(t) E_t h}&amp;= \underline   {\psi_\delta(t) E_t h}    \\
<span class="prenumber">626</span> \overbrace      {\psi_\delta(t) E_t h}&amp;= \underbrace  {\psi_\delta(t) E_t h}
<span class="prenumber">627</span> &amp; &amp; \text{Do not change style}            \\
<span class="prenumber">628</span> \overrightarrow {\psi_\delta(t) E_t h}&amp;= \overleftarrow {\psi_\delta(t) E_t h}
<span class="prenumber">629</span> &amp; &amp;   \text{Do not change style}     \\[-3pt]
<span class="prenumber">630</span> &amp; &amp; &amp; \text{without \textsf{amsmath}}     \\
<span class="prenumber">631</span> \underrightarrow  {\psi_\delta(t) E_t h}
<span class="prenumber">632</span> &amp;= \underleftarrow  {\psi_\delta(t) E_t h}
<span class="prenumber">633</span> &amp; &amp; \text{Do need \textsf{amsmath}}       \\
<span class="prenumber">634</span> \overleftrightarrow {\psi_\delta(t) E_t h}
<span class="prenumber">635</span> &amp;=\underleftrightarrow{\psi_\delta(t) E_t h}
<span class="prenumber">636</span> &amp; &amp; \text{Do need \textsf{amsmath}}
<span class="prenumber">637</span> \end{align*}
</pre>
<p>Example 8-5-3</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd columnalign="right"><mover accent="true"><mrow><msub><mi>&#968;</mi> <mi>&#948;</mi> </msub><mrow><mo>(</mo><mi>t</mi><mo>)</mo></mrow><msub><mi>E</mi> <mi>t</mi> </msub><mi>h</mi></mrow> <mo>^</mo></mover></mtd><mtd columnalign="left"><mrow><mo>=</mo><mover accent="true"><mrow><msub><mi>&#968;</mi> <mi>&#948;</mi> </msub><mrow><mo>(</mo><mi>t</mi><mo>)</mo></mrow><msub><mi>E</mi> <mi>t</mi> </msub><mi>h</mi></mrow> <mo>&#732;</mo></mover></mrow></mtd></mtr><mtr><mtd columnalign="right"><mover><mrow><msub><mi>&#968;</mi> <mi>&#948;</mi> </msub><mrow><mo>(</mo><mi>t</mi><mo>)</mo></mrow><msub><mi>E</mi> <mi>t</mi> </msub><mi>h</mi></mrow> <mo>¯</mo></mover></mtd><mtd columnalign="left"><mrow><mo>=</mo><munder><mrow><msub><mi>&#968;</mi> <mi>&#948;</mi> </msub><mrow><mo>(</mo><mi>t</mi><mo>)</mo></mrow><msub><mi>E</mi> <mi>t</mi> </msub><mi>h</mi></mrow> <mo>&#818;</mo></munder></mrow></mtd></mtr><mtr><mtd columnalign="right"><mover accent="true"><mrow><msub><mi>&#968;</mi> <mi>&#948;</mi> </msub><mrow><mo>(</mo><mi>t</mi><mo>)</mo></mrow><msub><mi>E</mi> <mi>t</mi> </msub><mi>h</mi></mrow> <mo>&#65079;</mo></mover></mtd><mtd columnalign="left"><mrow><mo>=</mo><munder accentunder="true"><mrow><msub><mi>&#968;</mi> <mi>&#948;</mi> </msub><mrow><mo>(</mo><mi>t</mi><mo>)</mo></mrow><msub><mi>E</mi> <mi>t</mi> </msub><mi>h</mi></mrow> <mo>&#65080;</mo></munder></mrow></mtd><mtd></mtd><mtd columnalign="left"><mrow><mtext>Do</mtext><mspace width="4.pt"></mspace><mtext>not</mtext><mspace width="4.pt"></mspace><mtext>change</mtext><mspace width="4.pt"></mspace><mtext>style</mtext></mrow></mtd></mtr><mtr><mtd columnalign="right"><mover accent="true"><mrow><msub><mi>&#968;</mi> <mi>&#948;</mi> </msub><mrow><mo>(</mo><mi>t</mi><mo>)</mo></mrow><msub><mi>E</mi> <mi>t</mi> </msub><mi>h</mi></mrow> <mo>&#8594;</mo></mover></mtd><mtd columnalign="left"><mrow><mo>=</mo><mover accent="true"><mrow><msub><mi>&#968;</mi> <mi>&#948;</mi> </msub><mrow><mo>(</mo><mi>t</mi><mo>)</mo></mrow><msub><mi>E</mi> <mi>t</mi> </msub><mi>h</mi></mrow> <mo>&#8592;</mo></mover></mrow></mtd><mtd></mtd><mtd columnalign="left"><mrow><mtext>Do</mtext><mspace width="4.pt"></mspace><mtext>not</mtext><mspace width="4.pt"></mspace><mtext>change</mtext><mspace width="4.pt"></mspace><mtext>style</mtext></mrow></mtd></mtr><mtr><mtd></mtd><mtd></mtd><mtd></mtd><mtd columnalign="left"><mrow><mtext>without</mtext><mspace width="4.pt"></mspace><mtext mathvariant="sans-serif">amsmath</mtext></mrow></mtd></mtr><mtr><mtd columnalign="right"><munder accentunder="true"><mrow><msub><mi>&#968;</mi> <mi>&#948;</mi> </msub><mrow><mo>(</mo><mi>t</mi><mo>)</mo></mrow><msub><mi>E</mi> <mi>t</mi> </msub><mi>h</mi></mrow> <mo>&#8594;</mo></munder></mtd><mtd columnalign="left"><mrow><mo>=</mo><munder accentunder="true"><mrow><msub><mi>&#968;</mi> <mi>&#948;</mi> </msub><mrow><mo>(</mo><mi>t</mi><mo>)</mo></mrow><msub><mi>E</mi> <mi>t</mi> </msub><mi>h</mi></mrow> <mo>&#8592;</mo></munder></mrow></mtd><mtd></mtd><mtd columnalign="left"><mrow><mtext>Do</mtext><mspace width="4.pt"></mspace><mtext>need</mtext><mspace width="4.pt"></mspace><mtext mathvariant="sans-serif">amsmath</mtext></mrow></mtd></mtr><mtr><mtd columnalign="right"><mover accent="true"><mrow><msub><mi>&#968;</mi> <mi>&#948;</mi> </msub><mrow><mo>(</mo><mi>t</mi><mo>)</mo></mrow><msub><mi>E</mi> <mi>t</mi> </msub><mi>h</mi></mrow> <mo>&#8596;</mo></mover></mtd><mtd columnalign="left"><mrow><mo>=</mo><munder accentunder="true"><mrow><msub><mi>&#968;</mi> <mi>&#948;</mi> </msub><mrow><mo>(</mo><mi>t</mi><mo>)</mo></mrow><msub><mi>E</mi> <mi>t</mi> </msub><mi>h</mi></mrow> <mo>&#8596;</mo></munder></mrow></mtd><mtd></mtd><mtd columnalign="left"><mrow><mtext>Do</mtext><mspace width="4.pt"></mspace><mtext>need</mtext><mspace width="4.pt"></mspace><mtext mathvariant="sans-serif">amsmath</mtext></mrow></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">638</span> \[   \sqrtsign{1 + \sqrtsign{1 + \sqrtsign{1 +
<span class="prenumber">639</span>       \sqrtsign{1 + \sqrtsign{1 + \sqrtsign{1 + x}}}}}} \]
</pre>
<p class="nofirst noindent">Example 8-5-4</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><msqrt xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mn>1</mn><mo>+</mo><msqrt><mrow><mn>1</mn><mo>+</mo><msqrt><mrow><mn>1</mn><mo>+</mo><msqrt><mrow><mn>1</mn><mo>+</mo><msqrt><mrow><mn>1</mn><mo>+</mo><msqrt><mrow><mn>1</mn><mo>+</mo><mi>x</mi></mrow></msqrt></mrow></msqrt></mrow></msqrt></mrow></msqrt></mrow></msqrt></mrow></msqrt></math></div>
<div class="hc"><table align="center" style="caption-side:bottom; border-collapse: collapse; border-width:1px;" id="uid98"><caption><strong>Table 1. </strong>Vertically extensible symbols</caption><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>(</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom><mo>)</mo></mrow></math></span></td>
<td style="text-align:left;"><samp>( )</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>{</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom><mo>}</mo></mrow></math></span></td>
<td style="text-align:left;"><samp>\{</samp><samp>\}</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8741;</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom><mo>&#8741;</mo></mrow></math></span></td>
<td style="text-align:left;"><samp>\lVert</samp><samp>\rVert</samp></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#9001;</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom><mo>&#9002;</mo></mrow></math></span></td>
<td style="text-align:left;"><samp>\langle</samp><samp>\rangle</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>{</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom><mo>}</mo></mrow></math></span></td>
<td style="text-align:left;"><samp>\lbrace</samp><samp>\rbrace</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>|</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom><mo>|</mo></mrow></math></span></td>
<td style="text-align:left;"><samp>\lvert</samp><samp>\rvert</samp></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#12308;</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom><mo>&#12309;</mo></mrow></math></span></td>
<td style="text-align:left;"><samp>\lgroup</samp><samp>\rgroup</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>[</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom><mo>]</mo></mrow></math></span></td>
<td style="text-align:left;"><samp>[ ]</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>|</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom></mrow></math></span></td>
<td style="text-align:left;"><samp>|</samp></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#9136;</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom><mo>&#9137;</mo></mrow></math></span></td>
<td style="text-align:left;"><samp>\lmoustache</samp><samp>\rmoustache</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>[</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom><mo>]</mo></mrow></math></span></td>
<td style="text-align:left;"><samp>\lbrack</samp><samp>\rbrack</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>|</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom></mrow></math></span></td>
<td style="text-align:left;"><samp>\vert</samp></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8659;</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom></mrow></math></span></td>
<td style="text-align:left;"><samp>\Downarrow</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8968;</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom><mo>&#8969;</mo></mrow></math></span></td>
<td style="text-align:left;"><samp>\lceil</samp><samp>\rceil</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>|</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom></mrow></math></span></td>
<td style="text-align:left;"><samp>\arrowvert</samp></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8657;</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom></mrow></math></span></td>
<td style="text-align:left;"><samp>\Uparrow</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8970;</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom><mo>&#8971;</mo></mrow></math></span></td>
<td style="text-align:left;"><samp>\lfloor</samp><samp>\rfloor</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>|</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom></mrow></math></span></td>
<td style="text-align:left;"><samp>\bracevert</samp></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8661;</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom></mrow></math></span></td>
<td style="text-align:left;"><samp>\Updownarrow</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#12314;</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom><mo>&#12315;</mo></mrow></math></span></td>
<td style="text-align:left;"><samp>\llbracket</samp><samp>\rrbracket</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8741;</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom></mrow></math></span></td>
<td style="text-align:left;"><samp>\Arrowvert</samp></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8595;</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom></mrow></math></span></td>
<td style="text-align:left;"><samp>\downarrow</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>/</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom></mrow></math></span></td>
<td style="text-align:left;"><samp>/</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8741;</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom></mrow></math></span></td>
<td style="text-align:left;"><samp>\|</samp></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8593;</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom></mrow></math></span></td>
<td style="text-align:left;"><samp>\uparrow</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8726;</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom></mrow></math></span></td>
<td style="text-align:left;"><samp>\backslash</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8741;</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom></mrow></math></span></td>
<td style="text-align:left;"><samp>\Vert</samp></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mrow xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo>&#8597;</mo><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom></mrow></math></span></td>
<td style="text-align:left;"><samp>\updownarrow</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mphantom xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom></math></span></td>
<td style="text-align:left;"><samp>.</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><msqrt xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mpadded height="20pt" width="0pt"><mo>(</mo></mpadded></mphantom><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace><mspace width="3.33333pt"></mspace></mrow></msqrt></math></span></td>
<td style="text-align:left;"><samp>\sqrtsign</samp></td>
</tr></table></div>

<h2 id="uid99">3.6. Words in mathematics</h2>
<div class="hc"><table align="center" style="caption-side:bottom; border-collapse: collapse; border-width:1px;" id="uid100"><caption><strong>Table 2. </strong>Predefined operators and functions</caption><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">arccos</mo></math></span></td>
<td style="text-align:left;"><samp>\arccos</samp></td>
<td style="text-align:center;">v<span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">arcsin</mo></math></span></td>
<td style="text-align:left;"><samp>\arcsin</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">arctan</mo></math></span></td>
<td style="text-align:left;"><samp>\arctan</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">arg</mo></math></span></td>
<td style="text-align:left;"><samp>\arg</samp></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">cos</mo></math></span></td>
<td style="text-align:left;"><samp>\cos</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">cosh</mo></math></span></td>
<td style="text-align:left;"><samp>\cosh</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">cot</mo></math></span></td>
<td style="text-align:left;"><samp>\cot</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">coth</mo></math></span></td>
<td style="text-align:left;"><samp>\coth</samp></td>
<td></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">csc</mo></math></span></td>
<td style="text-align:left;"><samp>\csc</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">deg</mo></math></span></td>
<td style="text-align:left;"><samp>\deg</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" movablelimits="true" form="prefix">det</mo></math></span></td>
<td style="text-align:left;"><samp>\det</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">dim</mo></math></span></td>
<td style="text-align:left;"><samp>\dim</samp></td>
<td></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">exp</mo></math></span></td>
<td style="text-align:left;"><samp>\exp</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" movablelimits="true" form="prefix">gcd</mo></math></span></td>
<td style="text-align:left;"><samp>\gcd</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">hom</mo></math></span></td>
<td style="text-align:left;"><samp>\hom</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" movablelimits="true" form="prefix">inf</mo></math></span></td>
<td style="text-align:left;"><samp>\inf</samp></td>
<td></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" movablelimits="true" form="prefix">inj lim</mo></math></span></td>
<td style="text-align:left;"><samp>\injlim</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">ker</mo></math></span></td>
<td style="text-align:left;"><samp>\ker</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">lg</mo></math></span></td>
<td style="text-align:left;"><samp>\lg</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" movablelimits="true" form="prefix">lim</mo></math></span></td>
<td style="text-align:left;"><samp>\lim</samp></td>
<td></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" movablelimits="true" form="prefix">lim inf</mo></math></span></td>
<td style="text-align:left;"><samp>\liminf</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" movablelimits="true" form="prefix">lim sup</mo></math></span></td>
<td style="text-align:left;"><samp>\limsup</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">ln</mo></math></span></td>
<td style="text-align:left;"><samp>\ln</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">log</mo></math></span></td>
<td style="text-align:left;"><samp>\log</samp></td>
<td></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" movablelimits="true" form="prefix">max</mo></math></span></td>
<td style="text-align:left;"><samp>\max</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" movablelimits="true" form="prefix">min</mo></math></span></td>
<td style="text-align:left;"><samp>\min</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">Pr</mo></math></span></td>
<td style="text-align:left;"><samp>\Pr</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" movablelimits="true" form="prefix">proj lim</mo></math></span></td>
<td style="text-align:left;"><samp>\projlim</samp></td>
<td></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">sec</mo></math></span></td>
<td style="text-align:left;"><samp>\sec</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">sin</mo></math></span></td>
<td style="text-align:left;"><samp>\sin</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">sinh</mo></math></span></td>
<td style="text-align:left;"><samp>\sinh</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" movablelimits="true" form="prefix">sup</mo></math></span></td>
<td style="text-align:left;"><samp>\sup</samp></td>
<td></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">tan</mo></math></span></td>
<td style="text-align:left;"><samp>\tan</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mo xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" form="prefix">tanh</mo></math></span></td>
<td style="text-align:left;"><samp>\tanh</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munder xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" accentunder="true"><mo movablelimits="false">lim</mo> <mo>&#8594;</mo></munder></math></span></td>
<td style="text-align:left;"><samp>\varinjlim</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munder xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo movablelimits="false">lim</mo> <mo>&#818;</mo></munder></math></span></td>
<td style="text-align:left;"><samp>\varliminf</samp></td>
<td></td>
</tr><tr><td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mover xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML"><mo movablelimits="false">lim</mo> <mo>¯</mo></mover></math></span></td>
<td style="text-align:left;"><samp>\varlimsup</samp></td>
<td style="text-align:center;"><span class="math"><math xmlns="http://www.w3.org/1998/Math/MathML" overflow="scroll"><munder xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" accentunder="true"><mo movablelimits="false">lim</mo> <mo>&#8592;</mo></munder></math></span></td>
<td style="text-align:left;"><samp>\varprojlim</samp></td>
</tr></table></div>
<pre class="latex-code"><span class="prenumber">640</span> \begin{gather}
<span class="prenumber">641</span>   \text{Also, if } \Delta_{\text{max up}}
<span class="prenumber">642</span>            = \Delta_{\text{min down}} \notag \\
<span class="prenumber">643</span>   \text{(for all ups and downs) then} \notag \\
<span class="prenumber">644</span>   \Delta_{\text{sum of ups}}
<span class="prenumber">645</span>            = \Delta_{\text{sum of downs}}
<span class="prenumber">646</span> \end{gather}
</pre>
<p class="nofirst noindent">Example 8-6-1</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd><mrow><mtext>Also,</mtext><mspace width="4.pt"></mspace><mtext>if</mtext><mspace width="4.pt"></mspace><msub><mi>&#916;</mi> <mrow><mtext>max</mtext><mspace width="4.pt"></mspace><mtext>up</mtext></mrow> </msub><mo>=</mo><msub><mi>&#916;</mi> <mrow><mtext>min</mtext><mspace width="4.pt"></mspace><mtext>down</mtext></mrow> </msub></mrow></mtd></mtr><mtr><mtd><mrow><mtext>(for</mtext><mspace width="4.pt"></mspace><mtext>all</mtext><mspace width="4.pt"></mspace><mtext>ups</mtext><mspace width="4.pt"></mspace><mtext>and</mtext><mspace width="4.pt"></mspace><mtext>downs)</mtext><mspace width="4.pt"></mspace><mtext>then</mtext></mrow></mtd></mtr><mtr><mtd><mrow><msub><mi>&#916;</mi> <mrow><mtext>sum</mtext><mspace width="4.pt"></mspace><mtext>of</mtext><mspace width="4.pt"></mspace><mtext>ups</mtext></mrow> </msub><mo>=</mo><msub><mi>&#916;</mi> <mrow><mtext>sum</mtext><mspace width="4.pt"></mspace><mtext>of</mtext><mspace width="4.pt"></mspace><mtext>downs</mtext></mrow> </msub></mrow></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">647</span> \newcommand\abs[1]{\lvert#1\rvert}
<span class="prenumber">648</span> \setlength\mathindent{0pt}
<span class="prenumber">649</span> \begin{gather*}
<span class="prenumber">650</span>   \lim_{x \rightarrow 0} \frac{ \sin^2(x) }{ x^2 } = 1 \\
<span class="prenumber">651</span>   \varliminf_{n \rightarrow \infty}
<span class="prenumber">652</span>     \abs{a_{n+1}} / \abs{a_n} = 0                      \\
<span class="prenumber">653</span>  %{ JG
<span class="prenumber">654</span>  \varinjlim (m_i^\lambda \cdot M)^*
<span class="prenumber">655</span>   %} JG
<span class="prenumber">656</span> \le \varprojlim_{A/p \rightarrow \lambda(A)}A_p \le 0
<span class="prenumber">657</span> \end{gather*}
</pre>
<p class="nofirst noindent">Example 8-6-2. Braces uncommented out for the last equation.</p>
<div class="mathdisplay"><math xmlns="http://www.w3.org/1998/Math/MathML" mode="display" overflow="scroll"><mtable xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true"><mtr><mtd><mrow><munder><mo movablelimits="true" form="prefix">lim</mo> <mrow><mi>x</mi><mo>&#8594;</mo><mn>0</mn></mrow> </munder><mfrac><mrow><msup><mo form="prefix">sin</mo> <mn>2</mn> </msup><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow></mrow> <msup><mi>x</mi> <mn>2</mn> </msup></mfrac><mo>=</mo><mn>1</mn></mrow></mtd></mtr><mtr><mtd><mrow><munder><munder><mo movablelimits="false">lim</mo> <mo>&#818;</mo></munder> <mrow><mi>n</mi><mo>&#8594;</mo><mi>&#8734;</mi></mrow> </munder><mrow><mo>|</mo><msub><mi>a</mi> <mrow><mi>n</mi><mo>+</mo><mn>1</mn></mrow> </msub><mo>|</mo></mrow><mo>/</mo><mrow><mo>|</mo><msub><mi>a</mi> <mi>n</mi> </msub><mo>|</mo></mrow><mo>=</mo><mn>0</mn></mrow></mtd></mtr><mtr><mtd><mrow><munder accentunder="true"><mo movablelimits="false">lim</mo> <mo>&#8594;</mo></munder><msup><mrow><mo>(</mo><msubsup><mi>m</mi> <mi>i</mi> <mi>&#955;</mi> </msubsup><mo>·</mo><mi>M</mi><mo>)</mo></mrow> <mo>*</mo> </msup><mo>&#8804;</mo><munder><munder accentunder="true"><mo movablelimits="false">lim</mo> <mo>&#8592;</mo></munder> <mrow><mi>A</mi><mo>/</mo><mi>p</mi><mo>&#8594;</mo><mi>&#955;</mi><mo>(</mo><mi>A</mi><mo>)</mo></mrow> </munder><msub><mi>A</mi> <mi>p</mi> </msub><mo>&#8804;</mo><mn>0</mn></mrow></mtd></mtr><mtr><mtd><mrow><mrow><munder accentunder="true"><mo movablelimits="false">lim</mo> <mo>&#8594;</mo></munder><msup><mrow><mo>(</mo><msubsup><mi>m</mi> <mi>i</mi> <mi>&#955;</mi> </msubsup><mo>·</mo><mi>M</mi><mo>)</mo></mrow> <mo>*</mo> </msup></mrow><mo>&#8804;</mo><munder><munder accentunder="true"><mo movablelimits="false">lim</mo> <mo>&#8592;</mo></munder> <mrow><mi>A</mi><mo>/</mo><mi>p</mi><mo>&#8594;</mo><mi>&#955;</mi><mo>(</mo><mi>A</mi><mo>)</mo></mrow> </munder><msub><mi>A</mi> <mi>p</mi> </msub><mo>&#8804;</mo><mn>0</mn></mrow></mtd></mtr></mtable></math></div>
<pre class="latex-code"><span class="prenumber">658</span> \let\abs\relax
<span class="prenumber">659</span> \DeclareMathOperator \meas    {meas}
<span class="prenumber">660</span> \DeclareMathOperator*\esssup  {ess \, sup}
<span class="prenumber">661</span> \DeclareMathOperator*\supminus{sup - minus*}
<span class="prenumber">662</span> \newcommand\abs [1]{\lvert#1\rvert}
<span class="prenumber">663</span> \newcommand\norm[1]{\lVert#1\rVert}
<span class="prenumber">664</span> \begin{gather*}
<span class="prenumber">665</span>   \norm{f}_\infty = \esssup_{x \in R^n} \abs{f(x)}  \\
<span class="prenumber">666</span>   \norm{f}_\infty = \smash{\esssup_{x \in R^n}} \abs{f(x)}  \\
<span class="prenumber">667</span>   \meas_1 \{ u \in R_+^1 \colon f^*(u)&gt;\alpha \} =
<span class="prenumber">668</span>    \esssup_{x \in R^i} \; \meas_i
<span class="prenumber">669</span>      \{ u \in R^n \colon \abs{f(u)} \g
