// the specifiers dictionary, it should be sufficient to just check for
// the presence of any non-constant specifiers.
for spec in specifiers.itervalues():
if (any(Symbol(spec.name) in element for element in matrix) and
not getattr(spec, "constant", False)):
raise ValueError(("The coefficient matrix for the equations "
"contains "%s", which is not constant.") %
After Change
// the presence of any non-constant specifiers.
symbols = reduce(operator.add, (el.atoms() for el in matrix))
// Only check true symbols, not numbers
symbols = set([str(symbol) for symbol in symbols
if isinstance(symbol, Symbol)])
for symbol in symbols: