[Pharo-project] Complex neurotic

2009-08-11 Thread Ken.Dickey
Q: What is the difference between a neurotic and a psychotic? A: A psychotic really thinks 2+2 = 5 A neurotic knows 2+2 = 4, but just can't stand it. ;^) I really can't stand some of the oddities of Complex numbers in Squeak [Note Mantis bug 311 -- http://bugs.squeak.org/view.php?id=3311]. I

Re: [Pharo-project] Complex neurotic

2009-08-11 Thread Schwab,Wilhelm K
1, 2009 6:50 PM To: pharo-project@lists.gforge.inria.fr Subject: [Pharo-project] Complex neurotic Q: What is the difference between a neurotic and a psychotic? A: A psychotic really thinks 2+2 = 5 A neurotic knows 2+2 = 4, but just can't stand it. ;^) I really can't stand some o

Re: [Pharo-project] Complex neurotic

2009-08-11 Thread Ken.Dickey
> AFAIK, one has to be careful ordering complex numbers: I am aware of this.  There are a large number of ways to define #< for complex numbers -- and a large number of problems with each of them. What I object to are bad behaviors for things which are perfectly well defined. Currently: -1 a

Re: [Pharo-project] Complex neurotic

2009-08-11 Thread Schwab,Wilhelm K
.fr Subject: Re: [Pharo-project] Complex neurotic > AFAIK, one has to be careful ordering complex numbers: I am aware of this.  There are a large number of ways to define #< for complex numbers -- and a large number of problems with each of them. What I object to are bad behaviors for thi

Re: [Pharo-project] Complex neurotic

2009-08-12 Thread Stéphane Ducasse
Hi guys What I would love is the following: that we get a good Complex package! Since we can do method extensions in Smalltalk we can design a really nice Complex packages with its own tests. We could publish for now Complex into PharoTaskForces or create a PharoExternalPackages or whatever. W

Re: [Pharo-project] Complex neurotic

2009-08-12 Thread Igor Stasenko
2009/8/12 Ken.Dickey : >> AFAIK, one has to be careful ordering complex numbers: > > I am aware of this.  There are a large number of ways to define #< for complex > numbers -- and a large number of problems with each of them. > > What I object to are bad behaviors for things which are perfectly we

Re: [Pharo-project] Complex neurotic

2009-08-12 Thread Schwab,Wilhelm K
Wednesday, August 12, 2009 3:16 AM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Complex neurotic 2009/8/12 Ken.Dickey : >> AFAIK, one has to be careful ordering complex numbers: > > I am aware of this.  There are a large number of ways to define #< for > co

Re: [Pharo-project] Complex neurotic

2009-08-12 Thread Ken.Dickey
St?phane Ducasse > What I would love is the following: that we get a good Complex package! > Since we can do method extensions in Smalltalk we can design a really > nice Complex > packages with its own tests. > We could publish for now Complex into PharoTaskForces or create a > PharoExternalPacka

Re: [Pharo-project] Complex neurotic

2009-08-12 Thread Schwab,Wilhelm K
[mailto:pharo-project-boun...@lists.gforge.inria.fr] On Behalf Of Ken.Dickey Sent: Wednesday, August 12, 2009 9:59 AM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Complex neurotic St?phane Ducasse > What I would love is the following: that we get a good Complex pack

Re: [Pharo-project] Complex neurotic

2009-08-12 Thread Ken.Dickey
KenD> > Currently: > > > > -1 asComplex isNumber --> true > > ?1 asComplex isNumber -> true > > -1 asComplex < 1 asComplex --> error > > > > -4 sqrt --> error Igor Stasenko > > and it should. > Not many people using a complex numbers. And -4 is an integer number, > not complex number (i hope this

Re: [Pharo-project] Complex neurotic

2009-08-12 Thread Schwab,Wilhelm K
Subject: Re: [Pharo-project] Complex neurotic KenD> > Currently: > > > > -1 asComplex isNumber --> true > > ?1 asComplex isNumber -> true > > -1 asComplex < 1 asComplex --> error > > > > -4 sqrt --> error Igor Stasenko > > and it should.

Re: [Pharo-project] Complex neurotic

2009-08-12 Thread csrabak
Em 11/08/2009 23:45, Ken.Dickey escreveu: > > AFAIK, one has to be careful ordering complex numbers: > > I am aware of this. There are a large number of ways to define < for complex > > numbers -- and a large number of problems with each of them. > > What I object to are bad behaviors for

Re: [Pharo-project] Complex neurotic

2009-08-12 Thread csrabak
+1 Em 12/08/2009 12:10, Schwab,Wilhelm K < bsch...@anest.ufl.edu > escreveu: Ken,The desired behavior appears to be that -1 sqrt raises an error regardless of the complex package; -1 asComplex sqrt works when the package is installed. Sig, is that a fair statement of your position?Bill -Origin

Re: [Pharo-project] Complex neurotic

2009-08-12 Thread csrabak
I don't want to seem I turned the rant mode, on, but: Last statement makes so little sense as saying the "expected" thing is that 4 sqrt should return a tuple #(2.0 -2.0) because it happened before we had computers The "Principle of Least Surprise" should be taken in the context of the Smalltal

Re: [Pharo-project] Complex neurotic

2009-08-12 Thread Igor Stasenko
st 12, 2009 9:59 AM > To: Pharo-project@lists.gforge.inria.fr > Subject: Re: [Pharo-project] Complex neurotic > > > St?phane Ducasse >> What I would love is the following: that we get a good Complex package! >> Since we can do method extensions in Smalltalk we can design a really