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:
TensorVariableOutput tensor with the arc sine of each element in radians,in the range [-π/2, π/2]
Notes
This function corresponds to NumPy’snp.arcsin function.The values returned are in the range [-π/2, π/2]. Input values outsidethe domain [-1, 1] will produce NaN outputs.
Examples
>>>importpytensor>>>importpytensor.tensoraspt>>>x=pt.vector("x")>>>f=pytensor.function([x],pt.arcsin(x))>>>f([-1,0,1])array([-1.57079633, 0. , 1.57079633])
