def spherical_to_cartesian(r, theta , phi):
    r = np.asanyarray(r)
    theta = np.asanyarray(theta)
    phi = np.asanyarray(phi)
    return (
        r * np.sin(theta) * np.cos(phi),
        r * np.sin(theta) * np.sin(phi),
        r * np.cos(theta)
        )
Evaluate source in JavaScript runtime.
dataset/ETHPy150Open python-acoustics/python-acoustics/acoustics/directivity.py/spherical_to_cartesian--crossover with--dataset/ETHPy150Open doloopwhile/PyExecJS/execjs/_abstract_runtime_context.py/AbstractRuntimeContext.eval