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.

5.4 Evaluation Rules • 197> i := 2;i := 2> seq( i^2, i=1..5 );1, 4, 9, 16, 25> i;2Contrast this with the behavior of sum.> sum( i^2, i=1..5 );Error, (in sum) summation variable previously assigned,second argument evaluates to 2 = 1 .. 5You can easily solve this problem using right single quotes, as shownin the next section.Quotation and UnevaluationThe Maple language supports the use of quotes to delay evaluation onelevel. Surrounding a name in right single quotes (’) prevents Maple fromevaluating the name. Hence, right single quotes are referred to as unevaluationquotes.> i := 4;i := 4> i;4> ’i’;iUse this method to avoid the following problem.

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

Saved successfully!

Ooh no, something went wrong!