svis

4 Reputation

One Badge

13 years, 212 days

MaplePrimes Activity


These are questions asked by svis

I've just gotten started with maple (2 days ago). I needed to construct a set whose elements are vectors. During the generation of these vectors, there turn out to be duplicates and I was hoping that the set union operation will get rid of these. Instead, I end up with a set consisting of duplicated vectors. Here is a very simplified case that my problem boils down to: with(LinearAlgebra); a:=UnitVector(1,2); b:=UnitVector(1,2); #a and b are clearly equal. s:={a,b}; #s should be just the singleton set. But it gives s as being a 2 element set with this vector repeated.
Page 1 of 1