algorithms associated with logarithms