charfcn - characteristic function for expressions and sets
|
Calling Sequence
|
|
charfcn[A](x)
|
|
Parameters
|
|
x
|
-
|
any algebraic expression
|
A
|
-
|
specification for a set
|
|
|
|
|
Description
|
|
•
|
The charfcn function is the characteristic function of the "set" A. It is defined to be
|
•
|
The set specification A can be a set, a real numeric, a complex numeric, a real numeric range, a complex numeric range, an arbitrary range, or an expression sequence of any of the previous. The meaning of each one of these is as follows
|
can be:
|
"in" () means:
|
-----------
|
--------------------
|
a set
|
set membership
|
a real or complex numeric
|
equality
|
a real numeric range,
|
|
a complex numeric range,
|
and (so is the bottom left corner, is the top right corner)
|
an arbitrary range,
|
, as determined by -- note that must all evaluate to
|
an expression sequence of any of the above (except set)
|
"or" of the above conditions
|
an expression sequence of sets
|
set membership in the union of the sets
|
|
|
•
|
When the specification is a set, the maple function member is used to test set membership, and thus charfcn will always return one of 0 or 1 in this case. In the other cases, charfcn is symbolic, in that it will return unevaluated if the "in" conditions cannot be verified or the specification is not exactly as described above.
|
•
|
Ranges where are treated as empty, and so charfcn will return 0 for all input.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
>
|
|
| (10) |
>
|
|
| (11) |
|
|
Download Help Document
Was this information helpful?