Re: r28523 - docs/Perl6/Spec/S32-setting-library

2009-10-01 Thread Jan Ingvoldstad
On Thu, Oct 1, 2009 at 11:03 PM, Minimiscience wrote: > On Oct 1, 2009, at 4:43 PM, Jan Ingvoldstad wrote: > >> On Thu, Oct 1, 2009 at 10:15 PM, Moritz Lenz wrote: >> >>> What's the 0th root of a number, then? >>> It would be a number $y for which $y ** 0 == $x, which can only be >>> fulfilled fo

Re: r28523 - docs/Perl6/Spec/S32-setting-library

2009-10-01 Thread Moritz Lenz
Jan Ingvoldstad wrote: > On Thu, Oct 1, 2009 at 10:15 PM, Moritz Lenz wrote: >> >> >> What's the 0th root of a number, then? >> It would be a number $y for which $y ** 0 == $x, which can only be >> fulfilled for $x == 1. So in the general cases the answer to the >> question root($x, 0) is nonsense

Re: r28523 - docs/Perl6/Spec/S32-setting-library

2009-10-01 Thread Minimiscience
On Oct 1, 2009, at 4:43 PM, Jan Ingvoldstad wrote: On Thu, Oct 1, 2009 at 10:15 PM, Moritz Lenz wrote: What's the 0th root of a number, then? It would be a number $y for which $y ** 0 == $x, which can only be fulfilled for $x == 1. So in the general cases the answer to the question root($x, 0)

Re: r28523 - docs/Perl6/Spec/S32-setting-library

2009-10-01 Thread Minimiscience
On Oct 1, 2009, at 4:15 PM, Moritz Lenz wrote: -Returns a list of all C<$n>th (complex) roots of C<$x> +Returns a list of all C<$n>th (complex) roots of C<$x>. Returns C if +C<< $n <= 0 >>, itself if C<$n == 0>, and is free to return a single C Shouldn't this be "C<< $n < 0 >>"? What's t

Re: r28523 - docs/Perl6/Spec/S32-setting-library

2009-10-01 Thread Jan Ingvoldstad
On Thu, Oct 1, 2009 at 10:15 PM, Moritz Lenz wrote: > > > What's the 0th root of a number, then? > It would be a number $y for which $y ** 0 == $x, which can only be > fulfilled for $x == 1. So in the general cases the answer to the > question root($x, 0) is nonsense, which is best mapped to NaN.

Re: r28523 - docs/Perl6/Spec/S32-setting-library

2009-10-01 Thread Moritz Lenz
Jon Lang wrote: > On Wed, Sep 30, 2009 at 11:58 PM, wrote: >> >> Author: moritz >> Date: 2009-10-01 08:58:00 +0200 (Thu, 01 Oct 2009) >> New Revision: 28523 >> >> Modified: >> docs/Perl6/Spec/S32-setting-library/Numeric.pod >> Log: >> [S32::Num] More thoughts on Inf/NaN Complex, and on comparing

Re: r28523 - docs/Perl6/Spec/S32-setting-library

2009-10-01 Thread Jon Lang
On Wed, Sep 30, 2009 at 11:58 PM, wrote: > > Author: moritz > Date: 2009-10-01 08:58:00 +0200 (Thu, 01 Oct 2009) > New Revision: 28523 > > Modified: >   docs/Perl6/Spec/S32-setting-library/Numeric.pod > Log: > [S32::Num] More thoughts on Inf/NaN Complex, and on comparing Complex and > Real number

r28523 - docs/Perl6/Spec/S32-setting-library

2009-09-30 Thread pugs-commits
Author: moritz Date: 2009-10-01 08:58:00 +0200 (Thu, 01 Oct 2009) New Revision: 28523 Modified: docs/Perl6/Spec/S32-setting-library/Numeric.pod Log: [S32::Num] More thoughts on Inf/NaN Complex, and on comparing Complex and Real numbers Also bring the goodness of the newly defined Numeric and