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
Maple のコマンドラインにおける Maplet アプリケーションの作成および表示
Mapletアプリケーションの作成および表示を行う際に、Maple のコマンドライン版を使用することが可能です。
説明
コマンドライン版で Maplet アプリケーションを使用するためには、Maple のコードと同じように、Maple のプロンプトに対して Mapletアプリケーションのコードを入力します。
代わりに、テキストエディタを用いて Maplet アプリケーションの定義をテキストファイルに入力する方法もあります。このテキストファイルは、拡張子 .mpl で保存して下さい。
ご利用のオペレーティングシステムに依り、つぎの方法で .mpl ファイルを実行することができます。
* ファイルブラウザでこの .mpl ファイルをダブルクリックします。 あるいは、
* コマンドラインで、引数として maple と filename を入力します。
Maple のコードが、コマンドライン版の Maple で実行されます。Maplet[Display] コマンドによる指定が Maplet アプリケーションの定義に含まれていると、それにより表示が行われます。
例
次の Maplet アプリケーションコードをユーザのコマンドラインセッションにコピーします。そして ENTER を押して下さい。
with(Maplets[Elements]): maplet := Maplet([ "Click a Button:", [Button("OK", Shutdown("true")), Button("Cancel", Shutdown())] ]): result := Maplets[Display](maplet);
次の例を、.mpl ファイルに保存します。 ファイルブラウザで、作成した .mpl ファイルをダブルクリックして下さい。
use Maplets in use Elements in maplet := Maplet( Window( 'title' = "Hilbert Matrix", [ ["Dimension: ", TextField['TB1']( "10" )], ["Target format: ", DropDownBox['DDB1']( ["Matlab", "MatrixMarket", "delimited"] )], ["File name:", TextField['TB2']( "hilmat" )], [ Button( "OK", Shutdown(['TB1', 'DDB1', 'TB2']) ), Button( "Cancel", Shutdown() ) ] ] ) ); end use; result := Display( maplet ); end use: if result <> [] and result[3] <> "" then try n := parse( result[1] ); catch: end try; if type( n, 'integer' ) then ExportMatrix( result[3], LinearAlgebra:-HilbertMatrix( n, outputoptions=[ 'datatype'=float[8]] ), 'target' = convert( result[2], 'symbol' ) ); end if; end if:
参照
Maplets, Maplets[Display], Maplets[Elements], Maplets[Examples], Maplets[Tools]
Download Help Document