Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1990
*January
*February
*March
*April
*May
*June
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1990

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

Search the Archive

pristine example--and a lesson

  • To: mathgroup at yoda.ncsa.uiuc.edu
  • Subject: pristine example--and a lesson
  • From: uunet!SLCS.SLB.COM!macg (Bill Macgregor)
  • Date: Fri, 1 Jun 90 09:32:57 CDT

(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