BACK
HOME

MATHADOR

It takes the source from an HTML parameter

This demo use a jar not signed because it doesn't use the client’s local disk space for saving or loading

... let equation be a second degree equation with unknown variable x...
In order to include this applet in a web page, you can use the following tag:

<applet id="mathador" align="middle" code="mathador/MathWebViewer.class" archive="../software/mathador_unsigned.jar" width="139" height="51">
  <param name="mathml_dtd" value="http://put_server_host_ip_address_here/mathador/software/mathml_dtd/mathml2/mathml2.dtd"/>
  <param name="source_string" value="
   <math>
    <mrow>
     <mi fontstyle='italic'>f</mi>
     <mo color='blue'>(</mo>
     <mi fontstyle='italic'>x</mi>
     <mo color='blue'>)</mo>
    </mrow>
    <mo color='blue'>=</mo>
    <mrow>
     <mrow>
      <mi fontstyle='italic' color='red'>a</mi>
      <mo>&it;</mo>
      <msup>
       <mi fontstyle='italic'>x</mi>
       <mn>2</mn>
      </msup>
     </mrow>
     <mo color='blue'>+</mo>
     <mrow>
      <mi fontstyle='italic' color='red'>b</mi>
      <mo>&it;</mo>
      <mi fontstyle='italic'>x</mi>
     </mrow>
     <mo color='blue'>+</mo>
     <mi fontstyle='italic' color='red'>c</mi>
    </mrow>
   </math>
  "/>
</applet>

The parameter source_string specifies the MathML code of the expression. This is a technique for embedding MathML into HTML pages.
An unsigned jar (mathador_unsigned.jar) has been used for this applet because it does not require to load and save from/to local disk space.
If the dimension specified for the applet are too little in order to visualise the mathematical expression a message alert the user to resize the applet.
by Valentino Santucci