scale factor mathematical definition