A RetroSearch Logo

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

Search Query:

Showing content from https://docs.jax.dev/en/latest/_autosummary/jax.numpy.rad2deg.html below:

jax.numpy.rad2deg — JAX documentation

jax.numpy.rad2deg#
jax.numpy.rad2deg(x, /)[source]#

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}\]

Parameters:

x (ArrayLike) – scalar or array. Specifies the angle in radians.

Returns:

An array containing the angles in degrees.

Return type:

Array

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