Hi:

I want a matrix with letters. The obvious thing doesn't work:

In [3]: s = "OQRS"

In [4]: Matrix(2,2,list(s))
Out[4]:
⎡<class 'sympy.series.order.Order'>  sympy.assumptions.ask.Q⎤
⎢                                                           ⎥
⎣                R                              S           ⎦

However, this odd idea does work:

In [5]: Matrix(2,2,["'%s'"%x for x in s])
Out[5]:
⎡O  Q⎤
⎢    ⎥
⎣R  S⎦

Does anyone know of an explanation or other
method of doing this?

- David

-- 
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.


Reply via email to