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
LargeExpressions[Veil] - hide a complicated expression
LargeExpressions[Unveil] - show a hidden complicated expression
Calling Sequence
Veil[K]( complicated_expression )
Unveil[K]( expressions_with_Ks, n )
LastUsed
Parameters
K
-
unassigned name to use as a label
complicated_expression
expression
expressions_with_Ks
expression that has been veiled
n
positive integer representing the level of unveiling, or infinity, meaning all levels
Description
During a long calculation, it is sometimes useful to explicitly control Maple evaluation of expressions by hiding their values under user-defined labels. This allows compact representation of the results as a computation sequence, generated from the natural hierarchy of the problem.
The Veil command is used to hide information, Unveil to reveal the hidden information. Both commands take an index that specifies the label to use; multiple labels can be present in an expression and manipulated independently. If no label is specified, is used.
You can use these commands as a functional argument to collect, replacing complicated coefficients in a sum of terms by simple labels.
The protected variable LastUsed contains a table of indices pointing to the last used label index in each variable.
Examples
Treat a polynomial in as a polynomial in with hidden coefficients depending on .
Create another sequence using different labels. Note that the table of last used indices is keyed by the label name (in this case C).
C(1) = 10 * x + 23 - 98 * z C(2) = 40 * x - 10 * z ** 2 + 7 * x * z + 61 * z + 4 * x ** 2 + 8 C(3) = 23 * x - 83 * x ** 2 * z - 29 * z ** 3 + 95 * z ** 2 - 50 * # x * z + 87 * x ** 3 + 11 * z - 10 * x ** 2 - 49 + 42 * x * z ** 2 C(4) = 40 * z ** 3 - 92 * x * z ** 2 - 47 * z ** 4 + 75 * x * z ** # 3 + 6 * x * z + 91 * z - 56 * x ** 3 * z + 68 + 22 * x ** 4 + 62 #* x ** 2 * z ** 2 - 81 * z ** 2 + 74 * x + 80 * x ** 2 - 82 * x ** # 2 * z C(5) = -1 - 44 * x + 44 * x ** 2 * z ** 3 - 95 * z + 10 * z ** 5 + # 51 * z ** 3 - 77 * z ** 2 + 73 * x ** 3 + 55 * x ** 4 * z + 7 * x # ** 5 + 75 * x ** 2 + 62 * x ** 3 * z ** 2 - 31 * z ** 4 + 17 * x #** 2 * z + 94 * x ** 4 - 87 * x * z - 71 * x ** 2 * z ** 2 - 72 * #x * z ** 4 - 37 * x * z ** 3 + 23 * x * z ** 2 - 97 * x ** 3 * z
The following Frobenius series solution to a differential equation has complicated coefficients, which obscure the structure of the solution.
Example based on content provided in Chapter 2 of Essential Maple 7.
See Also
CodeGeneration, collect, CompSeq, freeze, thaw
References
Corless, Robert M. Essential Maple 7. Springer-Verlag.
Download Help Document