gecko-dev/layout/mathml/tests/stretchy.xml

151 строка
2.8 KiB
XML

<?xml version="1.0"?>
<?xml-stylesheet href="mathml.css" type="text/css"?>
<!--
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Mozilla MathML Project.
*
* The Initial Developer of the Original Code is The University of
* Queensland. Portions created by The University of Queensland are
* Copyright (C) 1999 The University of Queensland. All
* Rights Reserved.
*
* Contributor(s):
* Roger B. Sidje <rbs@maths.uq.edu.au>
-->
<math xmlns="http://www.w3.org/Math/MathML">
<mn>Testing stretchy parentheses - NOT YET IMPLEMENTED</mn>
<mrow>
<mi>x</mi>
<mo>+</mo>
<mrow>
<mo>(</mo>
<mfrac linethickness="20">
<mi>a</mi>
<mi>b</mi>
</mfrac>
<mo stretchy="false">)</mo>
</mrow>
</mrow>
<mn>in binomial formulas</mn>
<mrow>
<mo>(</mo>
<mfrac linethickness="0">
<mi>n</mi>
<mi>p</mi>
</mfrac>
<mo>)</mo>
</mrow>
<mo>=</mo>
<mrow>
<mrow>
<mo>(</mo>
<mfrac linethickness="0">
<mrow><mi>n</mi><mo>-</mo><mn>1</mn></mrow>
<mi>p</mi>
</mfrac>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mrow>
<mo>(</mo>
<mfrac linethickness="0">
<mrow><mi>n</mi><mo>-</mo><mn>1</mn></mrow>
<mrow><mi>p</mi><mo>-</mo><mn>1</mn></mrow>
</mfrac>
<mo>)</mo>
</mrow>
<mo>;</mo>
</mrow>
<mrow>
<msup>
<mrow>
<mo>(</mo>
<mi>a</mi>
<mo>+</mo>
<mi>b</mi>
<mo>)</mo>
</mrow>
<mi>n</mi>
</msup>
<mo>=</mo>
<msup>
<mi>a</mi>
<mi>n</mi>
</msup>
<mo>+</mo>
<mrow>
<mrow>
<mo>(</mo>
<mfrac linethickness="0">
<mi>n</mi>
<mi>1</mi>
</mfrac>
<mo>)</mo>
</mrow>
<msup>
<mi>a</mi>
<mrow><mi>n</mi><mo>-</mo><mn>1</mn></mrow>
</msup>
<mi>b</mi>
</mrow>
<mo>+</mo>
<mo>...</mo>
<mo>+</mo>
<mrow>
<mrow>
<mo>(</mo>
<mfrac linethickness="0">
<mi>n</mi>
<mi>p</mi>
</mfrac>
<mo>)</mo>
</mrow>
<msup>
<mi>a</mi>
<mrow><mi>n</mi><mo>-</mo><mi>p</mi></mrow>
</msup>
<msup>
<mi>b</mi>
<mi>p</mi>
</msup>
</mrow>
<mo>+</mo>
<mo>...</mo>
<mo>+</mo>
<msup>
<mi>b</mi>
<mi>n</mi>
</msup>
</mrow>
</math>