Re: suppressing graph objects

*To*: mathgroup at smc.vnet.net*Subject*: [mg60898] Re: [mg60890] suppressing graph objects*From*: Andrzej Kozlowski <akoz at mimuw.edu.pl>*Date*: Sun, 2 Oct 2005 04:07:09 -0400 (EDT)*Sender*: owner-wri-mathgroup at wolfram.com

On 2 Oct 2005, at 14:54, Jack Goldberg wrote: > Hello, > > Consider > > In[1] := Plot[ f[ x ], { x, a, b } ][[1,1,1,1] > > for some function f over a finite interval (a, b). > > Mathematica returns a graph and > > Out[1]= " a table of the form { x, f([x] } for various values of > x. " > > I want the table but not the graph. How does one suppress the > graph? (I have this nagging feeling that the answer is trivial - but > it keeps slipping away.) > > Thanks, > > Jack > > I would use something like this Block[{$DisplayFunction = Identity}, Flatten[Cases[ Plot[ f[x], { x, a, b } ], Line[x_] :> x, Infinity], 1]] since in general extracting information by means of Part is unreliable. Andrzej Kozlowski