quadratic.xfdl
上传用户:shuxianled
上传日期:2007-01-18
资源大小:6404k
文件大小:1k
源码类别:

xml/soap/webservice

开发平台:

Others

  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>