gt - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


MapleTA[Builtin]

  

gt

  

greater-than test

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

gt(a, b)

Parameters

a, b

-

any expression

Description

• 

The gt command returns true if a is greater than b.  Otherwise false is returned.

• 

This is slightly different than in Maple T.A. proper, which understands 1.0 and 0.0 as true and false.  Because Maple does not equate numbers as boolean conditionals, it is more appropriate to have this function return true and false inside Maple.

Examples

MapleTA:-Builtin:-gt1,2

false

(1)

MapleTA:-Builtin:-gt1,1

false

(2)

MapleTA:-Builtin:-gt2,1

true

(3)

Compatibility

• 

The MapleTA[Builtin][gt] command was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.

See Also

evalb

MapleTA

MapleTA,Builtin,eq

MapleTA,Builtin,ge

MapleTA,Builtin,le

MapleTA,Builtin,lt

MapleTA,Builtin,ne