sqrtf outside of for loop