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
type/union - check for an object of type union
type/minus - check for an object of type minus
type/intersect - check for an object of type intersect
type/subset - check for an object of type subset
Calling Sequence
type(expr, `union`)
type(expr, `minus`)
type(expr, `intersect`)
type(expr, `subset`)
Parameters
expr
-
any expression
Description
These procedures check to see if expr is a function of type union, minus, intersect, or subset respectively. See ?union for more information on these functions.
It is important to put quotes around the words union, minus, intersect, and subset as they are keywords. Not using quotes will cause a syntax error.
Note that in the case of the third example, the call to the minus function is made before the call to the type function, and therefore the return is false. The set difference, , which is clearly not a function of type minus, is passed to the type function.
Examples
See Also
intersect, minus, subset, type, type/function, union
Download Help Document