scipy.special.radian#
- scipy.special.radian(d, m, s, out=None) = <ufunc 'radian'>#
Convert from degrees to radians.
Returns the angle given in (d)egrees, (m)inutes, and (s)econds in radians.
- Parameters:
- darray_like
Degrees, can be real-valued.
- marray_like
Minutes, can be real-valued.
- sarray_like
Seconds, can be real-valued.
- outndarray, optional
Optional output array for the function results.
- Returns:
- scalar or ndarray
Values of the inputs in radians.
Notes
Array API Standard Support
radian
has experimental support for Python Array API Standard compatible backends in addition to NumPy. Please consider testing these features by setting an environment variableSCIPY_ARRAY_API=1
and providing CuPy, PyTorch, JAX, or Dask arrays as array arguments. The following combinations of backend and device (or other capability) are supported.Library
CPU
GPU
NumPy
✅
n/a
CuPy
n/a
✅
PyTorch
✅
⛔
JAX
⚠️ no JIT
⛔
Dask
✅
n/a
See Support for the array API standard for more information.
Examples
>>> import scipy.special as sc
There are many ways to specify an angle.
>>> sc.radian(90, 0, 0) 1.5707963267948966 >>> sc.radian(0, 60 * 90, 0) 1.5707963267948966 >>> sc.radian(0, 0, 60**2 * 90) 1.5707963267948966
The inputs can be real-valued.
>>> sc.radian(1.5, 0, 0) 0.02617993877991494 >>> sc.radian(1, 30, 0) 0.02617993877991494