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,398
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

a=0``-0.5
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:

a=N[1,20]
Do[a=2*a-a,{43}]

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

Cheers.
RJF






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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.