Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*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 2006

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

Search the Archive

Re: ReplaceAll (/.)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69434] Re: ReplaceAll (/.)
  • From: p-valko at tamu.edu
  • Date: Tue, 12 Sep 2006 06:53:19 -0400 (EDT)
  • References: <ed9491$tu$1@smc.vnet.net><edad92$p9i$1@smc.vnet.net> <ee3c27$otg$1@smc.vnet.net>

Chris is right:

Chris Rodgers wrote:
> p-valko at tamu.edu wrote:
> > The pattern  x_Times  would pick "a part of an expression that - after
> > plugging into the function Times - gives True". There is no such part
> > of your expression so it is returned intact.
>
> For the sake of the archives, I'd like to point out that this isn't
> quite right.
>
> x_Times matches anything whose Head === Times.
> 
> x_?Times would match anything where Times[x] were True.
> 
> Chris.


  • Prev by Date: tab-delimited file to graph
  • Next by Date: Evaluating a Meijer G-function
  • Previous by thread: Re: ReplaceAll (/.)
  • Next by thread: Re: Can't Remove[] variable "K"? (Really strange behavior . . . )