Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Using numbers close to to zero in Mathematica version 6

  • To: mathgroup at smc.vnet.net
  • Subject: [mg109018] Re: Using numbers close to to zero in Mathematica version 6
  • From: Albert Retey <awnl at gmx-topmail.de>
  • Date: Sat, 10 Apr 2010 06:54:59 -0400 (EDT)
  • References: <hpmlbn$9uq$1@smc.vnet.net>

Am 09.04.2010 09:35, schrieb Ted Ersek:
>  x = SetAccuracy[0, 80];
> { Abs[x] < 10^-900, Positive[x], Negative[x], NonPositive[x], 
> NonNegative[x] }//InputForm
> 
> 
> {Sign[x], SetPrecision[x, 20], Sign[0], KroneckerDelta[x] }
> 
> 
> UnitStep[{0, 0.0, x}]
> 
> 
> Unitize[{0, 0.0, x}]
> 

This is on Windows XP with the 32bit version of Mathematica 6.0.2:

In[1]:= x = SetAccuracy[0, 80];
{Abs[x] < 10^-900, Positive[x], Negative[x], NonPositive[x],
  NonNegative[x]} // InputForm

Out[1]//InputForm=
{False, Positive[0``80.], Negative[0``80.], NonPositive[0``80.],
 NonNegative[0``80.]}

In[2]:= {Sign[x], SetPrecision[x, 20], Sign[0], KroneckerDelta[x]}

Out[2]= {0, 0, 0, 1}

In[3]:= UnitStep[{0, 0.0, x}]

Out[3]= {1, 1, 1}

In[4]:= Unitize[{0, 0.0, x}]

Out[4]= {0, 0, 0}

hth,

albert


  • Prev by Date: Re: evaluate the floor s to yield a number
  • Next by Date: Re: List Manipulation: Conditionally changing y value
  • Previous by thread: Using numbers close to to zero in Mathematica version 6
  • Next by thread: there is an "oops" with Root and Limit