scipy.special.cotdg#

scipy.special.cotdg(x, out=None) = <ufunc 'cotdg'>#

Kosekans des Winkels x in Grad.

Parameter:
xarray_like

Winkel, gegeben in Grad.

outndarray, optional

Optionales Ausgabearray für die Funktionsergebnisse.

Rückgabe:
skalar oder ndarray

Kosekans am Eingabewert.

Siehe auch

sindg, cosdg, tandg

Beispiele

>>> import numpy as np
>>> import scipy.special as sc

Es ist genauer als die direkte Verwendung der Kosekans-Funktion.

>>> 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])