<human>:  Give me a Python function to compute distance from longitude and latitude.
<bot>: Here is a Python function to compute distance from longitude and latitude

import math

def _compute_distance(longitude, latitude):
  """ Compute distance from longitude and latitude. """
  return 6371 * math.sqrt(math.pow(math.cos(latitude * math.pi / 180), 2) * math.pow(math.sin((longitude + 180) * math.pi / 180), 2) + math.pow(math.sin(latitude * math.pi / 180), 2))

# Enter the longitude and latitude
longitude = 123.456
latitude = -78.901

# Calling the function
print((_compute_distance(longitude, latitude)))

#Example Output
# 6335.020149193099

#Remember to inspect code for bugs.