Appendix
A-3: Referencing
Example A-3.2
Form the sequence k2, for k=1,…,5; then select the third member of this sequence.
Solution
Maple Solution - Interactive
Type k2.
Context Panel: Sequence≻k≻1,5 Click OK. See Figure A-3.2(a)
Figure A-3.2(a) Sequence dialog
Context Panel: Select Element≻3
k2→sequence w.r.t. k1,4,9,16,25→select entry 39
Alternatively, name the sequence and use selection-brackets: Context Panel: Assign to a Name≻q
k2→sequence w.r.t. k1,4,9,16,25→assign to a nameq
q3 = 9
To unassign the name q interactively, use the Variables palette. (See Table A-1.2.)
Maple Solution - Coded
Use the seq command to create the sequence (see Section 10.2), and assign to the name q.
Selection-brackets extract the third item in the sequence.
q≔seqk2,k=1..5:
q3
Unassign the name q with the unassign command.
<< Previous Example 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