for i in range(len(vector1)):
        x = vector1[i]
        sumxx += x*x