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 scalar (in the matrix sense)

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(expr, scalar)

Parameters

expr

-

expression

Description

• 

Checks if expr is a scalar. This is the case if expr is algebraic and not a Vector or Matrix.

• 

More precisely, expr is a scalar if:

– 

expr is of type algebraic, and

– 

expr is not the name of a procedure, table, or module, and

– 

if the top-level type of expr is one of `*`, `+`, `.`, `^`, `&*`, `&+`, and `&^` (that is, if op(0, expr) is one of these operators), then all its arguments are scalars.

Examples

(1)

(2)

(3)

(4)

(5)

(6)

(7)

(8)

See Also

type

type,algebraic

 


Download Help Document