Skip to content

RFC: add angle for computing the argument of a complex number #595

Open
@steff456

Description

@steff456

This RFC requests to include a new API in the array API specification for the purpose of computing the argument of a complex number.

Overview

Based on array comparison data, the API is available in the majority of libraries in the PyData ecosystem.

The Array API specification does not currently include an API for computing the argument of a complex number.

Prior art

Proposal:

def angle(x: array, /) -> array

Questions

  • okay with angle as name? arg? phase?
  • only operate on complex arrays, similar to conj et al?

cc @kgryte

Metadata

Metadata

Assignees

No one assigned

    Labels

    API extensionAdds new functions or objects to the API.RFCRequest for comments. Feature requests and proposed changes.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions