Skip to content

Main content

Yijing Complementary Hexagram Calculator

Complement all six yin/yang lines and identify the result by its documented bottom-LSB binary code, not a fabricated King Wen name.

Loading tool…

Description

Complement six binary line values and encode the resulting figure with its bottom line as the least significant bit.

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.

Complement six binary line values and encode the resulting figure with its bottom line as the least significant bit.

When to use this tool

Use Yijing Complementary Hexagram Calculator when you need a reproducible binary line transformation with an inspectable output figure.

How to use the tool and how it works

  1. Enter lines. Keep parallel arrays aligned. 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.

Require six binary lines, replace each by one minus itself, and encode the complemented figure with the bottom line as least significant bit. Return complementaryLines and binaryCode inside result.1

Input fieldMeaning and unitsAccepted input
linesLinesRequired. Array of Finite number..
Output fieldInterpretationReturned shape
resultResultRequired. Object.
json
{
  "input": {
    "lines": [
      0,
      0,
      0,
      0,
      0,
      0
    ]
  },
  "output": {
    "result": {
      "complementaryLines": [
        1,
        1,
        1,
        1,
        1,
        1
      ],
      "binaryCode": 63
    }
  }
}

Limitations and assumptions

  • Complementing changes line values without reversing their positions. The binary code is an identity under the tool's convention rather than a name, prediction, or traditional sequence lookup.
  • 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/complementary-hexagram — tool.io

Similar or alternative tools