Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'bug using /.' topicStudent Support Forum > General > Archives > "bug using /."

Next Comment >Help | Reply To Topic
Author Comment/Response
Kaixiong Ye
02/02/12 5:07pm

Try this code and you will notice when there are two elements in the list, the result is different from what it should be, as shown for the other two.

a = {{1, 1}, {2, 2}, {3, 3}}
b = { {1, 1}, {2, 2}}
c = { {1, 1}}

a /. {x_, y_} -> {10, 11}
b /. {x_, y_} -> {10, 11}
c /. {x_, y_} -> {10, 11}

URL: ,

Subject (listing for 'bug using /.')
Author Date Posted
bug using /. Kaixiong Ye 02/02/12 5:07pm
Re: bug using /. Nasser M. Ab... 02/03/12 11:00pm
Re: bug using /. Nasser M. Ab... 02/04/12 02:41am
Re: bug using /. Patrick 02/04/12 07:08am
Re: Re: bug using /. yehuda ben-s... 02/09/12 2:41pm
Re: bug using /. Peter Pein 02/04/12 12:39pm
Next Comment >Help | Reply To Topic