New: nroot temp calculation upgraded into a subroutine (calulate_nroot_temp) Refactor: minimize the use of EXP in calculate_nroot_temp