The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Warsaw Univ. course, was Re: Work on Basic Mathematica
Replies: 2   Last Post: Jun 3, 2013 11:15 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
Richard Fateman

Posts: 286
Registered: 12/7/04
Re: Warsaw Univ. course, was Re: Work on Basic Mathematica
Posted: Jun 3, 2013 11:15 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 6/3/2013 9:25 AM, Leonid Shifrin wrote:

<long message>

Thanks for what I consider a most agreeable contribution.
I was not aware of your material on stackexchange, which seems
to be rather nice.

You are right that my example regarding mutable Lists in Mathematica
was incorrect. Actually on two grounds. The syntax was not right and
I did not mean to say that Lists in Mathematica are not mutable, since
they certainly are.

Just that Lists have the uncomfortable property that if you access one
all the others are re-evaluated. Here is an example, which I think is
free of
mis-used syntax...

( q=Table[f[i],{i,1,3}];


evaluates to display

Changing q by, for example, q[[2]]=hello
does not re-evaluate the elements.
However, referring to in again as q[[2]] does this:

Thanks for pointing out the original error.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.