code: def create_matrix(equations, coeffs):
      A = zeros(len(equations))
      i = 0
      j = 0
      for j in range(0, len(coeffs)):
          c = coeffs[j]
          for i in range(0, len(equations)):
              e = equations[i]
              d, _ = reduced(e, [c])
              A[i, j] = d[0]
      return A
  
file_path: sympy/examples/advanced/fem.py
imports: from sympy import symbols, Symbol, factorial, Rational, zeros, eye, integrate, diff, pprint, reduced
label_desc: Use image node_id 3 for calling a global function with example usage: create_matrix(equations, coeffs) and returns: A