import numpy as np
sin = np.sin
cos = np.cos
pi = np.pi


def x_from_spherical(r, theta, phi):
    return r * sin(theta) * cos(phi)


def y_from_spherical(r, theta, phi):
    return r * sin(theta) * sin(phi)


def z_from_spherical(r, theta):
    return r * cos(theta)


def rad_to_deg(radians):
    return radians * 180 / pi


def deg_to_rad(degrees):
    return degrees * pi / 180

22867916e4a65e35be3b4ae3e12063fd131f7db2
<mask token>


def y_from_spherical(r, theta, phi):
    return r * sin(theta) * sin(phi)


def z_from_spherical(r, theta):
    return r * cos(theta)


def rad_to_deg(radians):
    return radians * 180 / pi


def deg_to_rad(degrees):
    return degrees * pi / 180

<mask token>


def x_from_spherical(r, theta, phi):
    return r * sin(theta) * cos(phi)


def y_from_spherical(r, theta, phi):
    return r * sin(theta) * sin(phi)


def z_from_spherical(r, theta):
    return r * cos(theta)


def rad_to_deg(radians):
    return radians * 180 / pi


def deg_to_rad(degrees):
    return degrees * pi / 180

<mask token>
sin = np.sin
cos = np.cos
pi = np.pi


def x_from_spherical(r, theta, phi):
    return r * sin(theta) * cos(phi)


def y_from_spherical(r, theta, phi):
    return r * sin(theta) * sin(phi)


def z_from_spherical(r, theta):
    return r * cos(theta)


def rad_to_deg(radians):
    return radians * 180 / pi


def deg_to_rad(degrees):
    return degrees * pi / 180

import numpy as np
sin = np.sin
cos = np.cos
pi = np.pi


def x_from_spherical(r, theta, phi):
    return r * sin(theta) * cos(phi)


def y_from_spherical(r, theta, phi):
    return r * sin(theta) * sin(phi)


def z_from_spherical(r, theta):
    return r * cos(theta)


def rad_to_deg(radians):
    return radians * 180 / pi


def deg_to_rad(degrees):
    return degrees * pi / 180
