The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Re: [mg4431] ListPlot the output of Print
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Allan Hayes

Posts: 1,508
Registered: 12/6/04
Re: [mg4431] ListPlot the output of Print
Posted: Jul 30, 1996 3:01 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply (Mike)
[mg4431] ListPlot the output of Print
How can I easily render the output of a print statement to ListPlot
without the cut & paste routine.

Do [ Print[ N[ {x,Sin[x]} ] ] , {x,0,2Pi,Pi/6}]

{0, 0}
{0.523599, 0.5}
{5.75959, -0.5}
{6.28319, 0}

I don't want to use Table[] because I need to monitor the output as
they get printed.Sin[x] is just a simple example, the real function
is much more complicated.

How about
Table[(Print[#];#)&[N[ {x,Sin[x]}]], {x,0,2Pi,Pi/6}]

Allan Hayes

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.