Re: Do Plot

*To*: mathgroup at smc.vnet.net*Subject*: [mg129129] Re: Do Plot*From*: Murray Eisenberg <murray at math.umass.edu>*Date*: Mon, 17 Dec 2012 02:56:50 -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*: <20121216100503.A648D692C@smc.vnet.net>

yes, it works just fine in Mathematica 9, returning exactly the same result it would in any version from 6 onward -- namely, Null (which produces no displayed output). Consult the Documentation Center for Do: Unless an explicit Return is used, the value returned by Do is Null. As shown in the docs, the usual way to have each of the suggested table of values actually displayed is to use Print: Do[Print[ Plot[x^2 + c, {x, -2, 2}] ], {c, -1, 1, 0.2}] Or, perhaps more perspicuously: Do[Plot[x^2 + c, {x, -2, 2}] // Print, {c, -1, 1, 0.2}] On Dec 16, 2012, at 5: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. --- 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**:**Do Plot***From:*dwarnold45@suddenlink.net