How is the formula of the geomantic divination palm of Bazhai calculated?

How is the formula of the geomantic divination palm of Bazhai calculated?

The geomantic omen of Bazhai is calculated by changing the original eight diagrams and divining with only three diagrams.

The last one became angry, the middle one became desperate and the next one became evil (only one).

The upper divination becomes five ghosts, the lower divination becomes a heavenly doctor, and the upper divination becomes six evils (only two divinations are changed).

All three have become extended bits (all three have changed).

In fact, there are only seven changes after divination is decided. The structural principle is very simple, but it also has some limitations, that is, there is no good or ill luck in the middle palace and the ninth palace. The distribution of functional areas in Yangzhai is based on the geomantic omen of Bazhai, which is rough and macroscopic and has certain reference.