﻿ > – Algosim documentation
Algosim documentation: >

# > (greater-than sign)

The greater than relational operator.

## Syntax

• `a > b`

• `a` and `b` are real numbers

• `u > v`

• `u` and `v` are real vectors of the same dimension

• `u > 0`

• `u` is a real vector

• `A > B`

• `A` and `B` are real matrices of the same size

• `A > 0`

• `A` is a real matrix

• `t > s`

• `t` and `s` are date or datetime structures

## Description

• If `a` and `b` are real numbers, then `a > b` is `true` iff `a` is greater than `b`. No epsilons are used. Hence, even if `a` and `b` are essentially equal, `a > b` might be `true`. For example, `sin(π) > 0` might or might not be `true`.

• If `u` and `v` are real vectors of the same dimension, then `u > v` is `true` iff every component of `u` is greater than the corresponding component of `v`. No epsilons are used.

• If `u` is a real vector, then `u > 0` is `true` iff `u` is positive, that is, iff every component of `u` is positive.

• If `A` and `B` are real matrices of the same size, then `A > B` is `true` iff every entry of `A` is greater than the corresponding entry of `B`. No epsilons are used.

• If `A` is a real matrix, then `A > 0` is `true` iff `A` is positive, that is, iff every entry of `A` is positive.

• If `t` and `s` are date or datetime structures, then `t > s` is `true` iff `t` denotes a later point in time than `s`.

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`