Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
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
See Also
evalc, member, piecewise, signum
Download Help Document