Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
Definition of a Type in Maple
Description
By definition, a type in Maple is any expression that is acceptable as the second argument to the procedure type, and that, for any choice of first argument to type causes it to return either true or false. For example, in type(expr, typexpr), expr is of type typexpr if and only if the first expression evaluates to true.
Any particular type belongs to one of the following four categories:
A system type: a type which is a name that is defined in the kernel of the Maple system. System types usually correspond to primitive algebraic or data structure concepts, such as integer, float, list, and relation.
A procedural type where the type is a name, for example abc, and there is a procedure `type/abc` which will perform the type analysis of the argument and will return true or false accordingly. This procedure may be available from the global Maple environment or from a library (for the latter case it is automatically loaded into the environment). This is one of the mechanisms to define new types in Maple. For example, monomial, algnum, and specindex are presently implemented as Maple library procedures.
An assigned type where the type is a name, such as abc, and the global name `type/abc` is assigned a type expression. The type evaluation proceeds as if the type checking were done with the expression assigned to `type/abc`. Thus
`type/intargs` := [algebraic, {name,name=algebraic..algebraic}];
....:
if not type([args],intargs) then error ...;
The type last_name_eval is presently implemented as an assigned structured type in the library.
A type expression which is a general Maple expression as described in type[structured].
See Also
type, type[structured]
Download Help Document