ecl-logo Documentation

GreaterQ

GreaterQ[testVal,value]bool

returns True if testVal is greater than value.

GreaterQ[testVal,value,increment]bool

returns True if testVal is greater than value by a multiple of increment.

Details

  • For distributions, the means are computed and used for the comparsion.
  • Input
    Output

Examples

Basic Examples  (5)

Matches any quantity greater than given quantity:

Additionally specify an increment:

Matches any DateObject greater than the given DateObject:

Additionally specify an increment:

Additionally specify an increment:

Additional Examples  (12)

Comparing distributions compares their means:

Distributions can be compared to reals and quantities as well:

Also accepts numeric values:

Specify an increment in numeric case:

Does not match if given quantity is less than or equal to test quantity:

Can handle different Units, provided they are compatibile:

Does not match if Units are incompatible:

Equality case does not match:

Numeric values and quantities are incompatible:

Numeric values and quantities are incompatible:

Non-matching numeric case:

Function does not evaluate on other inputs:

Possible Issues  (2)

Due to machine precision rounding errors, values are rounded to within 10^-12 of the increment value when compared:

Any difference larger than that amount will trigger a failure: