Datatype: complexNumber

Description:

A complex number consists of a real and imaginary part. An element of type, complexNumber, will have two subelements:

Proposed Usage:

This datatype was developed to support the Epicentre complex data type. Its intended usage is shown in the PEF complex element document. Usage as a useful datatype is shown in the following sample usage schema and sample XML.

Warning: The W3C Consortium is developing its own version of a complex number datatype which may vary slightly from this version.

XML Schema:

  • The schema and examples do not explicitly show the lines that set the namespaces.
  • All schema examples will use xsd: as the namespace for the schema tags and datatypes, and null for all the locally generated namespaces.
  • XML Examples will exclude namespace modifiers for clarity. Actual XML will probably need namespaces.
  • <xsd:complexType name="complexNumber">
      <xsd:sequence>
        <xsd:element name="realPart" type="xsd:double"/>
        <xsd:element name="imaginaryPart" type="xsd:double"/>
      </xsd:sequence>
    </xsd:complexType>
    

    Sample Usage Schema:

  • All elements are local. It is recommended that elementFormDefault be "qualified."
  •    <xsd:element name="rotationalComponent" type="complexNumber"/>
    

    Sample XML:

       <rotationalComponent>
         <realPart>.80229</realPart>
         <imaginaryPart>.59693</imaginaryPart>
       </rotationalComponent>
    

    Last Modified: March 21, 2001
    ©Copyright 2001 POSC. All rights reserved.