no numeric evaluation of ln(1) after replacing in ln(r/a) by r=a



maybe your problem is that Maxima uses the name log, not ln.