2009/8/12 Schwab,Wilhelm K <[email protected]>: > 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? > Right. The presence of Complex numbers should not change any existing behavior of non-complex numbers.
> Bill > > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Ken.Dickey > Sent: Wednesday, August 12, 2009 9:59 AM > To: [email protected] > Subject: Re: [Pharo-project] Complex neurotic > > > St?phane Ducasse <[email protected]> >> 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. > > If you point me to the package docs, I am happy to make a package. Note that > the Complex cuts across a number of classes [Point,Float,Number,Object]. > > Is the desired behavior that (-1 sqrt) raise and exception when the Complex > package is not loaded but return 1i when loaded? > > I presume that we could simply add the hyperbolic trig functions (and some > tests) to Float? > > -KenD > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > -- Best regards, Igor Stasenko AKA sig. _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
