A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.pymc.io/projects/docs/en/stable/api/generated/pymc.math.sin.html below:

pymc.math.sin — PyMC 5.25.1 documentation

pymc.math.sin#
pymc.math.sin = Elemwise(scalar_op=sin,inplace_pattern=<frozendict {}>)[source]#

sine of a

Computes element-wise sine of a tensor in radians.

Parameters:
aTensorLike

Input tensor in radians

Returns:
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