if you are working with base e, use ln. if you are working with base 10, use log. Otherwise it does not matter. But it is customary to use ln in those cases, at least in calculus. precalculus and below perhaps use log (to the base 10) as the standard, i don't remember.