Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Wiki
  • Integral Examples

Integral Examples · Changes

Page history
Updated Integral Examples (markdown) authored Apr 21, 2015 by Volker Sorge's avatar Volker Sorge
Hide whitespace changes
Inline Side-by-side
Integral-Examples.md
View page @ 5520c6d6
# Integral Examples
## Example 1
Original MathML:
```html
<math>
<mi>∫</mi>
<mi>a</mi>
<mo>+</mo>
<mi>b</mi>
<mi>dx</mi>
</math>
```
Semantic Tree:
```html
<stree>
<integral role="integral" id="6">
<children>
<largeop role="integral" id="0">∫</largeop>
<infixop role="addition" id="5">
+
<content>
<operator role="addition" id="2">+</operator>
</content>
<children>
<identifier role="latinletter" font="italic" id="1">a</identifier>
<identifier role="latinletter" font="italic" id="3">b</identifier>
</children>
</infixop>
<identifier role="unknown" font="normal" id="4">dx</identifier>
</children>
</integral>
</stree>
```
Semantically enriched MathML:
```html
<math type="integral" role="integral" id="6" children="0,5,4">
<mi type="largeop" role="integral" id="0" parent="6">∫</mi>
<mrow type="infixop" role="addition" id="5" children="1,3" content="2" parent="6">
<mi type="identifier" role="latinletter" id="1" parent="5">a</mi>
<mo type="operator" role="addition" id="2" operator="infixop,+" parent="5">+</mo>
<mi type="identifier" role="latinletter" id="3" parent="5">b</mi>
</mrow>
<mi type="identifier" role="unknown" id="4" parent="6">dx</mi>
</math>
```
## Example 2
Original MathML:
```html
<math>
<mi>∫</mi>
<mi>∫</mi>
<mi>∫</mi>
<mi>dx</mi>
<mi>dy</mi>
<mi>dz</mi>
</math>
```
Semantic Tree:
```html
<stree>
<integral role="integral" id="9">
<children>
<largeop role="integral" id="0">∫</largeop>
<integral role="integral" id="8">
<children>
<largeop role="integral" id="1">∫</largeop>
<integral role="integral" id="7">
<children>
<largeop role="integral" id="2">∫</largeop>
<empty role="unknown" id="6"/>
<identifier role="unknown" font="normal" id="3">dx</identifier>
</children>
</integral>
<identifier role="unknown" font="normal" id="4">dy</identifier>
</children>
</integral>
<identifier role="unknown" font="normal" id="5">dz</identifier>
</children>
</integral>
</stree>
```
Semantically enriched MathML:
```html
<math type="integral" role="integral" id="9" children="0,8,5">
<mi type="largeop" role="integral" id="0" parent="9">∫</mi>
<mrow type="integral" role="integral" id="8" children="1,7,4" parent="9">
<mi type="largeop" role="integral" id="1" parent="8">∫</mi>
<mrow type="integral" role="integral" id="7" children="2,6,3" parent="8">
<mi type="largeop" role="integral" id="2" parent="7">∫</mi>
<mrow type="empty" role="unknown" id="6" children="" parent="7"/>
<mi type="identifier" role="unknown" id="3" parent="7">dx</mi>
</mrow>
<mi type="identifier" role="unknown" id="4" parent="8">dy</mi>
</mrow>
<mi type="identifier" role="unknown" id="5" parent="9">dz</mi>
</math>
```
## Example 3
Original MathML:
```html
<math>
......
Clone repository

MathJax Wiki

  • Contributing
    • Contributor License Agreement etc
    • Quick guide to translating mathjax
  • Development
    • Development Process
      • Release Process Checklist
      • Documentation Update Process
      • Source Control Policies
      • GitHub
    • Design Documents
      • MathJax Roadmap
      • CDN Hosting
        • CDN requirements
        • CDN Hosting at Google Cloud Storage
      • Performance Discussion
      • Profiling and Diagnostics Tools
      • Documentation generation guide
      • Testing
        • Platforms supported
        • Test Machines
  • MathJax web presence