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.

192 • Chapter 5: Evaluation and Simplification5You can use the eval command to control the level of evaluation of anexpression. If you call eval with just one argument, then eval evaluatesthat argument fully.> eval(x);5A second argument to eval specifies how far you want to evaluate thefirst argument.> eval(x, 1);y> eval(x, 2);z> eval(x, 3);5The main exceptions to the rule of full evaluation are special datastructures like tables, matrices, and procedures, and the behavior of localvariables inside a procedure.Last-Name EvaluationThe data structures array, table, matrix, and proc have a special evaluationbehavior called last-name evaluation.> x := y;x := y> y := z;y := z

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

Saved successfully!

Ooh no, something went wrong!