15. Write NumPy functions for calculating :