autodiff.reverse.cos

autodiff.reverse.cos(x)

Return the cosine of x.

Parameters
xint, float, Node
Returns
yfloat or Node

Examples

>>> ad.cos(np.pi / 2)
0.0
>>> x = ad.Node(np.pi / 2)
>>> ad.cos(x)
Node(0)