check for scalars - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Differential Equations : Differential Forms : difforms/scalar

type/scalar - check for scalars

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)

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