Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
|
|
@ -1,15 +1,15 @@
|
|||
trit = [false, undefined, true]
|
||||
functor = {nand, and, or, nor, implies, iff, xor}
|
||||
display = {nand: '⊼', and: '∧', or: '∨', nor: '⊽', implies: '⇒', iff: '⇔', xor: '⊻', not: '¬'}
|
||||
values = Object.values(trit)
|
||||
display = {nand: '⊼', and: '∧', or: '∨', nor: '⊽', implies: '→', iff: '↔', xor: '⊻', not: '¬', false: 'F', undefined: '?', true: 'T'}
|
||||
|
||||
log = 'NOT\n';
|
||||
for (let a of values) log += `${display.not}${a} = ${a}\n`
|
||||
for (let a of trit) log += `${display.not}${display[a]} = ${display[not(a)]}\n`
|
||||
|
||||
log += '\nNAND AND OR NOR IMPLIES IFF XOR'
|
||||
for (let a of values) {
|
||||
for (let b of values) {
|
||||
log += '\nNAND AND OR NOR IMPLIES IFF XOR'
|
||||
for (let a of trit) {
|
||||
for (let b of trit) {
|
||||
log += "\n"
|
||||
for (let op in functor) log += `${a} ${display[op]} ${b} = ${functor[op](a, b)} `
|
||||
for (let op in functor) log += `${display[a]} ${display[op]} ${display[b]} = ${display[functor[op](a, b)]} `
|
||||
}
|
||||
}
|
||||
console.log(log)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue