scipy.special.cotdg¶
- scipy.special.cotdg(x, out=None) = <ufunc 'cotdg'>¶
角度的余切 x 以度为单位给出的。
- 参数
- xarray_like
角度,以度为单位。
- outndarray,可选
函数结果的可选输出数组。
- 退货
- 标量或ndarray
输入处的余切。
示例
>>> import scipy.special as sc
它比直接使用余切更精确。
>>> x = 90 + 180 * np.arange(3) >>> sc.cotdg(x) array([0., 0., 0.]) >>> 1 / np.tan(x * np.pi / 180) array([6.1232340e-17, 1.8369702e-16, 3.0616170e-16])