Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12683 > unrolled thread

when is y=x+a not a straight line?

Started byRichard Fateman <fateman@cs.berkeley.edu>
First post2012-12-08 06:28 +0000
Last post2012-12-08 06:28 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  when is y=x+a not a straight line? Richard Fateman <fateman@cs.berkeley.edu> - 2012-12-08 06:28 +0000

#12683 — when is y=x+a not a straight line?

FromRichard Fateman <fateman@cs.berkeley.edu>
Date2012-12-08 06:28 +0000
Subjectwhen is y=x+a not a straight line?
Message-ID<k9umlo$shr$1@smc.vnet.net>
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


[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web