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


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

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

From Richard Fateman <fateman@cs.berkeley.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject when is y=x+a not a straight line?
Date 2012-12-08 06:28 +0000
Message-ID <k9umlo$shr$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


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


Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web