pymc.math.arcsin#
- pymc.math.arcsin = Elemwise(scalar_op=arcsin,inplace_pattern=<frozendict {}>)[source]#
arcsine of a
Computes element-wise inverse sine (arc sine) of a tensor.
- Parameters:
- a
TensorLike
Input tensor (values should be in the range [-1, 1])
- a
- Returns:
TensorVariable
Output tensor with the arc sine of each element in radians, in the range [-π/2, π/2]
Notes
This function corresponds to NumPy’s np.arcsin function. The values returned are in the range [-π/2, π/2]. Input values outside the domain [-1, 1] will produce NaN outputs.
Examples
>>> import pytensor >>> import pytensor.tensor as pt >>> x = pt.vector("x") >>> f = pytensor.function([x], pt.arcsin(x)) >>> f([-1, 0, 1]) array([-1.57079633, 0. , 1.57079633])