Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12846

Re: Do Plot

From Murray Eisenberg <murray@math.umass.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Do Plot
Date 2012-12-18 07:35 +0000
Message-ID <kap6cr$46k$1@smc.vnet.net> (permalink)
References <kak6d6$k44$1@smc.vnet.net> <20121217075457.5B4A16916@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


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

> On 12/16/2012 4:05 AM, dwarnold45@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@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





Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Do Plot dwarnold45@suddenlink.net - 2012-12-16 10:05 +0000
  Re: Do Plot "Nasser M. Abbasi" <nma@12000.org> - 2012-12-17 07:53 +0000
  Re: Do Plot bar@ANTYSPAM.ap.krakow.pl - 2012-12-17 07:54 +0000
  Re: Do Plot Murray Eisenberg <murray@math.umass.edu> - 2012-12-18 07:35 +0000

csiph-web