While other species may not spend their time sweating over quadratic equations like we did at school, they can carry out some pretty impressive calculations.