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

Online Help

All Products    Maple    MapleSim


type/scalar

check for scalars

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(expr, scalar)

Parameters

expr

-

Maple expression

Description

• 

The type scalar includes all names defined to be scalar through defform.

• 

Any sum or product which contains one term which is of type scalar, and remaining terms that are all either of type scalar or of type const, is considered to be scalar.

• 

Any power, where the base type is scalar, is considered to be scalar.

• 

The types const, scalar, and form are mutually exclusive.  Any expression can belong to at most one of these types.

• 

This function is part of the difforms package and can only be used after performing with(difforms).

Examples

withdifforms:defforma=const,b=const,c=scalar,d=scalar

typec+d3,scalar

true

(1)

typea+d,scalar

true

(2)

typea+d+f,scalar

false

(3)

typea+b,scalar

false

(4)