MathGroup Archive 2013

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

Search the Archive

Re: ReplacePart

  • To: mathgroup at smc.vnet.net
  • Subject: [mg131649] Re: ReplacePart
  • From: "Dr. Wolfgang Hintze" <weh at snafu.de>
  • Date: Sun, 15 Sep 2013 07:09:27 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <l11c49$ivr$1@smc.vnet.net>

Am Samstag, 14. September 2013 12:00:41 UTC+2 schrieb man21:
> Hello,
> 
> 
> 
> As a result of a calculation, I end up with a list of numerical values 
> 
> which contains  some "Indeterminate".
> 
> 
> 
> x ={-1.25664, 0.628319, -0.628319, 1.25664, Indeterminate, -1.25664,
> 
> 0.628319, -0.628319, 1.25664, Indeterminate}
> 
> 
> 
> I try to replace the "Indeterminate" by "0", using :
> 
> 
> 
> ReplacePart[x, {5, 10} -> 0.]
> 
> 
> 
> but this dosen't work. Any idea why, and how to do it ?
> 
> 
> 
> Thanks,
> 
> 
> 
> Michel

You can do it with simple replacement rule:

x /. Indeterminate -> 0

Regards,
Wolfgang



  • Prev by Date: Re: FindRoot
  • Next by Date: Re: multiintegral and table
  • Previous by thread: Re: ReplacePart
  • Next by thread: multiintegral and table