Skip to content

Commit

Permalink
Simplify.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad committed Dec 19, 2018
1 parent 6eb7994 commit 2af53c0
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions p16.dyalog
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ p←⊃⎕NGET'p16.txt'1
an{2/(2/21+)}
or{2/(2/21+)}

addr{_ a b c w(cw)(aw)+(bw)w}
addi{_ a b c w(cw)(aw)+bw}
mulr{_ a b c w(cw)(aw)×(bw)w}
muli{_ a b c w(cw)(aw)×bw}
banr{_ a b c w(cw)(aw)an(bw)w}
bani{_ a b c w(cw)(aw)an bw}
borr{_ a b c w(cw)(aw)or(bw)w}
bori{_ a b c w(cw)(aw)or bw}
setr{_ a b c w(cw)(aw)w}
seti{_ a b c w(cw)aw}
gtir{_ a b c w(cw)a>(bw)w}
gtrr{_ a b c w(cw)(aw)>(bw)w}
gtri{_ a b c w(cw)(aw)>bw}
eqir{_ a b c w(cw)a=(bw)w}
eqrr{_ a b c w(cw)(aw)=(bw)w}
eqri{_ a b c w(cw)(aw)=bw}
addr{_ a b c rr[c]r[a]+r[b]r}
addi{_ a b c rr[c]r[a]+br}
mulr{_ a b c rr[c]r[a]×r[b]r}
muli{_ a b c rr[c]r[a]×br}
banr{_ a b c rr[c]r[a]an r[b]r}
bani{_ a b c rr[c]r[a]an br}
borr{_ a b c rr[c]r[a]or r[b]r}
bori{_ a b c rr[c]r[a]or br}
setr{_ a b c rr[c]r[a]r}
seti{_ a b c rr[c]ar}
gtir{_ a b c rr[c]a>r[b]r}
gtrr{_ a b c rr[c]r[a]>r[b]r}
gtri{_ a b c rr[c]r[a]>br}
eqir{_ a b c rr[c]a=r[b]r}
eqrr{_ a b c rr[c]r[a]=r[b]r}
eqri{_ a b c rr[c]r[a]=br}

all{16 4(addr,addi,mulr,muli,banr,bani,borr,bori,setr,seti,gtir,gtrr,gtri,eqir,eqrr,eqri)}

Expand Down

0 comments on commit 2af53c0

Please sign in to comment.