MathGroup Archive 2006

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

Search the Archive

Re: Question about UpSet vs SetDelayed

  • To: mathgroup at smc.vnet.net
  • Subject: [mg63808] Re: Question about UpSet vs SetDelayed
  • From: "Chris Chiasson" <chris.chiasson at gmail.com>
  • Date: Sat, 14 Jan 2006 02:34:46 -0500 (EST)
  • References: <dq7u2s$3r6$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Andy Somogyi,

I noticed you haven't used any patterns in your statements. It would be
significantly easier to arrive at different results when patterns are
involved.

There are a lot of different cases where using TagSet or UpSet or Set
(or delayed variants thereof) would be appropriate...

Here is an UpSet example that would not make much sense as a Set.
In[1]:=
g_Integer[s]^=jump
Out[1]=
jump
In[2]:=
f[s]
Out[2]=
f[s]
In[3]:=
f[s]/.f\[Rule]1
Out[3]=
jump

Regards,


  • Prev by Date: Re: Using FindRoot with an equation that includes Maximize
  • Next by Date: Re: How to create {{x1,y1}, ..., {xn,yn}} data from {x1,...,xn} and {y1, ..., yn}
  • Previous by thread: Question about UpSet vs SetDelayed
  • Next by thread: Re: Question about UpSet vs SetDelayed