Fortune Telling Collection - Fortune-telling birth date - General formula of trunk and branch, algorithm of trunk and branch.

General formula of trunk and branch, algorithm of trunk and branch.

Speaking of heavenly stems and earthly branches's universal calculation formula, we all know that someone asked heavenly stems and earthly branches's algorithm. In addition, someone wants to ask when and how to calculate the calendar year of 1993. Do you know the specific formula? In fact, heavenly stems and earthly branches's calculation method, let's take a look at heavenly stems and earthly branches's algorithm, hoping to help everyone!

Heavenly stems and earthly branches's general calculation formula

1, heavenly stems and earthly branches's formula: heavenly stems and earthly branches's algorithm: A, B, C, D, E, F, G, F, N, D.

Dizhi: Zi, Ugly, Yin, Mao, Chen, Si, Wu, Wei, Shen, You, Xu and Hai have decimal points.

Heavenly stems = (year -3)/ 10 ... Count the remainder as it is.

Ground branch = (year -3)/ 12 ... The rest are the same as above.

For example, the most correct algorithm in heavenly stems and earthly branches this year.

(-3)/ 10 ... If the remainder is 0, a few tens are decyl.

(-3)/ 12 ... The remainder is 6 and 6 is 4.

A brief survey of the source

According to legend, as early as BC, when the Yellow Emperor, the ancestor of China, founded the country, he was ordered to explore the qi of heaven and earth and the five elements.

Some scholars have discovered the unique phenomenon of "ten-day work" from the names of emperors such as Wang Shi and Tang Wang in China's ancient Xia Dynasty and Shang Dynasty. In his book "The Origin of Astronomy in China", Zheng believes that the myth of "Ten Days of Birth" originated from the ancient river in China, which is a reflection of the concept of decimal method arranged in chronological order and should have originated from the primitive fishing and hunting era; The "Twelve Earthly Branches" evolved from the myth that "there are always two in October" before the Yin and Shang Dynasties, and then gradually evolved into twelve Chen. Therefore, Zheng concluded: "Twelve Poems is probably the creation of Xia people."

Chen Zungui pointed out in the History of Astronomical Literature in China that "there may have been a branch in the Xia Dynasty more than 4,000 years ago". Du Shiran and others argued in the book History of Science and Technology in China that there was a ten-day dry calendar in Xia Dynasty, and the Shang Dynasty further used the dry calendar in Xia Dynasty, thus combining the ten-day dry calendar with the twelve earthly branches to form a sixty-week calendar. Heavenly stems and earthly branches index formula.

Around the end of the Warring States Period, the historical book Shi Ben, compiled according to the materials accumulated by historians of various countries for a long time, said: "Rongcheng is the calendar and Daladi is the Jiazi", and Shangshu just explained: "Both of them are ministers of the Yellow Emperor. Since the Yellow Emperor, Jiazi has been used to mark the day, and Jiazi is once every 60 days. Integrity was created by Darrouy. He "took the five elements of love, occupied the bucket building, and proclaimed Party A and Party B as heavenly names, which means doing it;" The ugly son is named after the moon, which is called Zhi. There is something in the sky, which is used during the day, and there is something underground, which is used in the middle of the month. Therefore, there are branches with names. "

2. heavenly stems and earthly branches's calculation formula: year, the time and method of calculating the chronology of trunk and branch, the concrete formula of the chronology of trunk and branch, and the traditional chronology method of China.

1. The meaning of trunk and branch: trunk and branch are the general names of heavenly stems and earthly branches.

Ten-day dry: a more ghost

Twelve earthly branches: children (mice)

Ugly (cow)

Yin (tiger)

Hair (rabbit)

Heavenly stems and earthly branches's calculation method, Chen (Long)

Si (snake)

Smart algorithm for any day in the afternoon (horse)

Not (sheep)

Shen (monkey)

You (chicken)

A simple formula for calculating the chronology of trunk and branch (dog)

Sea (pig)

2. The combination of stem and branch is used for dating. That is to say, the ten-day stem and the twelve-day branch are combined to form the stem and branch for dating. According to this arrangement, 60 branches can be formed (i.e. 1 flower nail). If it continues, it will return to its original state, and it will go on and on. Ten days of dry work.

3. The calculation method is as follows: Geng Chenri's female life is short.

(1) Number ten heavenly stems and twelve earthly branches. As follows: dry date calculator.

(2) When calculating, the number of years corresponds to the number of heavenly stems, the number of years is divided by 12, and the remainder corresponds to the number of branches, which together is the chronological method of years. Calculation method of trunk and branch.

For example, year: the number of digits is 1, the corresponding number of heavenly stems is Xin Mao, and then divide by 12 to get the remaining 7, and the corresponding number is Mao, so the year is Xin Mao. Calculation formula of historical time in junior high school.

The above is the content of trunk and branch calculation, which is about the sharing of trunk and branch algorithms. I read heavenly stems and earthly branches's universal calculation formula, I hope it will help everyone!