scipy.special.sindg#
- scipy.special.sindg(x, out=None) = <ufunc 'sindg'>#
以度為單位給定的角度 x 的正弦值。
- 參數:
- xarray_like
角度,以度為單位。
- outndarray,選用
用於函數結果的可選輸出陣列。
- 回傳值:
- 純量或 ndarray
輸入值的正弦值。
範例
>>> import numpy as np >>> import scipy.special as sc
它比直接使用 sine 更精確。
>>> 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])