Lines Matching defs:trigrams
82 * Gives hexagram number from two component trigrams.
95 static int trigrams[6];
117 trigrams[i] = hexptr[i] - '0';
118 if (trigrams[i] == 6 || trigrams[i] == 9)
134 * Compute the hexagram number, given the trigrams.
139 int lower, upper; /* encoded values of lower and upper trigrams */
140 int lnum = 0, unum = 0; /* indices of upper and lower trigrams */
170 switch(trigrams[i]) {
198 if (trigrams[i] == OYIN) {
199 trigrams[i] = YYANG;
201 } else if (trigrams[i] == OYANG) {
202 trigrams[i] = YYIN;