Sponsoring The Perl Toolchain Summit 2025: Help make this important event another success Learn more

<?xml version="1.0" encoding="UTF-8"?>
<?latexml class="article"?>
<?latexml RelaxNGSchema="LaTeXML"?>
<document xmlns="http://dlmf.nist.gov/LaTeXML">
<resource src="LaTeXML.css" type="text/css"/>
<resource src="ltx-article.css" type="text/css"/>
<title>Testing Simple Math Parsing</title>
<para xml:id="p1">
<p>Inline math <Math mode="inline" tex="a+b" text="a + b" xml:id="p1.m1">
<XMath>
<XMApp>
<XMTok meaning="plus" role="ADDOP">+</XMTok>
<XMTok font="italic" role="ID">a</XMTok>
<XMTok font="italic" role="ID">b</XMTok>
</XMApp>
</XMath>
</Math>.</p>
</para>
<para xml:id="p2">
<equation xml:id="S0.Ex1">
<Math mode="display" tex="a+b+123" text="a + b + 123" xml:id="S0.Ex1.m1">
<XMath>
<XMApp>
<XMTok meaning="plus" role="ADDOP">+</XMTok>
<XMTok font="italic" role="ID">a</XMTok>
<XMTok font="italic" role="ID">b</XMTok>
<XMTok meaning="123" role="NUMBER">123</XMTok>
</XMApp>
</XMath>
</Math>
</equation>
<equation xml:id="S0.Ex2">
<Math mode="display" tex="a+b+f(123)" text="a + b + f@(123)" xml:id="S0.Ex2.m1">
<XMath>
<XMApp>
<XMTok meaning="plus" role="ADDOP">+</XMTok>
<XMTok font="italic" role="ID">a</XMTok>
<XMTok font="italic" role="ID">b</XMTok>
<XMDual>
<XMApp>
<XMRef idref="S0.Ex2.m1.1"/>
<XMRef idref="S0.Ex2.m1.2"/>
</XMApp>
<XMApp>
<XMTok font="italic" role="FUNCTION" xml:id="S0.Ex2.m1.1">f</XMTok>
<XMWrap>
<XMTok role="OPEN" stretchy="false">(</XMTok>
<XMTok meaning="123" role="NUMBER" xml:id="S0.Ex2.m1.2">123</XMTok>
<XMTok role="CLOSE" stretchy="false">)</XMTok>
</XMWrap>
</XMApp>
</XMDual>
</XMApp>
</XMath>
</Math>
</equation>
</para>
<para xml:id="p3">
<equation xml:id="S0.Ex3">
<Math mode="display" tex="f_{D}f(a+b)" text="f _ D * f@(a + b)" xml:id="S0.Ex3.m1">
<XMath>
<XMApp>
<XMTok meaning="times" role="MULOP">⁢</XMTok>
<XMApp>
<XMTok role="SUBSCRIPTOP" scriptpos="post2"/>
<XMTok font="italic" role="ID">f</XMTok>
<XMTok font="italic" fontsize="70%" role="ID">D</XMTok>
</XMApp>
<XMDual>
<XMApp>
<XMRef idref="S0.Ex3.m1.1"/>
<XMRef idref="S0.Ex3.m1.2"/>
</XMApp>
<XMApp>
<XMTok font="italic" role="FUNCTION" xml:id="S0.Ex3.m1.1">f</XMTok>
<XMWrap>
<XMTok role="OPEN" stretchy="false">(</XMTok>
<XMApp xml:id="S0.Ex3.m1.2">
<XMTok meaning="plus" role="ADDOP">+</XMTok>
<XMTok font="italic" role="ID">a</XMTok>
<XMTok font="italic" role="ID">b</XMTok>
</XMApp>
<XMTok role="CLOSE" stretchy="false">)</XMTok>
</XMWrap>
</XMApp>
</XMDual>
</XMApp>
</XMath>
</Math>
</equation>
<equation xml:id="S0.Ex4">
<Math mode="display" tex="f_{1}(a+b)" text="f _ 1 * (a + b)" xml:id="S0.Ex4.m1">
<XMath>
<XMApp>
<XMTok meaning="times" role="MULOP">⁢</XMTok>
<XMApp>
<XMTok role="SUBSCRIPTOP" scriptpos="post2"/>
<XMTok font="italic" role="ID">f</XMTok>
<XMTok fontsize="70%" meaning="1" role="NUMBER">1</XMTok>
</XMApp>
<XMDual>
<XMRef idref="S0.Ex4.m1.1"/>
<XMWrap>
<XMTok role="OPEN" stretchy="false">(</XMTok>
<XMApp xml:id="S0.Ex4.m1.1">
<XMTok meaning="plus" role="ADDOP">+</XMTok>
<XMTok font="italic" role="ID">a</XMTok>
<XMTok font="italic" role="ID">b</XMTok>
</XMApp>
<XMTok role="CLOSE" stretchy="false">)</XMTok>
</XMWrap>
</XMDual>
</XMApp>
</XMath>
</Math>
</equation>
<equation xml:id="S0.Ex5">
<Math mode="display" tex="\hat{f}a" text="hat@(f) * a" xml:id="S0.Ex5.m1">
<XMath>
<XMApp>
<XMTok meaning="times" role="MULOP">⁢</XMTok>
<XMApp role="ID">
<XMTok name="hat" role="OVERACCENT" stretchy="false">^</XMTok>
<XMTok font="italic" role="FUNCTION">f</XMTok>
</XMApp>
<XMTok font="italic" role="ID">a</XMTok>
</XMApp>
</XMath>
</Math>
</equation>
</para>
<section labels="LABEL:sec:restricted" refnum="1" xml:id="S1">
<title><tag close=" ">1</tag>Restricted</title>
<para xml:id="S1.p1">
<equation xml:id="S1.Ex6">
<Math mode="display" tex="a(x)+b(x)+123" text="a@(x) + b@(x) + 123" xml:id="S1.Ex6.m1">
<XMath>
<XMApp>
<XMTok meaning="plus" role="ADDOP">+</XMTok>
<XMDual>
<XMApp>
<XMRef idref="S1.Ex6.m1.1"/>
<XMRef idref="S1.Ex6.m1.2"/>
</XMApp>
<XMApp>
<XMTok font="italic" role="FUNCTION" xml:id="S1.Ex6.m1.1">a</XMTok>
<XMWrap>
<XMTok role="OPEN" stretchy="false">(</XMTok>
<XMTok font="italic" role="ID" xml:id="S1.Ex6.m1.2">x</XMTok>
<XMTok role="CLOSE" stretchy="false">)</XMTok>
</XMWrap>
</XMApp>
</XMDual>
<XMDual>
<XMApp>
<XMRef idref="S1.Ex6.m1.3"/>
<XMRef idref="S1.Ex6.m1.4"/>
</XMApp>
<XMApp>
<XMTok font="italic" role="FUNCTION" xml:id="S1.Ex6.m1.3">b</XMTok>
<XMWrap>
<XMTok role="OPEN" stretchy="false">(</XMTok>
<XMTok font="italic" role="ID" xml:id="S1.Ex6.m1.4">x</XMTok>
<XMTok role="CLOSE" stretchy="false">)</XMTok>
</XMWrap>
</XMApp>
</XMDual>
<XMTok meaning="123" role="NUMBER">123</XMTok>
</XMApp>
</XMath>
</Math>
</equation>
</para>
</section>
</document>