Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Table through zero...strange

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67012] Re: Table through zero...strange
  • From: "ben" <benjamin.friedrich at gmail.com>
  • Date: Wed, 7 Jun 2006 05:09:10 -0400 (EDT)
  • References: <e63mqt$kqd$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

What's the problem with 10^-18? That's practically zero.

When you use numeric quantities such as 0.1,
you must not worry about round-off errors anyway.
Try Chop[] if you like.

If you do worry about round-off errors, you may prefer
Table[x, {x, -1/10, 0, 2/100}].

Bye
Ben



leptonic schrieb:

> Hello,
>
> When i type in Mathematica (version 4) Table[x, {x, -0.1, 0, 0.02}]
>
> it gives me {-0.1, -0.08, -0.06, -0.04, -0.02, -3.46945 x 10-18]}
> but for example Table[x, {x, -0.1, 0, 0.05}] will give a reasonable
> {-0.1, -0.05, 0.}.
>
> Probably a very stupid question but i can't figure out why the zero
> makes problem.
> 
> Thanks for any help.


  • Prev by Date: calling mathematica from an external program
  • Next by Date: Re: How can I use multiple filename ?
  • Previous by thread: Re: Table through zero...strange
  • Next by thread: Re: Table through zero...strange