Skip to content

Commit 6f644b3

Browse files
prady0tlucascolley
andauthored
Update src/array_api_extra/_lib/_funcs.py
Co-authored-by: Lucas Colley <lucas.colley8@gmail.com>
1 parent f65c0b8 commit 6f644b3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/array_api_extra/_lib/_funcs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,8 @@ def angle(z: Array, /, *, deg: bool = False, xp: ModuleType | None = None) -> Ar
846846
>>> import array_api_extra as xpx
847847
>>> xpx.angle(xp.asarray([1.0, 1.0j, 1 + 1j]), xp=xp)
848848
Array([0. , 1.57079633, 0.78539816], dtype=array_api_strict.float64)
849+
>>> xpx.angle(xp.asarray([1.0, 1.0j, 1 + 1j]), deg=True, xp=xp)
850+
Array([ 0., 90., 45.], dtype=array_api_strict.float64)
849851
"""
850852
if xp is None:
851853
xp = array_namespace(z)

0 commit comments

Comments
 (0)