MathGroup Archive 1990

[Date Index] [Thread Index] [Author Index]

Search the Archive

pristine example--and a lesson


(For me; you may already know it.  All of my lessons are learned
the hard way, of course.  On the 1-10 importance scale, this one
rates a 9, I'd say.)  

--------------------

Consider this script (it's very simple):

In[1]:= f[x_] := g[x] /; flag;

In[2]:= e = f[x] + g[x]

Out[2]= f[x] + g[x]

In[3]:= e

Out[3]= f[x] + g[x]

In[4]:= flag = True

Out[4]= True

In[5]:= e

Out[5]= f[x] + g[x]

In[6]:= Update[]

In[7]:= e

Out[7]= 2 g[x]


  - Bill


----- End Included Message -----




  • Next by Date: Apply&Map
  • Next by thread: Apply&Map