Applicability of user defined functions in mine surveying