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