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
cat - 式の結合
使い方
cat( a, b, c, ... )
パラメータ
a, b, c, ... - 任意の式
説明
cat 関数は一般に文字列と名前を結合するのに用いられます。引数は結合されて文字列、名前、または型 `||` を持つオブジェクトが作られます。
cat が返すオブジェクトの型は、`||' かまたは cat の第1の引数と同じ型(name または string)です。
cat の結果が名前のとき、現在有効な同じ名前の局所変数があったとしても、実際それは大域変数であることに注意します。
名前 (あるいは文字列) の式列を形成するためには、1 文字以上の独立変数のシンボル (あるいは文字列) に続けて整数の指定をして下さい。Maple はシンボルと整数を連結し形成された式列を指定された回数繰り返し作成します。
例
cat( `a`, `b` );
cat( "a", "b" );
cat( `a`, "b" );
cat( "a", `b` );
cat( `a`, 2 );
cat( "a", 2 );
i := 5;
cat( "The value of i is ", i, "." );
tr := proc(s::string,src::string,dst::string) cat( op( map( x -> `if`( x = src, dst, x ), [ seq( i, i = s ) ] ) ) ); end proc;
tr( %%, " ", ":" );
f := proc() local a, b; a,b; end proc: cat( f(), c );
cat( 'f()', c );
これらの例は、名前の式列を作成するために範囲を指定しています。
cat( a, 1..10 );
cat( a, 1..2, 5..6 );
cat( a, 1..2, 5..6, 3..4 );
これにより手続きの中から大域的な割り当てを行うことができます。大域変数名だけが cat により返されることを説明しています。
gassign := proc(n::name,e::anything) assign(cat(n),e); end proc: g := proc() local a; a := 5; gassign( 'a', 2 ); end proc: a;
g(); a;
参照
substring, length, linalg[concat], ||
Download Help Document