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
combinat[rankcomb] - 組み合わせの辞書式順序のランクを計算
combinat[unrankcomb] - 辞書式順序のランクを使用した組み合わせの計算
使い方
rankcomb( s, n )
unrankcomb( r, n, k )
パラメータ
s
-
set(posint); n について 1 から n の正の整数
n
posint; 組み合わせの要素が選択される集合のサイズ
k
posint; 組み合わせのサイズ
r
posint; 組み合わせのランク
説明
正の整数 n について 1から n の整数の組み合わせ (サブセット) s において、コマンド rankcomb( 's', 'n' ) は s の辞書式順序のランクを計算します。つまり、s が k 個の要素を含み、{1,2,...,n} の k 個のサブセットが辞書式にリストされている場合、この順番のリストで与えられたサブセットの位置を出力します。
ランク r (ここで r は最大で binomial(n,k)) の場合、コマンド unrankcomb( 'r', 'n', 'k' ) は {1,2,...,n} の k 個のサブセットの辞書式順序のリストで r 番目の位置で発生する {1,2,...,n} のk 個のサブセットを計算します。
コマンド rank および unrank は互いに反転関係にあり、rankcomb( unrankcomb( r, k, n ), n ) = r および unrankcomb( rankcomb( s, n ), nops( s ), n ) = s を満たします。
互換性
combinat[rankcomb] コマンドは Maple 16 で導入されました。
Maple 16 における変更点についての詳細は、Maple 16 の新機能 を参照してください。
スレッド安全性
Maple 16 から、combinat[rankcomb] コマンドはスレッドセーフになりました。
スレッド安全性に関する詳細は、index/threadsafe を参照してください。
例
with( combinat ):
rankcomb( { 2, 3, 4 }, 5 );
rankcomb( { 2, 3, 4 }, 9 );
unrankcomb( 29, 9, 3 );
関連項目
combinat、combinat[choose]
Download Help Document