public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/50880] New: __complex_acosh() picks wrong complex branch
@ 2011-10-27  7:09 kreckel at ginac dot de
  2011-10-27  7:12 ` [Bug libstdc++/50880] " kreckel at ginac dot de
                   ` (25 more replies)
  0 siblings, 26 replies; 27+ messages in thread
From: kreckel at ginac dot de @ 2011-10-27  7:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50880

             Bug #: 50880
           Summary: __complex_acosh() picks wrong complex branch
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: kreckel@ginac.de


According to the C++ standard, acosh(complex<T>) should behave just like C99's
cacosh(T complex) function. There, the branch cut is "at values less than 1
along the real axis" and the "range of a half-strip of non-negative values
along the real axis and in the interval [-i*pi,+i*pi] along the imaginary
axis."

The implementation in tr1/complex gets this wrong. The result returned by
__complex_acosh() are all wrong in the lower complex plain. It can be easily
fixed. I'm attaching a patch.


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2011-11-04  8:17 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-27  7:09 [Bug libstdc++/50880] New: __complex_acosh() picks wrong complex branch kreckel at ginac dot de
2011-10-27  7:12 ` [Bug libstdc++/50880] " kreckel at ginac dot de
2011-10-27  9:27 ` paolo.carlini at oracle dot com
2011-10-27  9:49 ` paolo.carlini at oracle dot com
2011-10-27 11:01 ` paolo at gcc dot gnu.org
2011-10-28  7:07 ` kreckel at ginac dot de
2011-10-28  9:10 ` paolo.carlini at oracle dot com
2011-10-28 21:52 ` kreckel at ginac dot de
2011-10-28 21:54 ` kreckel at ginac dot de
2011-10-28 21:54 ` kreckel at ginac dot de
2011-10-28 22:10 ` paolo.carlini at oracle dot com
2011-11-02  8:27 ` kreckel at ginac dot de
2011-11-02  9:41 ` paolo.carlini at oracle dot com
2011-11-02 12:23 ` gdr at gcc dot gnu.org
2011-11-02 12:27 ` gdr at gcc dot gnu.org
2011-11-02 12:32 ` paolo.carlini at oracle dot com
2011-11-02 12:44 ` paolo.carlini at oracle dot com
2011-11-02 12:50 ` gdr at gcc dot gnu.org
2011-11-02 12:50 ` gdr at gcc dot gnu.org
2011-11-02 18:44 ` paolo at gcc dot gnu.org
2011-11-02 18:44 ` paolo at gcc dot gnu.org
2011-11-02 21:55 ` paolo at gcc dot gnu.org
2011-11-02 21:56 ` paolo.carlini at oracle dot com
2011-11-03 23:58 ` kreckel at ginac dot de
2011-11-04  0:52 ` paolo.carlini at oracle dot com
2011-11-04  0:53 ` paolo.carlini at oracle dot com
2011-11-04  8:17 ` kreckel at ginac dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).