hollyschwerdt

28 Reputation

2 Badges

16 years, 318 days

MaplePrimes Activity


These are answers submitted by hollyschwerdt

Wow, thank you.  I am not exactly sure what this is doing, but I think it is the most concise beautiful piece of code I have seen.  I would never have thought of this.

As mentioned, my a line of my data is in the form [elm1, elm2, elm3, elm4], and I only want to do this on the 3 tuple. 

Example data file with 3 lines:

[1,2,3,x],

[1,2,3,y],

[1,3,2,z],

 

I then have been trying things like:

bdy_data := map2(op,1..3,L2);

 

which returns

bdy_data :=[1,2,3,1,2,3,1,3,2]

However, to proceed as you said, I actually need my data to be in the form:

bdy_data:= [1,2,3], [1,2,3], [1,3,2]

Do you have an idea for how to get this into a useful form? 

Thank you already for your time, and for any other thought you put into this.

Wow, thank you.  I am not exactly sure what this is doing, but I think it is the most concise beautiful piece of code I have seen.  I would never have thought of this.

As mentioned, my a line of my data is in the form [elm1, elm2, elm3, elm4], and I only want to do this on the 3 tuple. 

Example data file with 3 lines:

[1,2,3,x],

[1,2,3,y],

[1,3,2,z],

 

I then have been trying things like:

bdy_data := map2(op,1..3,L2);

 

which returns

bdy_data :=[1,2,3,1,2,3,1,3,2]

However, to proceed as you said, I actually need my data to be in the form:

bdy_data:= [1,2,3], [1,2,3], [1,3,2]

 

Thank you already for your time, and for any other thought you put into this.

Page 1 of 1