Expand and/or fix documentation of several scalar math functions