Efficiency functionfrom numpy import *def f(e_prime): if e_prime>19: return 1. elif e_prime<19 and e_prime >= 16.2: return 0.8645505541113695 elif e_prime < 16.2 and e_prime >= 15.5: return 0.737173347927213 elif e_prime < 15.5 and e_prime >= 15.0: return 0.6029552606375701 elif e_prime < 15.0 and e_prime >= 12.9: return 0.4702421671911342 elif e_prime < 12.9 and e_prime >= 12.3: return 0.3566835408400602 elif e_prime < 12.3 and e_prime >= 12.1: return 0.23204268709809822 elif e_prime < 12.1 and e_prime >= 10.2: return 0.12108359556710904 elif e_prime < 10.2: return 0. |