Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
YOR LOGIC

Subject: YOR LOGIC

From: Yumnam Kirani

Date: 7 Feb, 2011 12:21:04

Message: 1 of 3

Have you ever wanted to correc the negative logic of XOR operation. I have developed a logical operator similar to XOR giving the name YOR. The logic behind YOR is that when two numbers to be YORed are equal the output should be 1. Moreover, YOR should be reversible similar to XOR. Thos who are interested to see YOR logic may visit my homepage http://yumnam-kirani.hpage.com and find YOR LOGIC from the list given in the left pane.
Any suggestion or comment is welcomed.
Yumnam Kirani Singh
Tronglaobi Awang Leikai

Subject: YOR LOGIC

From: Jos (10584)

Date: 7 Feb, 2011 12:54:03

Message: 2 of 3

"Yumnam Kirani" <kirani.singh@gmail.com> wrote in message <iioo3g$eou$1@fred.mathworks.com>...
> Have you ever wanted to correc the negative logic of XOR operation. I have developed a logical operator similar to XOR giving the name YOR. The logic behind YOR is that when two numbers to be YORed are equal the output should be 1. Moreover, YOR should be reversible similar to XOR. Thos who are interested to see YOR logic may visit my homepage http://yumnam-kirani.hpage.com and find YOR LOGIC from the list given in the left pane.
> Any suggestion or comment is welcomed.
> Yumnam Kirani Singh
> Tronglaobi Awang Leikai

The File Exchange is a more appropriate place for this.

btw. It seems that yor(a,b) simply equals ~xor(a,b) ...

Jos

Subject: YOR LOGIC

From: Yumnam Kirani

Date: 8 Feb, 2011 05:56:03

Message: 3 of 3

"Jos (10584)" wrote in message <iioq1b$j6m$1@fred.mathworks.com>...
> "Yumnam Kirani" <kirani.singh@gmail.com> wrote in message <iioo3g$eou$1@fred.mathworks.com>...
> > Have you ever wanted to correc the negative logic of XOR operation. I have developed a logical operator similar to XOR giving the name YOR. The logic behind YOR is that when two numbers to be YORed are equal the output should be 1. Moreover, YOR should be reversible similar to XOR. Thos who are interested to see YOR logic may visit my homepage http://yumnam-kirani.hpage.com and find YOR LOGIC from the list given in the left pane.
> > Any suggestion or comment is welcomed.
> > Yumnam Kirani Singh
> > Tronglaobi Awang Leikai
>
> The File Exchange is a more appropriate place for this.
>
> btw. It seems that yor(a,b) simply equals ~xor(a,b) ...
>
> Jos

Thank you Jos for your reply. Yor is not exactly equal to not Xor. for example, yor(12,17)=28, while xor(12,17)=29 and ~xor(12,17)=2.

Yumnam Kirani Singh
Tronglaobi Awang Leikai

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us