Skip to content

Main content

Yijing Upper and Lower Trigram Composer

Compose explicit binary trigram codes, lower first, into six bottom-to-top lines; uses binary identities rather than a guessed King Wen table.

Loading tool…

Description

Compose code=lowerCode+8*upperCode from integer trigram codes zero through seven.

These tools represent a six-line figure as six binary values ordered from bottom to top, with yin represented by zero and yang by one. Three adjacent lines form a trigram. Binary encoding, line reversal, and changing selected lines are separate operations under this explicit representation.

Compose code=lowerCode+8*upperCode from integer trigram codes zero through seven.

When to use this tool

Use Yijing Upper and Lower Trigram Composer when you need a reproducible binary line transformation with an inspectable output figure.

How to use the tool and how it works

  1. Enter lowerCode, upperCode. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read result. Expand result to inspect the returned fields.

Compose code=lowerCode+8*upperCode from integer trigram codes zero through seven. Decode six bits with the bottom line first and return code and lines inside result.1

Input fieldMeaning and unitsAccepted input
lowerCodeInteger binary trigram identity from zero through seven.Required. Safe integer.
upperCodeInteger binary trigram identity from zero through seven.Required. Safe integer.
Output fieldInterpretationReturned shape
resultResultRequired. Object.
json
{
  "input": {
    "lowerCode": 1,
    "upperCode": 2
  },
  "output": {
    "result": {
      "code": 17,
      "lines": [
        1,
        0,
        0,
        0,
        1,
        0
      ]
    }
  }
}

Limitations and assumptions

  • These are binary identities with the bottom line as the least significant bit, not King Wen sequence numbers or names. The tool does not cast lines or provide a divinatory interpretation.
  • Outputs are nested inside result. The field tables state structural bounds; the mechanics also specify cross-field constraints. Malformed inputs and unsupported domains cause errors. A successful false flag, empty branch value, or zero placeholder has the meaning stated above and is distinct from an input error.

Alternative or Complementary methods

Keep one explicit line-order and binary convention throughout. Use a separate attributed text or scholarly source when the task requires a figure name or interpretation.

References

  1. Calculation and input contract: yijing/trigram-pair-composer — tool.io

Similar or alternative tools