Convert angles from radians to degrees.
JAX implementation of numpy.rad2deg
.
The angle in radians is converted to degrees by:
\[rad2deg(x) = x * \frac{180}{pi}\]
x (ArrayLike) – scalar or array. Specifies the angle in radians.
An array containing the angles in degrees.
Examples
>>> pi = jnp.pi >>> x = jnp.array([pi/4, pi/2, 2*pi/3]) >>> jnp.rad2deg(x) Array([ 45. , 90. , 120.00001], dtype=float32) >>> x * 180 / pi Array([ 45., 90., 120.], dtype=float32)
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.3