MathGroup Archive 1997

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

Search the Archive

Re: Re: Abs and Sign anomolies

  • To: mathgroup at smc.vnet.net
  • Subject: [mg7500] Re: [mg7411] Re: Abs and Sign anomolies
  • From: Alistair.Windsor at vuw.ac.nz (Alistair.Windsor at vuw.ac.nz)
  • Date: Sat, 7 Jun 1997 03:48:22 -0400 (EDT)
  • Organization: Victoria University of Wellington, New Zealand
  • Sender: owner-wri-mathgroup at wolfram.com

In article <5n59ar$oi5$3 at dragonfly.wolfram.com>, "w.meeussen"
<w.meeussen.vdmcc at vandemoortele.be> wrote:

> That already makes *two* platform differences in "Kernel-operations":
> 
> my Mma on Win'95:
> $Version        "Microsoft Windows 3.0 (October 6, 1996)"
> Abs[Sign[x]] gives: 1
> Abs[Sign[0]] gives: 0
> 
> earlier, I found that my version does:
> 
> FactorInteger[1]     {{1,1}}
> FactorInteger[0]     {{0,1}}
> 

The Mac version (at least the 680x0 FPU version) behaves the same as you
version. The difference between Kernel operations on different machines
means that programs which rely on these sorts of commands to work may not
be portable. These difficulties are easy to remove (simply define them
away) but 1) you may not know there is an error 2) there may not be a
problem on your system but ....

Abs[Sign[x]]
1

$Version
"Macintosh (FPU) 3.0 (December 1, 1996)"

FactorInteger[1]
{{1,1}}

FactorInteger[0]
{{0,1}}

-- 
Alistair Windsor
Mathematics Graduate Student 
Victoria University of Wellington
New Zealand


  • Prev by Date: Re: Re: Getting values from a Plot
  • Next by Date: AutoLoad
  • Previous by thread: Re: Abs and Sign anomolies
  • Next by thread: Re: Installing Mma and continued fractions