User defined functions for performing numerical tasks in Apache Pig