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
union - 集合の和演算子
intersect - 集合の共通部分演算子
minus - 集合差演算子
subset - 部分集合演算子
使い方
s1 union s2
`union`(s1, s2, s3,...)
s1 intersect s2
`intersect`(s1, s2, s3, ...)
s1 minus s2
`minus`(s1,s2)
s1 subset s2
`subset`(s1,s2)
パラメータ
s1, s2, s3, ... - 集合または式
説明
union, intersect, minus, subset ルーチンはそれぞれ集合の和、共通部分、差、部分集合をとる演算に使われます。union と intersect ルーチンは中置、結合的、可換、n 項の演算子です。minus と subset ルーチンは 2 項中置演算子です。
これらの演算子の優先順位についての情報は operator precedence を参照して下さい。
引数が式ならば、そのオブジェクトは集合に評価できなくてはなりません。どれかの引数が集合に割り当てることができなければ、エラーが返されます。たとえば {1,2,3} と S の和集合は未評価な値を返し、{1,2,3} と 4 の和集合はエラーを返します。
呼び出し手順 `union`(s1,s2) を使うときは、union はキーワードなので、バッククォートで囲まなければいけません。
注意: 集合演算はアドレステストに基づいています。集合の2個の要素が同じであっても、異なるアドレスを持てばテストは失敗します。最後の例はこれを説明しています。
例
{a,b} union {b,c};
{a,b} intersect {b,c};
{a,b} minus {b,c};
a union b union a;
{3,4} union a union {3,7};
`union`({3,4},a,{3,7});
{a,b} subset {a,c,b,d};
`subset`({a,b}, {a,c,d,e});
a subset b union c;
A := {e -> type(e, 'integer')}: B := {e -> type(e, 'integer')}: A subset B; A intersect B;
参照
expand, operator precedence, type/integer, type/intersect, type/minus, type/subset, type/union
Download Help Document