XML technologies / MathML / Content elements / declare to domain

(Excerpt from "The MathML Handbook" by Pavi Sandhu)

 

declare

Syntax

<declare>identifier definition</declare>

Description

The declare element is used for declaring that a given identifier is an object of a certain type and for assigning that object a specific value.

Attributes

This element accepts the attributes definitionURL and encoding. In addition, it accepts the three attributes shown in the following table.

Table: Attributes of declare.

Name

Values

Default

type

Any MathML content element

real

nargs

integer

none

occurrence

infix | prefix

infix

These attributes have the following meaning:

  • type: specifies the type of object being declared. Typical values of this attribute are set, list, vector, matrix, or function.

  • nargs: specifies the number of arguments when you are declaring an operator or function.

  • occurrence: specifies the position in which an operator being declared occurs.

 

degree

Syntax

<degree>variable</degree>

Description

The degree element is a qualifier element that is used in conjunction with the diff and partialdiff elements to specify the order of differentiation, with the root element to specify the degree of a root, and with the moment element to specify the type of a statistical moment.

Attributes

This element accepts the attributes definitionURL and encoding.

 

determinant

Syntax

<apply><determinant /> matrix</apply>

Description

The determinant element represents the operator for the determinant of a matrix.

Attributes

This element accepts the attributes definitionURL and encoding.

 

diff

Syntax

<apply>   <diff/>   <bvar> ... </bvar>   <degree> ... </degree>   <apply>function <ci>var</ci></apply> </apply>

Description

The diff element represents the operation of taking a derivative. The variable of differentiation is specified using a bvar element. The order of differentiation is specified using a degree element.

Attributes

This element accepts the attributes definitionURL and encoding.

 

divergence

Syntax

<apply><divergence /> function</apply>

Description

The divergence element represents the divergence operator of vector calculus.

Attributes

This element accepts the attributes definitionURL and encoding.

 

divide

Syntax

<apply><divide /> dividend divisor</apply>

Description

The divide element represents the operation of division. It must have two arguments.

Attributes

This element accepts the attributes definitionURL and encoding.

 

domain

Syntax

<apply><domain /> function</apply>

Description

The domain element represents the domain of a function; that is, the set of values over which that function can be applied.

Attributes

This element accepts the attributes definitionURL and encoding.

   

 

 

 

 

back to top