Problems exp'ing complex numbers

Gabriel Dos Reis gdr@codesourcery.com
Sat Dec 30 15:12:00 GMT 2000


Wolfgang Mauerer <wolfgang@mynetix.de> writes:

| Hello,
| 
| I experienced a problem related to the libstdc++ complex<>-Class and
| don't know wether it's my false understanding of the problem, a bug
| in libstdc++ or a feature that's intentionaly missing from the
| library. When I use the program code
| 
| <snap>
| long_double_complex test (some, value)
| cout << exp(test) << endl;
| </snap>
| 
| I get (inf, nan) as result when huge numbers are used.

Do you have a test case?

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com


More information about the Libstdc++ mailing list