Previous Page Next Page Contents

Type::Relation -- type for testing relations

Introduction

With Type::Relation, relational expression can be identified.

Call(s)

testtype(obj, Type::Relation)

Parameters

obj - any MuPAD object

Returns

see testtype

Related Functions

testtype

Details

Example 1

x > 3 is a relation, while TRUE is not:

>> testtype(x > 3, Type::Relation),
   testtype(TRUE, Type::Relation)
                                TRUE, FALSE

Example 2

MuPAD always interprets expressions with the operations >= and > as expressions with <= and < with the operands exchanged:

>> x > 3;
   prog::exprtree(x > 3):
                                   3 < x
      
                                   _less
                                   |
                                   +-- 3
                                   |
                                   `-- x

The operator is not >, but <, and the operands have been swapped:

>> op(x > 3, 0..2)
                                _less, 3, x

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000