calculated the square root of cvariable