```python
import math

def volume_sphere(r):
  """
  Calculates the volume of a sphere given its radius.

  Args:
    r: The radius of the sphere (a non-negative number).

  Returns:
    The volume of the sphere.
  """
  if r < 0:
    return 0  # Or raise an error, as radius cannot be negative.
  
  volume = (4/3) * math.pi * (r ** 3)
  return volume

```