ZVON > References > MathML Reference

Go to Standard
Element:piecewise
Attributes:class | id | other | style | xlink:href | xref |
Parents:apply | bvar | condition | declare | degree | domainofapplication | fn | interval | lambda | list | logbase | lowlimit | maction | math | matrix | matrixrow | menclose | merror | mfenced | mfrac | mlabeledtr | mmultiscripts | momentabout | mover | mpadded | mphantom | mroot | mrow | msqrt | mstyle | msub | msubsup | msup | mtable | mtd | mtr | munder | munderover | otherwise | piece | reln | semantics | set | uplimit | vector |
Children:otherwise | piece |

Examples:

XHTML documentMathML Source
Example from standard

<piecewise>
     <piece>
          <cn> 0 </cn>
          <apply>
               <lt/>
               <ci> x </ci>
               <cn> 0 </cn>
          </apply>
     </piece>
     <otherwise>
          <ci> x </ci>
     </otherwise>
</piecewise>

<apply>
     <eq/>
     <apply>
          <abs/>
          <ci> x </ci>
     </apply>
     <piecewise>
          <piece>
               <apply>
                    <minus/>
                    <ci> x </ci>
               </apply>
               <apply>
                    <lt/>
                    <ci> x </ci>
                    <cn> 0 </cn>
               </apply>
          </piece>
          <piece>
               <cn> 0 </cn>
               <apply>
                    <eq/>
                    <ci> x </ci>
                    <cn> 0 </cn>
               </apply>
          </piece>
          <piece>
               <ci> x </ci>
               <apply>
                    <gt/>
                    <ci> x </ci>
                    <cn> 0 </cn>
               </apply>
          </piece>
     </piecewise>
</apply>