Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12683 > unrolled thread
| Started by | Richard Fateman <fateman@cs.berkeley.edu> |
|---|---|
| First post | 2012-12-08 06:28 +0000 |
| Last post | 2012-12-08 06:28 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
when is y=x+a not a straight line? Richard Fateman <fateman@cs.berkeley.edu> - 2012-12-08 06:28 +0000
| From | Richard Fateman <fateman@cs.berkeley.edu> |
|---|---|
| Date | 2012-12-08 06:28 +0000 |
| Subject | when 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
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web