type/scalar - check for scalars
|
Calling Sequence
|
|
type(expr, scalar)
|
|
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
|
|
>
|

|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
|
|