M
Marcio Braga
a=[1]
b=a # make matrix "b" equal matrix "a", but expected 2
separated matrices
b[0]=2*b[0] # I want to change matrix "b" (and not matrix "a")
p a # print matrix "a" and see the "issue"
The expected value in the matrix "a" should be 1, but instead it is 2.
Why ?
Thank you.
Marcio
b=a # make matrix "b" equal matrix "a", but expected 2
separated matrices
b[0]=2*b[0] # I want to change matrix "b" (and not matrix "a")
p a # print matrix "a" and see the "issue"
The expected value in the matrix "a" should be 1, but instead it is 2.
Why ?
Thank you.
Marcio