RE: [perl #60674] sign($x) always returns 1 when $x ~~ Complex

2008-11-20 Thread Wolfgang Laun
There is a definition for the signum function for a complex argument. sign( z ) = z / |z| for all z != 0 sign( 0 ) = 0 See e.g. http://en.wikipedia.org/wiki/Sign_function Shouldn't be too difficult to implement. -Original Message- From: Carl Mäsak [mailto:[EMAIL PROTECTED] Sent:

Re: [perl #60674] sign($x) always returns 1 when $x ~~ Complex

2008-11-20 Thread Wolfgang Laun
If a programmer calls a function with an argument that has a well-established type, s/he may very well expect a result according to that type, (considering that overloading isn't just a word for not caring about type). So, calling sqrt with a real 0, should not come back with a complex number.

Re: Rakudo test miscellanea

2008-06-27 Thread Wolfgang Laun
Larry Wall wrote: but probably what the financial insitutions want is special fixed-point types that assume a divisor anyway. Would any financial institution care to comment? Some (VAT tax) computations are defined, by law, to be executed with a cetain precision. You have to be able to

old link, pugs not on CPAN?

2007-09-03 Thread Wolfgang Laun
The pugscode page http://www.pugscode.org/ contains the hint Periodic releases will appear on CPAN under the Perl6-Pugs http://search.cpan.org/dist/Perl6-Pugs/ namespace. Is this still true? The latest version Perl6-Pugs-6.2.13 from October 2006 didn't even compile. kr Wolfgang