OpenMath Content Dictionary: linalg5
Canonical URL:
http://www.openmath.org/cd/linalg5.ocd
CD Base:
http://www.openmath.org/cd
CD File:
linalg5.ocd
CD as XML Encoded OpenMath:
linalg5.omcd
Defines:
Hermitian , anti-Hermitian , banded , constant , diagonal_matrix , identity , lower-Hessenberg , lower-triangular , scalar , skew-symmetric , symmetric , tridiagonal , upper-Hessenberg , upper-triangular , zero
Date:
2004-05-11
Version:
3
(Revision 2)
Review Date:
2017-12-31
Status:
experimental
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 http://www.openmath.org .
Author: OpenMath Consortium
SourceURL: https://github.com/OpenMath/CDs
This CD contains symbols which represent a number of special types of
matrix.
Role:
application
Description:
This symbol denotes a unary function which is used to construct an
(nxn) identity matrix where n is the single positive integral argument.
Commented Mathematical property (CMP):
for all M | identity(rowcount M) * M = M * identity(columncount M) = M
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMBIND>
<OMS cd="quant1" name="forall"/>
<OMBVAR>
<OMV name="M"/>
</OMBVAR>
<OMA>
<OMS cd="logic1" name="and"/>
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="arith1" name="times"/>
<OMA>
<OMS cd="linalg5" name="identity"/>
<OMA>
<OMS cd="linalg4" name="rowcount"/>
<OMV name="M"/>
</OMA>
</OMA>
<OMV name="M"/>
</OMA>
<OMV name="M"/>
</OMA>
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="arith1" name="times"/>
<OMV name="M"/>
<OMA>
<OMS cd="linalg5" name="identity"/>
<OMA>
<OMS cd="linalg4" name="columncount"/>
<OMV name="M"/>
</OMA>
</OMA>
</OMA>
<OMV name="M"/>
</OMA>
</OMA>
</OMBIND>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<bind><csymbol cd="quant1">forall</csymbol>
<bvar><ci>M</ci></bvar>
<apply><csymbol cd="logic1">and</csymbol>
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="arith1">times</csymbol>
<apply><csymbol cd="linalg5">identity</csymbol>
<apply><csymbol cd="linalg4">rowcount</csymbol><ci>M</ci></apply>
</apply>
<ci>M</ci>
</apply>
<ci>M</ci>
</apply>
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="arith1">times</csymbol>
<ci>M</ci>
<apply><csymbol cd="linalg5">identity</csymbol>
<apply><csymbol cd="linalg4">columncount</csymbol><ci>M</ci></apply>
</apply>
</apply>
<ci>M</ci>
</apply>
</apply>
</bind>
</math>
Prefix
Popcorn
quant1.forall[$M -> linalg5.identity(linalg4.rowcount($M)) * $M = $M and $M * linalg5.identity(linalg4.columncount($M)) = $M]
Rendered Presentation MathML
∀
M
.
identity
(
rowcount
(
M
)
)
M
=
M
∧
M
identity
(
columncount
(
M
)
)
=
M
Example:
A representation of the 2x2 identity matrix [[1,0],[0,1]]
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="linalg5" name="identity"/>
<OMI> 2 </OMI>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML"><apply><csymbol cd="linalg5">identity</csymbol><cn type="integer">2</cn></apply></math>
Prefix
Popcorn
linalg5.identity(2)
Rendered Presentation MathML
Signatures:
sts
Role:
application
Description:
This symbol denotes a function with two integral arguments m,n which
is used to construct an (mxn) zero matrix.
Commented Mathematical property (CMP):
for all M | M + zero(rowcount M,columncount M) = M
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMBIND>
<OMS cd="quant1" name="forall"/>
<OMBVAR>
<OMV name="M"/>
</OMBVAR>
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="arith1" name="plus"/>
<OMV name="M"/>
<OMA>
<OMS cd="linalg5" name="zero"/>
<OMA>
<OMS cd="linalg4" name="rowcount"/>
<OMV name="M"/>
</OMA>
<OMA>
<OMS cd="linalg4" name="columncount"/>
<OMV name="M"/>
</OMA>
</OMA>
</OMA>
<OMV name="M"/>
</OMA>
</OMBIND>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<bind><csymbol cd="quant1">forall</csymbol>
<bvar><ci>M</ci></bvar>
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="arith1">plus</csymbol>
<ci>M</ci>
<apply><csymbol cd="linalg5">zero</csymbol>
<apply><csymbol cd="linalg4">rowcount</csymbol><ci>M</ci></apply>
<apply><csymbol cd="linalg4">columncount</csymbol><ci>M</ci></apply>
</apply>
</apply>
<ci>M</ci>
</apply>
</bind>
</math>
Prefix
Popcorn
quant1.forall[$M -> $M + linalg5.zero(linalg4.rowcount($M), linalg4.columncount($M)) = $M]
Rendered Presentation MathML
∀
M
.
M
+
zero
(
rowcount
(
M
)
,
columncount
(
M
)
)
=
M
Commented Mathematical property (CMP):
for all M |
zero(rowcount M,rowcount M) * M = M * zero(columncount M,columncount M) =
zero(rowcount M,columncount M)
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMBIND>
<OMS cd="quant1" name="forall"/>
<OMBVAR>
<OMV name="M"/>
</OMBVAR>
<OMA>
<OMS cd="logic1" name="and"/>
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="arith1" name="times"/>
<OMA>
<OMS cd="linalg5" name="zero"/>
<OMA>
<OMS cd="linalg4" name="rowcount"/>
<OMV name="M"/>
</OMA>
<OMA>
<OMS cd="linalg4" name="rowcount"/>
<OMV name="M"/>
</OMA>
</OMA>
<OMV name="M"/>
</OMA>
<OMA>
<OMS cd="linalg5" name="zero"/>
<OMA>
<OMS cd="linalg4" name="rowcount"/>
<OMV name="M"/>
</OMA>
<OMA>
<OMS cd="linalg4" name="columncount"/>
<OMV name="M"/>
</OMA>
</OMA>
</OMA>
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="arith1" name="times"/>
<OMV name="M"/>
<OMA>
<OMS cd="linalg5" name="zero"/>
<OMA>
<OMS cd="linalg4" name="columncount"/>
<OMV name="M"/>
</OMA>
<OMA>
<OMS cd="linalg4" name="columncount"/>
<OMV name="M"/>
</OMA>
</OMA>
</OMA>
<OMA>
<OMS cd="linalg5" name="zero"/>
<OMA>
<OMS cd="linalg4" name="rowcount"/>
<OMV name="M"/>
</OMA>
<OMA>
<OMS cd="linalg4" name="columncount"/>
<OMV name="M"/>
</OMA>
</OMA>
</OMA>
</OMA>
</OMBIND>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<bind><csymbol cd="quant1">forall</csymbol>
<bvar><ci>M</ci></bvar>
<apply><csymbol cd="logic1">and</csymbol>
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="arith1">times</csymbol>
<apply><csymbol cd="linalg5">zero</csymbol>
<apply><csymbol cd="linalg4">rowcount</csymbol><ci>M</ci></apply>
<apply><csymbol cd="linalg4">rowcount</csymbol><ci>M</ci></apply>
</apply>
<ci>M</ci>
</apply>
<apply><csymbol cd="linalg5">zero</csymbol>
<apply><csymbol cd="linalg4">rowcount</csymbol><ci>M</ci></apply>
<apply><csymbol cd="linalg4">columncount</csymbol><ci>M</ci></apply>
</apply>
</apply>
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="arith1">times</csymbol>
<ci>M</ci>
<apply><csymbol cd="linalg5">zero</csymbol>
<apply><csymbol cd="linalg4">columncount</csymbol><ci>M</ci></apply>
<apply><csymbol cd="linalg4">columncount</csymbol><ci>M</ci></apply>
</apply>
</apply>
<apply><csymbol cd="linalg5">zero</csymbol>
<apply><csymbol cd="linalg4">rowcount</csymbol><ci>M</ci></apply>
<apply><csymbol cd="linalg4">columncount</csymbol><ci>M</ci></apply>
</apply>
</apply>
</apply>
</bind>
</math>
Prefix
Popcorn
quant1.forall[$M -> linalg5.zero(linalg4.rowcount($M), linalg4.rowcount($M)) * $M = linalg5.zero(linalg4.rowcount($M), linalg4.columncount($M)) and $M * linalg5.zero(linalg4.columncount($M), linalg4.columncount($M)) = linalg5.zero(linalg4.rowcount($M), linalg4.columncount($M))]
Rendered Presentation MathML
∀
M
.
zero
(
rowcount
(
M
)
,
rowcount
(
M
)
)
M
=
zero
(
rowcount
(
M
)
,
columncount
(
M
)
)
∧
M
zero
(
columncount
(
M
)
,
columncount
(
M
)
)
=
zero
(
rowcount
(
M
)
,
columncount
(
M
)
)
Example:
A representation of the 2x2 zero matrix [[0,0],[0,0]]
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="linalg5" name="zero"/>
<OMI> 2 </OMI>
<OMI> 2 </OMI>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="linalg5">zero</csymbol>
<cn type="integer">2</cn>
<cn type="integer">2</cn>
</apply>
</math>
Prefix
Popcorn
linalg5.zero(2, 2)
Rendered Presentation MathML
Signatures:
sts
Role:
application
Description:
This symbol denotes an n_ary function which is used to construct an
(nxn) diagonal matrix, that is a matrix where every non-diagonal
element is zero, the diagonal elements are equal to the n arguments.
Commented Mathematical property (CMP):
given a diagonal matrix, it is equal to its transpose
Example:
The diagonal matrix with diagonal elements [1,2,3]
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="linalg5" name="diagonal_matrix"/>
<OMI> 1 </OMI>
<OMI> 2 </OMI>
<OMI> 3 </OMI>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="linalg5">diagonal_matrix</csymbol>
<cn type="integer">1</cn>
<cn type="integer">2</cn>
<cn type="integer">3</cn>
</apply>
</math>
Prefix
Popcorn
linalg5.diagonal_matrix(1, 2, 3)
Rendered Presentation MathML
Signatures:
sts
Role:
application
Description:
This symbol represents a matrix which is a scalar constant times the
identity matrix. It should take two arguments, the first
specifes the number of rows and columns in the matrix respectively and
the third specifies the scalar multiplier.
Commented Mathematical property (CMP):
the scalar matrix of size n, where the scalar multiple is s
= s * identity(n)
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="linalg5" name="scalar"/>
<OMV name="n"/>
<OMV name="s"/>
</OMA>
<OMA>
<OMS cd="arith1" name="times"/>
<OMV name="s"/>
<OMA>
<OMS cd="linalg5" name="identity"/>
<OMV name="n"/>
</OMA>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="linalg5">scalar</csymbol><ci>n</ci><ci>s</ci></apply>
<apply><csymbol cd="arith1">times</csymbol>
<ci>s</ci>
<apply><csymbol cd="linalg5">identity</csymbol><ci>n</ci></apply>
</apply>
</apply>
</math>
Prefix
Popcorn
linalg5.scalar($n, $s) = $s * linalg5.identity($n)
Rendered Presentation MathML
scalar
(
n
,
s
)
=
s
identity
(
n
)
Example:
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="linalg5" name="scalar"/>
<OMI>4</OMI>
<OMF dec="1.5"/>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="linalg5">scalar</csymbol>
<cn type="integer">4</cn>
<cn type="real">1.5</cn>
</apply>
</math>
Prefix
Popcorn
linalg5.scalar(4, 1.5)
Rendered Presentation MathML
1.5
0
0
0
0
1.5
0
0
0
0
1.5
0
0
0
0
1.5
Signatures:
sts
Role:
application
Description:
This symbol represents a matrix which has all entries of the same
value. It takes two arguments, the first is the size of the matrix,
the second is the constant which determines every element.
Commented Mathematical property (CMP):
the rank of a non-zero constant matrix = 1
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="logic1" name="implies"/>
<OMA>
<OMS cd="relation1" name="neq"/>
<OMV name="v"/>
<OMS cd="alg1" name="zero"/>
</OMA>
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="linalg4" name="rank"/>
<OMA>
<OMS cd="linalg5" name="constant"/>
<OMV name="n"/>
<OMV name="v"/>
</OMA>
</OMA>
<OMS cd="alg1" name="one"/>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="logic1">implies</csymbol>
<apply><csymbol cd="relation1">neq</csymbol><ci>v</ci><csymbol cd="alg1">zero</csymbol></apply>
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="linalg4">rank</csymbol>
<apply><csymbol cd="linalg5">constant</csymbol><ci>n</ci><ci>v</ci></apply>
</apply>
<csymbol cd="alg1">one</csymbol>
</apply>
</apply>
</math>
Prefix
Popcorn
$v != alg1.zero ==> linalg4.rank(linalg5.constant($n, $v)) = alg1.one
Rendered Presentation MathML
v
≠
0
⇒
rank
(
constant
(
n
,
v
)
)
=
1
Signatures:
sts
Role:
application
Description:
This symbol represents a (p,q) banded matrix, it takes one
argument. A (p,q) banded matrix should always be square. The lower non-zero
subdiagonal is the first element of the argument, whilst the highest non-zero
super-diagonal is given by the last element of the argument. The
argument determines the band of possibly non-zero entries which
are positioned around the diagonal. It should be a vector of vectors,
we note that they will not all be the same length, however the length
of the vectors determine p and q. The longest element specifies the
diagonal of the matrix and hence the size of the matrix. Every element
not in the band is zero.
Example:
A specification of the (2,1) banded matrix:
[
[1 2 3 0 0]
[4 5 6 7 0]
[0 8 9 10 11]
[0 0 12 13 14]
[0 0 0 15 16]]
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="linalg5" name="banded"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI>4</OMI> <OMI>8</OMI> <OMI>12</OMI> <OMI>15</OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI>1</OMI> <OMI>5</OMI> <OMI>9</OMI> <OMI>13</OMI> <OMI>16</OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI>2</OMI> <OMI>6</OMI> <OMI>10</OMI> <OMI>14</OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI>3</OMI> <OMI>7</OMI> <OMI>11</OMI>
</OMA>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="linalg5">banded</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">4</cn>
<cn type="integer">8</cn>
<cn type="integer">12</cn>
<cn type="integer">15</cn>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">1</cn>
<cn type="integer">5</cn>
<cn type="integer">9</cn>
<cn type="integer">13</cn>
<cn type="integer">16</cn>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">2</cn>
<cn type="integer">6</cn>
<cn type="integer">10</cn>
<cn type="integer">14</cn>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">3</cn>
<cn type="integer">7</cn>
<cn type="integer">11</cn>
</apply>
</apply>
</apply>
</math>
Prefix
banded
(
vector
(
vector
(4, 8, 12, 15)
,
vector
(1, 5, 9, 13, 16)
,
vector
(2, 6, 10, 14)
,
vector
(3, 7, 11)
)
)
Popcorn
linalg5.banded(linalg2.vector(linalg2.vector(4, 8, 12, 15), linalg2.vector(1, 5, 9, 13, 16), linalg2.vector(2, 6, 10, 14), linalg2.vector(3, 7, 11)))
Rendered Presentation MathML
1
2
3
0
0
4
5
6
7
0
0
8
9
10
11
0
0
12
13
14
0
0
0
15
16
Signatures:
sts
Role:
application
Description:
This symbol represents a symmetric matrix, it takes one argument. The
argument should be a vector of vectors of elements of the matrix. For
j>=i the ij'th element of the matrix is the (j-i+1)'th element of the i'th
element of the argument. This determines the upper triangle of the
matrix, the lower triangle is specified by the rule M = transpose M.
Commented Mathematical property (CMP):
the sum of a symmetric matrix and its transpose is symmetric
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="arith1" name="plus"/>
<OMA>
<OMS cd="linalg5" name="symmetric"/>
<OMV name="VV1"/>
</OMA>
<OMA>
<OMS cd="linalg1" name="transpose"/>
<OMA>
<OMS cd="linalg5" name="symmetric"/>
<OMV name="VV1"/>
</OMA>
</OMA>
</OMA>
<OMA>
<OMS cd="linalg5" name="symmetric"/>
<OMV name="VV2"/>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="arith1">plus</csymbol>
<apply><csymbol cd="linalg5">symmetric</csymbol><ci>VV1</ci></apply>
<apply><csymbol cd="linalg1">transpose</csymbol>
<apply><csymbol cd="linalg5">symmetric</csymbol><ci>VV1</ci></apply>
</apply>
</apply>
<apply><csymbol cd="linalg5">symmetric</csymbol><ci>VV2</ci></apply>
</apply>
</math>
Prefix
Popcorn
linalg5.symmetric($VV1) + linalg1.transpose(linalg5.symmetric($VV1)) = linalg5.symmetric($VV2)
Rendered Presentation MathML
symmetric
(
VV
1
)
+
symmetric
(
VV
1
)
T
=
symmetric
(
VV
2
)
Commented Mathematical property (CMP):
for a symmetric matrix M, M = transpose M
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="linalg5" name="symmetric"/>
<OMV name="VV"/>
</OMA>
<OMA>
<OMS cd="linalg1" name="transpose"/>
<OMA>
<OMS cd="linalg5" name="symmetric"/>
<OMV name="VV"/>
</OMA>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="linalg5">symmetric</csymbol><ci>VV</ci></apply>
<apply><csymbol cd="linalg1">transpose</csymbol>
<apply><csymbol cd="linalg5">symmetric</csymbol><ci>VV</ci></apply>
</apply>
</apply>
</math>
Prefix
Popcorn
linalg5.symmetric($VV) = linalg1.transpose(linalg5.symmetric($VV))
Rendered Presentation MathML
symmetric
(
VV
)
=
symmetric
(
VV
)
T
Commented Mathematical property (CMP):
the dimension of a symmetric matrix = the length of the vector
which defines it
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="linalg4" name="rowcount"/>
<OMA>
<OMS cd="linalg5" name="symmetric"/>
<OMV name="VV"/>
</OMA>
</OMA>
<OMA>
<OMS cd="linalg4" name="size"/>
<OMV name="VV"/>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="linalg4">rowcount</csymbol>
<apply><csymbol cd="linalg5">symmetric</csymbol><ci>VV</ci></apply>
</apply>
<apply><csymbol cd="linalg4">size</csymbol><ci>VV</ci></apply>
</apply>
</math>
Prefix
Popcorn
linalg4.rowcount(linalg5.symmetric($VV)) = linalg4.size($VV)
Rendered Presentation MathML
rowcount
(
symmetric
(
VV
)
)
=
size
(
VV
)
Example:
An example to represent the symmetric matrix:
[[1,2,3,4]
[2,5,6,7]
[3,6,8,9]
[4,7,9,10]]
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="linalg5" name="symmetric"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI> 1 </OMI>
<OMI> 2 </OMI>
<OMI> 3 </OMI>
<OMI> 4 </OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI> 5 </OMI>
<OMI> 6 </OMI>
<OMI> 7 </OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI> 8 </OMI>
<OMI> 9 </OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI> 10 </OMI>
</OMA>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="linalg5">symmetric</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">1</cn>
<cn type="integer">2</cn>
<cn type="integer">3</cn>
<cn type="integer">4</cn>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">5</cn>
<cn type="integer">6</cn>
<cn type="integer">7</cn>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">8</cn>
<cn type="integer">9</cn>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol><cn type="integer">10</cn></apply>
</apply>
</apply>
</math>
Prefix
Popcorn
linalg5.symmetric(linalg2.vector(linalg2.vector(1, 2, 3, 4), linalg2.vector(5, 6, 7), linalg2.vector(8, 9), linalg2.vector(10)))
Rendered Presentation MathML
1
2
3
4
2
5
6
7
3
6
8
9
4
7
9
10
Signatures:
sts
Role:
application
Description:
This symbol represents a skew-symmetric matrix, it takes one
argument. The argument should be a vector of vectors of elements of
the matrix. For j>i the ij'th element of the matrix is the (j-i+1)'th
element of the i'th element of the argument. This determines the
elements above the diagonal of the matrix, the elements below the
diagonal of the matrix must conform to the rule M = - transpose
M. This rule implies that the elements on the diagonal must be equal
to 0, therefore we do not include these in the argument.
Commented Mathematical property (CMP):
The elements on the diagonal of a skew-symmetric matrix are zero
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="linalg1" name="matrix_selector"/>
<OMV name="i"/>
<OMV name="i"/>
<OMA>
<OMS cd="linalg5" name="skew-symmetric"/>
<OMV name="VV"/>
</OMA>
</OMA>
<OMS cd="alg1" name="zero"/>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="linalg1">matrix_selector</csymbol>
<ci>i</ci>
<ci>i</ci>
<apply><csymbol cd="linalg5">skew-symmetric</csymbol><ci>VV</ci></apply>
</apply>
<csymbol cd="alg1">zero</csymbol>
</apply>
</math>
Prefix
Popcorn
linalg1.matrix_selector($i, $i, linalg5.skew-symmetric($VV)) = alg1.zero
Rendered Presentation MathML
skew-symmetric
(
VV
)
i
i
=
0
Commented Mathematical property (CMP):
for a skew-symmetric matrix M, M = - transpose M
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="linalg5" name="skew-symmetric"/>
<OMV name="VV"/>
</OMA>
<OMA>
<OMS cd="arith1" name="unary_minus"/>
<OMA>
<OMS cd="linalg1" name="transpose"/>
<OMA>
<OMS cd="linalg5" name="skew-symmetric"/>
<OMV name="VV"/>
</OMA>
</OMA>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="linalg5">skew-symmetric</csymbol><ci>VV</ci></apply>
<apply><csymbol cd="arith1">unary_minus</csymbol>
<apply><csymbol cd="linalg1">transpose</csymbol>
<apply><csymbol cd="linalg5">skew-symmetric</csymbol><ci>VV</ci></apply>
</apply>
</apply>
</apply>
</math>
Prefix
Popcorn
linalg5.skew-symmetric($VV) = -(linalg1.transpose(linalg5.skew-symmetric($VV)))
Rendered Presentation MathML
skew-symmetric
(
VV
)
=
-
skew-symmetric
(
VV
)
T
Example:
An example to represent the skew-symmetric matrix:
[[ 0, 2, 3, 4]
[-2, 0, 6, 7]
[-3,-6, 0, 9]
[-4,-7,-9, 0]]
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="linalg5" name="skew-symmetric"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI> 2 </OMI>
<OMI> 3 </OMI>
<OMI> 4 </OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI> 6 </OMI>
<OMI> 7 </OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI> 9 </OMI>
</OMA>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="linalg5">skew-symmetric</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">2</cn>
<cn type="integer">3</cn>
<cn type="integer">4</cn>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">6</cn>
<cn type="integer">7</cn>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol><cn type="integer">9</cn></apply>
</apply>
</apply>
</math>
Prefix
Popcorn
linalg5.skew-symmetric(linalg2.vector(linalg2.vector(2, 3, 4), linalg2.vector(6, 7), linalg2.vector(9)))
Rendered Presentation MathML
0
2
3
4
-
2
0
6
7
-
3
-
6
0
9
-
4
-
7
-
9
0
Signatures:
sts
Role:
application
Description:
This symbol represents a Hermitian matrix, it takes one
argument. The argument should be a vector of vectors of values which
determine the upper triangle of the matrix. The lower triangle of the
matrix is specified by the following relation: M^* = transpose(M),
were M^* denotes the matrix consisting of all the complex conjugates
of M.
Commented Mathematical property (CMP):
The complex conjugate of a Hermitian matrix equals its transpose
Commented Mathematical property (CMP):
The diagonal elements of a Hermitian matrix will be real
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="set1" name="in"/>
<OMA>
<OMS cd="linalg1" name="matrix_selector"/>
<OMV name="i"/>
<OMV name="i"/>
<OMA>
<OMS cd="linalg5" name="Hermitian"/>
<OMV name="VV"/>
</OMA>
</OMA>
<OMS cd="setname1" name="R"/>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="set1">in</csymbol>
<apply><csymbol cd="linalg1">matrix_selector</csymbol>
<ci>i</ci>
<ci>i</ci>
<apply><csymbol cd="linalg5">Hermitian</csymbol><ci>VV</ci></apply>
</apply>
<csymbol cd="setname1">R</csymbol>
</apply>
</math>
Prefix
Popcorn
set1.in(linalg1.matrix_selector($i, $i, linalg5.Hermitian($VV)), setname1.R)
Rendered Presentation MathML
Hermitian
(
VV
)
i
i
∈
R
Example:
An example to describe the Hermitian matrix:
[[1 , 2+2i]
[2-2i, 3 ]]
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="linalg5" name="Hermitian"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMA>
<OMS cd="complex1" name="complex_cartesian"/>
<OMI> 1 </OMI><OMI> 0 </OMI>
</OMA>
<OMA>
<OMS cd="complex1" name="complex_cartesian"/>
<OMI> 2 </OMI><OMI> 2 </OMI>
</OMA>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMA>
<OMS cd="complex1" name="complex_cartesian"/>
<OMI> 3 </OMI><OMI> 0 </OMI>
</OMA>
</OMA>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="linalg5">Hermitian</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol>
<apply><csymbol cd="complex1">complex_cartesian</csymbol>
<cn type="integer">1</cn>
<cn type="integer">0</cn>
</apply>
<apply><csymbol cd="complex1">complex_cartesian</csymbol>
<cn type="integer">2</cn>
<cn type="integer">2</cn>
</apply>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol>
<apply><csymbol cd="complex1">complex_cartesian</csymbol>
<cn type="integer">3</cn>
<cn type="integer">0</cn>
</apply>
</apply>
</apply>
</apply>
</math>
Prefix
Popcorn
linalg5.Hermitian(linalg2.vector(linalg2.vector(1 | 0, 2 | 2), linalg2.vector(3 | 0)))
Rendered Presentation MathML
1
2
+
2
i
2
+
2
i
¯
3
Signatures:
sts
Role:
application
Description:
This symbol represents an anti-Hermitian matrix, it takes one
argument. The argument should be a vector of vectors of values which
determine the upper triangle of the matrix. The lower triangle of the
matrix is specified by the following relation: - M^* = transpose(M),
were M^* denotes the matrix consisting of all the complex conjugates
of M. This rules implies that the main diagonal is zero, therefore the
argument should not include it.
Commented Mathematical property (CMP):
The complex conjugate of an anti-Hermitian matrix equals minus its transpose
Commented Mathematical property (CMP):
an anti-hermitian matrix will have zero on the diagonal
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="linalg1" name="matrix_selector"/>
<OMV name="i"/>
<OMV name="i"/>
<OMA>
<OMS cd="linalg5" name="anti-Hermitian"/>
<OMV name="VV"/>
</OMA>
</OMA>
<OMS cd="alg1" name="zero"/>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="linalg1">matrix_selector</csymbol>
<ci>i</ci>
<ci>i</ci>
<apply><csymbol cd="linalg5">anti-Hermitian</csymbol><ci>VV</ci></apply>
</apply>
<csymbol cd="alg1">zero</csymbol>
</apply>
</math>
Prefix
Popcorn
linalg1.matrix_selector($i, $i, linalg5.anti-Hermitian($VV)) = alg1.zero
Rendered Presentation MathML
anti-Hermitian
(
VV
)
i
i
=
0
Example:
An example to describe the anti-Hermitian matrix:
[[0 , 1+i]
[-1+i , 0 ]]
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="linalg5" name="anti-Hermitian"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMA>
<OMS cd="complex1" name="complex_cartesian"/>
<OMI> 1 </OMI><OMI> 1 </OMI>
</OMA>
</OMA>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="linalg5">anti-Hermitian</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol>
<apply><csymbol cd="complex1">complex_cartesian</csymbol>
<cn type="integer">1</cn>
<cn type="integer">1</cn>
</apply>
</apply>
</apply>
</apply>
</math>
Prefix
Popcorn
linalg5.anti-Hermitian(linalg2.vector(linalg2.vector(1 | 1)))
Rendered Presentation MathML
Signatures:
sts
Role:
application
Description:
This symbol represents an upper-triangular matrix, it takes one
argument. The argument should be a vector of vectors of elements of
the matrix.
Commented Mathematical property (CMP):
the product of two upper-triangular matrices is upper-triangular
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="linalg5" name="upper-triangular"/>
<OMV name="VV1"/>
</OMA>
<OMA>
<OMS cd="arith1" name="times"/>
<OMA>
<OMS cd="linalg5" name="upper-triangular"/>
<OMV name="VV2"/>
</OMA>
<OMA>
<OMS cd="linalg5" name="upper-triangular"/>
<OMV name="VV3"/>
</OMA>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="linalg5">upper-triangular</csymbol><ci>VV1</ci></apply>
<apply><csymbol cd="arith1">times</csymbol>
<apply><csymbol cd="linalg5">upper-triangular</csymbol><ci>VV2</ci></apply>
<apply><csymbol cd="linalg5">upper-triangular</csymbol><ci>VV3</ci></apply>
</apply>
</apply>
</math>
Prefix
Popcorn
linalg5.upper-triangular($VV1) = linalg5.upper-triangular($VV2) * linalg5.upper-triangular($VV3)
Rendered Presentation MathML
upper-triangular
(
VV
1
)
=
upper-triangular
(
VV
2
)
upper-triangular
(
VV
3
)
Example:
An example to describe the upper triangular matrix:
[[1,2,3]
[0,4,5]
[0,0,6]]
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="linalg5" name="upper-triangular"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI> 1 </OMI><OMI> 2 </OMI><OMI> 3 </OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI> 4 </OMI><OMI> 5 </OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI> 6 </OMI>
</OMA>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="linalg5">upper-triangular</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">1</cn>
<cn type="integer">2</cn>
<cn type="integer">3</cn>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">4</cn>
<cn type="integer">5</cn>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol><cn type="integer">6</cn></apply>
</apply>
</apply>
</math>
Prefix
Popcorn
linalg5.upper-triangular(linalg2.vector(linalg2.vector(1, 2, 3), linalg2.vector(4, 5), linalg2.vector(6)))
Rendered Presentation MathML
Signatures:
sts
Role:
application
Description:
This symbol represents a lower-triangular matrix, it takes one
argument. The argument should be a vector of vectors of elements of
the matrix.
Commented Mathematical property (CMP):
the product of two lower-triangular matrices is lower-triangular
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="linalg5" name="lower-triangular"/>
<OMV name="VV1"/>
</OMA>
<OMA>
<OMS cd="arith1" name="times"/>
<OMA>
<OMS cd="linalg5" name="lower-triangular"/>
<OMV name="VV2"/>
</OMA>
<OMA>
<OMS cd="linalg5" name="lower-triangular"/>
<OMV name="VV3"/>
</OMA>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="linalg5">lower-triangular</csymbol><ci>VV1</ci></apply>
<apply><csymbol cd="arith1">times</csymbol>
<apply><csymbol cd="linalg5">lower-triangular</csymbol><ci>VV2</ci></apply>
<apply><csymbol cd="linalg5">lower-triangular</csymbol><ci>VV3</ci></apply>
</apply>
</apply>
</math>
Prefix
Popcorn
linalg5.lower-triangular($VV1) = linalg5.lower-triangular($VV2) * linalg5.lower-triangular($VV3)
Rendered Presentation MathML
lower-triangular
(
VV
1
)
=
lower-triangular
(
VV
2
)
lower-triangular
(
VV
3
)
Example:
An example to describe the lower triangular matrix:
[[1,0,0]
[2,3,0]
[4,5,6]]
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="linalg5" name="lower-triangular"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI> 1 </OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI> 2 </OMI><OMI> 3 </OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI> 4 </OMI><OMI> 5 </OMI><OMI> 6 </OMI>
</OMA>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="linalg5">lower-triangular</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol><cn type="integer">1</cn></apply>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">2</cn>
<cn type="integer">3</cn>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">4</cn>
<cn type="integer">5</cn>
<cn type="integer">6</cn>
</apply>
</apply>
</apply>
</math>
Prefix
Popcorn
linalg5.lower-triangular(linalg2.vector(linalg2.vector(1), linalg2.vector(2, 3), linalg2.vector(4, 5, 6)))
Rendered Presentation MathML
Signatures:
sts
Role:
application
Description:
This symbol represents an upper-Hessenberg matrix, it takes one argument,
the argument is a vector of vectors representing the non-zero
elements. The first element of the argument specifies the value of the
first subdiagonal, the subsequent elements specify the value of the
diagonal and subsequent super-diagonals, all other elements are zero.
Example:
A specification of an upper-Hessenberg matrix of dimension 5:
[[1 2 3 0 0]
[4 5 6 7 0]
[0 8 9 10 11]
[0 0 12 13 14]
[0 0 0 15 16]]
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="linalg5" name="upper-Hessenberg"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI>4</OMI> <OMI>8</OMI> <OMI>12</OMI> <OMI>15</OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI>1</OMI> <OMI>5</OMI> <OMI>9</OMI> <OMI>13</OMI> <OMI>16</OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI>2</OMI> <OMI>6</OMI> <OMI>10</OMI> <OMI>14</OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI>3</OMI> <OMI>7</OMI> <OMI>11</OMI>
</OMA>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="linalg5">upper-Hessenberg</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">4</cn>
<cn type="integer">8</cn>
<cn type="integer">12</cn>
<cn type="integer">15</cn>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">1</cn>
<cn type="integer">5</cn>
<cn type="integer">9</cn>
<cn type="integer">13</cn>
<cn type="integer">16</cn>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">2</cn>
<cn type="integer">6</cn>
<cn type="integer">10</cn>
<cn type="integer">14</cn>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">3</cn>
<cn type="integer">7</cn>
<cn type="integer">11</cn>
</apply>
</apply>
</apply>
</math>
Prefix
upper-Hessenberg
(
vector
(
vector
(4, 8, 12, 15)
,
vector
(1, 5, 9, 13, 16)
,
vector
(2, 6, 10, 14)
,
vector
(3, 7, 11)
)
)
Popcorn
linalg5.upper-Hessenberg(linalg2.vector(linalg2.vector(4, 8, 12, 15), linalg2.vector(1, 5, 9, 13, 16), linalg2.vector(2, 6, 10, 14), linalg2.vector(3, 7, 11)))
Rendered Presentation MathML
1
2
3
0
0
4
5
6
7
0
0
8
9
10
11
0
0
12
13
14
0
0
0
15
16
Commented Mathematical property (CMP):
the transpose of an upper-Hessenberg matrix is lower-Hessenberg
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="linalg1" name="transpose"/>
<OMA>
<OMS cd="linalg5" name="upper-Hessenberg"/>
<OMV name="VV1"/>
</OMA>
</OMA>
<OMA>
<OMS cd="linalg5" name="lower-Hessenberg"/>
<OMV name="VV2"/>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="linalg1">transpose</csymbol>
<apply><csymbol cd="linalg5">upper-Hessenberg</csymbol><ci>VV1</ci></apply>
</apply>
<apply><csymbol cd="linalg5">lower-Hessenberg</csymbol><ci>VV2</ci></apply>
</apply>
</math>
Prefix
Popcorn
linalg1.transpose(linalg5.upper-Hessenberg($VV1)) = linalg5.lower-Hessenberg($VV2)
Rendered Presentation MathML
upper-Hessenberg
(
VV
1
)
T
=
lower-Hessenberg
(
VV
2
)
Signatures:
sts
Role:
application
Description:
This symbol represents a lower-Hessenberg matrix, it takes one argument,
the argument is a vector of vectors representing the non-zero
elements. The first element of the argument specifies the value of the
first super-diagonal, the subsequent elements specify the value of the
diagonal and subsequent subdiagonals, all other elements are zero.
Example:
A specification of a lower-Hessenberg matrix of dimension 5:
[[1 2 0 0 0]
[3 4 5 0 0]
[6 7 8 9 0]
[0 10 11 12 13]
[0 0 14 15 16]]
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="linalg5" name="lower-Hessenberg"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI>2</OMI> <OMI>5</OMI> <OMI>9</OMI> <OMI>13</OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI>1</OMI> <OMI>4</OMI> <OMI>8</OMI> <OMI>12</OMI> <OMI>16</OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI>3</OMI> <OMI>7</OMI> <OMI>11</OMI> <OMI>15</OMI>
</OMA>
<OMA>
<OMS cd="linalg2" name="vector"/>
<OMI>6</OMI> <OMI>10</OMI> <OMI>14</OMI>
</OMA>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="linalg5">lower-Hessenberg</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">2</cn>
<cn type="integer">5</cn>
<cn type="integer">9</cn>
<cn type="integer">13</cn>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">1</cn>
<cn type="integer">4</cn>
<cn type="integer">8</cn>
<cn type="integer">12</cn>
<cn type="integer">16</cn>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">3</cn>
<cn type="integer">7</cn>
<cn type="integer">11</cn>
<cn type="integer">15</cn>
</apply>
<apply><csymbol cd="linalg2">vector</csymbol>
<cn type="integer">6</cn>
<cn type="integer">10</cn>
<cn type="integer">14</cn>
</apply>
</apply>
</apply>
</math>
Prefix
lower-Hessenberg
(
vector
(
vector
(2, 5, 9, 13)
,
vector
(1, 4, 8, 12, 16)
,
vector
(3, 7, 11, 15)
,
vector
(6, 10, 14)
)
)
Popcorn
linalg5.lower-Hessenberg(linalg2.vector(linalg2.vector(2, 5, 9, 13), linalg2.vector(1, 4, 8, 12, 16), linalg2.vector(3, 7, 11, 15), linalg2.vector(6, 10, 14)))
Rendered Presentation MathML
1
2
0
0
0
3
4
5
0
0
6
7
8
9
0
0
10
11
12
13
0
0
14
15
16
Commented Mathematical property (CMP):
the transpose of a lower-Hessenberg matrix is upper-Hessenberg
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="linalg1" name="transpose"/>
<OMA>
<OMS cd="linalg5" name="lower-Hessenberg"/>
<OMV name="VV1"/>
</OMA>
</OMA>
<OMA>
<OMS cd="linalg5" name="upper-Hessenberg"/>
<OMV name="VV2"/>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="linalg1">transpose</csymbol>
<apply><csymbol cd="linalg5">lower-Hessenberg</csymbol><ci>VV1</ci></apply>
</apply>
<apply><csymbol cd="linalg5">upper-Hessenberg</csymbol><ci>VV2</ci></apply>
</apply>
</math>
Prefix
Popcorn
linalg1.transpose(linalg5.lower-Hessenberg($VV1)) = linalg5.upper-Hessenberg($VV2)
Rendered Presentation MathML
lower-Hessenberg
(
VV
1
)
T
=
upper-Hessenberg
(
VV
2
)
Signatures:
sts
Role:
application
Description:
This symbol represents a tridiagonal matrix, it takes one argument
which should be a vector of vectors which should have three elements.
These should be vectors representing the sub-diagonal, the diagonal
and the super-diagonal in that order.
Commented Mathematical property (CMP):
a tridiagonal matrix is a (1,1) banded matrix
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="logic1" name="and"/>
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="linalg4" name="size"/>
<OMV name="VV"/>
</OMA>
<OMI> 3 </OMI>
</OMA>
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="linalg4" name="size"/>
<OMA>
<OMS cd="linalg1" name="vector_selector"/>
<OMI> 2 </OMI>
<OMV name="VV"/>
</OMA>
</OMA>
<OMA>
<OMS cd="arith1" name="plus"/>
<OMA>
<OMS cd="linalg4" name="size"/>
<OMA>
<OMS cd="linalg1" name="vector_selector"/>
<OMI> 1 </OMI>
<OMV name="VV"/>
</OMA>
</OMA>
<OMI> 1 </OMI>
</OMA>
</OMA>
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="linalg5" name="tridiagonal"/>
<OMV name="VV"/>
</OMA>
<OMA>
<OMS cd="linalg5" name="banded"/>
<OMV name="VV"/>
</OMA>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="logic1">and</csymbol>
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="linalg4">size</csymbol><ci>VV</ci></apply>
<cn type="integer">3</cn>
</apply>
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="linalg4">size</csymbol>
<apply><csymbol cd="linalg1">vector_selector</csymbol><cn type="integer">2</cn><ci>VV</ci></apply>
</apply>
<apply><csymbol cd="arith1">plus</csymbol>
<apply><csymbol cd="linalg4">size</csymbol>
<apply><csymbol cd="linalg1">vector_selector</csymbol><cn type="integer">1</cn><ci>VV</ci></apply>
</apply>
<cn type="integer">1</cn>
</apply>
</apply>
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="linalg5">tridiagonal</csymbol><ci>VV</ci></apply>
<apply><csymbol cd="linalg5">banded</csymbol><ci>VV</ci></apply>
</apply>
</apply>
</math>
Prefix
Popcorn
linalg4.size($VV) = 3 and linalg4.size(linalg1.vector_selector(2, $VV)) = linalg4.size(linalg1.vector_selector(1, $VV)) + 1 and linalg5.tridiagonal($VV) = linalg5.banded($VV)
Rendered Presentation MathML
size
(
VV
)
=
3
∧
size
(
VV
2
)
=
size
(
VV
1
)
+
1
∧
tridiagonal
(
VV
)
=
banded
(
VV
)
Commented Mathematical property (CMP):
The product of two tridiagonal matrices is tridiagonal
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="arith1" name="times"/>
<OMA>
<OMS cd="linalg5" name="tridiagonal"/>
<OMV name="VV1"/>
</OMA>
<OMA>
<OMS cd="linalg5" name="tridiagonal"/>
<OMV name="VV2"/>
</OMA>
</OMA>
<OMA>
<OMS cd="linalg5" name="tridiagonal"/>
<OMV name="VV3"/>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="arith1">times</csymbol>
<apply><csymbol cd="linalg5">tridiagonal</csymbol><ci>VV1</ci></apply>
<apply><csymbol cd="linalg5">tridiagonal</csymbol><ci>VV2</ci></apply>
</apply>
<apply><csymbol cd="linalg5">tridiagonal</csymbol><ci>VV3</ci></apply>
</apply>
</math>
Prefix
Popcorn
linalg5.tridiagonal($VV1) * linalg5.tridiagonal($VV2) = linalg5.tridiagonal($VV3)
Rendered Presentation MathML
tridiagonal
(
VV
1
)
tridiagonal
(
VV
2
)
=
tridiagonal
(
VV
3
)
Signatures:
sts