CARVIEW |
OpenMath Content Dictionary: mathmltypes
- Canonical URL:
- https://www.openmath.org/cd/mathmltypes.ocd
- CD Base:
- https://www.openmath.org/cd
- CD File:
- mathmltypes.ocd
- CD as XML Encoded OpenMath:
- mathmltypes.omcd
- Defines:
- complex_cartesian_type, complex_polar_type, constant_type, fn_type, integer_type, list_type, matrix_type, rational_type, real_type, set_type, type, vector_type
- Date:
- 2004-03-30
- Version:
- 3 (Revision 1)
- Review Date:
- 2006-03-30
- Status:
- official
This document is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. The copyright holder grants you permission to redistribute this document freely as a verbatim copy. Furthermore, the copyright holder permits you to develop any derived work from this document provided that the following conditions are met. a) The derived work acknowledges the fact that it is derived from this document, and maintains a prominent reference in the work to the original source. b) The fact that the derived work is not the original OpenMath document is stated prominently in the derived work. Moreover if both this document and the derived work are Content Dictionaries then the derived work must include a different CDName element, chosen so that it cannot be confused with any works adopted by the OpenMath Society. In particular, if there is a Content Dictionary Group whose name is, for example, `math' containing Content Dictionaries named `math1', `math2' etc., then you should not name a derived Content Dictionary `mathN' where N is an integer. However you are free to name it `private_mathN' or some such. This is because the names `mathN' may be used by the OpenMath Society for future extensions. c) The derived work is distributed under terms that allow the compilation of derived works, but keep paragraphs a) and b) intact. The simplest way to do this is to distribute the derived work under the OpenMath license, but this is not a requirement. If you have questions about this license please contact the OpenMath society at https://www.openmath.org.
Author: OpenMath Consortium SourceURL: https://github.com/OpenMath/CDs
This CD holds symbols denoting various types of numbers, vectors and similar constructs. Principally these are required for compatibility with MathML.
type
- Role:
- semantic-attribution
- Description:
-
A symbol to be used within an OpenMath attribute to specify the type of the object.
- Example:
-
The variable z is attributed with a type for complex numbers, to be
represented in polar notation.
<OMOBJ xmlns="https://www.openmath.org/OpenMath" version="2.0" cdbase="carview.php?tsp=https://www.openmath.org/cd"> <OMATTR> <OMATP> <OMS cd="mathmltypes" name="carview.php?tsp=type"/> <OMS cd="mathmltypes" name="carview.php?tsp=complex_polar_type"/> </OMATP> <OMV name="z"/> </OMATTR> </OMOBJ>
<math xmlns="https://www.w3.org/1998/Math/MathML"> <semantics> <ci>z</ci> <annotation-xml cd="mathmltypes" name="carview.php?tsp=type"><csymbol cd="mathmltypes">complex_polar_type</csymbol></annotation-xml> </semantics> </math>
Attrib([ type complex_polar_type ], z)$z{mathmltypes.type -> mathmltypes.complex_polar_type}
- Signatures:
- sts
[Next: integer_type] [Last: fn_type] [Top] |
integer_type
- Role:
- constant
- Description:
-
A symbol to be used as the argument of the type symbol to convey the type of an integer.
- Example:
-
The variable z is attributed with a type for integers.
<OMOBJ xmlns="https://www.openmath.org/OpenMath" version="2.0" cdbase="carview.php?tsp=https://www.openmath.org/cd"> <OMATTR> <OMATP> <OMS cd="mathmltypes" name="carview.php?tsp=type"/> <OMS cd="mathmltypes" name="carview.php?tsp=integer_type"/> </OMATP> <OMV name="z"/> </OMATTR> </OMOBJ>
<math xmlns="https://www.w3.org/1998/Math/MathML"> <semantics> <ci>z</ci> <annotation-xml cd="mathmltypes" name="carview.php?tsp=type"><csymbol cd="mathmltypes">integer_type</csymbol></annotation-xml> </semantics> </math>
Attrib([ type integer_type ], z)$z{mathmltypes.type -> mathmltypes.integer_type}
- Signatures:
- sts
[Next: real_type] [Previous: type] [Top] |
real_type
- Role:
- constant
- Description:
-
A symbol to be used as the argument of the type symbol to convey the type of a real number.
- Example:
-
The variable z is attributed with a type for real numbers.
<OMOBJ xmlns="https://www.openmath.org/OpenMath" version="2.0" cdbase="carview.php?tsp=https://www.openmath.org/cd"> <OMATTR> <OMATP> <OMS cd="mathmltypes" name="carview.php?tsp=type"/> <OMS cd="mathmltypes" name="carview.php?tsp=real_type"/> </OMATP> <OMV name="z"/> </OMATTR> </OMOBJ>
<math xmlns="https://www.w3.org/1998/Math/MathML"> <semantics> <ci>z</ci> <annotation-xml cd="mathmltypes" name="carview.php?tsp=type"><csymbol cd="mathmltypes">real_type</csymbol></annotation-xml> </semantics> </math>
$z{mathmltypes.type -> mathmltypes.real_type}
- Signatures:
- sts
[Next: rational_type] [Previous: integer_type] [Top] |
rational_type
- Role:
- constant
- Description:
-
A symbol to be used as the argument of the type symbol to convey the type of a rational number.
- Example:
-
The variable z is attributed with a type for rational numbers.
<OMOBJ xmlns="https://www.openmath.org/OpenMath" version="2.0" cdbase="carview.php?tsp=https://www.openmath.org/cd"> <OMATTR> <OMATP> <OMS cd="mathmltypes" name="carview.php?tsp=type"/> <OMS cd="mathmltypes" name="carview.php?tsp=rational_type"/> </OMATP> <OMV name="z"/> </OMATTR> </OMOBJ>
<math xmlns="https://www.w3.org/1998/Math/MathML"> <semantics> <ci>z</ci> <annotation-xml cd="mathmltypes" name="carview.php?tsp=type"><csymbol cd="mathmltypes">rational_type</csymbol></annotation-xml> </semantics> </math>
Attrib([ type rational_type ], z)$z{mathmltypes.type -> mathmltypes.rational_type}
- Signatures:
- sts
[Next: complex_cartesian_type] [Previous: real_type] [Top] |
complex_cartesian_type
- Role:
- constant
- Description:
-
A symbol to be used as the argument of the type symbol to convey the type of a complex number specified in terms of its real and imaginary parts.
- Example:
-
The variable z is attributed with a type for complex numbers represented in
their Cartesian form.
<OMOBJ xmlns="https://www.openmath.org/OpenMath" version="2.0" cdbase="carview.php?tsp=https://www.openmath.org/cd"> <OMATTR> <OMATP> <OMS cd="mathmltypes" name="carview.php?tsp=type"/> <OMS cd="mathmltypes" name="carview.php?tsp=complex_cartesian_type"/> </OMATP> <OMV name="z"/> </OMATTR> </OMOBJ>
<math xmlns="https://www.w3.org/1998/Math/MathML"> <semantics> <ci>z</ci> <annotation-xml cd="mathmltypes" name="carview.php?tsp=type"><csymbol cd="mathmltypes">complex_cartesian_type</csymbol></annotation-xml> </semantics> </math>
Attrib([ type complex_cartesian_type ], z)$z{mathmltypes.type -> mathmltypes.complex_cartesian_type}
- Signatures:
- sts
[Next: complex_polar_type] [Previous: rational_type] [Top] |
complex_polar_type
- Role:
- constant
- Description:
-
A symbol to be used as the argument of the type symbol to convey the type of a complex number specified in terms of its modulus and argument.
- Example:
-
The variable z is attributed with a type for complex numbers represented in
their polar form.
<OMOBJ xmlns="https://www.openmath.org/OpenMath" version="2.0" cdbase="carview.php?tsp=https://www.openmath.org/cd"> <OMATTR> <OMATP> <OMS cd="mathmltypes" name="carview.php?tsp=type"/> <OMS cd="mathmltypes" name="carview.php?tsp=complex_polar_type"/> </OMATP> <OMV name="z"/> </OMATTR> </OMOBJ>
<math xmlns="https://www.w3.org/1998/Math/MathML"> <semantics> <ci>z</ci> <annotation-xml cd="mathmltypes" name="carview.php?tsp=type"><csymbol cd="mathmltypes">complex_polar_type</csymbol></annotation-xml> </semantics> </math>
Attrib([ type complex_polar_type ], z)$z{mathmltypes.type -> mathmltypes.complex_polar_type}
- Signatures:
- sts
[Next: constant_type] [Previous: complex_cartesian_type] [Top] |
constant_type
- Role:
- constant
- Description:
-
A symbol to be used as the argument of the type symbol to convey a type for the common constants, pi ~= 3.1415, e ~= 2.718, i = square root of -1, gamma ~= .5772, NaN, infinity (all in the nums cd), true and false (in the logic cd). Also for MathML variables declared to have type constant, as in <ci type="constant">x</ci>.
- Example:
-
The variable z is attributed with a type for constants.
<OMOBJ xmlns="https://www.openmath.org/OpenMath" version="2.0" cdbase="carview.php?tsp=https://www.openmath.org/cd"> <OMATTR> <OMATP> <OMS cd="mathmltypes" name="carview.php?tsp=type"/> <OMS cd="mathmltypes" name="carview.php?tsp=constant_type"/> </OMATP> <OMV name="z"/> </OMATTR> </OMOBJ>
<math xmlns="https://www.w3.org/1998/Math/MathML"> <semantics> <ci>z</ci> <annotation-xml cd="mathmltypes" name="carview.php?tsp=type"><csymbol cd="mathmltypes">constant_type</csymbol></annotation-xml> </semantics> </math>
Attrib([ type constant_type ], z)$z{mathmltypes.type -> mathmltypes.constant_type}
- Signatures:
- sts
[Next: vector_type] [Previous: complex_polar_type] [Top] |
vector_type
- Role:
- constant
- Description:
-
A symbol to be used as the argument of the type symbol to convey the type of a (column) vector, an n-tuple of entries.
- Example:
-
The variable z is attributed with a type for vectors.
<OMOBJ xmlns="https://www.openmath.org/OpenMath" version="2.0" cdbase="carview.php?tsp=https://www.openmath.org/cd"> <OMATTR> <OMATP> <OMS cd="mathmltypes" name="carview.php?tsp=type"/> <OMS cd="mathmltypes" name="carview.php?tsp=vector_type"/> </OMATP> <OMV name="z"/> </OMATTR> </OMOBJ>
<math xmlns="https://www.w3.org/1998/Math/MathML"> <semantics> <ci>z</ci> <annotation-xml cd="mathmltypes" name="carview.php?tsp=type"><csymbol cd="mathmltypes">vector_type</csymbol></annotation-xml> </semantics> </math>
Attrib([ type vector_type ], z)$z{mathmltypes.type -> mathmltypes.vector_type}
- Signatures:
- sts
[Next: list_type] [Previous: constant_type] [Top] |
list_type
- Role:
- constant
- Description:
-
A symbol to be used as the argument of the type symbol to convey the type for a list.
- Example:
-
The variable z is attributed with a type for lists.
<OMOBJ xmlns="https://www.openmath.org/OpenMath" version="2.0" cdbase="carview.php?tsp=https://www.openmath.org/cd"> <OMATTR> <OMATP> <OMS cd="mathmltypes" name="carview.php?tsp=type"/> <OMS cd="mathmltypes" name="carview.php?tsp=list_type"/> </OMATP> <OMV name="z"/> </OMATTR> </OMOBJ>
<math xmlns="https://www.w3.org/1998/Math/MathML"> <semantics> <ci>z</ci> <annotation-xml cd="mathmltypes" name="carview.php?tsp=type"><csymbol cd="mathmltypes">list_type</csymbol></annotation-xml> </semantics> </math>
$z{mathmltypes.type -> mathmltypes.list_type}
- Signatures:
- sts
[Next: set_type] [Previous: vector_type] [Top] |
set_type
- Role:
- constant
- Description:
-
A symbol to be used as the argument of the type symbol to convey the type for a set.
- Example:
-
The variable z is attributed with a type for sets.
<OMOBJ xmlns="https://www.openmath.org/OpenMath" version="2.0" cdbase="carview.php?tsp=https://www.openmath.org/cd"> <OMATTR> <OMATP> <OMS cd="mathmltypes" name="carview.php?tsp=type"/> <OMS cd="mathmltypes" name="carview.php?tsp=set_type"/> </OMATP> <OMV name="z"/> </OMATTR> </OMOBJ>
<math xmlns="https://www.w3.org/1998/Math/MathML"> <semantics> <ci>z</ci> <annotation-xml cd="mathmltypes" name="carview.php?tsp=type"><csymbol cd="mathmltypes">set_type</csymbol></annotation-xml> </semantics> </math>
$z{mathmltypes.type -> mathmltypes.set_type}
- Signatures:
- sts
[Next: matrix_type] [Previous: list_type] [Top] |
matrix_type
- Role:
- constant
- Description:
-
A symbol to be used as the argument of the type symbol to convey the type for a matrix (n tuple of rows, where each row is an m tuple for some m, it should be noted that each row must be the same length).
- Example:
-
The variable z is attributed with a type for matrices.
<OMOBJ xmlns="https://www.openmath.org/OpenMath" version="2.0" cdbase="carview.php?tsp=https://www.openmath.org/cd"> <OMATTR> <OMATP> <OMS cd="mathmltypes" name="carview.php?tsp=type"/> <OMS cd="mathmltypes" name="carview.php?tsp=matrix_type"/> </OMATP> <OMV name="z"/> </OMATTR> </OMOBJ>
<math xmlns="https://www.w3.org/1998/Math/MathML"> <semantics> <ci>z</ci> <annotation-xml cd="mathmltypes" name="carview.php?tsp=type"><csymbol cd="mathmltypes">matrix_type</csymbol></annotation-xml> </semantics> </math>
Attrib([ type matrix_type ], z)$z{mathmltypes.type -> mathmltypes.matrix_type}
- Signatures:
- sts
[Next: fn_type] [Previous: set_type] [Top] |
fn_type
- Role:
- constant
- Description:
-
A symbol to be used as the argument of the type symbol to convey the type for a function name.
- Example:
-
The variable f is attributed to say it represents a function.
<OMOBJ xmlns="https://www.openmath.org/OpenMath" version="2.0" cdbase="carview.php?tsp=https://www.openmath.org/cd"> <OMATTR> <OMATP> <OMS cd="mathmltypes" name="carview.php?tsp=type"/> <OMS cd="mathmltypes" name="carview.php?tsp=fn_type"/> </OMATP> <OMV name="f"/> </OMATTR> </OMOBJ>
<math xmlns="https://www.w3.org/1998/Math/MathML"> <semantics> <ci>f</ci> <annotation-xml cd="mathmltypes" name="carview.php?tsp=type"><csymbol cd="mathmltypes">fn_type</csymbol></annotation-xml> </semantics> </math>
$f{mathmltypes.type -> mathmltypes.fn_type}
- Signatures:
- sts
[First: type] [Previous: matrix_type] [Top] |