type/scalar
check for scalars
Calling Sequence
Parameters
Description
Examples
type(expr, scalar)
expr
-
Maple expression
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).
with⁡difforms:defform⁡a=const,b=const,c=scalar,d=scalar
type⁡c+d3,scalar
true
type⁡a+d,scalar
type⁡a+d+f,scalar
false
type⁡a+b,scalar
Download Help Document