Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*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 2004

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

Search the Archive

Re: Undiscovered Bug?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46902] Re: Undiscovered Bug?
  • From: Harold.Noffke at wpafb.af.mil (Harold Noffke)
  • Date: Sun, 14 Mar 2004 03:24:24 -0500 (EST)
  • References: <c2u50r$f8i$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

MathGroup:

Thanks to all for help with Part documentation ...

    "When expr is a list, expr[[{i1, i2, ... in ]] gives a list of
parts. In general, the head of expr is applied to the list of parts."

ReplacePart's behavior, however, produces a different result ...

    Recall, we had for Part ...

    In[5]:= (x/y)[[{2, 1, 1, 0, 2, 2, 0}]]

                 2  2
            Times  x
    Out[5]= ---------
                3
               y

    But, we have for ReplacePart ...

    In[1]:= ReplacePart[(x/y), a, {2, 1, 1, 0, 2, 2, 0}]

                                                      x
    ReplacePart::partw: Part {2, 1, 1, 0, 2, 2, 0} of - does not
exist.
                                                      y

Maybe I'm still missing something, but it seems to me Part should be
revised to detect the same errors as ReplacePart.

Regards,
Harold


  • Prev by Date: nonlinear pde system
  • Next by Date: Re: Re: Re: Creating a symmetric matrix
  • Previous by thread: RE: Undiscovered Bug?
  • Next by thread: Re: Re: Undiscovered Bug?