scipy.special.sindg¶
- scipy.special.sindg(x, out=None) = <ufunc 'sindg'>¶
角度的正弦 x 以度为单位给出的。
- 参数
- xarray_like
角度,以度为单位。
- outndarray,可选
函数结果的可选输出数组。
- 退货
- 标量或ndarray
输入端的正弦。
示例
>>> import scipy.special as sc
它比直接使用正弦更准确。
>>> x = 180 * np.arange(3) >>> sc.sindg(x) array([ 0., -0., 0.]) >>> np.sin(x * np.pi / 180) array([ 0.0000000e+00, 1.2246468e-16, -2.4492936e-16])