12-02-2013 08:49 AM
i posted another table entry copy pasted. i should have checked it, sorry
Ok here my question, how do i do this?
Below is the corrected table of the previously posted table:
12-02-2013 09:11 AM - edited 12-02-2013 09:11 AM
12-02-2013 09:11 AM
How is this "NEW" version correct?
Look at row 4 of table X. It is 1 1 0.
Look at column 2 of table Y. It is 1 1 0.
The math would be 1x1 + 1x1 + 0x0 = 1 + 1 +1 which equal 2
Your output table of row 4 column 2 says 0.
Your math just doesn't add up!
12-02-2013 07:10 PM - edited 12-02-2013 07:21 PM
GredW, the program is still incomplete, it only works for the first three input rows(x). The outputs for other rows are incorrect. Please see this-
I think your program needs only few modification. thanks
RavensFan- the output result is correct- The math would be 1x1 + 1x1 + 0x0 = 1 + 1 +0 which equal 0 (since in modulo-2 addition 1+1=0)
Best
Susan
12-02-2013 08:38 PM
Where did this "modulo 2" stuff come from? You never described that in your earlier messages.
Take the cross product. Then use the Remainder output of the quotient Remainder Function when you divide the array by two.
Or just take the array and AND it with an array of 1's of the same size.
Done!
12-02-2013 09:54 PM
RavensFan- i didn't clearly understand your solution, could you perhaps attach a screenshot?
thanks,
susan
12-02-2013 11:21 PM - edited 12-02-2013 11:23 PM
Both ways shown.
12-03-2013 12:11 AM - edited 12-03-2013 12:15 AM
Hah finally RavensFAN solved what i have been looking for days. thanks a lot. I didn't think it would be so simple and how can I think of that- how is that ANDing possible with AxB outputs which has a 2 in it?
I thought it would involve indexing, multiplication and addition of rows and column within some loops, and that was complex for me being a beginner. I think there is a way on this too and perhaps is more mathematically constructive way of doing. But RavensFAN solution provides alternative method of the same problem even quicker.
I think GerdW is not signed today in to infer his solution. I hope to hear his solution too.
Thanks everybody who has provided inputs to my question, i really appreciate your time. maybe my question wasn't clearly posted at the beginning otherwise i may had solution earlier.
Best,
Susan
12-03-2013 01:49 AM - edited 12-03-2013 01:50 AM
Hi Susan,
<irony>
it's always fun to provide solutions where the OP is saying "Um, wrong, because I forgot to mention..." afterwards...
</irony>
Is it realy that hard to explain your task? At first you talk about "binary" (aka boolean) operations like AND and OR. When you got a solution per your description you say "No, it is modulo math!".
You should definitely have learned by now to write questions with all the information needed for a possible solution...
12-03-2013 08:57 AM