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.

200 • Chapter 5: Evaluation and Simplificationa iYou must use evaln to unassign a[i].> evaln( a[i] );a 4> a[i] := evaln( a[i] );a 4 := a 4Using Quoted Variables as Function ArgumentsSome Maple commands use names as a way to return information inaddition to the standard return value. The divide command assigns thequotient to the global name, q.> divide( x^2-1, x-1, ’q’ );true> q;x + 1Remember to use a quoted name to ensure that you are not passinga variable with an assigned value into the procedure. You can avoid theneed for quotes if you ensure that the name you use has no previouslyassigned value.> q := 2;q := 2> divide( x^2-y^2, x-y, q );Error, wrong number (or type) of parameters in functiondivide

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

Saved successfully!

Ooh no, something went wrong!