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
CodeGeneration パッケージの概要
基本機能
説明
CodeGeneration パッケージは、Maple コードを別のプログラミング言語に変換するためのコマンドやサブパッケージをまとめたものです。
出力
対象の言語に変換されたソースコード
CodeGeneration パッケージコマンドへのアクセス
CodeGeneration パッケージに含まれている各コマンドには、コマンドの「使い方」に記載されているコマンドの長い形式または短い形式を使用してアクセスできます。
長い形式
CodeGeneration[C]([[x, 2*y], [5, z]]);
短い形式
with(CodeGeneration);
C([[x, 2*y], [5, z]]);
基本的な CodeGeneration パッケージコマンド
C
Maple コードを C コードに変換します。
CSharp
Maple コードを C# コードに変換します。
Fortran
Maple コードを Fortran コードに変換します。
Java
Maple コードを Java コードに変換します。
Matlab
Maple コードを MATLAB コードに変換します。
Visual Basic
Maple コードを VisualBasic コードに変換します。
例
C コードを生成します。
C(x+y+z-2*x*z);
cg = x + y + z - 2 * x * z;
MATLAB(R) コードを生成します。
Matlab([[x, 2*y+z], [x*y, z]]);
cg0 = [x 2 * y + z; x * y z;];
Visual Basic コードを生成します。
VisualBasic([s=1.0+x, t=ln(s)*exp(-x), r=exp(-x)+x*t]);
s = 0.10E1 + x t = Log(s) * Exp(-x) r = Exp(-x) + x * t
詳細
以下の情報を含む詳細は、
変換された出力を変更するオプション
LanguageDefinition サブパッケージを使用した CodeGeneration パッケージの拡張
CodeGeneration の詳細 ヘルプページを参照してください。
関連項目
CodeGeneration 例題 - CodeGeneration パッケージのルーチンの詳細な例
Matlab - MATLAB とのデータのやりとり
Download Help Document