public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/50880] __complex_acosh() picks wrong complex branch
Date: Wed, 02 Nov 2011 12:44:00 -0000	[thread overview]
Message-ID: <bug-50880-4-MH3roS77Ca@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-50880-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #16 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-11-02 12:44:06 UTC ---
Well, I guess this would be most of it:

  template<typename _Tp>
    std::complex<_Tp>
    __complex_acosh(const std::complex<_Tp>& __z)
    {
      return _Tp(2.0) * std::log(std::sqrt(_Tp(0.5) * (__z + _Tp(1.0)))
                 + std::sqrt(_Tp(0.5) * (__z - _Tp(1.0))));
    }


  parent reply	other threads:[~2011-11-02 12:44 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-27  7:09 [Bug libstdc++/50880] New: " 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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-50880-4-MH3roS77Ca@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).