http://d.puremagic.com/issues/show_bug.cgi?id=3661
--- Comment #7 from Witold Baryluk <bary...@smp.if.uj.edu.pl> 2010-01-31 10:36:41 PST --- (In reply to comment #6) > (In reply to comment #5) > > (In reply to comment #4) > > > Floating-point exponents means the result type must be complex, which at > > > least > > > for the moment complicates migrating to a library-only implementation of > > > complex numbers. > > > > No, it only means that some results will be NaN's. :) > > > > But yes, complex result should also be supported, this can be determined > > when > > left operand (base) is also complex (but then in many cases imaginary parts > > will be 0, which is waste). > > -1.0^^0.5 has complex type. pow(-1.0, 0.5) is of type real and have value NaN. http://www.digitalmars.com/d/2.0/phobos/std_math.html#pow -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------