casperyc

962 Reputation

10 Badges

16 years, 170 days
University of Kent
Dr

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are questions asked by casperyc

Hi all,

Say i have two Vectors:

V1:=Vector(2,[a,b]);

V2:=Vector(4,[d,b,e,a]);

and how do I get

V3:=Vector([d,e]);

?? I currectly use a crude way using 'set' operations:

V3:=convert(V2,set) minus convert(V1,set);

V3:=convert(V3,Vector); # Does not work straightford, so

V3:=convert(V3,list):
V3:=convert(V3,Vector); # Which works,

 

Also, is there a strightforward way to which elements are the same and their indices?

 

 

#### Code attached at the BOTTOM ####

If I run these seperately, they seem to be running fine as shown above. But when I run '8' after '7', it does not seem to be working as in first picture.

Working.mw

This one is wokring fine.

 

However,

 

See the new worksheet: testP.mw

with the source code: tmP.c

######################################################################...

First 11 12 13 14 15 16 17 Last Page 13 of 31