numpy.degrees(x,/,out=None,*,where=True,casting='same_kind',order='K',dtype=None,subok=True[,signature,extobj]) = <ufunc 'degrees'>¶Convert angles from radians to degrees.
| Parameters: | x : array_like
out : ndarray, None, or tuple of ndarray and None, optional
where : array_like, optional
**kwargs
|
|---|---|
| Returns: | y : ndarray of floats
|
See also
rad2degExamples
Convert a radian array to degrees
>>>rad=np.arange(12.)*np.pi/6>>>np.degrees(rad)array([ 0., 30., 60., 90., 120., 150., 180., 210., 240., 270., 300., 330.])
>>>out=np.zeros((rad.shape))>>>r=degrees(rad,out)>>>np.all(r==out)True