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
Comments
Description
Single line comments are introduced by a pound character (#, sometimes called a hash, sharp, or number sign character). This character and all that follow it on a line comprise a comment, and are discarded by Maple.
If the pound character is enclosed within a pair of left single quotes (a symbol) or double quotes (a string), then it is not treated as the beginning of a comment.
If the final character of a comment line is a non-escaped backslash, the comment is continued on the next line.
Multiline comments are enclosed in (* and *). Multiline comments are not available in 2-D math.
Maple procedures and modules may also contain a description clause, which is similar to a comment in that its purpose is documentation. However, unlike # comments, the description clause is retained by Maple when the procedure is compiled into Maple's internal form and will be displayed when the procedure is printed.
Examples
Note: When 1-D math input is converted to 2-D math input, all comments are discarded. To view all of the comments in the examples below, you must view the page in 1-D math input. In the View menu, ensure that the Display Examples with 2D Math box is not checked.
p := proc(x) description "Descriptions are retained by Maple."; # Square x. x^2; # Comments are discarded by Maple. end proc;
See Also
backslash, Preprocessor, quotes, string, symbol
Download Help Document