Skip to content

cmath.acosh(complex('±0+nanj')) should return complex('nan±pi/2j') (imaginary part sign is unspecified) #121889

Closed

Description

@skirpichev

Bug report

Bug description:

As per C11 DR#471 (adjusted resolution accepted for C17). See glibc patch: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=5244527da1bfa751492e146d3e6ae128c59bfcc4

Currently, imaginary part is nan.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Activity

  1. changed the title [-]acosh(complex('±0+nanj')) should return complex('nan±pi/2j') (imaginary part sign is unspecified)[/-] [+]cmath.acosh(complex('±0+nanj')) should return complex('nan±pi/2j') (imaginary part sign is unspecified)[/+] on Jul 17, 2024
  2. added a commit that references this issue on Jul 17, 2024
  3. added a commit that references this issue on Aug 4, 2024
  4. mdickinson commented on Aug 4, 2024

    @mdickinson
    Member

    Fixed in #121892 (with thanks to @skirpichev). As commented on the PR, I don't think this should be backported.

  5. added a commit that references this issue on Aug 7, 2024
  6. added a commit that references this issue on Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions