HP Forums
Swiss Micros DM16L: Advanced Boolean and Factorial (up to 20) - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Not quite HP Calculators - but related (/forum-8.html)
+--- Thread: Swiss Micros DM16L: Advanced Boolean and Factorial (up to 20) (/thread-16686.html)



Swiss Micros DM16L: Advanced Boolean and Factorial (up to 20) - Eddie W. Shore - 04-18-2021 03:28 PM

The program listing, for the Swiss Micros DM16L and Hewlett Packard HP 16C,  will assign the following functions to the labels:

A:  NAND:   nand(x, y) = not(x and y)
B:  NOR:   nor(x, y) =  not(x or y)
C:  XNOR:  xnor(x, y) = (not x and not y) or (x and y)
D:  Implication:  y → x = (not y) or x
E:  Factorial:  x!  (x is a positive integer up to 20, 64 word size

Programs are listed here: http://edspi31415.blogspot.com/2021/04/swiss-micros-dm16l-advanced-boolean-and.html