home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume13 / bool-eval / sample4.b < prev    next >
Encoding:
Text File  |  1988-01-31  |  509 b   |  13 lines

  1. [* this is a bool sample source file.  it was an actual assignment that
  2.  * a couple of friends of mine had and it pointed out a series of bugs
  3.  * that i had missed.]
  4.  
  5. f0= !y | (w & !x & !z);        [ y' + wx'z' ]
  6. f1= x & !y;                    [ xy' ]
  7. f2= !x & !z;                   [ x'z' ]
  8. f3= (x & z) | (w & !x & !y);   [ xz + wx'y' ]
  9. f4= !w;                        [ w' ]
  10. f5= w ^ x ^ y ^ z;             [ w xor x xor y xor z ]
  11. f6= !x & y & !z;               [ x'yz' ]
  12. f7= 1;                         [ 1 ]
  13.