8000 Update notes to indicate that branch cuts follow C99 by kgryte · Pull Request #579 · data-apis/array-api · GitHub
[go: up one dir, main page]

Skip to content

Update notes to indicate that branch cuts follow C99 #579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions spec/API_specification/array_api/elementwise_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def acos(x: array, /) -> array:

Accordingly, for complex arguments, the function returns the inverse cosine in the range of a strip unbounded along the imaginary axis and in the interval :math:`[0, \pi]` along the real axis.

*Note: branch cuts have provisional status* (see :ref:`branch-cuts`).
*Note: branch cuts follow C99 and have provisional status* (see :ref:`branch-cuts`).

Parameters
----------
Expand Down Expand Up @@ -151,7 +151,7 @@ def acosh(x: array, /) -> array:

Accordingly, for complex arguments, the function returns the inverse hyperbolic cosine in the interval :math:`[0, \infty)` along the real axis and in the interval :math:`[-\pi j, +\pi j]` along the imaginary axis.

*Note: branch cuts have provisional status* (see :ref:`branch-cuts`).
*Note: branch cuts follow C99 and have provisional status* (see :ref:`branch-cuts`).

Parameters
----------
Expand Down Expand Up @@ -282,7 +282,7 @@ def asin(x: array, /) -> array:

Accordingly, for complex arguments, the function returns the inverse sine in the range of a strip unbounded along the imaginary axis and in the interval :math:`[-\pi/2, +\pi/2]` along the real axis.

*Note: branch cuts have provisional status* (see :ref:`branch-cuts`).
*Note: branch cuts follow C99 and have provisional status* (see :ref:`branch-cuts`).

Parameters
----------
Expand Down Expand Up @@ -334,7 +334,7 @@ def asinh(x: array, /) -> array:

Accordingly, for complex arguments, the function returns the inverse hyperbolic sine in the range of a strip unbounded along the real axis and in the interval :math:`[-\pi j/2, +\pi j/2]` along the imaginary axis.

*Note: branch cuts have provisional status* (see :ref:`branch-cuts`).
*Note: branch cuts follow C99 and have provisional status* (see :ref:`branch-cuts`).

Parameters
----------
Expand Down Expand Up @@ -393,7 +393,7 @@ def atan(x: array, /) -> array:

Accordingly, for complex arguments, the function returns the inverse tangent in the range of a strip unbounded along the imaginary axis and in the interval :math:`[-\pi/2, +\pi/2]` along the real axis.

*Note: branch cuts have provisional status* (see :ref:`branch-cuts`).
*Note: branch cuts follow C99 and have provisional status* (see :ref:`branch-cuts`).

Parameters
----------
Expand Down Expand Up @@ -501,7 +501,7 @@ def atanh(x: array, /) -> array:

Accordingly, for complex arguments, the function returns the inverse hyperbolic tangent in the range of a half-strip unbounded along the real axis and in the interval :math:`[-\pi j/2, +\pi j/2]` along the imaginary axis.

*Note: branch cuts have provisional status* (see :ref:`branch-cuts`).
*Note: branch cuts follow C99 and have provisional status* (see :ref:`branch-cuts`).

Parameters
----------
Expand Down Expand Up @@ -1351,7 +1351,7 @@ def log(x: array, /) -> array:

Accordingly, for complex arguments, the function returns the natural logarithm in the range of a strip in the interval :math:`[-\pi j, +\pi j]` along the imaginary axis and mathematically unbounded along the real axis.

*Note: branch cuts have provisional status* (see :ref:`branch-cuts`).
*Note: branch cuts follow C99 and have provisional status* (see :ref:`branch-cuts`).

Parameters
----------
Expand Down Expand Up @@ -1410,7 +1410,7 @@ def log1p(x: array, /) -> array:

Accordingly, for complex arguments, the function returns the natural logarithm in the range of a strip in the interval :math:`[-\pi j, +\pi j]` along the imaginary axis and mathematically unbounded along the real axis.

*Note: branch cuts have provisional status* (see :ref:`branch-cuts`).
*Note: branch cuts follow C99 and have provisional status* (see :ref:`branch-cuts`).

Parameters
----------
Expand Down Expand Up @@ -1797,7 +1797,7 @@ def pow(x1: array, x2: array, /) -> array:

The natural logarithm is a continuous function from above the branch cut, taking into account the sign of the imaginary component. As special cases involving complex floating-point operands should be handled according to ``exp(x2*log(x1))``, exponentiation has the same branch cut for ``x1`` as the natural logarithm (see :func:`~array_api.log`).

*Note: branch cuts have provisional status* (see :ref:`branch-cuts`).
*Note: branch cuts follow C99 and have provisional status* (see :ref:`branch-cuts`).

Parameters
----------
Expand Down Expand Up @@ -2153,7 +2153,7 @@ def sqrt(x: array, /) -> array:

Accordingly, for complex arguments, the function returns the square root in the range of the right half-plane, including the imaginary axis (i.e., the plane defined by :math:`[0, +\infty)` along the real axis and :math:`(-\infty, +\infty)` along the imaginary axis).

*Note: branch cuts have provisional status* (see :ref:`branch-cuts`).
*Note: branch cuts follow C99 and have provisional status* (see :ref:`branch-cuts`).

Parameters
----------
Expand Down
0