> (greater-than sign)
The greater than relational operator.
Syntax
-
a > b
-
a
andb
are real numbers
-
-
u > v
-
u
andv
are real vectors of the same dimension
-
-
u > 0
-
u
is a real vector
-
-
A > B
-
A
andB
are real matrices of the same size
-
-
A > 0
-
A
is a real matrix
-
-
t > s
-
t
ands
are date or datetime structures
-
Description
-
If
a
andb
are real numbers, thena > b
istrue
iffa
is greater thanb
. No epsilons are used. Hence, even ifa
andb
are essentially equal,a > b
might betrue
. For example,sin(π) > 0
might or might not betrue
. -
If
u
andv
are real vectors of the same dimension, thenu > v
istrue
iff every component ofu
is greater than the corresponding component ofv
. No epsilons are used. -
If
u
is a real vector, thenu > 0
istrue
iffu
is positive, that is, iff every component ofu
is positive. -
If
A
andB
are real matrices of the same size, thenA > B
istrue
iff every entry ofA
is greater than the corresponding entry ofB
. No epsilons are used. -
If
A
is a real matrix, thenA > 0
istrue
iffA
is positive, that is, iff every entry ofA
is positive. -
If
t
ands
are date or datetime structures, thent > s
istrue
ifft
denotes a later point in time thans
.
The >
operator is implemented by the GreaterThan
function.
Examples
39/17 > 381/167
true
❨❨5, 1, 2❩, ❨1, 3, 2❩❩ > 0
true
tomorrow() > yesterday()
true