Mercurial > repo
comparison interps/c-intercal/pit/iching.doc @ 996:859f9b4339e6
<Gregor> tar xf egobot.tar.xz
author | HackBot |
---|---|
date | Sun, 09 Dec 2012 19:30:08 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
995:6883f5911eb7 | 996:859f9b4339e6 |
---|---|
1 | |
2 Notes on iching1.i and iching2.i: | |
3 | |
4 Both versions (1 and 2) use the same code for generating lines of the | |
5 hexagram, a simulation of the "coin oracle" method. (Six separate | |
6 unconditional calls to (1020) were used since I thought lumping them | |
7 all together by starting .1 at #6 would be disrespectful.) | |
8 Implementation of the yarrow-stalk oracle is left as an exercise for | |
9 the student. Note that in converting the numbers from the program into | |
10 the lines of a hexagram, one should work from the bottom up. The last | |
11 number gives the top line. | |
12 | |
13 The traditional sequence of the hexagrams does not have a consistent | |
14 mathematical explanation. Version 2 of the program therefore uses a | |
15 lookup table to determine the number of each hexagram in sequence. The | |
16 six lines are printed as in version 1, then the sequence number for the | |
17 hexagram, and finally the sequence number for the derived hexagram | |
18 obtained by replacing moving lines (9 and 6) by their opposites. | |
19 | |
20 Louis Howell | |
21 September 10, 1996 |