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
PDEtools[declare] - declare a function for compact display
PDEtools[undeclare] - undeclare a function for compact display
Calling Sequence
declare(f(x), g(x, y), '...')
declare(expr)
declare(prime=x)
declare(prime)
undeclare(f(x), '...')
undeclare(expr)
undeclare(all)
ON
OFF
show
Parameters
f(x)
-
function to be printed with compact display
expr
set, list, or sequence of expressions
prime = x
equation indicating the differentiation variable to be displayed with a prime
quiet
(optional) perform declarations without having information displayed on the screen
Description
The purpose of this set of commands is to permit a simple, compact display of functions and derivatives on the screen. Typically, one declares functions by using declare(f(x, y, z)) with the result that is displayed as (that is, only its name). One can declare many functions at once.
This scheme also displays all differentiation variables as indices and permits declaring a "prime variable". That is, for functions of one variable, derivatives with respect to that variable are displayed with a prime.
When declare is called with an algebraic expression, each function in the expression is "declared".
Note: you cannot declare for compact display known functions of the mathematical language (cos, sin, etc.) and the arguments of these functions will not be suppressed from the display when displaying unevaluated derivatives using indexed notation.
If no arguments are given to declare, the present status of the declared variables is reported. If the single argument 'prime' is given, the present status of the differentiation variable is reported.
The command undeclare accepts the same types of arguments as declare does, that is, a function, a sequence of functions, or an algebraic expression. It is used to "undo" declarations previously done by using declare.
declare and undeclare by default print informative messages when they are called. By using the extra option 'quiet' these messages are suppressed.
By default, when declare or undeclare is first loaded, the scheme for compact printing is turned ON. However, it is sometimes useful for comparison of display to toggle this feature OFF. The macros ON and OFF are provided for this purpose.
In the ON mode, the macro show displays the last output in OFF mode. This is helpful for copying expressions from the output line.
Different from macro and alias, this scheme handles only 'print/foo' subroutines. That is, it does not change input or output, only the typesetting on the screen.
These functions are part of the PDEtools package, and so they can be used in the form declare(..) and undeclare(..) only after executing the command with(PDEtools). However, they can always be accessed through the long form of the command by using PDEtools[declare](..) or PDEtools[undeclare](..).
Examples
Declare y(x) to be displayed as y, and x to be the 'prime' differentiation variable.
Check the declarations.
Following is an ODE displayed by using the scheme for compact printing.
Turn the scheme OFF, print the ODE, and then turn the scheme ON again. Compare the results.
Use the show command to display the ODE in standard format, to copy and paste to an input line, but keep the scheme ON.
Now undeclare all the functions.
Here is a PDE example.
During a working session, declare the main function of the problem to avoid redundant information throughout the solution.
You can declare all the functions in a given DE or PDE directly.
It is also possible to selectively undeclare one (or many) functions. When doing that, one can give the function or its name.
See Also
DEtools, dsolve, dsolve,education, PDEtools, pdsolve, print
Download Help Document