greater-than test - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Education : MapleTA Package : Builtin : MapleTA/Builtin/gt

MapleTA[Builtin][gt] - greater-than test

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)

See Also

evalb, MapleTA, MapleTA,Builtin,eq, MapleTA,Builtin,ge, MapleTA,Builtin,le, MapleTA,Builtin,lt, MapleTA,Builtin,ne


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam