12.07.2015 Views

Learning Guide Learning Guide

Learning Guide Learning Guide

Learning Guide Learning Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

20 • Chapter 2: Mathematics with Maple: the Basics1, 2, 3, 4> x, y, z, w;x, y, z, wExpression sequences are neither lists nor sets. They are a distinctdata structure within Maple and have their own properties. For example,they preserve the order and repetition of their elements. Items stay inthe order in which you enter them. If you enter an element twice, bothcopies remain. Other properties of sequences will become apparent as youprogress through this manual. Sequences are often used to build moresophisticated objects through such operations as concatenation.Sequences extend the capabilities of many basic Maple operations.For example, concatenation is a basic name-forming operation. The concatenationoperator in Maple is “||”. You can use it in the followingmanner.> a||b;abWhen applying concatenation to a sequence, the operation affects eachelement. For example, if S is a sequence, then you can prepend the namea to each element in S by concatenating a and S.> S := 1, 2, 3, 4;S := 1, 2, 3, 4> a||S;a1 , a2 , a3 , a4You can also perform multiple assignments using expression sequences.For example> f,g,h := 3, 6, 1;f, g, h := 3, 6, 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!