Some useful mathematical functions have been implemented