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


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

Re: Approximate Zero Times A Symbol

From Richard Fateman <fateman@cs.berkeley.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Approximate Zero Times A Symbol
Date 2012-07-01 06:07 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jsopep$s4$1@smc.vnet.net> (permalink)
References <201206270811.EAA18698@smc.vnet.net> <19783652.3140.1340794328091.JavaMail.root@m06> <jsh3a9$sir$1@smc.vnet.net>

Show all headers | View raw


On 6/28/2012 1:06 AM, djmpark wrote:
....

  The symbol x has a meaning, as one of
> the basic elements of the algebra, that the scalar 0.0 does not have. Using
> 0.0 x -> 0.0 changes the mathematical meaning of the expression.
>

This is certainly a useful discussion point.  If x is "inches" then 0.0 
* x  still has a dimension (inches).  If x is a vector, there is 
possibly a distinction worth drawing between a zero vector and a scalar. 
  Etc.

On the other hand, 0.0 in Mathematica  means something other than 
mathematical zero in various versions of Mathematica. Though who can
tell about the future.

Try this.



h = 0.50000000000000000000000


Do[ h = 2*h - h}, {i, 1, 50}]

h

One might think that h, being 0.  would have the property that h*x would 
be 0.  Also that h+1  would be 1. But you would be wrong.

In the version 8 Mathematica, numbers like that 0. are displayed in a 
pink box, but of course there is no requirement that you print the 
result, and if you utter   If[h==0,yes,no]  the answer is "yes".
So for programs it might as well be 0 if it is equal to 0.

Aside: The pink box is not quite the right size. Too small. My 
suggestion (and implementation) was to display numbers with no 
significant digits in red.

http://forums.wolfram.com/mathgroup/archive/2010/Jan/msg00897.html

I should have patented it :)

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


Thread

Re: Approximate Zero Times A Symbol "djmpark" <djmpark@comcast.net> - 2012-06-28 08:06 +0000
  Re: Approximate Zero Times A Symbol Richard Fateman <fateman@cs.berkeley.edu> - 2012-07-01 06:07 +0000
  Re: Approximate Zero Times A Symbol "djmpark" <djmpark@comcast.net> - 2012-07-01 06:09 +0000
  Re: Approximate Zero Times A Symbol Richard Fateman <fateman@eecs.berkeley.edu> - 2012-07-01 06:11 +0000
  Re: Approximate Zero Times A Symbol Richard Fateman <fateman@eecs.berkeley.edu> - 2012-07-02 09:29 +0000

csiph-web