MathGroup Archive 2011

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

Search the Archive

Re: Replace, test question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg120355] Re: Replace, test question
  • From: David Skulsky <edskulsky at gmail.com>
  • Date: Tue, 19 Jul 2011 07:00:46 -0400 (EDT)
  • Reply-to: comp.soft-sys.math.mathematica at googlegroups.com

I think your conditional needs to be a function of x.  Try:

{58, 61, 15, 66, 10, 2, 24, 81, 45, 84} /. x_ /; PrimeQ[x] -> P

David


  • Prev by Date: Re: I think Omitting the multiplication sign is a big mistake
  • Next by Date: Using Plot3D; rotating the plot but, getting a different image after exporting.
  • Previous by thread: Re: Replace, test question
  • Next by thread: Re: Replace, test question