Method 2:  Use the "ReplaceAll" operator /.

[Graphics:../Images/index_gr_45.gif]
[Graphics:../Images/index_gr_46.gif]

Notice that this does not require the use of the Clear command:

[Graphics:../Images/index_gr_47.gif]
[Graphics:../Images/index_gr_48.gif]

In general, although this is a little less intuitive to use than the previous method of defining the values beforehand, it has less chance of unintended consequences (due to forgetting to clear a variable).


Converted by Mathematica      September 13, 2000