Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

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

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

Topic: when is y=x+a not a straight line?
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Richard Fateman

Posts: 1,424
Registered: 12/7/04
when is y=x+a not a straight line?
Posted: Dec 8, 2012 1:28 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Try this

ListPlot[Table[{x, a + x}, {x, -10, 10}], Joined -> {True}]

This is probably not a surprise to some people.

If you think the value for "a" could never happen, try this:


Compare to Plot[x+a,{x,-1,10}]
which shows that Plot evaluates its first argument in an manner
inconsistent with Table's method.


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

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.