Re: ListPlot the output of Print
- To: mathgroup at smc.vnet.net
- Subject: [mg4493] Re: [mg4431] ListPlot the output of Print
- From: brucec (Bruce Carpenter)
- Date: Fri, 2 Aug 1996 02:22:25 -0400
- Sender: owner-wri-mathgroup at wolfram.com
At 1:39 AM 7/22/96, Mike wrote: >MathGroupers: >How can I easily render the output of a print statement to ListPlot without >the cut &=9B paste routine. =9B >Example: =9B > >Do [ Print[ N[ {x,Sin[x]} ] ] , {x,0,2Pi,Pi/6}] > >=9B{0, 0}=9B >=9B{0.523599, 0.5}=9B >=9B{1.0472, 0.866025}=9B >=9B{1.5708, 1.}=9B >=9B{2.0944, 0.866025}=9B >=9B{2.61799, 0.5}=9B >=9B{3.14159, 0}=9B >=9B{3.66519, -0.5}=9B >=9B{4.18879, -0.866025}=9B >=9B{4.71239, -1.}=9B >=9B{5.23599, -0.866025}=9B >=9B{5.75959, -0.5}=9B >=9B{6.28319, 0}=9B > >I don't want to use Table[] because I need to monitor the output as they ge= t >printed.=9BSin[x] is just a simple example, the real function is much more >complicated. >Any help would be appreciated.=9B > >Mike Hi Mike, You can use Table and monitor the output at the same time: data =3D Table [With[{temp =3D {x, Sin[x]}}, Print[N[temp]];temp], {x, 0, 2P= i, Pi/6}] Best Regards, Bruce Carpenter ----------------------- Dr. Bruce Carpenter Educational Applications Coordinator phone: (217) 398-0700 Wolfram Research, Inc. fax: (217) 398-0747 100 Trade Centre Drive email: brucec at wolfram.com Champaign, IL 61820 web: http://www.wolfram.com ==== [MESSAGE SEPARATOR] ====