Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
in - membership operator for sets or lists
Calling Sequence
element in objs
element in SetOf( type )
Parameters
element
-
expression
objs
set or list
type
valid type expression
Description
The in operator tests for set or list membership. The given container, objs, is searched for element. Evaluating an in expression in a boolean context, or via evalb, returns true if element is in objs, it returns false if element is not in objs. If the input contains symbolic components and the answer cannot be determined, a symbolic answer is returned. The default evaluator always returns in expressions unevaluated.
You can enter the command in using either the 1-D or 2-D calling sequence. For example, 1 in {1,2,3,4} is equivalent to .
When using the SetOf abstract set constructor, sets can be constructed from types. For example, the set of all integers can be created using SetOf( integer ). The SetOf constructor takes only one argument. More complex sets can be constructed using union, intersect and minus.
If obj is a complex expression involving union, intersect or minus, it may be more efficient to pass obj as an unevaluated expression. Using an unevaluated expression allows in to use its own rules for set membership across these functions.
The assume facility accepts the in operator.
Examples
Originally x, renamed x~: is assumed to be: real
The command in also works with lists.
See Also
add, assume, do, intersect, list, minus, mul, seq, set, type, uneval, union
Download Help Document