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