epubjs
Version:
Render ePub documents in the browser, across many devices
266 lines (248 loc) • 13 kB
HTML
<html xml:lang="en-us" lang="en-us" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="../css/commonltr.css"/>
<title>Re-visiting MathML torture tests</title>
<link type="text/css" rel="stylesheet" href="../css/epub.css"/>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
jax: ["input/TeX","input/MathML","output/SVG"],
extensions: ["tex2jax.js","mml2jax.js","MathEvents.js"],
TeX: {
extensions: ["noErrors.js","noUndefined.js","autoload-all.js"]
},
MathMenu: {
showRenderer: false
},
menuSettings: {
zoom: "Click"
},
messageStyle: "none"
});
</script>
<!-- <script type="text/javascript" src="../mathjax/MathJax.js"></script>-->
</head>
<body>
<p> Derived from <a href="http://www.w3.org/2008/02/MS4D_WS/Presentation/Opera/torture.xhtml">W3C Opera torture test</a>.</p>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><msup><mi>x</mi><mn>2</mn></msup><msup><mi>y</mi><mn>2</mn></msup></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><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></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mi>x</mi><mo>+</mo><msup><mi>y</mi><mrow><mfrac><mn>2</mn><mrow><mi>k</mi><mo>+</mo><mn>1</mn></mrow></mfrac></mrow></msup></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mfrac><mi>a</mi><mrow><mi>b</mi><mo>/</mo><mn>2</mn></mrow></mfrac></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><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><mrow><msub><mi>a</mi><mn>4</mn></msub></mrow></mfrac></mrow></mfrac></mrow></mfrac></mrow></mfrac></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mfenced><mrow><mfrac linethickness="0"><mi>n</mi><mrow><mi>k</mi><mo>/</mo><mn>2</mn></mrow></mfrac></mrow></mfenced></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mfenced><mrow><mfrac linethickness="0"><mi>p</mi><mn>2</mn></mfrac></mrow></mfenced><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><mfrac><mn>1</mn><mrow><mn>1</mn><mo>−</mo><msup><mi>x</mi><mn>2</mn></msup></mrow></mfrac></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><munder><mrow><munder><mo largeop="true">∑</mo><mrow><mn>0</mn><mo>≤</mo><mi>i</mi><mo>≤</mo><mi>m</mi></mrow></munder></mrow><mrow><mn>0</mn><mo><</mo><mi>j</mi><mo><</mo><mi>n</mi></mrow></munder><mi>P</mi><mo fence="true">(</mo><mi>i</mi><mo>,</mo><mi>j</mi><mo fence="true">)</mo></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><msup><mi>x</mi><mrow><mn>2</mn><mi>y</mi></mrow></msup></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><munderover><mo largeop="true">∑</mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>p</mi></munderover><munderover><mo largeop="true">∑</mo><mrow><mi>j</mi><mo>=</mo><mn>1</mn></mrow><mi>q</mi></munderover><munderover><mo largeop="true">∑</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></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><msqrt><mn>1</mn><mo>+</mo><mrow><msqrt><mn>1</mn><mo>+</mo><mrow><msqrt><mn>1</mn><mo>+</mo><mrow><msqrt><mn>1</mn><mo>+</mo><mrow><msqrt><mn>1</mn><mo>+</mo><mrow><msqrt><mn>1</mn><mo>+</mo><mrow><msqrt><mn>1</mn><mo>+</mo><mi>x</mi></msqrt></mrow></msqrt></mrow></msqrt></mrow></msqrt></mrow></msqrt></mrow></msqrt></mrow></msqrt></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mfenced><mrow><mfrac><mrow><msup><mo>∂</mo><mn>2</mn></msup></mrow><mrow><mo>∂</mo><msup><mi>x</mi><mn>2</mn></msup></mrow></mfrac><mo>+</mo><mfrac><mrow><msup><mo>∂</mo><mn>2</mn></msup></mrow><mrow><mo>∂</mo><msup><mi>y</mi><mn>2</mn></msup></mrow></mfrac></mrow></mfenced><msup><mrow><mo fence="true">|</mo><mo fence="true">(</mo><mi>x</mi><mo>+</mo><mi mathvariant="normal">i</mi><mi>y</mi><mo fence="true">)</mo><mo fence="true">|</mo></mrow><mn>2</mn></msup><mo>=</mo><mn>0</mn></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><msup><mn>2</mn><mrow><msup><mn>2</mn><mrow><msup><mn>2</mn><mi>x</mi></msup></mrow></msup></mrow></msup></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><munderover><mo largeop="true">∫</mo><mn>1</mn><mi>x</mi></munderover><mfrac><mi>dt</mi><mi>t</mi></mfrac></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><munder><mo largeop="true">∬</mo><mi>D</mi></munder><mi>dx</mi><mi>dy</mi></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mi>f</mi><mo fence="true">(</mo><mi>x</mi><mo fence="true">)</mo><mo>=</mo><mfenced open="{" close=""><mrow><mtable><mtr><mtd><mrow><mn>1</mn><mo>/</mo><mn>3</mn></mrow></mtd><mtd><mrow><mtext>if </mtext><mn>0</mn><mo>≤</mo><mi>x</mi><mo>≤</mo><mn>1</mn><mo>;</mo></mrow></mtd></mtr><mtr><mtd><mrow><mn>2</mn><mo>/</mo><mn>3</mn></mrow></mtd><mtd><mtext>if </mtext><mn>3</mn><mo>≤</mo><mi>x</mi><mo>≤</mo><mn>4</mn><mo>;</mo></mtd></mtr><mtr><mtd><mn>0</mn></mtd><mtd><mtext>elsewhere.</mtext></mtd></mtr></mtable></mrow></mfenced></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mover><mrow><mover><mrow><mi>x</mi><mo>+</mo><mo>⋯</mo><mo>+</mo><mi>x</mi></mrow><mo fence="true">⎴</mo></mover></mrow><mrow><mi>k</mi><mtext> times</mtext></mrow></mover></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><msub><mi>y</mi><mrow><msup><mi>x</mi><mn>2</mn></msup></mrow></msub></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><munder><mo largeop="true">∑</mo><mrow><mi>p</mi><mtext> prime</mtext></mrow></munder><mi>f</mi><mo fence="true">(</mo><mi>p</mi><mo fence="true">)</mo><mo>=</mo><munder><mo largeop="true">∫</mo><mrow><mi>t</mi><mo>></mo><mn>1</mn></mrow></munder><mi>f</mi><mo fence="true">(</mo><mi>t</mi><mo fence="true">)</mo><mi>d</mi><mi>π</mi><mo fence="true">(</mo><mi>t</mi><mo fence="true">)</mo></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mrow><mo>{</mo><munder><mrow><munder><mrow><mover><mrow><mover><mrow><mi>a</mi><mo>,</mo><mo>...</mo><mo>,</mo><mi>a</mi></mrow><mo fence="true">⎴</mo></mover></mrow><mrow><mi>k</mi><mi> a</mi><mtext>'s</mtext></mrow></mover><mo>,</mo><mover><mrow><mover><mrow><mi>b</mi><mo>,</mo><mo>...</mo><mo>,</mo><mi>b</mi></mrow><mo fence="true">⎴</mo></mover></mrow><mrow><mi mathvariant="normal">ℓ</mi><mi> b</mi><mtext>'s</mtext></mrow></mover></mrow><mo fence="true">⎵</mo></munder></mrow><mrow><mi>k</mi><mo>+</mo><mi mathvariant="normal">ℓ</mi><mtext> elements</mtext></mrow></munder><mo>}</mo></mrow></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mfenced open="(" close=")"><mrow><mtable><mtr><mtd><mrow><mfenced open="(" close=")"><mrow><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></mrow></mfenced></mrow></mtd><mtd><mrow><mfenced open="(" close=")"><mrow><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></mrow></mfenced></mrow></mtd></mtr><mtr><mtd><mn>0</mn></mtd><mtd><mrow><mfenced open="(" close=")"><mrow><mtable><mtr><mtd><mi>i</mi></mtd><mtd><mi>j</mi></mtd></mtr><mtr><mtd><mi>k</mi></mtd><mtd><mi>l</mi></mtd></mtr></mtable></mrow></mfenced></mrow></mtd></mtr></mtable></mrow></mfenced></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mo>det</mo>
<mfenced open="|" close="|">
<mrow>
<mtable>
<mtr>
<mtd>
<mrow>
<msub>
<mi>c</mi>
<mn>0</mn>
</msub>
</mrow>
</mtd>
<mtd>
<mrow>
<msub>
<mi>c</mi>
<mn>1</mn>
</msub>
</mrow>
</mtd>
<mtd>
<mrow>
<msub>
<mi>c</mi>
<mn>2</mn>
</msub>
</mrow>
</mtd>
<mtd>
<mo>⋯</mo>
</mtd>
<mtd>
<mrow>
<msub>
<mi>c</mi>
<mi>n</mi>
</msub>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd>
<mrow>
<msub>
<mi>c</mi>
<mn>1</mn>
</msub>
</mrow>
</mtd>
<mtd>
<mrow>
<msub>
<mi>c</mi>
<mn>2</mn>
</msub>
</mrow>
</mtd>
<mtd>
<mrow>
<msub>
<mi>c</mi>
<mn>3</mn>
</msub>
</mrow>
</mtd>
<mtd>
<mo>⋯</mo>
</mtd>
<mtd>
<mrow>
<msub>
<mi>c</mi>
<mrow>
<mi>n</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
</msub>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd>
<mrow>
<msub>
<mi>c</mi>
<mn>2</mn>
</msub>
</mrow>
</mtd>
<mtd>
<mrow>
<msub>
<mi>c</mi>
<mn>3</mn>
</msub>
</mrow>
</mtd>
<mtd>
<mrow>
<msub>
<mi>c</mi>
<mn>4</mn>
</msub>
</mrow>
</mtd>
<mtd>
<mo>⋯</mo>
</mtd>
<mtd>
<mrow>
<msub>
<mi>c</mi>
<mrow>
<mi>n</mi>
<mo>+</mo>
<mn>2</mn>
</mrow>
</msub>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd>
<mo>⋮</mo>
</mtd>
<mtd>
<mo>⋮</mo>
</mtd>
<mtd>
<mo>⋮</mo>
</mtd>
<mtd>
<mi> </mi>
</mtd>
<mtd>
<mo>⋮</mo>
</mtd>
</mtr>
<mtr>
<mtd>
<mrow>
<msub>
<mi>c</mi>
<mi>n</mi>
</msub>
</mrow>
</mtd>
<mtd>
<mrow>
<msub>
<mi>c</mi>
<mrow>
<mi>n</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
</msub>
</mrow>
</mtd>
<mtd>
<mrow>
<msub>
<mi>c</mi>
<mrow>
<mi>n</mi>
<mo>+</mo>
<mn>2</mn>
</mrow>
</msub>
</mrow>
</mtd>
<mtd>
<mo>⋯</mo>
</mtd>
<mtd>
<mrow>
<msub>
<mi>c</mi>
<mrow>
<mn>2</mn>
<mi>n</mi>
</mrow>
</msub>
</mrow>
</mtd>
</mtr>
</mtable>
</mrow>
</mfenced>
<mo>></mo>
<mn>0</mn>
</math><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><msub><mi>y</mi><mrow><msub><mi>x</mi><mn>2</mn></msub></mrow></msub></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><msubsup><mi>x</mi><mn>92</mn><mn>31415</mn></msubsup><mo>+</mo><mi>π</mi></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><msubsup><mi>x</mi><mrow><msubsup><mi>y</mi><mi>b</mi><mi>a</mi></msubsup></mrow><mrow><msubsup><mi>z</mi><mi>c</mi><mi>d</mi></msubsup></mrow></msubsup></math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><msubsup><mi>y</mi><mn>3</mn><mo>‴</mo></msubsup></math>
</body>
</html>