Functions implementing basic mathematical operations.