I have a table which is having latitude and longitude fields.
`
location.objects.annotate( distance =math.fabs(math.pow((math.sin(
F('latitude') - float(90.378770)) /2 )),2) +
math.cos(90.378770) * math.cos( F('latitude')) *
pow((math.sin( (F('longitude') - float(-59.826830)) /2)),2) )
).values_list('distance', flat=True)
`
How to do perform this equivalent mathematical operation on data and store the values in a list while doing database query.