> (greater-than sign)
The greater than relational operator.
Syntax
-
a > b-
aandbare real numbers
-
-
u > v-
uandvare real vectors of the same dimension
-
-
u > 0-
uis a real vector
-
-
A > B-
AandBare real matrices of the same size
-
-
A > 0-
Ais a real matrix
-
-
t > s-
tandsare date or datetime structures
-
Description
-
If
aandbare real numbers, thena > bistrueiffais greater thanb. No epsilons are used. Hence, even ifaandbare essentially equal,a > bmight betrue. For example,sin(π) > 0might or might not betrue. -
If
uandvare real vectors of the same dimension, thenu > vistrueiff every component ofuis greater than the corresponding component ofv. No epsilons are used. -
If
uis a real vector, thenu > 0istrueiffuis positive, that is, iff every component ofuis positive. -
If
AandBare real matrices of the same size, thenA > Bistrueiff every entry ofAis greater than the corresponding entry ofB. No epsilons are used. -
If
Ais a real matrix, thenA > 0istrueiffAis positive, that is, iff every entry ofAis positive. -
If
tandsare date or datetime structures, thent > sistrueifftdenotes 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