With ZIP()...
|
05-27-2015, 02:43 PM
Post: #1
|
|||
|
|||
With ZIP()...
after reading the zip() help description, given something like:
L1:={1,2}; // (goal: Multiply two lists of unequal size) L2:={2,4,6,8}; the zip function would return a list: zip('*',L1,L2,0); --> syntax error (help shows single quotes surrounding function) zip("*",L1,L2,0); --> Error: Invalid input zip("L1*L2",L1,L2,0); --> {2,8,"1","L"} what the heck is that? I was expecting {{2,4,6,8},{4,8,12,16}}, or a single list concatenation of this, or some zero padded similar output. Conclusion: Help doesn't. Zip didn't. L1*L2? <--- without external loop? |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
With ZIP()... - DrD - 05-27-2015 02:43 PM
RE: With ZIP()... - Didier Lachieze - 05-27-2015, 10:07 PM
RE: With ZIP()... - compsystems - 05-29-2015, 12:01 PM
RE: With ZIP()... - DrD - 05-29-2015, 12:39 PM
|
User(s) browsing this thread: 1 Guest(s)