Create new user defined function DetNucDistr.