autodiff.reverse.sin

autodiff.reverse.sin(x)

Return the sine of x.

Parameters
xint, float, Node
Returns
yfloat or Node

Examples

>>> ad.sin(np.pi / 2)
1.0
>>> x = ad.Node(np.pi / 2)
>>> ad.sin(x)
Node(1.0)