Re: different results for Standard vs Prefix forms
- To: mathgroup at smc.vnet.net
- Subject: [mg111413] Re: different results for Standard vs Prefix forms
- From: Themis Matsoukas <tmatsoukas at me.com>
- Date: Sat, 31 Jul 2010 02:41:52 -0400 (EDT)
You can tell from the syntax coloring that the value of n is not passed into Plot. That's because the # is separated from & by]. These two variations work: A = # &@Plot; Block[{n = 2}, A[n x , {x, 1, 2}]] > First one works, but second one doesn't, why? > Block[{n = 2}, Plot[n x, {x, 1, 2}]] > Block[{n = 2}, #] &@Plot[n x, {x, 1, 2}] >