The mathematical relationship between temperature and resistivity