Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.angle

numpy.angle(z,deg=0)[source]

Return the angle of the complex argument.

Parameters:
z:array_like

A complex number or sequence of complex numbers.

deg:bool, optional

Return angle in degrees if True, radians if False (default).

Returns:
angle:ndarray or scalar

The counterclockwise angle from the positive real axis onthe complex plane, with dtype as numpy.float64.

Examples

>>>np.angle([1.0,1.0j,1+1j])# in radiansarray([ 0.        ,  1.57079633,  0.78539816])>>>np.angle(1+1j,deg=True)# in degrees45.0

Previous topic

numpy.divmod

Next topic

numpy.real

Quick search

  • © Copyright 2008-2018, The SciPy community.
  • Last updated on Jul 24, 2018.
  • Created usingSphinx 1.6.6.

[8]ページ先頭

©2009-2025 Movatter.jp