Rayleigh's method of dimensional analysis