Mr. Sebastiaan Janssens

55 Reputation

4 Badges

13 years, 138 days
Utrecht University

Social Networks and Content at

MaplePrimes Activity

These are answers submitted by SGJanssens

Matrix indexing is one-based, but Arrays let you choose the starting index at construction, so if you want you can do something like:

X := Array(0..1, 0..1, [[m[1,1], m[1,2]], [m[2,1], m[2,2]]]);


By the way, your code does not work because first you assign X to the proc, but then you re-assign X to the Matrix. By the time you evaluate X[0,0], Maple does not know about the proc anymore.


You could search Maple's help for "set" (or: type ?set at a worksheet prompt) and browse to the section "Modifying the elements".


Page 1 of 1