MathGroup Archive 2012

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

Search the Archive

Re: Do Plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg129156] Re: Do Plot
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Tue, 18 Dec 2012 02:41:02 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <kak6d6$k44$1@smc.vnet.net> <20121217075457.5B4A16916@smc.vnet.net>

On Dec 17, 2012, at 2:54 AM, Nasser M. Abbasi <nma at 12000.org> wrote:

> On 12/16/2012 4:05 AM, dwarnold45 at suddenlink.net wrote:
>> Should this command work in Mathematica 9?
>>
>> Do[Plot[x^2 + c, {x, -2, 2}], {c, -1, 1, 0.2}]
>>
>> Not working on my Macbook Pro, Snow Leopard 10.6.8.
>>
>> David.
>>
>
> Need a Print
>
> Do[Print@Plot[x^2 + c, {x, -2, 2}], {c, -1, 1, 0.2}]
>
> I *think* this is the case since version 6. Before that, Print[]
> was not needed.



And the reason that Print was not needed before version 6 was _not_ 
because the behavior of Do changed. The function Do never returned a 
result. Rather, before version 6, Plot had a "side effect" of producing 
a displayed graphic.

---
Murray Eisenberg                                    murray at math.umass.edu
Mathematics & Statistics Dept.      
Lederle Graduate Research Tower            phone 413 549-1020 (H)
University of Massachusetts                               413 545-2838 (W)
710 North Pleasant Street                         fax   413 545-1801
Amherst, MA 01003-9305








  • References:
  • Prev by Date: Re: Mathematica 9 does not read mathematica 8 ".mx" files
  • Next by Date: Re: Mathematica strange behaviour finding a cubic root
  • Previous by thread: Re: Do Plot
  • Next by thread: Re: Do Plot