code: def evaluate_array(self, x):
          '''Simple way of evaluating a polynomial at value x, but here we return both the full array (evaluated at each polynomial position) and the sum'''
          x_gf = self.coefficients[0].__class__(x)
          arr = [self.coefficients[-i]*x_gf**(i-1) for i in _range(len(self), 0, -1)]
          # if x == 1: arr = sum(self.coefficients)
          return arr, sum(arrf evaluate_array(self, x):
          '''Simple way of evaluating a polynomial at value x, but here we return both the full array (evaluated at each polynomial position) and the sum'''
          x_gf = self.coefficients[0].__class__(x)
          arr = [self.coefficients[-i]*x_gf**(i-1) for i in _range(len(self), 0, -1)]
          # if x == 1: arr = sum(self.coefficients)
          return arr, sum(arr)
docs: Simple way of evaluating a polynomial at value x, but here we return both the full array (evaluated at each polynomial position) and the sum