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
TypeTools[AddType] - ユーザ定義の型を用いた型システムの拡張
使い方
AddType(typename, handler)
パラメータ
typename - 名前
handler - 手続きまたは構造化された型
説明
新しい型 typename が型システムにインストールされます。
handler は、新しい型を記述する、手続きまたは構造化された型のいずれかです。
handler が手続きであるならば、handler(e::expression) のように呼び出されます。e が正しい型であれば true が返され、そうでなければ false が返されます。
例
TypeTools[AddType]( tff, '{identical(true),identical(false),identical(FAIL)}' ); type( FAIL, 'tff' );
type( [true,false], 'list(tff)' );
TypeTools[AddType]( integer7, t->evalb(t::integer and irem(t,7)=0) ); type( 4, 'integer7' );
type( 28, 'integer7' );
参照
type, type[structured], TypeTools パッケージの紹介, TypeTools[GetType], TypeTools[RemoveType]
Download Help Document