import math


def spherical_to_cartesian(r, phi, theta):
    """
    Input:
    - r: radial distance
    - phi: azimuth angle (radians)
    - theta: elevation angle (radians)
    """
    x = r * math.cos(phi)
    y = r * math.sin(phi)
    z = r * math.sin(theta)
    return (x, y, z)