how to find frequency with length and temperature