how to get the sum of roots​