develooper Front page | perl.perl5.porters | Postings from August 2001

Re: inf handling in Perl incomplete

Thread Previous | Thread Next
From:
Steve Fink
Date:
August 10, 2001 14:54
Subject:
Re: inf handling in Perl incomplete
Message ID:
Pine.LNX.4.21.0108101443190.8409-100000@kevin.fink.com
On Fri, 10 Aug 2001, Abigail wrote:

> On Fri, Aug 10, 2001 at 10:46:38AM -0700, Steve Fink wrote:
> > > > P.S.  Pssst, you certain you don't want sqrt(-1) returning 'i'? :-)
> > 
> > Sure; I want to see what you make sqrt(sqrt(-1)) return -- in scalar
> > context. :-)
> 
> 
>     Math::Complex -> emake (1, pi/8)

You mean pi/4, but I get the point. And reading the Math::Complex
documentation, I get my answer -- it just picks one; if you want both, you
use root(). Hmf. Seems like a cop-out.

Perhaps the real answer is use
Quantum::Superpositions; any(root(i))?


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About