benhonghgmailcom
9/10/2008 5:55:00 AM
Jack Klein wrote:
> On Tue, 9 Sep 2008 18:20:45 -0700 (PDT), Peng Yu <PengYu.UT@gmail.com>
> wrote in comp.lang.c++:
>
>> On Sep 9, 8:10 pm, Kai-Uwe Bux <jkherci...@gmx.net> wrote:
>>> Peng Yu wrote:
>>>> Hi,
>>>> I'm wondering how to get the cubic root for a complex number? It seems
>>>> that cbrt does not work complex numbers.
>>> I cannot find cbrt() in the standard anyway.
>> cbrt() is conforming to C99.
>
> ...then wait until it is added to C++, which it probably will be.
> Because it is not part of the standard C++ library today.
>
You don't need to wait. Write yourself a function to call cbrt(),
compile under C99, link it with the rest of your program.
Ben