sqrt function in lecture