import math


def sph2cart(theta, phi, r=1):
    """Converts spherical coords to cartesian"""

    x = r * math.sin(theta) * math.cos(phi)
    y = r * math.sin(theta) * math.sin(phi)
    z = r * math.cos(theta)

    vect = [x, y, z]

    return vect