negative - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


type/positive

check for a positive number

type/negative

check for a negative number

type/nonnegative

check for a non-negative number

type/nonpositive

check for a non-positive number

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(x, positive)

type(x, negative)

type(x, nonnegative)

type(x, nonpositive)

Parameters

x

-

numeric type

Description

• 

The functions type(x, positive), type(x, negative), type(x, nonnegative), and type(x, nonpositive) return true if x is a positive, negative, non-negative, or non-positive extended_numeric number, respectively. Otherwise, false is returned.

Examples

type0,positive

false

(1)

type1.79,negative

true

(2)

type0,nonnegative

true

(3)

type,nonpositive

true

(4)

typex2,nonnegative

false

(5)

typesqrt8,positive

false

(6)

See Also

type

type/extended_numeric

type/negint

type/nonnegint

type/nonposint

type/numeric

type/posint