Appendix
A-3: Referencing
Example A-3.1
Evaluate 26, and by referencing that value, obtain 26+1.
Solution
Maple Solution - Interactive
Type 26.
Context Panel: Evaluate and Display Inline
Context Panel: Assign to a Name≻q
26 = 64→assign to a nameq
Type q+1.
q+1 = 65
Alternatively, type 26 and press the Enter key.
Reference the displayed result by its equation label: Ctrl+L. Enter the label number, without parentheses. Click OK. (See Figure A-3.1(a).)
Figure A-3.1(a) The Insert Label dialog
Type +1
Context Menu: Label≻Label Reference (The Label changes to that which it references.)
26
64
+1 = 65
Deleting the visible references to the assigned variable will not "erase" the assignment from Maple's memory. For interactively "unassigning" a variable, use the Variables palette, as described in Table A-1.2.
Maple Solution - Coded
The assignment operator is the "colon equal".
q≔26
q+1
Clear the assignment with the unassign command. The quotes are essential.
unassign'q'
<< Previous Section of Appendix Section A-3 Next Example >>
© Maplesoft, a division of Waterloo Maple Inc., 2024. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
Download Help Document