sine of a
Computes element-wise sine of a tensor in radians.
TensorLike
Input tensor in radians
TensorVariable
Output tensor with the sine of each element
Notes
This function corresponds to NumPy’s np.sin function.
Examples
>>> import pytensor >>> import pytensor.tensor as pt >>> import numpy as np >>> x = pt.vector("x") >>> f = pytensor.function([x], pt.sin(x)) >>> f([0, np.pi / 2, np.pi]) array([ 0.00000000e+00, 1.00000000e+00, 1.22464680e-16])
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4