Array API compatible wrapper for :py:func:`np.sin `. See its docstring for more information.
(x: Array, /)
| 672 | |
| 673 | |
| 674 | def sin(x: Array, /) -> Array: |
| 675 | """ |
| 676 | Array API compatible wrapper for :py:func:`np.sin <numpy.sin>`. |
| 677 | |
| 678 | See its docstring for more information. |
| 679 | """ |
| 680 | if x.dtype not in _floating_dtypes: |
| 681 | raise TypeError("Only floating-point dtypes are allowed in sin") |
| 682 | return Array._new(np.sin(x._array)) |
| 683 | |
| 684 | |
| 685 | def sinh(x: Array, /) -> Array: |