home *** CD-ROM | disk | FTP | other *** search
/ XML Bible (2nd Edition) / XML_Bible_Second_Edition_Hungry_Minds_2001.iso / mac / source / 02 / quadratic.xfdl < prev   
Extensible Markup Language  |  2001-01-06  |  1KB  |  47 lines

  1. <?xml version="1.0"?>
  2. <XFDL version="4.1.0">
  3.   <page sid="QuadraticEquationSolver">
  4.     <label>Quadratic Equation Form</label>
  5.     <label sid="LABEL1">
  6.      <value>Solve ax^2 + bx + c = 0</value>
  7.      <fontinfo content="array">
  8.        <ae>Times</ae> <ae>10</ae> <ae>italic</ae>
  9.       </fontinfo>
  10.     </label>
  11.     <field sid="a">
  12.       <label>Enter a: (coefficient of x^2)</label>
  13.       <value>1</value>
  14.     </field>
  15.     <field sid="b">
  16.       <label>Enter b: (coefficient of x^1)</label>
  17.       <value>0</value>
  18.     </field>
  19.     <field sid="c">
  20.       <label>Enter c: (coefficient of x^0)</label>
  21.       <value>-1</value>
  22.     </field>
  23.     <field sid="x1">
  24.       <label>Root 1</label>
  25.       <editstate>readonly</editstate>
  26.       <value content="compute">
  27.         <compute>
  28.           (-b.value 
  29.            + sqrt(b.value*b.value - "4"*a.value*c.value))
  30.           /"2"*a.value
  31.         </compute>
  32.       </value>
  33.     </field>
  34.     <field sid="x2">
  35.       <label>Root 2</label>
  36.       <editstate>readonly</editstate>
  37.       <value content="compute">
  38.         <compute>
  39.           (-b.value 
  40.            - sqrt(b.value*b.value - "4"*a.value*c.value))
  41.           /"2"*a.value
  42.         </compute>
  43.       </value>
  44.     </field>
  45.   </page>
  46. </XFDL>
  47.