8000 Add complex number support to `exp` by kgryte · Pull Request #451 · data-apis/array-api · GitHub
[go: up one dir, main page]

Skip to content

Add complex number support to exp #451

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 8 commits into from
Jul 7, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update description to accommodate complex number input
  • Loading branch information
kgryte committed Jun 13, 2022
commit d10b63bf9af3c462cb27d0ec8c7164bbef818b10
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def equal(x1: array, x2: array, /) -> array:

def exp(x: array, /) -> array:
"""
Calculates an implementation-dependent approximation to the exponential function, having domain ``[-infinity, +infinity]`` and codomain ``[+0, +infinity]``, for each element ``x_i`` of the input array ``x`` (``e`` raised to the power of ``x_i``, where ``e`` is the base of the natural logarithm).
Calculates an implementation-dependent approximation to the exponential function for each element ``x_i`` of the input array ``x`` (``e`` raised to the power of ``x_i``, where ``e`` is the base of the natural logarithm).

**Special cases**

Expand Down
0