• QMDJ - Calculate Ju with only 3 solstices(Zhi Run) 5 1
Currently:  

Author Topic: QMDJ - Calculate Ju with only 3 solstices(Zhi Run)  (Read 627 times)

0 Members and 1 Guest are viewing this topic.

Online Gmuli

  • G501++
  • *****
  • Posts: 985
  • Karma: +251/-0
  • Last Login:Today at 03:34:21 AM
    • View Profile
  • QMDJ - Calculate Ju with only 3 solstices(Zhi Run)
    « on: October 26, 2018, 06:45:13 PM »
    This jewel from the old forums, should exist here in more approachable way in my humble opinion.
    So will copy/paste from archive.org the practical aspect. Link to the topic in there will be below.

    If someone remembers/knows the name of the member that posted it back then I would be interested to know. : )


    Friends,
    I just joined this site a few days, and I am happy that there are many people like me, want to learn and understand QMDJ, not very fluent in Chinese and not much money to spare for those called themselve teachers without proper understand of the art and dare charge few thousands dollars for a course.

    How to calculate Ju number has been a secret for those who really could not understand the concept, but for those who understand it is just a simple matter.  All you need to know is the date and time of 3 Solstices.
    December Solstice of previous year, June Solstice and December Solstice of the year interested.

    These Solstice can be calculated using modern astronomy formulas or simply get it from Wikipedia!!!

    First thing you need to know how to calculate Stem and Branch of any date in the year.  Here is the formula:

    Sum of Days, Sd(yyyy.mmdd) = 365 * (yyyy - 1) + Int((yyyy – 1)/4) – Int((yyyy – 1)/100) + Int((yyyy – 1) /400)
    ……………………………………………………+ Int((367 * mm – 362)/12) + dd + leapcheck
    where leapcheck = 0  if mm <= 2
    …………………..........= 1  if mm > 2 and yyyy is a leap year
                                = 2  otherwise

    yyyy is the year number
    mm is the month
    dd is the day
    all using Western Calendar date.

    Day-Stem = (Sd(yyyy.mmdd) + 15) Amod 10
    Day-Branch = (Sd(yyyy.mmdd) + 15) Amod 12

    Let define the operation Mod and Amod
    X Mod Y = the remainder of X / Y
    X Amod Y = the remainder of X / Y with the exception that if the remainder is 0, it has the value of Y instead!

    In Mathmatics term:
    X Mod Y = (X – 1) Mod Y + 1

    Next formula to calculate the 60 cyclic number or Sexagesimal number of the Stem-Branch pair.
    Let the order pair (x,y) represent the Stem x (1,2,3,4,5,6,7,8,9,10 corresponding to 10 stems), and branch y (1,2,3,4,5,6,7,8,9,10,11,12 corresponding to 12 branches or animals).
    The first of the 60 cyclic number is (1,1), and the last is (10,12)
    The Sexagesimal number of (1,1) is 1, and of (10,12) is 60
    Here is the formula:
    Sexagesimal Number, SexNo = ((Stem – Branch)/2) Amod 6) * 10 + Stem

    Next step is to consider the different in time zone.  If the date and time of the Solstices are in different UTC time zone than your, you need to convert to your time zone.  For all those teacher, or people that said you don’t need to use local time, they need to understand this, every one of the 24 Solar Term is 15 degree of Sun Longitude, at the moment the Sun Longitude is 270 degree (Winter or December Solstice), the time on Earth is not the same everywhere, but it is different accroding to what time zone you are in.  Let say the date and time of the December Solstice is December 21, 17:47 in UTC0, China is in time zone UTC+8, now 17:47 + 8 = 25:47, which is 1:47 of the next day.  So December Solstice for China occurs at December 22, 1:47, not on December 21!!!!!

    After obtaining the 3 Solstices (the beginning Dec Solstice, Jun Solstice, and the ending Solstice), you need to convert them to your time zone, then calculate the Stem-Branch for the 3 dates, and their sexagesimal number.

    Nothing teach better than examples, let calculate all the Ju for 2010.
    According to Wikipedia, the 3 Solstices are as followed:
    Dec Solstice 2009: 21, 17:47
    Jun Solstice 2010: 21, 11:28
    Dec Solstice 2010: 21, 23:38

    For China time zone, it is UTC+8, so the corrected date and time of the 3 Solstices are:
    Dec Solstice 2009: 22, 1:47
    Jun Solstice 2010: 21, 19:28
    Dec Solstice 2010: 22, 7:38

    Now let calculate the Stem-Branch for the day.
    Dec Solstice 2009, 22, 1:47
    Sd = 365 * 2008 + 502 – 20 + 5 + 336 + 22 + (-2) = 733763
    Stem = (733763+15) Amod 10 = 8
    Branch = (733763+15) Amod 12 = 2
    SexNo (Sexagesimal Number) = ((8-2)/2) Amod 6 * 10 + 8 = 38

    Jun Solstice 2010, 21, 11:28
    Sd = 365 * 2009 + 502 – 20 + 5 + 153 + 21 + (-2) = 733994
    Stem = (733994+15) Amod 10 = 9
    Branch = (733994+15) Amod 12 = 3
    SexNo = ((9-3)/2) Amod 6 * 10 + 9 = 39

    Dec Solstice 2010, 22, 7:38
    Sd = 365 * 2009 + 502 – 20 + 5 + 336 + 22 + (-2) = 734128
    Stem = (734128+15) Amod 10 = 3
    Branch = (734128+15) Amod 12 = 7
    SexNo = ((3-7)/2) Amod 6 * 10 + 3 = 43

    By the way for X is negative number, X Amod Y, can be adding Y to X until it is positive, that is
    (X + nY) Amod Y, where x < 0, for the case above, 3-7 = -4, -4/2 = -2, -2 + 6 = 4, 4 Amod 6 = 4!!!

    Now we have
    Dec Solstice 2009: 22, 1:47, StemBranch of Date (8,2), SexNo=38
    Jun Solstice 2010: 21, 19:28, StemBranch of Date (9,3), SexNo=39
    Dec Solstice 2010: 22, 7:38, StemBranch of Date (3,7), SexNo=43[/quote]

    Once you have the Sexagesimal number for the 3 Solstices, you need to find the Top Yuan Stem-Branch for each Solstice.
    What is a Yuan?
    A Yuan is similar to a Dozen but instead of 12 units, it consists of 1/3 of 180 Stem-Branch pairs, or 3 Sexagesimal cycles.  Each third is then called Top Yuan, Middle Yuan, and Bottom Yuan.  A pair of Stem-Branch can denotes a Stem-Branch of a double hour, a day, a month, a year, vv…
    In the Hour-method of QMDJ, 60 double hours (or hour Stem-Branches) is 5 days, therefore 3 Yuan, Top Middle Bottom of hour Stem-Branch is 15 days, which each roughly one solar term..
    Each day also has a day Stem-Branch, therefore 3 Yuan of hour Stem-Branch corresponding to 15 day Stem-Branch.
    In the Sexagesimal cycle of 60 Stem-Branches, with Top, Middle, and Bottem Yuan, each consisted of 5 days we have as follow:
    SexNo(Stem,Branch)
    Top Yuan: 1(1,1), 2(2,2), 3(3,3), 4(4,4), 5(5,5)
    Middle Yuan: 6(6,6), 7(7,7), 8(8,8), 9(9,9), 10(10,10)
    Bottom Yuan: 11(1,11), 12(2,12), 13(3,1), 14(4,2), 15(5,3)

    Top Yuan: 16(6,4), 17(7,5), 18(8,6), 19(9,7), 20(10,8)
    Middle Yuan: 21(1,9), 22(2,10), 23(3,11), 24(4,12), 25(5,1)
    Bottom Yuan: 26(6,2), 27(7,3), 28(8,4), 29(9,5), 30(10,6)

    Top Yuan: 31(1,7), 32(2,8), 33(3,9), 34(4,10), 35(5,11)
    Middle Yuan: 36(6,12), 37(7,1), 38(8,2), 39(9,3), 40(10,4)
    Bottom Yuan: 41(1,5), 42(2,6), 43(3,7), 44(4,8), 45(5,9)

    Top Yuan: 46(6,10), 47(7,11), 48(8,12), 49(9,1), 50(10,2)
    Middle Yuan: 51(1,3), 52(2,4), 53(3,5), 54(4,6), 55(5,7)
    Bottom Yuan: 56(6,8), 57(7,9), 58(8,10), 59(9,11), 60(10,12)

    In the above list of every Stem-Branch pair in the 60 cycle, we see that every Top Yuan ALWAYS has one of the 4 following Stem-Branch pairs: 1(1,1), 16(6,4), 31(1,7), 46(6,10).

    A non-leap-Ju year in QMDJ will has exactly 360 day, or 360 day Stem-Branch.  The first half of 360 days cycle starts with Top Yuan Stem-Branch of December Solstice, the second half starts with Top Yuan Stem-Branch of June Solstice.  180 has 3 Sexagesimal cycles.

    The secret of knowing when there is a leap Ju occurs is based on understanding the repeating cycle of 60 Stem-Branch.  Here it is:

    In non-leap-Ju year, the Top Yuan Stem-Branch of the Winter Solstice and the next Winter Solstice has to be the same, so is the Stem-Branch for the June Solstice.  If they are different, there will be a Leap Ju.

    Why?  Because a non-leap-Ju year has exactly 360 Stem-Branch, the Top Yuan Stem-Branch of the next Winter Solstice has to repeat the same Stem-Branch!!!

    How to find the Top Yuan Stem-Branch?
    Almost every old manuscript on QMDJ has repeat the same old principle.  When the actual Solar Term occurs more than 9 days before the Top Yuan Stem-Branch, use the next Top Yuan Stem-Branch (Chao Shen principle).
    Almost every one study QMDJ know this principle, but not many know that one only need to apply this principle to two Winter Solstices, and adjust the Stem-Branch for June Solstice in the case that the two Winter Solstices have different Stem-Branch pairs.

    Once you have the SexNo of the Stem-Branch, calculate SexNo Amod 15
    If SexNo Amod 15 <= 9 then use the current Top Yuan Stem-Branch, Else use the next Top Yuan Stem-Branch
    Remember, the 4 Sexagesimal numbers of the Top Yuan Stem-Branch and their sequence:
    1(1,1), 16(6,4), 31(1,7), 46(6,10)

    Let define this Integer division call Div
    X Div Y = Int(X/Y), that is just the integer quotient of X divided by Y.

    Therefore:
    If SexNo Amod 15 <= 9, the current Top Yuan Stem-Branch is (SexNo Div 15) * 15 + 1
    If SexNo Amod 15 > 9, the current Top Yuan Stem-Branch is ((SexNo Div 15) + 1) * 15 + 1

    In simpler term:
    Let SexNo / 15 = Q and R (Quotient Q and Remainder R), but when R = 0, R is 15 not 0
    Then if R <= 9, the Top Yuan Stem-Branch is Q * 15 + 1
    Else Top Yuan Stem-Branch is (Q + 1) * 15 + 1

    Why when R = 0, make it R = 15?  Because, SexNo / 15 will give misleading result when R is 0 (That why we use Amod 15)

    In the example, we have so far:
    Dec Solstice 2009: 22, 1:47, StemBranch of Date (8,2), SexNo=38
    Jun Solstice 2010: 21, 19:28, StemBranch of Date (9,3), SexNo=39
    Dec Solstice 2010: 22, 7:38, StemBranch of Date (3,7), SexNo=43

    We calculate the Top Yuan Stem-Branch for the two Winter Solstices:
    Dec Solstice 2009, SexNo = 38
    38 / 15 = 2 Remainder 8, 8 <= 9, therefore Top Yuan Stem-Branch is 2 * 15 + 1 = 31 which is (1,7)

    Dec Solstice 2010, SexNo = 43
    43 / 15 = 2 Remainder 13, 13 > 9, therefore Top Yuan Stem-Branch is (2+1) * 15 + 1 = 46 which is (6,10)

    Now Top Yuan Stem-Branch for both Winter Solstice are different 31(1,7) and 46(6,10), there will be a Leap Ju!!!


    We now have the Top Yuan Stem-Branch for the two Winter Solstices, we need to find the corresponding date.
    Dec Solstice 2009: 22, 1:47, SexNo = 38
    Top Yuan Stem-Branch is 31, so we have to go back (38 – 31) = 7 days, that is Dec 22 – 7 days = Dec 15.
    So the Start Date of the December Solstice 2009 is 29, 1:47, Day Stem-Branch 31(1,7)
    Dec Solstice 2010: 22, 7:38, SexNo = 43
    Top Yuan Stem-Branch is 46, which is (46 – 43) = 3 days ahead, that is Dec 22 + 3 = Dec 25.

    So far we have obtained the start date of the two Winter Solstice according to QMDJ Top Yuan Stem-Branch principle.  Hence we have so far
    Dec Solstice 2009: 15, 1:47, SexNo = 31, Top Yuan Stem-Branch (1,7)
    Jun Solstice 2010: 21, 19:28, SexNo = 39
    Dec Solstice 2010: 25, 7:38, SexNo = 46, Top Yuan Stem-Branch(6,10)
    From the difference in Top Yuan SexNo or Stem-Branch, we know there will be a leap Ju in 2010
    Where do we put the Leap Ju?

    Here is another important principle that has never been told in manuscripts or books, one will only know when examine many different QMDJ calendar!!!

    The location of the Leap Ju depends on the Top Yuan of the June Solstice.  The Top Yuan Stem-Branch or SexNo of the June Solstice is the one CLOSEST to the June Solstice Date.

    Since for a non-leap-Ju year, the Stem-Branch of June Solstice is the same as the Stem-Branch of the Previous Winter Solstice, and the Next Winter Solstice.  When the Stem-Branch of the two Winter Solstices is different, the June Solstice will take the CLOSEST one.

    In the example we have 31(1,7), and 46(6,10) as the two ends of the 15 days Yuan.

    Dec Solstice 2009 --------------|------------------ Jun Solstice -------------------|------------------------ Dec Solstice 2010
    31 ---------------------------------|31 ---------------------- 39 ------------------- 46|------------------------ 46
    -------------------------------------| 39 – 31 = 8 ------------| 46 – 39 = 7 ----------|---------------------------
    The CLOSEST Top Yuan is 46.
    By choosing Top Yuan 46 on the right as the start of Jun Solstice, we have extra 15 days to the left, therefore the Leap Ju is before the Jun Solstice that is to repeat the Ju of Solar Term Man Zhong.

    However, if Top Yuan 31 was closer, we would have chosen it as the Top Yuan for Jun Solstice.  In this case, there will be extra 15 days to the right, then the Leap Ju has to be before the Dec Solstice 2010, that is to repeat the Ju of Solar Term Da Xue.

    Now we find the date of the Top Yuan 46 for Jun Solstice:
    Jun Solstice 2010: 21, 19:28, SexNo = 39
    Top Yuan Stem-Branch is 46, which is (46 – 39) = 7 days ahead, that is Jun 21 + 7 = Jun 28.


    Finally, we have obtain the Top Yuan Stem-Branch and date for the 3 Solstice, we are ready to fill in the Ju for the whole year!!!
    We have:
    Dec Solstice 2009: 15, 1:47, SexNo = 31, Top Yuan Stem-Branch (1,7)
    Jun Solstice 2010: 21, 19:28, SexNo = 46, Top Yuan Stem-Branch(6,10)
    Dec Solstice 2010: 25, 7:38, SexNo = 46, Top Yuan Stem-Branch(6,10)

    To make the task of filling in all the date and Ju easier, we group all the Solar Term in group of 4 to make the cycle of 60.  Number ST01 to ST24 are used to denote the Solar Term, with ST01 denotes the Winter Solstice, and ST 13 is the Jun Solstice.  We have the following table that can be reused years after years.

    Dec -------------------------------- Feb -------------------------- Apr
    (s,b) dd/mm ST01 1,7,4 -------- dd/mm ST05 9,6,3 -------- dd/mm ST09 5,2,8
    (s,b) dd/mm ST02 2,8,5 -------- dd/mm ST06 1,7,4 -------- dd/mm ST10 4,1,7
    (s,b) dd/mm ST03 3,9,6 -------- dd/mm ST07 3,9,6 -------- dd/mm ST11 5,2,8
    (s,b) dd/mm ST04 8,5,2 -------- dd/mm ST08 4,1,7 -------- dd/mm ST12 6,3,9
    (s,b) ----------------------------------------------------------------dd/mm Leap 6,3,9

    Jun --------------------------------- Aug ------------------------- Oct
    (s,b) dd/mm ST13 9,3,6 -------- dd/mm ST17 1,4,7 -------- dd/mm ST21 5,8,2
    (s,b) dd/mm ST14 8,2,5 -------- dd/mm ST18 9,3,6 -------- dd/mm ST22 6,9,3
    (s,b) dd/mm ST15 7,1,4 -------- dd/mm ST19 7,1,4 -------- dd/mm ST23 5,8,2
    (s,b) dd/mm ST16 2,5,8 -------- dd/mm ST20 6,9,3 -------- dd/mm ST24 4,7,1
    (s,b) ----------------------------------------------------------------dd/mm Leap 4,7,1

    Dec
    (s,b) dd/mm ST01 1,7,4

    Since we know that each group of 4 will repeat the same Stem-Branch, and the sequence of Top Yuan is 1(1,1), 16(6,4), 31(1,7), 46(6,10).  We can fill in the Stem-Branch for the date.  We also have the date for the Top Yuan of 3 Solstices, we can fill in the Western date for each group.  Since each Yuan is 15 days, all we need is adding 15 to the date of the previous Top Yuan.  Finally we have the following table for the whole year of 2010

    Dec ---------------------------------- Feb ------------------------ Apr
    (01,07) 15/12 ST01 1,7,4 -------- 13/02 ST05 9,6,3 -------- 14/04 ST09 5,2,8
    (06,10) 30/12 ST02 2,8,5 -------- 28/02 ST06 1,7,4 -------- 29/04 ST10 4,1,7
    (01,01) 14/01 ST03 3,9,6 -------- 15/03 ST07 3,9,6 -------- 14/05 ST11 5,2,8
    (06,04) 29/01 ST04 8,5,2 -------- 30/03 ST08 4,1,7 -------- 29/05 ST12 6,3,9
    (01,07) -------------------------------------------------------------13/06 Leap 6,3,9

    Jun ---------------------------------- Aug ------------------------ Oct
    (06,10) 28/06 ST13 9,3,6 -------- 27/08 ST17 1,4,7 -------- 26/10 ST21 5,8,2
    (01,01) 13/07 ST14 8,2,5 -------- 11/09 ST18 9,3,6 -------- 10/11 ST22 6,9,3
    (06,04) 28/07 ST15 7,1,4 -------- 26/09 ST19 7,1,4 -------- 25/11 ST23 5,8,2
    (01,07) 12/08 ST16 2,5,8 -------- 11/10 ST20 6,9,3 -------- 10/12 ST24 4,7,1
    No Leap ---------------------------------------------------------dd/mm Leap 4,7,1

    Dec
    (06,10) 25/12 ST01 1,7,4

    That is it, you have the Ju calendar for the whole year.  It will takes 20 minutes to 30 minutes to do, once a year!!!!

    Summary
    Step 01: Obtains 3 Solstices, beginning Dec Solstice, Jun Solstice, and next Dec Solstice.

    Step 02: Convert the 3 Solstices according to the UTC time zone.  For China it is UTC+8

    Step 03: Calculate the Stem-Branch, and the Sexagesimal Number for date of the 3 Solstices, using the formulas
    Sd(yyyy.mmdd) = 365 * (yyyy - 1) + Int((yyyy – 1)/4) – Int((yyyy – 1)/100) + Int((yyyy – 1) /400)
    ……………………+ Int((367 * mm – 362)/12) + dd + leapcheck
    where leapcheck = 0  if mm <= 2
    …………………= 1  if mm > 2 and yyyy is a leap year
                                = 2  otherwise
    Day-Stem = (Sd(yyyy.mmdd) + 15) Amod 10
    Day-Branch = (Sd(yyyy.mmdd) + 15) Amod 12
    SexNo = ((Stem – Branch)/2) Amod 6) * 10 + Stem

    Step 04: Find the Top Yuan Stem-Branch for the two Dec Solstices, using the formulas
    SexNo / 15 = Q and R (Quotient Q and Remainder R), but when R = 0, R is 15 not 0
    Then if R <= 9, the Top Yuan Stem-Branch is Q * 15 + 1
    Else Top Yuan Stem-Branch is (Q + 1) * 15 + 1
    => If the two Top Yuan Stem-Branch of the Dec Solstices is different, a Leap Ju occurs.

    Step 05: Find the actual Western date of the Top Yuan for the two Dec Solstices

    Step 06: From the SexNo of the Top Yuan for two Dec Solstices, and the SexNo of Jun Solstice, find the
    Top Yuan Stem-Branch for Jun Solstice.  (It help to draw the diagram)
    => Jun Solstice will take the CLOSEST Top Yuan Stem-Branch from the two Dec Solstice.
    A = SexNo(1st Dec Solstice’s Top Yuan) – SexNo(Jun Solstice)
    B = SexNo(Jun Solstice) – (2nd Dec Solstice’s Top Yuan)
    Compare A and B, take the least.

    Step 07: Find the actual Western date of the Top Yuan for Jun Solstice.

    Step 08: Once all the Western date of the Top Yuan for the Solstices is obtained, fill in the Group-of-4 Table.
    The order of the Top Yuan is 1(01,01), 16(6,4), 31(1,7), 46(6,10).
    Each Solar Term advances 15 days, that is adding 15 days to the date of the previous Solar Term.

    Dec -------------------------------- Feb -------------------------- Apr
    (s,b) dd/mm ST01 1,7,4 -------- dd/mm ST05 9,6,3 -------- dd/mm ST09 5,2,8
    (s,b) dd/mm ST02 2,8,5 -------- dd/mm ST06 1,7,4 -------- dd/mm ST10 4,1,7
    (s,b) dd/mm ST03 3,9,6 -------- dd/mm ST07 3,9,6 -------- dd/mm ST11 5,2,8
    (s,b) dd/mm ST04 8,5,2 -------- dd/mm ST08 4,1,7 -------- dd/mm ST12 6,3,9
    (s,b) ----------------------------------------------------------------dd/mm Leap 6,3,9

    Jun --------------------------------- Aug ------------------------- Oct
    (s,b) dd/mm ST13 9,3,6 -------- dd/mm ST17 1,4,7 -------- dd/mm ST21 5,8,2
    (s,b) dd/mm ST14 8,2,5 -------- dd/mm ST18 9,3,6 -------- dd/mm ST22 6,9,3
    (s,b) dd/mm ST15 7,1,4 -------- dd/mm ST19 7,1,4 -------- dd/mm ST23 5,8,2
    (s,b) dd/mm ST16 2,5,8 -------- dd/mm ST20 6,9,3 -------- dd/mm ST24 4,7,1
    (s,b) ----------------------------------------------------------------dd/mm Leap 4,7,1

    Dec
    (s,b) dd/mm ST01 1,7,4

    That’s Folks.
    Please do not hesitate to correct me if I make any mistake.  Thank You.

    [/quote]

    Can read the whole thing(the other conversation in there are also very interesting) in here:
    https://web.archive.org/web/20130918110413/http://www.fivearts.net/index.php/topic,4768.0.html

    In the future plan to repost 100 stems translations from there and maybe the fisherman song as well, as we do need more QMDJ topics in my view. Enjoy. : )

    Offline pejo_mstd

    • G1-G50
    • *
    • Posts: 23
    • Karma: +0/-0
    • Gender: Male
    • Last Login:July 11, 2019, 12:15:55 AM
    • View Profile
  • Re: QMDJ - Calculate Ju with only 3 solstices(Zhi Run)
    « Reply #1 on: October 27, 2018, 04:28:48 PM »
    Thanks for sharing :)

    Offline iwan

    • G1-G50
    • *
    • Posts: 19
    • Karma: +2/-0
    • Last Login:August 22, 2019, 06:49:33 AM
    • View Profile
  • Re: QMDJ - Calculate Ju with only 3 solstices(Zhi Run)
    « Reply #2 on: October 29, 2018, 10:00:28 AM »
    Can someone enlight me with these calc ?

    Let's say that:

    Dec Solstice 2015: Dec 22 - StemBranch of Date (9, 9), SexNo = 9
    So, The Top Yuan Stem-Branch is:
    9 / 15 ——> Q = 0; R = 9 which result with 0 * 15 + 1 = 1 (1, 1)

    is this calc correct ?

    Thank you...

    Offline iwan

    • G1-G50
    • *
    • Posts: 19
    • Karma: +2/-0
    • Last Login:August 22, 2019, 06:49:33 AM
    • View Profile
  • Re: QMDJ - Calculate Ju with only 3 solstices(Zhi Run)
    « Reply #3 on: October 29, 2018, 11:10:12 AM »
    Nevermind... found it by myself...

    Thanks...

    Can someone enlight me with these calc ?

    Let's say that:

    Dec Solstice 2015: Dec 22 - StemBranch of Date (9, 9), SexNo = 9
    So, The Top Yuan Stem-Branch is:
    9 / 15 ——> Q = 0; R = 9 which result with 0 * 15 + 1 = 1 (1, 1)

    is this calc correct ?

    Thank you...

    Online Gmuli

    • G501++
    • *****
    • Posts: 985
    • Karma: +251/-0
    • Last Login:Today at 03:34:21 AM
    • View Profile
  • Re: QMDJ - Calculate Ju with only 3 solstices(Zhi Run)
    « Reply #4 on: October 29, 2018, 06:14:29 PM »
    Can someone enlight me with these calc ?

    Let's say that:

    Dec Solstice 2015: Dec 22 - StemBranch of Date (9, 9), SexNo = 9
    So, The Top Yuan Stem-Branch is:
    9 / 15 ——> Q = 0; R = 9 which result with 0 * 15 + 1 = 1 (1, 1)

    is this calc correct ?

    Thank you...

    There will be app for beta testing based on this, but when it comes to "when" it depends on how easy it goes, so far its fine, but there are still problems with some years.


    The formulas here... In my view they are more suited for an app. If you want to calculate manually the popular rules are still faster, its same as in the formula just a little clearer.
    In this case, we count backwards from the solstice to 14 December 2015, where we have Jia/Zi.
    Its less then 9 days, so its all good.

    We start to add the count from that date.

    The counts itself... 8 days so we have first 5 days as 1, then we have next 3 days as 7.

    Leaving us at Ju 7 Yang Dun for the date for the solstice of 2015 itself. : )
    « Last Edit: October 29, 2018, 06:31:31 PM by Gmuli »

    Offline iwan

    • G1-G50
    • *
    • Posts: 19
    • Karma: +2/-0
    • Last Login:August 22, 2019, 06:49:33 AM
    • View Profile
  • Re: QMDJ - Calculate Ju with only 3 solstices(Zhi Run)
    « Reply #5 on: October 29, 2018, 06:35:17 PM »
    Thank you for replying .... really appreciate it...

    Does it have to be Jia/Zi ?? or it can also be Jia/Wu, Ji/You, or Ji/Mao .... related with the position before the solstice date...

    Thank you...


    Can someone enlight me with these calc ?

    Let's say that:

    Dec Solstice 2015: Dec 22 - StemBranch of Date (9, 9), SexNo = 9
    So, The Top Yuan Stem-Branch is:
    9 / 15 ——> Q = 0; R = 9 which result with 0 * 15 + 1 = 1 (1, 1)

    is this calc correct ?

    Thank you...

    There will be app for beta testing based on this, but when it comes to "when" it depends on how easy it goes, so far its fine, but there are still problems with some years.


    The formulas here... In my view they are more suited for an app. If you want to calculate manually the popular rules are still faster, its same as in the formula just a little clearer.
    In this case, we count backwards from the solstice to 14 December 2015, where we have Jia/Zi.
    Its less then 9 days, so its all good.

    We start to add the count from that date.

    The counts itself... 8 days so we have first 5 days as 1, then we have next 3 days as 7.

    Leaving us at Ju 7 Yang Dun for the date for the solstice of 2015 itself. : )

    Online Gmuli

    • G501++
    • *****
    • Posts: 985
    • Karma: +251/-0
    • Last Login:Today at 03:34:21 AM
    • View Profile
  • Re: QMDJ - Calculate Ju with only 3 solstices(Zhi Run)
    « Reply #6 on: October 29, 2018, 08:12:33 PM »
    Have to be one of the starting Yuan stems/branches.
    So that would be 1(Jia/Zi),16(Ji/Mao),31(Jia,Wu) or 46(Ji,You), yes.
    And since each has 15 days between them, we can be sure something will be either closer to one of them(7 days at most) and further from the other(8 days in that case).

    Just in this case its 1.Jia/Zi as that is nearest.
    If the Stem/Branch of the 2 are equal(for the winter solstices topyuans), means no leap year, if the 2 are different its leap year. And they will always be one of the 4.
    « Last Edit: October 29, 2018, 08:14:05 PM by Gmuli »

    Offline pejo_mstd

    • G1-G50
    • *
    • Posts: 23
    • Karma: +0/-0
    • Gender: Male
    • Last Login:July 11, 2019, 12:15:55 AM
    • View Profile
  • Re: QMDJ - Calculate Ju with only 3 solstices(Zhi Run)
    « Reply #7 on: November 10, 2018, 12:38:24 AM »
    Have to be one of the starting Yuan stems/branches.
    So that would be 1(Jia/Zi),16(Ji/Mao),31(Jia,Wu) or 46(Ji,You), yes.
    And since each has 15 days between them, we can be sure something will be either closer to one of them(7 days at most) and further from the other(8 days in that case).

    Just in this case its 1.Jia/Zi as that is nearest.
    If the Stem/Branch of the 2 are equal(for the winter solstices topyuans), means no leap year, if the 2 are different its leap year. And they will always be one of the 4.
    Tried to implement this in Scala,


    def sumOD(yyyy: Int, mm: Int, dd: Int) = {
        /*
        * Sum of Days, Sd(yyyy.mmdd) = 365 * (yyyy - 1) + Int((yyyy – 1)/4) – Int((yyyy – 1)/100) + Int((yyyy – 1) /400)
                                  + Int((367 * mm – 362)/12) + dd + leapcheck
          where leapcheck = 0  if mm <= 2
          …………………..........= 1  if mm > 2 and yyyy is a leap year
                                = 2  otherwise
        * */
        //    val res = 365 * (yyyy - 1) + ((yyyy - 1) / 4d).toInt - ((yyyy - 1) / 100d).toInt + ((yyyy - 1) / 400d).toInt + ((367 * mm - 362) / 12d).toInt + dd + leapcheck
        val lc = leapcheck(yyyy, mm)
        val res = 365 * (yyyy - 1) + ((yyyy - 1) / 4d).toInt - ((yyyy - 1) / 100d).toInt + ((yyyy - 1) / 400d).toInt + ((367 * mm - 362) / 12d).toInt + dd + lc
        res
      }

    Looked ok to start, with my birth Stem/Branch
    But taking yesterdays value which should be Jia/Chen failed.


      test("testSumOD and day stem/branch") {
        assert( CMeta.sumOD(1969, 1, 3) === 718800)
        assert( CMeta.dayStem(CMeta.sumOD(1969, 1, 3)) === 5)
        assert( CMeta.dayBranch(CMeta.sumOD(1969, 1, 3)) === 3)

        assert( CMeta.sumOD(1969, 1, 4) === 718801)
        assert( CMeta.dayStem(CMeta.sumOD(1969, 1, 4)) === 6)
        assert( CMeta.dayBranch(CMeta.sumOD(1969, 1, 4)) === 4)

        // failing
        assert( CMeta.sumOD(2018, 11, 8) === 737010)
        assert( CMeta.dayStem(CMeta.sumOD(2018, 11, 8)) === 1)
       // 5 did not equal 1
        assert( CMeta.dayBranch(CMeta.sumOD(2018, 11, 8)) === 5)
       // 9 did not equal 5
      }

    Any ideas?

    Offline pejo_mstd

    • G1-G50
    • *
    • Posts: 23
    • Karma: +0/-0
    • Gender: Male
    • Last Login:July 11, 2019, 12:15:55 AM
    • View Profile
  • Re: QMDJ - Calculate Ju with only 3 solstices(Zhi Run)
    « Reply #8 on: November 13, 2018, 02:34:10 AM »
    Have to be one of the starting Yuan stems/branches.
    So that would be 1(Jia/Zi),16(Ji/Mao),31(Jia,Wu) or 46(Ji,You), yes.
    And since each has 15 days between them, we can be sure something will be either closer to one of them(7 days at most) and further from the other(8 days in that case).

    Just in this case its 1.Jia/Zi as that is nearest.
    If the Stem/Branch of the 2 are equal(for the winter solstices topyuans), means no leap year, if the 2 are different its leap year. And they will always be one of the 4.
    Tried to implement this in Scala,


    def sumOD(yyyy: Int, mm: Int, dd: Int) = {
        /*
        * Sum of Days, Sd(yyyy.mmdd) = 365 * (yyyy - 1) + Int((yyyy – 1)/4) – Int((yyyy – 1)/100) + Int((yyyy – 1) /400)
                                  + Int((367 * mm – 362)/12) + dd + leapcheck
          where leapcheck = 0  if mm <= 2
          …………………..........= 1  if mm > 2 and yyyy is a leap year
                                = 2  otherwise
        * */
        //    val res = 365 * (yyyy - 1) + ((yyyy - 1) / 4d).toInt - ((yyyy - 1) / 100d).toInt + ((yyyy - 1) / 400d).toInt + ((367 * mm - 362) / 12d).toInt + dd + leapcheck
        val lc = leapcheck(yyyy, mm)
        val res = 365 * (yyyy - 1) + ((yyyy - 1) / 4d).toInt - ((yyyy - 1) / 100d).toInt + ((yyyy - 1) / 400d).toInt + ((367 * mm - 362) / 12d).toInt + dd + lc
        res
      }

    Looked ok to start, with my birth Stem/Branch
    But taking yesterdays value which should be Jia/Chen failed.


      test("testSumOD and day stem/branch") {
        assert( CMeta.sumOD(1969, 1, 3) === 718800)
        assert( CMeta.dayStem(CMeta.sumOD(1969, 1, 3)) === 5)
        assert( CMeta.dayBranch(CMeta.sumOD(1969, 1, 3)) === 3)

        assert( CMeta.sumOD(1969, 1, 4) === 718801)
        assert( CMeta.dayStem(CMeta.sumOD(1969, 1, 4)) === 6)
        assert( CMeta.dayBranch(CMeta.sumOD(1969, 1, 4)) === 4)

        // failing
        assert( CMeta.sumOD(2018, 11, 8) === 737010)
        assert( CMeta.dayStem(CMeta.sumOD(2018, 11, 8)) === 1)
       // 5 did not equal 1
        assert( CMeta.dayBranch(CMeta.sumOD(2018, 11, 8)) === 5)
       // 9 did not equal 5
      }

    Any ideas?
    NEver mind, did it another way, considering that 1 January 1900 is pillar 10. so counting from there.

    Online Gmuli

    • G501++
    • *****
    • Posts: 985
    • Karma: +251/-0
    • Last Login:Today at 03:34:21 AM
    • View Profile
  • Re: QMDJ - Calculate Ju with only 3 solstices(Zhi Run)
    « Reply #9 on: January 19, 2019, 05:41:49 PM »
    Have to be one of the starting Yuan stems/branches.
    So that would be 1(Jia/Zi),16(Ji/Mao),31(Jia,Wu) or 46(Ji,You), yes.
    And since each has 15 days between them, we can be sure something will be either closer to one of them(7 days at most) and further from the other(8 days in that case).

    Just in this case its 1.Jia/Zi as that is nearest.
    If the Stem/Branch of the 2 are equal(for the winter solstices topyuans), means no leap year, if the 2 are different its leap year. And they will always be one of the 4.
    Tried to implement this in Scala,


    def sumOD(yyyy: Int, mm: Int, dd: Int) = {
        /*
        * Sum of Days, Sd(yyyy.mmdd) = 365 * (yyyy - 1) + Int((yyyy – 1)/4) – Int((yyyy – 1)/100) + Int((yyyy – 1) /400)
                                  + Int((367 * mm – 362)/12) + dd + leapcheck
          where leapcheck = 0  if mm <= 2
          …………………..........= 1  if mm > 2 and yyyy is a leap year
                                = 2  otherwise
        * */
        //    val res = 365 * (yyyy - 1) + ((yyyy - 1) / 4d).toInt - ((yyyy - 1) / 100d).toInt + ((yyyy - 1) / 400d).toInt + ((367 * mm - 362) / 12d).toInt + dd + leapcheck
        val lc = leapcheck(yyyy, mm)
        val res = 365 * (yyyy - 1) + ((yyyy - 1) / 4d).toInt - ((yyyy - 1) / 100d).toInt + ((yyyy - 1) / 400d).toInt + ((367 * mm - 362) / 12d).toInt + dd + lc
        res
      }

    Looked ok to start, with my birth Stem/Branch
    But taking yesterdays value which should be Jia/Chen failed.

    Any ideas?

    Hi.
    I have never worked with Scala, but the way its going I can guess where the problem may be.
    The transition from Julian calendar to Gregorian calendar makes some otherwise leap years non leap. And the rule is somewhat messy. Here it is from wikipedia:
    Quote
    Every year that is exactly divisible by four is a leap year, except for years that are exactly divisible by 100, but these centurial years are leap years if they are exactly divisible by 400. For example, the years 1700, 1800, and 1900 are not leap years, but the year 2000 is.[3]

    If you are just dividing them by 4 or using something with a similar result it can't work as in specific periods a day will be added that shouldn't be there.

    Offline biqutztoibi

    • G1-G50
    • *
    • Posts: 4
    • Karma: +0/-0
    • Last Login:July 13, 2019, 02:58:47 PM
    • View Profile
  • Re: QMDJ - Calculate Ju with only 3 solstices(Zhi Run)
    « Reply #10 on: July 11, 2019, 03:52:54 PM »
    Thank you very much, it's very informative

    five arts forum

    Re: QMDJ - Calculate Ju with only 3 solstices(Zhi Run)
    « Reply #10 on: July 11, 2019, 03:52:54 PM »
    Fortune-telling / birth chart reading / predict your future services by Master Tony (aka aoefengshui). Area of interest:
    Category 1: Relationship/Peach Blossom/Marriage/Spouse/Divorce.
    Category 2: Wealth/Business/Investment/Legal Problem.
    Category 3: Career Plan/Career Move/Job Promotion/Study.
    Category 4: Health/Pregnancy/Children/Accident/Disaster.
    Category 5: The Luck of next 10 years: (Master Tony will work out your luck for next 10 years in general and point out the happening years for the important events).
    Category 6: The Luck of next 12 months: (Master Tony will work out your luck for next 12 months in general and point out the happening months for the important events.)
    Category 7: Your own Category which didn’t mention above.

    Note: Master Tony will provide you the reading report in writing and also one private Q&A session afterwards. Everything to be conducted conveniently and anonymously via this forum online.

    More detail | About Master Tony (aka aoefengshui) | Ask question privately | Post question in Pre-sales forum | Testimonials | View sample Fortune-telling report
    Tired of advertisement on the forum? Remove advertisement on the forum now. For detail, please click here.
    Learn fortune-telling skills from Master Tony (Purple Star Astrology / 紫微斗数 / ZWDS)

    Features: Online private learning | one-on-one teaching | Everything starts from zero | 24/7 access to constantly updated learning materials | Medium of instruction: English
    Bazi reading service:
    Click here to view detail | Real Bazi reading reports (coming soon)

    Tags:
     

    QMDJ Divination basic questions

    Started by rainmasterBoard Qi Men Dun Jia

    Replies: 9
    Views: 154
    Last post August 22, 2019, 03:14:21 PM
    by amfortas
    QMDJ Live Training

    Started by GmuliBoard Qi Men Dun Jia

    Replies: 0
    Views: 80
    Last post August 13, 2019, 05:06:12 PM
    by Gmuli
    request help on qmdj luck for gacha machine in video game

    Started by tensaijsyBoard Request for divination [FREE]

    Replies: 0
    Views: 31
    Last post August 11, 2019, 08:47:31 PM
    by tensaijsy
    Where to take QMDJ course?

    Started by rainmasterBoard Qi Men Dun Jia

    Replies: 2
    Views: 121
    Last post August 01, 2019, 11:37:41 PM
    by TObaSANtex
    Ba Zi , Feng Shui, QMDJ applications in daily life

    Started by rainmasterBoard Members Lounge

    Replies: 5
    Views: 234
    Last post July 24, 2019, 10:22:45 AM
    by rainmaster
    decision: continue or ... please help divination qmdj

    Started by FloraBoard Request for divination [FREE]

    Replies: 1
    Views: 178
    Last post April 13, 2019, 06:07:24 PM
    by j27945
    QMDJ Liu He Harmony

    Started by niwijBoard Request for birth chart reading [FREE]

    Replies: 49
    Views: 1287
    Last post March 18, 2019, 04:02:52 PM
    by fan
    Making Money Trading Forex With QMDJ Forecasting

    Started by Datingafter35Board Metaphysics Investing

    Replies: 16
    Views: 1841
    Last post January 22, 2019, 03:09:13 PM
    by Datingafter35
    QMDJ Live Event

    Started by highfireBoard Miscellaneous casual talks

    Replies: 0
    Views: 203
    Last post December 17, 2018, 01:19:34 PM
    by highfire
    WWG or QMDJ?

    Started by NKBoard Liu Yao Yi Gua (LYYG)

    Replies: 10
    Views: 685
    Last post October 26, 2018, 05:04:55 AM
    by Gmuli
    100 QMDJ Cases. Have any problem? Ask here

    Started by guhaiBoard Request for divination [FREE]

    Replies: 397
    Views: 14999
    Last post August 16, 2019, 07:20:55 AM
    by j27945
    QMDJ sotware reliable?

    Started by socratesBoard Qi Men Dun Jia

    Replies: 3
    Views: 463
    Last post August 23, 2018, 09:33:16 AM
    by Administrator
    QMDJ - weather

    Started by mouzBoard Qi Men Dun Jia

    Replies: 5
    Views: 505
    Last post September 10, 2018, 03:37:15 PM
    by mouz
    Qmdj or any divination for house fengshui

    Started by Ueuyw736Board Qi Men Dun Jia

    Replies: 4
    Views: 458
    Last post August 10, 2018, 10:04:31 PM
    by Xkfan
    Where How and When do I get Money in my QMDJ Birthchart

    Started by 335ATBoard Qi Men Dun Jia

    Replies: 0
    Views: 320
    Last post August 09, 2018, 02:00:36 PM
    by 335AT
    QMDJ Month, Day, and Year Charts

    Started by 335ATBoard Qi Men Dun Jia

    Replies: 1
    Views: 618
    Last post August 09, 2018, 07:25:21 PM
    by amfortas
    qmdj book

    Started by socratesBoard Qi Men Dun Jia

    Replies: 7
    Views: 1206
    Last post August 08, 2019, 01:30:12 AM
    by mrrius
    Will we get together? (QMDJ and hexagram)

    Started by meevextBoard Request for divination [FREE]

    Replies: 28
    Views: 1864
    Last post January 18, 2019, 05:31:56 AM
    by nin99
    QMDJ blank chart (for practice purpose)

    Started by AdministratorBoard Books, Software, Tools, and Resources

    Replies: 5
    Views: 741
    Last post May 10, 2018, 11:07:27 PM
    by Rao
    All qmdj enthusiast, expert, please give me advice

    Started by guhaiBoard Qi Men Dun Jia

    Replies: 12
    Views: 1298
    Last post May 05, 2018, 12:41:30 PM
    by anton8888
    QMDJ Forecasting

    Started by jleongBoard Qi Men Dun Jia

    Replies: 4
    Views: 800
    Last post April 29, 2018, 11:23:49 PM
    by jleong
    QMDJ Forecasting: where to find investment properties

    Started by jleongBoard Miscellaneous

    Replies: 0
    Views: 374
    Last post April 27, 2018, 10:05:31 PM
    by jleong
    Qmdj book list

    Started by guhaiBoard Books, Software, Tools, and Resources

    Replies: 24
    Views: 2331
    Last post July 22, 2018, 03:42:31 AM
    by guhai
    Why bazi calculators cannot calculate birth dates in the 1800s?

    Started by ismileBoard Case Study on Birth Chart

    Replies: 17
    Views: 1583
    Last post March 30, 2018, 06:06:54 PM
    by Gmuli
    QMDJ reading- will the new job give me better career advancement & higher salary

    Started by beyondlimitBoard Request for divination [FREE]

    Replies: 15
    Views: 1702
    Last post March 21, 2018, 11:07:32 AM
    by awaken
    need ba zi or zwds or qmdj for twin

    Started by princessjeanBoard Request for birth chart reading [FREE]

    Replies: 0
    Views: 407
    Last post February 09, 2018, 03:06:45 AM
    by princessjean
    QMDJ Date selection recommendation

    Started by XkfanBoard Request for birth chart reading [FREE]

    Replies: 6
    Views: 841
    Last post February 11, 2018, 10:22:44 AM
    by Xkfan
    2 types of QMDJ writers

    Started by Ka WaiBoard Qi Men Dun Jia

    Replies: 7
    Views: 956
    Last post January 29, 2018, 11:07:53 PM
    by ArtofFugue
    QMDJ Analysis :)

    Started by greydenimBoard Request for birth chart reading [FREE]

    Replies: 9
    Views: 1129
    Last post January 31, 2018, 07:40:23 PM
    by greydenim
    My QMDJ chart

    Started by socratesBoard Request for birth chart reading [FREE]

    Replies: 9
    Views: 1051
    Last post December 10, 2017, 12:24:01 AM
    by socrates

    Disclaimer:

    Your use of FiveArts.Info is at your sole risk. FiveArts.Info cannot be held responsible for the inaccuracy of the readings and information provided by its members.  FiveArts.Info owners, administrators, moderators, masters, members, partners expressly disclaim all warranties of any kind whether express or implied including but not limited to the implied warranties of merchantability or fitness for a particular purpose.




    Total visits since 2014: