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
attributes - return the attributes
setattribute - assign attributes
Calling Sequence
attributes(e)
setattribute(e, a)
Parameters
e
-
expression
a
(optional) attribute
Description
The setattribute(e, a) calling sequence returns a copy of the expression e with attribute a assigned. If the expression, e, is a symbol or string, it is also modified in-place. For other data types, the original expression is unchanged.
Calling setattribute without parameter a removes all attributes from expression e.
Attributes of an expression can be queried by using attributes(e).
All Maple expressions are valid attributes. In particular, expression sequences can be used to assign multiple attributes to an object.
An expression with attributes (other than the NULL expression sequence) is said to be attributed. (See type[attributed].)
Attributes can be assigned to only a name, string, list, set, Array, Matrix, Vector, equation, procedure, unevaluated function call, or a float.
Attributes on rtables can also be set and queried by using the appropriate ArrayOptions, MatrixOptions, or VectorOptions (or generically, rtable_options) command.
Thread Safety
The attributes and setattributes commands are thread safe as of Maple 15, provided that the expression e is not shared between threads.
For more information on thread safety, see index/threadsafe.
Examples
Set attributes and query the attributes of an expression.
Remove all attributes from the expression a.
See Also
Array, float, list, Matrix, procedure, set, type[attributed], Vector
Download Help Document