Created
June 18, 2018 03:12
-
-
Save marekyggdrasil/3170a1cb5967ea4a82b6f2363ba2da95 to your computer and use it in GitHub Desktop.
File that tests functionality of integral MathML parser for issue: https://github.com/allofphysicsgraph/graph/issues/7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tools.ContentMathML import mml2sympy | |
from lxml import etree | |
xml = """ | |
<apply> | |
<int/> | |
<bvar><ci>x</ci></bvar> | |
<lowlimit><cn>a</cn></lowlimit> | |
<uplimit><ci>b</ci></uplimit> | |
<apply> | |
<ci>f</ci> | |
<ci>x</ci> | |
</apply> | |
</apply> | |
""" | |
print mml2sympy(etree.XML(xml)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment