aded computation of absolute degree