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
Maplets Examples パッケージの紹介
使い方
Maplets[Examples][function](arguments)
function(arguments)
説明
Maplets[Examples] パッケージには、maplet を表示したり、その使い方を示すための関数が含まれています。
Maplets[Examples] パッケージ内の各関数は、コマンドの呼び出し手順において、関数名の長い形と短い形のいずれを用いてもアクセスが可能です。
Maplets[Examples] パッケージ内にある各関数は、コマンドの呼び出し手順において、常に関数名の長い形によるアクセスが可能です。
例えば、ユーザにいくつかのオブジェクトの中から選択を行うようにさせるためには、以下の長い形の呼び出し手順を使用します。
Maplets[Examples][GetEquation](arguments)
関数名の長い形は、その関数の短い形が with(Maplets[Examples], function) で事前に定義されていない場合や、パッケージ関数の全ての短い形が with(Maplets[Examples]) で事前に定義されていない場合に必要となります。さらに、現在の Maple セッション内の他のオブジェクトで、Maplets[Examples] パッケージ内の関数と同じ名前が使用されている場合、Maplets[Examples]['function'](arguments) というような未評価にする引用符を用いることで、Maplets[Examples] 関数にアクセスすることが可能となります。
Maplets[Examples] パッケージの実行の基礎となるのはモジュールであるため、パッケージから関数にアクセスする際には、Maplets:-Examples:-function の形を用いることも可能です。記号 :- はその右辺を評価しないため、この形では未評価にする引用符を使用する必要がありません。ユーザが作成するプログラム内から Maplets[Examples] ルーチンにアクセスする際には、この記号の使用を推奨します。これでユーザがプログラム文全体で予想したとおりの実行が得られるでしょう。
特定の Maplets[Examples] 関数の短い形は、with(Maplets[Examples], function) が入力された後に、現在の Maple のセッション中で使用が可能になります。現在の Maple のセッション中で、全ての Maplets[Examples] 関数の短い形を使用するためには、with(Maplets[Examples]) コマンドを最初に入力して下さい。
例えば、実行する等式の入力をユーザに促すためには、以下の短い形の呼び出し手順を使用します( with(Maplets[Examples]) が既に入力されているものと仮定します)。
GetEquation(arguments)
Maplets Examples パッケージ関数の一覧
以下に利用できる関数の一覧を示します。
Alert Confirm GetColor GetEquation GetExpression GetFile GetInput Message Question Selection SignQuery
Using the Example Maplets ワークシートでは、Maplets[Examples] 関数の使用方法を実演しています。
サンプルの Maplet ワークシート
以下に示すワークシートでは、Maplets[Examples] パッケージ内にある関数を用いて実行されるものと同様の動作を行う maplet を書く方法について、実演しています。
Alert Confirm GetColor GetEquation GetExpression GetFile GetInput Message Question Selection
Maplets Examples パッケージの応用的な関数の一覧
これらの関数は、例えば LinearAlgebra package maplets といった、Maple のパッケージや関数に対する視覚的なインタフェースを提供します。以下に利用できる関数の一覧を示します。
BezoutMatrix ConditionNumber HilbertMatrix Integration KernelOpts MatrixNorm QRDecomposition ShowTable SingularValues VectorNorm
Using the Example Maplets ワークシートでは、Maplets[Examples] の応用的な関数の使用方法を実演しています。
以下に示すワークシートでは、Maplets[Examples] パッケージ内にある応用的な関数を用いて実行されるものと同様の動作を行う maplet を書く方法について、実演しています。
BezoutMatrix ConditionNumber HilbertMatrix Integration MatrixNorm QRDecomposition ShowTable SingularValue VectorNorm
Maplets Examples パッケージ内にある関数に関するヘルプの参照方法
特定の Maplets Examples 関数に関するヘルプを表示するためには、次のコマンドのうちのいずれかを入力します(ここで function は上記の一覧から選択した名前を表す)。
?Maplets[Examples][function]
?Maplets,Examples,function
?function (この場合、function は Maple で固有の名前でなくてはなりません。)
例
with(Maplets[Examples]): GetEquation(); # The user enters x^2 - 4*x + 3
x^2 - 4 x + 3 = 0
参照
Maplets パッケージの概要, with
Download Help Document