11.07.2015 Views

Maple 9 Learning Guide - Maplesoft

Maple 9 Learning Guide - Maplesoft

Maple 9 Learning Guide - Maplesoft

SHOW MORE
SHOW LESS

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

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

3.1 The <strong>Maple</strong> solve Command • 47Applying One Operation to All Solutions The map command is anotheruseful command that allows you to apply one operation to all solutions.For example, try substituting both solutions.The map command applies the operation specified as its first argumentto its second argument.> map(f, [a,b,c], y, z);[f(a, y, z), f(b, y, z), f(c, y, z)]Due to the syntactical design of map, it cannot perform multiple functionapplications to sequences. Consider the previous solution sequence,for example,> soln;{x = −1, y = 2}, {x = 2, y = 1 2 }Enclose soln in square brackets to convert it to a list.> [soln];[{x = −1, y = 2}, {x = 2, y = 1 2 }]Use the following command to substitute each of the solutions simultaneouslyinto the original equations, eqns.> map(subs, [soln], eqns);[{1 = 1, 3 = 3}, {1 = 1, 3 = 3}]This method can be valuable if your equation has many solutions,or if you are unsure of the number of solutions that a certain commandproduces.Restricting SolutionsYou can limit solutions by specifying inequalities with the solve command.> solve({x^2=y^2},{x,y});

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

Saved successfully!

Ooh no, something went wrong!