Perhaps you should make a copy of q:  w = q.copy().

Kalevi Suominen

On Friday, May 3, 2019 at 10:50:29 AM UTC+3, [email protected] wrote:

> Hello,
>   
>     I am new to sympy and I want removed one column of a matrix and I want 
> to keep the original one also but when I use col_del() command it deletes 
> the column for all matrices. Do you have idea how I can keep original while 
> I changing matrix with another name?
> The example I am writing is like that
>
>     q=sp.Matrix([[x,x+1],[x-1,x+2]])
>     
>     w=q
>     
>     w.col_del(0)
>     w1=w
>
>   Then all q, w, w1 have deleted columns but I want to keep q unchanged.
>
>

-- 
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 https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/1d290685-7f37-4af3-8267-8849f4251d65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to