Sympify is being tricked into not converting the nested string:
```
>>> S("'O'")
'O'
>>> S("O")
<class 'sympy.series.order.Order'>
```
I thought this had been fixed (at least for subs) so that Symbols
would be preferred over the classes, but
```
>>> [x.subs(x, s) for s in list('COSINEQ')]
[C, <class 'sympy.series.order.Order'>, S, I, <function N at
0x01C05E30>, E, <class sympy.assumptions.ask.Q at 0x02050750>]
```
So...can you just create the Symbols:
```
>>> Matrix(2, 4, map(Symbol,'COSINEQS'))
[C, O, S, I]
[N, E, Q, S]
```
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.