MathGroup Archive 2012

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

Search the Archive

Re: Do Plot


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








  • 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