Previous Page Next Page Contents

Type::NegInt -- a type and a property representing negative integers

Introduction

Type::NegInt represents negative integers. Type::NegInt is a property, too, which can be used in an assume call.

Call(s)

testtype(obj, Type::NegInt)
assume(x, Type::NegInt)
is(ex, Type::NegInt)

Parameters

obj - any MuPAD object
x - an identifier or one of the expressions Re(u) or Im(u) with an identifier u
ex - an arithmetical expression

Returns

see testtype, assume and is

Related Functions

testtype, is, assume, Type::Property

Details

Example 1

The following numbers are of type Type::NegInt:

>> testtype(-2, Type::NegInt),
   testtype(-3, Type::NegInt),
   testtype(-55, Type::NegInt),
   testtype(-1, Type::NegInt),
   testtype(-111111111, Type::NegInt)
                       TRUE, TRUE, TRUE, TRUE, TRUE

Example 2

Assume an identifier is a negative integer:

>> assume(x, Type::NegInt):
   is(x, Type::NegInt)
                                   TRUE

Negative integers are integers, of course:

>> assume(x, Type::NegInt):
   is(x, Type::Integer)
                                   TRUE

However, integers can be negative or not:

>> assume(x, Type::Integer):
   is(x, Type::NegInt)
                                  UNKNOWN
>> delete x:

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000